Thursday, October 16, 2008

installing hardy/intrepid with orca and enabling system administration

Installing ubuntu has really become very fast and easy specially since the release of hardy. Undoubtedly it is the most accessible distro in terms of installation process. I had originally written these steps for hardy but they apply equally to intrepid.

So here we start. Hardy has in fact the easiest and most accessible install of all the ubuntu versions so far. I have had no diffeculty in performing it completely on my own. Of course there are very good tutorials and walkthroughs available on the net. I did follow them and also invented my own methods for making the system run flawlessly. I had to reinstall my hardy quite a few number of times since I am new to linux. I must warn you in advance that the sequence of events and commands must be followed exactly as they appear here, else the whole system may become unusable and a total reinstall may be required. According to my method, right after installing hardy, the first thing that needs to be done is to make suitable changes in the system so that orca will speak while performing administrative functions. This process is one of the trickiest and I had to reformat my system at least twice coz of some wrong sequence of commands. Please also note that unlike windows small and capital letters do make a difference. You must type the commands exactly as it is.
Here I would also like to mention that ubuntu now has an option to install under windows. However, I have installed it by booting the system in linux that is the traditional way of doing things.
The steps for installing ubuntu hardy and enabling system administration with orca are as follows:
1.insert the cd containing hardy and restart the system. You can download the image from
http://www.ubuntu.com and burnn it on to a cd
2.After waiting for about 5 seconds, press enter. (by doing so you are choosing english as your language)
3.press down arrow once for choosing install. press f5for accessibility, 3 for screen reader and press enter twice to confirm your choice.
4.Depending on the system configuration, orca will start speaking in about 5 mins and you will be presented with the installation screen.
5.Proceed with the installation by pressing the 'forward' button. This can be achieved by pressing alt+f.
6.You should now land on the location combo box. In case this box is not properly focused, use tab/shift+tab. Select your location and press alt+f.
7.Now you will be presented with the keyboard selection combo boxes. If you are using the normal US keyboard, simply press alt+f for moving to the next dialogue box or make suitable changes and proceed. You will hear the message “starting up the partitioner”.
8.You may hear the repeat of the previous dialogue box but don't get confused and wait for some more time. In case you don't have unalocated space on your hard disk you can safely use the first option of the partitioner dialogue box i.e. Guided/resized. This will use the available space on your hard disk even if it is on an NTFS partition. If you have unalocated space or plan to delete a free NTFS/fat32 partition, you can use the manual configuration option.
9.The next 3 Steps are meant for those who partition their hard disk manually. Select the unalocated space. Use the nevigation keys in order to move in the dialogue box. It's a good practice to define 3 partitions. a. Your home partition where your files and configurations can be stored. You can retrieve the data on this partition in case you have to go for a reinstall. b. Second partition is where linux system will be installed. c. The swap partition.
10.Select the free unalocated space, press tab and press spaceBar on edit button. Press tab, enter the amount of space in mbs you wish to assign to the partition. Now press tab and select the type of partition. Orca may probably not speak the content in this combo box at first. In case of the first two partitions mentioned above, simply pressing home key will choose ext3 which is what we want. Now press tab twice and select the mount point. For the first partition select /home. For the second select only slash. Please note that only one partition can be created at one time. Repeat the process properly for different partitions. After selecting the mount point, tab twice to reach the 'ok' button and press enter. It should take about 2 mins for the partition table with newly created partitions to appear.
11.After creating the first two partitions mentioned above, create the swap partition which should be about 1.5 times of your computer ram. The procedure is similar as mentioned above. Select swap as the mount point.
12.After creating the partitions, pres alt+f to continue to the next step.
13.Fill in your full name, user name and password in appropriate fields and your computer name. Press the forward button.
14.If you have windows on your system ubuntu will give you option to import your account. If you don't require it press the forward button or alt+f.
15.You will now see the list of partitions that will be formatted. Confirm and press forward button.
16.It will take about 20-25 minutes for the system to complete the installation process. At the end, press the restart button in order to restart the system. . Orca will keep providing speech during the entire process.
17.After the restart, you will hear the log in sound enter userName and press enter. Key in your password and press enter. The system will be ready and orca will be speaking automatically.

Enabling system administration with orca

This part is quite tricky and due care must be taken to type the commands as it is. Please note again that small and capital letters do matter.
After loging into the system open the terminal window by either pressing alt+f1 (start menu) down arrow to accessories, right arrow and then t for terminal. Or
press alt+f2 for run command and type 'gnome-terminal'. Then type the following commands in order to enable system administration with orca:
creating orbitrc file in the root folder
1.sudo su – root. #Enter password and pres return key.
2.cat> ~/.orbitrc << EOF
3.ORBIIOPIPv4=1
4.ORBIIOPUNIX=0
5.EOF

adding commands to the sudoers file.
Ideally /etc/sudoers file should be edited using the visudo command. However, I did not find it very workable. So here is the alternate method which has some risks. If you forget even 1 step it will make your system dysfunctional. The steps are as follows:
in the terminal window if you are logged in as root, you do not need sudo in the beginning of every command.
$cd /etc
$sudo chmod 777 sudoers < <
Now look for the phraise 'eng_reset', move to the end of the line and press enter. Now add the following line:
Defaults env_keep+="GTK_MODULES"

press ctrl+s to save the file, alt+f4 to close the same.
You will again be in the terminal window from where you left. Now type
$sudo chHmod 440 sudoers **<

Your system is now ready for use and you can perform administrative tasks like synaptic package manager, user-admin etc with orca speaking all the time.

Monday, October 13, 2008

Installing Espeak on opensuse 11 for use with orca

After the installation of opensuse 11 is finished and you start working with orca, you probably realise that festival is somewhat slow and sluggish. If you want to use Espeak instead, follow the steps below:
open the terminal window, elevate your previleges to super user by typing su.
#zypper refresh
#zypper in make automake autoconf gcc-c++ gnome-speech-devel portaudio
#exit ##back to your user terminal window.
now type
$wget http://ftp.gnome.org/pub/GNOME/sources/gnome-speech/0.4/gnome-speech-0.4.21.tar.gz
wget http://master.dl.sourceforge.net/sourceforge/espeak/espeak-1.39-source.zip
unzip -x espeak* ##typing partial name and pressing tab completes the file name
tar xvf gnome-speech*
$cd espeak*
$sudo cp -r espeak-data /usr/share
$cd src
$cp portaudio19.h portaudio.h
$su
#make
#cp libespeak.so.* /usr/lib
#cp speak_lib.h /usr/include
#ln -s /usr/lib/libespeak.so.* /usr/lib/libespeak.so
#ldconfig
#exit
$ cd gnome-speech*
./configure --with-espeak-directory=/usr/share/espeak-data
$make
$su
#make install

This will install espeak and configure gome-speech with the same. restart orca and espeak should appear in your speech preferences.

Sunday, October 12, 2008

steps to perform after the installation of opensuse 11

Opensuse 11 is one of the very good accessible linux distros. Next release i.e 11.1 promises something to be worth waiting for. here are the steps to perform after the installation has been finished. as far as the installation process is concerned, it's worth noting that it starts speaking at the boot prompt itself. press the f9 key after cd starts spinning and you hear a short beep. many steps in the process are somewhat inaccessible. never mind that and you can accept the default settings with some caution.
after opensuse 11 is installed and the machine is booted, press f2 and type orca. after the setup you need to log out and log back in in order for orca to work.
open the gnome-terminal from the run dialogue box. code:
$su ##press the return key.
##enter your password and hit enter.
#zypper refresh
#zypper update

this will make the system up-to-date.
Please note that sometimes there are problems with automatica configuration of the network settings. Because of accessibility issues. please adjust the dns settings in your modem if you face such issues.

Monday, October 6, 2008

booting ubuntu from a pendrive

please note that ideally the size of the disk should not be more than 2 gb though this may not be a hard and fast rule.
in hardy and later these instructions apply. in terminal window in ubuntu type
$sudo apt-get install syslinux mtools
#the $ sign represents the linux prompt.
now find out the device address of your flash drive with fdisk -l command.
assuming your flash drive is /dev/sdb1, the command for making the drive bootable will be as follows
$sudo syslinux -s /dev/sdb1
next copy the contents of your ubuntu cd to the disk including the hidden items.
Now find the isolinux folder and rename it to syslinux. go inside this folder ad find the file isolinux.cfg and rename it to syslinux.cfg and you're done.
you will be amazed at the speed with which this pendrive works. you can use it to install as well as use it like the live cd.

Sunday, October 5, 2008

using skype on linux

Hi, I have reported my success with using the skype plugin for pidgin on some mailing lists. However, Nobody else has had success with the same process. So I'll try to recapture how this can be accomplished.
First we have to install skype. in hardy: open the terminal window.
code:
sudo apt-get install libqt4-core libqt4-gui
download the deb package from skype and install using dpkg.
go to google.com and search for skype plugin for pidgin. click on the first result. download the appropriate skype.so file and copy it to
/usr/lib/purple2
start skype, you will need sighted assistance to complete the initial steps i.e. accepting license, signing in with user name and password. alternately you can issue the following command after accepting the license:
echo "userName Password" | skype --pipelogin.
now start pidgin and create a new account. choose skype as protocol, enter your skype name and press save. here you will again need careful sighted assistance. you have to allow this API to interact with skype in the ensuing dialogue. a checkbox has to be checked and one has to click on yes twice. Most of the people have reported getting stuck at this point. if this is the case, look at your account settings in pidgin for skype. on the advanced tab choose no proxy and try again.
This procedure has worked successfully for me. not once but I have at least tried it 10 times. Please note that I have followed and installed this plugin on ubuntu hardy and opensuse 11.
Please feel free to leave comments.