Installing Slackware Linux With Speakup
By Saqib Shaikh <ss@saqibshaikh.com>

Introduction

Recently, a Linux screen reader called Speakup has become part of the
popular Slackware Linux distribution. This document describes the
procedure for installing Slackware Linux on your computer with speech
output, courtesy of Speakup. It should be noted that this document is only
a whirl-wind tour of installing Slackware, paying particular attention to
the use of Speakup. You should also refer to "The Speakup Tutorial", which
is also written by myself. This tutorial discusses how to use Speakup in
your day-to-day tasks. You should also consult "Slackware Linux
Essentials", which is the official Slackware book. It can be bought
separately, or with a copy of Slackware, or read online at
http://www.slackware.com.

Getting Started

The minimum requirements of running Linux with speech are similar to those
detailed in the "Slackware Essentials" book. In addition, however, you
will require a hardware speech synthesiser. The following synthesisers are
currently supported. I give the keyword used to refer to each synthesiser
as you will require this later in the installation process.

accentpc: Accent PC internal speech synthesiser.
accentsa: Accent SA external speech synthesiser.
apolo: Apollo II external speech synthesiser.
audptr: Audapter external speech synthesiser.
bns: Braille 'n Speak family of note-takers, including the Braille 'n
 Speak, Type 'n Speak, Braille Lite and Type Lite. All generations are
 supported, including the Classic, 640 and Millennium series.
decext: External DEC-Talk (for the older DEC-Talk and Multi-Voice speech
 synthesisers).
dectlk: DEC-Talk Express external speech synthesiser.
dtlk: Doubletalk PC internal speech synthesiser.
ltlk: Doubletalk external or Litetalk speech synthesiser.
spkout: Speakout external speech synthesiser.
txprt: Transport external speech synthesiser.

The easiest way of getting started is to either have bought a copy of the
Slackware CD-ROM or to have a copy of the files on your hard drive. In
either case you will require two 1.44 megabyte blank floppy disks.

If you are using DOS or Windows, then change to the directory where the
boot disks are kept. An example command may be:

c:\>d:
d:\>cd\bootdsks.144
d:\bootdsks.144>

Confirm that the directory contains the file "speakup.i" or "speakup.s".
The decision of which disk you are going to use depends on whether you are
going to install onto an IDE hard drive or a SCSI one. If you don't know,
then you're probably using an IDE hard drive. Now, you must write the
contents of the disk image to one of the blank floppy disks. You do this
under DOS/Windows using the "rawrite" command. Insert one of the disks and
issue a command such as:

d:\bootdsks.144>rawrite speakup.i a:

If you are using a SCSI hard drive then use the speakup.s file instead.

Now you must create a root disk. Change into the directory where the root
disks are kept:

d:\bootdsks.144>cd\rootdsks
d:\rootdsks>

There are three main types of boot disk. The "text.gz" disk is a
text-based version of the installation program. While some may find this
useful, I would seriously recommend that a newbie stay away from it. The
"color.gz" root disk is a menu-based setup program which makes
installation extremely easy. This is generally the disk to use if you will
be installing to a Linux partition. Finally there is the "umsdos.gz" disk.
This is the same as the "color.gz" disk except that it is designed to
install Linux onto a DOS/Windows partition. There are also two extra disks
in the rootdsks directory, namely "pcmcia.dsk" and "network.dsk". These
disks are for people who wish to install from a PCMCIA device or using
NFS.

So, basically you will just need one of the "color.gz" or "umsdos.gz" root
disks. The color install is better, particularly if you have some free
space on your hard drive or are willing to make some free space. If you
want to try out Linux without ruining your DOS/Windows installation then
use the umsdos install for now. To actually create the root disk insert
the second blank floppy disk and issue a command such as:

d:\rootdsks>rawrite color.gz a: 

If you are already running Linux or another Unix-compatible
operating-system then you can create the disks by mounting the CD-ROM (in
this example I assume you mount it under /mnt).

dd if=/mnt/bootdsks.144/speakup.i of=/dev/fd0
dd if=/mnt/rootdsks/color.gz of=/dev/fd0

Starting The Installation Process

To start the talking version of the setup program, first insert the boot
disk and turn on your computer. After a second or so the floppy disk
should stop spinning. At this point enter:

ramdisk speakup_synth=synthname

replacing synthname with the short keyword that refers to your synthesiser
as discussed above. If you have an external speech synthesiser that is not
plugged into your first serial port, such as com2/3/4 under DOS, then you
will need to specify the serial port to use. Do this by entering:

ramdisk speakup_synth=synthname speakup_ser=n

Where n is the number of your serial port. Note that in Linux the serial
ports are numbered 0-3 instead of 1-4.

Once you have entered the correct command, wait a few seconds and your
synthesiser should start talking. It will read all boot-up messages, which
you probably don't want to hear. To silence speech press the enter key on
the numeric keypad.

At this point it is probably worth giving a brief overview of the Speakup
screen reading functions, though a more detailed description can be found
in the "Speakup Tutorial".

To temporarily silence speech press the control key. To silence speech
until another key is pressed use the enter key on the numeric keypad. You
can move around the screen using Speakup's reading cursor. Note that
moving the reading cursor does not move the actual cursor on the screen.
The numbers 1, 2 and 3 on the numeric keypad read the prior, current and
enxt characters respectively. Similarly the 4, 5 and 6 keys read the
prior, current and next word. 7, 8 and 9 read the previous, current and
next line. The plus key reads the entire screen. There are many other
screen reading keystrokes, but these are the main ones to get you started.

Eventually you will be asked to insert the root disk and press enter. Do
just that.

Finally you will reach the login prompt. Just type the word "root" and
press enter. Speakup will not say anything. This is because once you have
logged in the prompt is a % symbol, which Speakup doesn't read with the
default punctuation setting.

Partitioning Your Hard Drive

The issue of partitioning is one which Linux books spend entire chapters
explaining. In this document I shall not go into all the details, but
rather concentrate on Speakup specific usage. If you are installing on a
DOS/Windows partition using the "umsdos.gz" root disk then you don't need
to partition your disk.

To start the partitioning tool use the command:

%cfdisk /dev/diskname

Where diskname is the name of the disk to partition. This is often hda1.

Now you are in a screen which contains a list of partitions at the top.
You can move through these with the up/down arrow keys, and read them in
more detail using the review keys on the numeric keypad. At the bottom are
a number of options to perform various actions. Cycle through these using
the tab key.

First of all, if your hard drive is already full (this is the case with
most newly bought computers), then you will need to delete some partitions
by moving to it and pressing the letter d. Using Speakup this is quite
hard to do. Move up until the computer beeps, indicating that you are on
the top partition. Then move down to the number you want and free up some
more space. If you want to start from scratch then press d and then down,
repeating this for each partition. Every deleted partition will be
replaced with "free space". Note that deleting a partition will completely
destroy all data stored on it.

In my example I will delete all partitions. Next you need to create at
minimum two partitions. To create the first one highlight "free space".
Then press tab. Each time you will hear a couple of options, followed by a
description. Listen to the description, and this will let you know which
option is selected. Select "New". You will be prompted with
primary/extended. Just press enter for primary in most cases. Then you
will be asked for the size in megabytes. The total size of the free space
will be given. For your main Linux partition you should use almost all of
the free space, leaving just a bit for swap space, which acts as virtual
memory. Typically it is recommended to have twice as much swap space as
you do RAM, with a maximum of 128 mb. In my example I am prompted with
4023, so I enter 3900 and press enter. Finally I am asked whether I want
the partition at the beginning or end of the partition. Once again press
enter for beginning.

Now we must create a swap partition. Move down to the second block of free
space and select "new" again. Press enter to create a primary partition,
enter a second time to except the default value, and enter a third time to
place it at the beginning.

Now, move up to the first partition you created. Press tap until you hear
the "boot" option. Press enter. Move down to the second partition and tab
until you hear "type". Press enter. You will be given lots of options and
will need to press space to get to the second screen of options. Enter the
number 82 and press enter.

Now, use the review keys to move up to the partition list and examine the
entries. You should have one partition of type "Linux", with the word
"boot" on that line. Then you should have another line on which the word
"boot" does not exist, of type "Linux Swap".

Finally, press tab until you reach the "write" option and press enter.
When prompted type the word yes and press enter. When it is complete tab
to quit and press enter.

Now, that is a very complicated procedure, and so that it doesn't go wrong
you should really consult some other sources of information. This
discussion has only been included to get around some of Speakup's little
querks.

Starting Setup

To actually start the setup procedure just enter the word "setup" and
press enter.

You will be placed in a menu with many options. Note that when using the
up/down arrows in this menu Speakup will say two values. When moving down
the menu you should listen to the second item, and when moving back up the
menu take note of the first one. This is because Speakup doesn't fully
support cursor tracking yet. You may turn on experimental cursor tracking
by using the star key on the numeric keypad.

The first option is "help". Select this if you want to read more
information about the setup procedure.

The next item is "Remap your keyboard". When using Speakup you should not
do this.

The next option is "Add swap". Unless you are doing an umsdos install
select this item. You will be placed on the first swap partition, which is
generally the right one so just press enter. When it completes it will
display some more messages, just acknowledge these by pressing enter. You
will automatically be taken to the next step, which is to add a Linux
partition. Once again you will be placed on the first Linux partition, so
just continue pressing enter.

The next step is to select where you want to install from. This is
generally CD-ROM or maybe hard drive. Select the option from the list and
press enter. Just continue to press enter through most of the prompts,
which are self-explanatory.

Next, you will be placed in a list of package groups you may install. Use
the arrow keys to move to an option and then press the space bar. A letter
x means that an option is selected. Once you've chosen all the groups just
press enter.

Now you will be asked for the prompting mode. Just press enter for full
prompting mode. The files will now be uncompressed to your hard drive. You
may wish to press keypad-enter while it installs.

You will next be asked to install a kernel. You have two options. The
first is to choose to install the kernel from the boot disk in which case
you will be asked to enter that disk. The alternative is to install a
kernel from the CD-ROM. If you choose the first option you will
automatically get a talking kernel. If you choose to select one from the
CD-ROM, then you will need to choose either speakup.i or speakup.s
(whichever you used before) from the list of available kernels.

The next few sections depend what software you installed. It includes such
things as selecting your time zone and configuring the network. By now you
should have got the idea of selecting an item with up/down and then
pressing enter to move to the next stage, so I will not go into all the
details. Refer to the Slackware manual for further details.

Finally you will be asked to specify the root password. When you type the
password Speakup will not say anything. This is because nothing is being
written to the screen so that someone looking over your shoulder doesn't
see the password.

And that's it! You now have Linux installed on your computer!

Reboot your system. When your computer stops at the boot prompt enter the text

linux Speakup_synth=synthname

using the same synthname as before, and your computer should come up talking.

Where Now?

You should now continue reading the online book, "Slackware Linux
Essentials" to learn more about Linux. The "Speakup Tutorial" will also
help you learn more about Speakup, as well as giving more information
about joining the Speakup mailing list, which is an invaluable resource
for getting your questions answered.

Good luck in your Linux adventures. If you found this document useful then
please let me know. Equally, if you don't like it then tell me also.

You may reach the author via email at ss@saqibshaikh.com. You may also
like to visit his home page at http://www.saqibshaikh.com.