Author: Michael Minn (see www.michaelminn.com for current contact info)
May 24, 2001
This page contains outdated information and is retained exclusively for historical purposes. My installation information page for the most recent Linux release is located HERE.
The following document describes how I set up a Dual-Boot Red Hat Linux 7.0 system on a Toshiba Satellite 2755DVD notebook computer. I have been told that these instructions are also valid for the Toshiba 2750DVD & 2775DVD, although I have not personally verified this. Toshiba's frequent offerings generally involve multiple extremely similar models and incremental (rather than revolutionary) changes from earlier models. As such, various parts of this document may apply to a wide variety of Toshiba models. I am providing this information to help others avoid the problems I encountered.
The Toshiba 2755DVD is a mid-range laptop running an Intel 600Mhz Pentium III. It has a 6 Gig hard drive and built-in DVD/CD-ROM drive. It comes with the standard 64 Meg of RAM which I have subsequently upgraded to the maximum 192 Meg...I highly reccommend that you do the same.
I provide no guarantees for any procedures stated in this document. I performed most of these tasks only once and wrote all this down as I went along. As such, there are probably inaccuracies. Although some of the instructions given hereafter may be unnecessary (or perhaps not the best way to perform a given task), they worked for me and I'm not going to mess with a good thing.
The definitive source for Linux laptop information is the Linux on Laptops Page. Much of this information was gleaned from pages linked by this site.
This document assumes some minimal UNIX/LINUX knowledge. You're more than welcome to e-mail me if you've got a problem, but I can't guarantee a prompt or helpful reply. Like many things in the Linux world...you're on your own. I would, however, appreciate any errata that you can point out so I don't mislead anyone else.
The Toshiba 2755DVD comes with Windows 98 (2nd edition) preinstalled on a single partition. As such, FDISK can't be used to create a partition for Linux. However, Red Hat (and most other distributions) ship with FIPS (a DOS utility) that permits you to split your single partition into two partitions.
The first trick is getting all of your windows files on the lower part of the partition so it can be split. Start your computer and allow it to boot into Windows for the first time. There is apparently a way to get a refund from Microsoft if you don't ever boot Windows, but I needed the OS anyway for my dual-boot system. Just because I hate having alot of junk around on my desktop and hard disk, I spent a few minutes uninstalling all the junk programs (ISPs, games, MS Outlook Express, etc) that clutter the desktop on a new system. It's not a necessary step, but it made me feel better. If you ever need to recover your Windows system, there is a recovery disk that is shipped with the new computer.Don't forget to empty the recycle bin when you're done.
Disable virtual memory from the Windows control panel. I believe the Windows swap file is kept on the high part of the partition and that's the section that's going to be moved to Linux
control panel->system properties->virtual memory
Run the Windows defrag and scandisk utilities from an MS-DOS prompt (so you can use the command line options). This will move everything down to the lower part of the partition. When the defrag window comes up, DO NOT rearrange so programs start faster. Using these command line options speeds up the process, but it still might take a while to finish...perhaps even an hour or two.
defrag /p /q scandisk
You now need to create a boot disk containing the FIPS utility. Insert a blank floppy and create a bootable CD from an MS-DOS prompt:
sys a:
You can now insert your Red Hat distribution CD # 1. From DOS or the Windows Explorer you can copy RESTORRB.EXE, FIPS.EXE, and ERRORS.TXT from d:/dosutils/fips20/ to your floppy.
Leave the FIPS floppy in the drive and reboot your system. The computer will boot to a DOS prompt. Type FIPS to start the FIPS utility.
You will pass through a Welcome screen to a Partition screen. You will get a warning about physical start/end sector not matching logical start/end sector. This is okay, press any key to accept.
You will be told Partition table adapted to current drive geometry. Press any key to accept
At this point, the first time I ran FIPS, I got an Error...last cylinder not free message. After I turned off virtual memory and reran defrag, this problem was solved. Hopefully it won't happen to you. Obviously, if it does, FIPS stops here and doesn't split your partition. There is a help file in the d:/dosutils/fips20/ directory on the distribution disk that may be of help. There is also a program called "Partition Magic" that supposedly you can use to create disk partitions. But if FIPS works, you can save yourself $60.
Provided you don't have the last cylinder problem, you will be asked to make backup of root & boot sector. Type 'Y' to accept.
You will then be asked to enter start cylinder. You can use the arrow keys to move the partition split around. I chose to basically split the partition in half:
old: 2831.8MB, cylinder 361, new 2894.5mb
FIPS will gives you new partition table. Type 'c' to continue.
Ready to write new partition scheme to disk: Do you want to proceed:. Type 'y'.
As befits a DOS application, FIPS will crash with a memory allocation error. You can ignore it.
Press ctrl-alt-delete to reboot. Run scandisk (from DOS or the program launcher) and turn your virtual memory back on.
You now have two partitons on your disk and you can start the installation of Linux.
References:
The Red Hat installation is basically straightforward and by the numbers, although after installation is complete there are a number of steps you'll need to perform to have a system that makes full use of your display and doesn't lock up on boot.
To start installation you can reboot from the floppy although it's easier to just change the boot device order in your BIOS so you can boot from a CD.
Place the Red Hat Distribution CD in the CD-ROM drive. Exit Windows and ask to reboot. When Windows shuts down and the system is rebooting, hold down ESC key. Press F1 when prompted and the TSETUP utility will start. Change the Boot Priority section so that CD-ROM comes first in the list. When you're done just press END and the computer should rebood from the CD-ROM drive and bring up the Red Hat installer.
The Red Hat graphical install will fail because the Savage/IX video card is not directly supported in SVGA mode. You should therefore chose Text mode
You will then get some configuration prompts. Since I'm an American, I chose "English language" and "US Keyboard". You can then "OK" to the welcome screen.
When asked for type of system, choose "Custom Setup" and choose the "Disk Druid" tool for Disk Setup.
You will get a list of "Current Disk Partitions". The Windows partition is hda1. Edit it and make the mount point "/mnt/windows"
Delete the new partition you created with FIPS (hda2 - 2894.5mb). You should then add the following new new partitions. The "hdax" may come up as different numbers, but the size and configurations should be the same.
/boot (23 meg) - becomes hda2 Linux Swap (196 meg) - becomes hda5 / (root - 1 meg - press space bar in Grow to fill disk - becomes 2674M hda6)
When asked to "Choose partitions to format," OK the defaults of hda2 & hda6.
When asked about "LILO configuration" OK the defaults (use linear mode and no special kernel boot options).
When asked "Where do you want to install the boot loader", choose /dev/hda, the Master Boot Record (MBR).
LILO config: boot manager...permits configuration of the names used to for booting the two different operating systems. OK the defaults.
You will be asked for a hostname. This is a name used to identify your computer and is not terribly significant on a single-user workstation. This is not a user name...those come later. This name is up to you although shorter (and less vulger) is probably better.
You will be asked for a "Default mouse". Chose "Generic - 3 Button Mouse". This will work with the accu-point device or any external mouse that you connect later.
You will be asked for a Time Zone. The default should be what you want.
You will be asked for a Root password. Note that when typing in password, no change happens in text box, but it's still working
You will be asked to "Add a user". Go ahead and create one now...you can add or modify them later. You definately need at least one because for system safety you won't want to be spending alot of time on the system as superuser.
Authentication Configuration: I'm not sure what this is. I just OK the defaults
Package Group Selection: This one's up to you. I'm not on a network and I do some software development so I chose these packages. For small laptop screens, the KDE desktop has a bit of an advantage because it has smaller (and somewhat uglier) desktop objects.
X Window System KDE Mail/WWW/News Tools Graphics Manipulation Games Multimedia Support Laptop Support Dialup Workstation SQL Server (MySql?) Authoring/Publishing Development Kernel Development Utilities
You can, of course, add other packages later after you've installed the operating system.
You will be asked for a "Video card". Chose the "S3 Savage (generic)". This will not completely work and you will have to make some changes to configuration files later in order to get X Windows to work.
Kick off the install process. This will take about 12 minutes and the output will be logged in /tmp/install.log.
At the conclusion of the install you will be asked to create a custom boot disk. You can use the FIPS floppy you created earlier because you shouldn't need it again unless you have to rebuild this or another system. REMOVE THIS DISK after it is created so you boot from it on your initial system boot.
You will then be prompted for a reboot.
There are a more steps before you can effectively use your system...
References:
When you first boot Linux, you will be presented with a text login prompt (in VGA mode). When you log in you will get a text prompt. The normal procedure is to type "startx" at the prompt to start X Windows and the graphical desktop.
However, if you try to start X Windows (startx command) when you initially log in, you will be put in a very ugly 320x200 mode that is unusable. This is because the installer not only does not probe the S3 Savage/IX chip, it does not support it.
Despite the unofficial availablility of a driver being available for many months, it is still not a part of the XF86 that comes with the Red Hat 7.0. The Red Hat hardware compatibility list says it might work, and it doesn't. But with a publicly available SVGA server module, the card will work. You can
Download SVGA server that works with the S3 Savage/IX card. I downloaded it on another system and put it on a floppy. I have a copy on my server that you can download HERE (note that you should right click and chose to "Save Link As..."). You can also download it from Tim Roberts' page. Use the version 3.3.6 module listed in the lower part of the page, NOT the 4.0 module.
Insert the floppy, mount it and unarchive/uncompress the driver onto your Linux system. Linux is case sensitive and depending on where you get your download, the name of the .tgz file may vary. BUT, the final output after decompression (tar) should be XF86SVGA.
$ mount /mnt/floppy $ cd /usr/X11R6/bin $ cp /mnt/floppy/XF86XVGA.tgz . $ mv XF86SVGA XF86SVGA.hold $ tar -zxvf XF86SVGA.tar
You will need to manually edit the X Windows configuration file: /etc/X11/XF86Config. The standard text editor, vi, is a major pain to use, but it is basically your only choice of console-based editors. Make a backup of the old file before editing:
$ cp XF86Config XF86Config.hold $ vi /etc/X11/XF86Config
Find the following "Section Screen" section:
# The svga server Section "Screen" Driver "svga" Device "S3 Savage (generic)" Monitor "Unprobed Monitor" DefaultColorDepth 8 Subsection "Display" Depth 8 Modes "640x480" ViewPort 0 0 EndSubsection EndSection
Change it to the following. The relevant lines are Modes and Depth:
# The svga server Section "Screen" Driver "svga" Device "S3 Savage (generic)" Monitor "Unprobed Monitor" DefaultColorDepth 16 Subsection "Display" Depth 16 Modes "800x600" ViewPort 0 0 EndSubsection EndSection
This next section is the important one. Find:
Section "Monitor" Identifier "Unprobed Monitor" VendorName "Unknown" ModeName "Unknown"
After a few comments you'll find the HorizSync value.
HorizSync 31.5
Change this to:
HorizSync 31.5-48.5
After a few comments you'll find the VertRefresh value.
VertRefresh 60
Change this to:
VertRefresh 50-90
You should now exit the KDE desktop and retart your X server (startx) to test your installation. The desktop should pop up in glorious SVGA full color mode.
References:
When I installed Red Hat 6.2 on this system, I had FATAL problems with the system locking up on PCMCIA services startup (at boot time) because of an interrupt conflict. I also had a strange keyboard locking problem that was caused by a conflict with the GPM utility. These prblems seem to have been fixed in Red Hat 7. You may want to consult my Toshiba 2755 - Red Hat 6.2 Page in case these problems come up in your installation.
No driver for the internal Lucent Mars Winmodem is shipped with the Red Hat distribution and if you try to run KPPP (the Linux dialup utility), you get a message that no modem is found. There is a part source/ part binary driver (kernel module) available and this section describes the installation.
In general the modem works fine, although there are sporadic problems with the kernel module locking up the keyboard and forcing hard reboot. This can apparently be avoided by NOT using the DISCONNECT button in KPPP, but instead unplugging the phone cord from the computer. It will take a few seconds for the PPP daemon to die and notify KPPP accordingly, but this is certainly less time consuming and dangerous than having to turn the computer off and back on again.
Because the driver is a kernel module, you will need to install the kernel source files so the kernel include files are available for compiling the modem driver module. If you don't do this, you will get a nasty message from trying to use the wrong modversions.h include file.
You should be logged in as root (superuser) to perform all these operations. Insert your Red Hat distribution disk #1 in your cdrom drive and type:
$ mount /mnt/cdrom $ rpm -iv /mnt/cdrom/RedHat/RPMS/kernel-source-2.2.16-22.i386.rpm $ umount /mnt/cdrom
Download Mark Spieth's driver from Sean Walbran and Marvin Stodolsky's page. Uncompress, compile and install AS SUPERUSER:
$ tar -zxvf ltmodem-5.78c.tar.gz $ cd ltmodem-5.78c $ make $ ./ltinst
You will get the following error messages during the make. You can ignore them:
/tmp/ccL2K7VL.s: Assembler messages: /tmp/ccL2K7VL.s:9: Warning: Ignoring changed section attributes for .modinfo
I had problems with the ltinst script executing but the modem was inaccessable. The ltinst2 script worked fine, but this script doesn't modify the booting files so the module loads every time you reboot. If you have this problem, you can simply edit the /etc/rc.d/rc.local file and append the following line to the end of the file. The insmod command is the superuser command to load a kernel module...in this case, the modem driver, ltmodem.
/sbin/insmod -f ltmodem
Please note that this is a updated driver for the 2.16 kernel. There are older versions of an earlier driver that WILL NOT work on Red Hat 7.0. Kernel changes between 2.14 and 2.15 will cause the older binary-only driver to crash KPPP. If you have a problem downloading this, e-mail me and I'll send you a copy of mine.
Say the word "Winmodem" to a Linux laptop owner and you'll hear alot of four letter words...none of them "Love".
This driver was initially written by a contractor for Lucent as part-source/part-binary and is not officially supported by Lucent.
In case you're curious what the problem is...Winmodems are not really self-contained modems, but telephone interfaces. The internal processing handled by hardware inside a traditional modem has been moved to software in a Winmodem. Given modern processor speeds, this is not as silly as it might seem, especially since this can reduce latency in processing...something especially important to online gamers. The fatal downside for Linux is that few manufacturers choose to invest in additional software development for Linux when there is a much larger and more lucrative market in Windows and Mac.
References:
There are a number of PCMCIA modems available with Linux Support. The Linux Modem Page has an extensive list of supported modems, although the PCMCIA options are somewhat limited and expensive. Red Hat's do not provide a separate category for modems.
I borrowed the Xircom CreditCard Modem CM-56T (no longer produced) from my Toshiba Satellite 335CDS. After rebooting, the kernel autodetected the modem and it basically worked. However it occasionally had problems connecting to the dialup service and sporadically had periods of very slow performance.
Among currently available and supported PCMCIA modem models are the Xircom RealPort CardBus 10/100 & Modem 56 PC Card available from Microwarehouse.com. But at $220, it's a bit pricey.
My ISP under Windows was AOL, but at the time of my conversion to Linux, they were not supporting Linux. I e-mailed customer support and they sent a form reply about having it in R&D. I needed to get away from monopolies, but because I travel, I needed a national ISP.
I decided to go with an ISP that a friend of mine recommended...Earthlink. I dislike giving my credit card numbers on the web, so I dialed 1-800-EARTHLINK. The normal monthly rate is $19.95. Also, if you get Sprint Long Distance, you get $2.00/month off Earthlink
When you setup your account, you will be told to call tech support for setup information. I initially setup my account on Windows and the tech support guy walked me through the setup under Windows. I don't know what they'll do for Linux, although I guess they will just give you the raw information and let you figure out the setup given below.
The utility for connecting to the internet is KPPP. You can put an icon on your desktop by copying the kppp.kdelnk file:
$ cp /usr/share/applnk/Internet/kppp.kdelnk /home/[user name]/Desktop
Then, right click on your desktop and choose the "Refresh Desktop" option. If you want it on your application starter toolbar, you can drag it from the desktop to the toolbar.
Once you've gotten KPPP up, you'll need to setup a new account. Choose "Setup" and "New account." The setup information I used (for user name nycminn) is given below. Yours will change accordingly.
Dial tab Connection name: [any name you like] Phone # [access # provided by ISP] Authentication PAP Click off "store password" DNS Tab DNS Domain Name: ELN/[user name] Add DNS IP Address: [IP address #1 provided by ISP] Add DNS IP Address: [IP address #2 provided by ISP] DEVICE Tab Device: /dev/modem (the default)
You should test the modem before completing setup. On the MODEM tab, the middle button of the dialog is a test button. This will run some ID commands and give you a dialog box identifying the modem. If you get a message about being unable to contact the modem, there is a problem with your Winmodem setup (described above).
Fill in the user information on the start dialog:
connect to: ELN/[user name] Login ID: ELN/[user name] Password: [password]
After pressing "connect", KPPP should dial up the ISP. You probably will not hear the dial tone and this will take a few seconds. When it connects, it will give a brief message and the window will minimize itself. You can then start Netscape and begin browsing.
You can use Netscape Messenger to get your e-mail, although the native KDE e-mail client is much quicker. This is the setup for Netscape Messenger
Edit->Preferences->Mail & Newsgroups in Netscape Identity Your Name: [your name] e-mail address: [user name]@earthlink.net Mail Servers Add a server There will be an existing server named POP...edit it Server Name: mail.earthlink.net Server Type: POP3 Server User Name: [your user name] Outgoing Mail Server Outgoing mail (SMTP) server: mail.earthlink.net Outgoing mail server name: [your user name]
This is the general setup for KMAIL. In KDE, the KMAIL icon is on the application bar and the icon is a letter leaning against a big "E".
file->settings in kmail incoming mail name: [user name] login: [user name] host: mail.earthlink.net port: 110 (the default) sending mail SMTP server: mail.earthlink.net port: 25 (the default)
As with modem disconnection above, if the mail server is down, KPPP will freeze the system and you will be forced to do a hard boot (reset button).
Upon disconnecting from the internet, the mouse will freeze for a few seconds. This is apparently related to the modem driver, because it doesn't happen with my credit card modem.
Occasionally, when disconnecting from the internet, there is a worse problem. The keyboard and mouse will occasionally completely freeze and never return keyboard control, thus effectively locking the system. The CTRL-ALT-DELETE and CTRL-ALT-BACKSPACE sequences will not work because the keyboard is completely disabled. The only option is a hard reboot with the reset button. I assume this is related to the driver and interrupts.
However, I have noticed that if you do not move the mouse for a few seconds after disconnecting from the internet (while the keyboard and mouse are locked up) this problem does not seem to happen.
Don't ask me why...I just work here.
Linux is notorious for it's ugly fonts. One of the things Microsoft actually has done well (and there are a few things) is true type fonts. Linux includes support for true type fonts in the font server XFS. However, true-type font files are proprietary so they can't be distributed with the Linux CDs. Since you are making a system configuration change, you must be SUPERUSER to perform these commands.
You can get True Type fonts from websites (including Microsoft) and/or from the /Windows/Fonts directory of a machine running Windoze. I simply copied all the .ttf files from my windows partition. You should first create a directory for your fonts. While this directory name can be pretty much anything you choose, the one given below is appropriate for the standard LINUX file structure:
$ mkdir /usr/share/fonts/truetype $ cp /windows/windows/fonts/*.ttf /usr/share/fonts/truetype
Paths to XFS font files are specified in the configuration file, /etc/X11/fs/config. However, unlike Red Hat 6.2, there is no default True Type font directory and you will need to modify the "catalogue" section of this file to point to your new directory. Your modified "catalogue" section should look something like this. The only change to the file should be the last line and the comma separator on the next-to-last line.
catalogue = /usr/X11R6/lib/X11/fonts/misc:unscaled, /usr/X11R6/lib/X11/fonts/75dpi:unscaled, /usr/X11R6/lib/X11/fonts/misc, /usr/X11R6/lib/X11/fonts/Type1, /usr/X11R6/lib/X11/fonts/Speedo, /usr/X11R6/lib/X11/fonts/75dpi, /usr/share/fonts/default/Type1, /usr/share/fonts/truetype
Run the TTMKFDIR & MKFONTDIR utilities to build the fonts.dir and fonts.scale files used by XFS:
$ cd /usr/share/fonts/truetype $ ttmkfdir > fonts.scale $ mkfontdir
I got error messages "unknown font foundry code ARES". This is apparently a problem with some of the font files, but this didn't affect the rest.
You will now need to restart the X font server, xfs. If you've been in an X Windows desktop, logout so you are at the VGA console.
$ killall xfs $ xfs & $ startx
You should now be able to use true type fonts
You can also transfer .ttf files from other machines via floppy or CDROM. Note that there are different font files for the italic, bold, bold italic and regular versions of the fonts. Some of the True Type files can be very large so you may need to use multiple floppys. After copying them to /usr/share/fonts/truetype you must run through the subsequent ttmkfdir, mkfontdir, reboot steps.
I initially installed three fonts that are widely used on web pages: Times New Roman, Arial, and Verdana. You can add more fonts later with basically the same procedure. Copy the font files (.ttf) to /usr/share/fonts/truetype, run ttmkfdir, run mkfontdir and reboot.
There is supposedly a way to convert True Type fonts to Type 1 fonts (http://quadrant.netspace.net.au/ttf2pt1), but since the True Type fonts work, why mess with a good thing.
References:
I chose KDE over GNOME as my desktop for a number of reasons, including habit. KDE is supposedly a bit faster and the icon size is more appropriate to SVGA laptop screens. I also use the integrated software development environment, KDevelop, that requires KDE.
The following mouse settings seem to work best for me on KDE. They are set in KDE Control Center->input devices->mouse
5x Accelleration 2 pixel threshold
You may want to change the KDE defaults to a true type font (KDE Control Center->desktop->fonts) I have used Helvetica with a size of 12 points for my desktop. It's readable, yet compact.
On a similar note, I had a problem with the labels on my desktop icons having a black background...while I had configured the desktop background to be blue. The setting is in the KDE Control Center->Desktop->"Desktop Icons" and click "Transparent Text for Desktop Icons".
Red Hat 7.0 ships with Netscape Communicator 4.75, but it is a buggy program. Also, in it's default settings, it uses 75DPI fonts instead of 100DPI fonts, yielding fonts that are unusually small.
The easiest solution is to download Netscape 6.0 (AKA Mozilla) here.
When you click the download button on the site, you will be given an installation program tarball. AS SUPERUSER (root), unzip it and run it.
$ tar -zxvf netscape-i686-pc-linux-gnu-installer.tar.gz $ cd netscape-installer $ ./netscape-installer
Accept the licensing agreement and the default installation directory (/usr/lib/netscape). You may be asked whether you want to overwrite the existing Netscape. Chose "Delete", although it will not actually delete it. You will also be asked what kind of installation you want. I just chose the recommended installation.
The installation download will take about an hour and a half over a 56K modem. When it completes, you may be asked to join Netscape. It's free, but you can still use Netscape 6 if you decline.
The install program doesn't put a copy of the new program in /usr/bin, so if you type "netscape" at a console or use an existing desktop link, you will get Netscape 4.75. To have your desktop links start Netscape 6, you should update their properties so the executable is "/usr/local/netscape/netscape"
I had a problem installing the Real Audio/Video plugin. I downloaded the plugin RPM file and installed it (rpm -i rp8_linux20_libc6_i386_cs1.rpm), but the plugin would not automatically popup the real player. You must configure the mime type under preferences->Navigator->helper applications as a new mime type audio/x-pn-realaudio to open /usr/X11R6/bin/realplay.
If you still need to use Netscape 4.75, just type "/usr/bin/netscape" from a console. And if want correctly sized fonts in Netscape 4, there is a technique for creating a local ".Xdefaults" file that configures the browser to use 100DPI fonts. This apparently does not solve the problem when web pages specify TrueType fonts. Also, you probably have to install the 100DPI fonts from the Red Hat distribution disk #1 (/mnt/cdrom/RedHat/RPMS/XFree86-100dpi-fonts-4.0.1-1.i386.rpm) since they are not part of the standard installation. Details on this difficult technique are given at the links below.
References:
Linux Font Deuglification - Netscape
Another info page for fonts on BSD
The setup described in this configuration is a dual boot configuration. By default, LILO (the Linux loader) loads Linux at boot time. But you can override this by pressing the TAB key when the LILO prompt comes up immediately upon starting or rebooting the machine. You then type "dos" at the "boot:" prompt.
The Windows partition can be accessed seamlessly from Linux. In the partitioning setup given above, the disk is mounted on the mount point "/windows". You will, however, need to make some modifications to the configuration to access it correctly.
$ linuxconf
If this is 1st you've started linuxconf,you'll get a welcome screen: click quit
Scroll down the left window tree to find "File systems"
Click on on "Access local drive". You'll see all the partitions. Click on /dev/hda1 to select the partition and select the "volume specification" tab at the top of the screen. Click on the DOS options tab and change the following options:
default user id: [user name] default group id: [user name] default permission: 000
Click mount to test the mount and click accept to change the /etc/fstab file. After leaving linuxconf, despite the fact that it says it remounts the drive, to get permission changes to take effect I had to manually umount and mount the /mnt/windows drive from a console as superuser.
umount /mnt/windows mount /mnt/windows
I had a problem with permissions...even though I initially set the default permission to 755 (as per the instruction manual) the device was mounting with the XOR of the permission values (i.e. 022 or write access only to group and world). When I set the default permission to 000 (no access to anyone) it mounted as permission 777. Go figure.
Reference: Red Hat Manual - Windows Q and A
Frank Wilson notified me that there are a couple of utilities that permit access to the Linux partitions from Windoze. I have not tried either of the two schemes he mentioned and I can not endorse or reject them.
fsdext2 is a utility that will mount the Linux partition read-only on the next available Win95 drive letter (D:, E:, etc).
explore2fs (no URL given) will let you both read and write to your Linux filesystem from DOS/Windows. However, this is certainly less safe than read-only access.
The ESS/Maestro 2E sound chip installed in the Toshiba 2755 is detected by the Red Hat installation program and no additional configuration should be necessary.
This chip provides capability for wavetable systhesis but does not have an FM synth. This results in a much higher MIDI quality output...on Windows. Unfortunately, the Linux drivers currently available for the Maestro 2E do not provide hardware MIDI support. KMIDI will permit you to play MIDI files with low-quality software synthesis, but there is no /dev/sequencer for playmidi or other MIDI applications.
It is possible to get MIDI output/input via the RS-232 serial port.
If you are using a Roland Sound Canvas sound module or Yamaha MU-x series
tone generator you can connect the module to the serial port
with a special RS-232-to-DIN connector and get MIDI input and output.
If you're using some other kind of sound module, you can use the MIDIator MS-124W ($200).
See my NOTEMIDI page
for more information on both these options.
References:
The HP Deskjet 350CBi makes the perfect portable printing companion to the
Toshiba 2755DVD. This printer is very compact and while it is slow and the print
quality isn't fantastic (images look pretty bad in black and white),
it is certainly within the parameters of acceptability for a portable printer. Hewlett-Packard
is one of the "Good Guys" that has happily provided the open-source
community with access to their standards and protocols. I highly recommend
giving them your business whenever you have a choice.
Red Hat 7.0 ships with a printer configuration tool that will handle setup:
Some notes:
References:
A couple of years ago I bought an HP CD-Writer Plus 7200 for burning CDs. It has a
parallel port interface which is supported by PARIDE, the Linux parallel port device
connection facility.
Log in as root to perform the following tasks.
Prior to setup you will want to download the most current version of cdrecord,
a utility for burning CDs. The cdrecord that came with Red Hat 7.0 issues the following
error message when trying to access the CD writer:
The source for cdrecord is on the Red Hat source disks, but I chose to go to the
homepage for cdrecord and download
version 1.9 source.
If you have any problem downloading this version, you can find download sites at
freshmeat.net. AS SUPERUSER, compile the source and
copy the binary to the /usr/bin directory:
You can now begin the actual setup...
Connect the CD-Writer to the parallel port. Create and execute a file with
the following script to create PARIDE special devices. Many of these devices will already exist.
Execute the following commands (as root) to load the PARIDE modules. For the
HP7200, pg is the module for writing and pcd is the module for reading. The
final cdrecord command should list the drive (if it is connected)...it is also
used burn a CD, but needs specific commands (described later). If you would like to test the PARIDE connection, you can insert a CD in
your CD-Writer and mount the drive as a readable (not writable) CD-ROM: You can then access the CD-ROM through the directory /mnt/cdrw. The ismod
and mount steps will be needed each time you restart your system. You can probably
put them in a boot script if you use the drive frequently...I don't, and I'd rather not
have any modules hanging around that don't need to be there.
References: I use the CD-Writer to perform backups of my /home directory. It can, of course,
be used to create any kind of CD, but the following instructions are specific
to burning a backup CD for a single directory tree.
You can probably put all these commands in a script to simplify CD writing, but
I am including explicit commands here for clarity. Because things can go wrong
at any step and waste media, you might want to do things explicitly from the console
for awhile.
Create the CD image with the mkisofs utility. mkisofs was created when you
compiled cdrecord. See the section above for
information on compiling cdrecord and installing mkisofs. Supposedly it is
possible to pipe the output of mkisofs directly into cdrecord without using
an image file. However, every time I tried to do this I got "loss of streaming" errors.
/home/cdimage is an output file from mkisofs that will be used to burn the CD
later. This is an arbitrary name...you can put your image anywhere you like
(except the directory you're archiving?) [source_directory] is the root of
the directory tree that you want to copy. The -r option sets the permissions of
all files to be public readable on the CD and enables RockRidge-extensions. The
-J option (MS Joliet extensions) generates a more windows friendly CD. This will take a few minutes. Linux has the ability to mount files as if they were disk partitions. This
feature is useful to check that the directory layout and file access
permissions of the CD image match your wishes. Once you've tested CD-Writing
on your system, this step is unnecessary. Now you can inspect the files under /cdrom -- they appear exactly as they were
on a real CD. To umount the CD-image: Load the driver modules and find the SCSI device the writer is attached to.
If you have already loaded the modules, you can skip the insmod commands. The first column (in my case: 0,0,0) is the SCSI device for the writer
CD-writers need to be fed with a constant stream of data. The
process of writing the CD image to the CD must not be interrupted or a corrupt
CD will result. Don't do anything with heavy disk access while writing the
CD. Mechanical shock to the writer can also ruin the write. I would reccommend
going away and doing something else while the CD is burning...it will take 70 minutes
for a full CD. Although the writer is capable of 2x writing, I received the following errors
and wasted a disk when I tried burning with "speed=2" If you use cdrecord to overwrite a CD-RW, you must
add the option "blank=fast" to erase the old content. Read the man pageto learn more about the
other options available to erase a CD-RW. Recording an audio CD is actually a bit simpler than burning a data CD.
If you have your audio files all in one
directory in .wav format, the following example will burn them all on separate tracks. Since
the list will be in alphabetical order, you will need to determine the order of tracks by
appending some kind of alphabetical prefix to the track names
(i.e. 01_your_song.wav, 02_my_song.wav, 03_his_song.wav, etc.)
Reference: CD Writing HOWTO Within a few minutes of booting Linux, you may notice a flurry of disk activity.
This is normal. A program called anacron runs system administration programs
on a daily, weekly and monthly basis. The configuration file is /etc/anacrontab runs
the script /usr/bin/run-parts, which in turn points to the directories containing other scripts,
/etc/cron.daily and /etc/cron.weekly.
I believe the two programs that are most disk intensive are tmpwatch, a program that
cleans out unused files in the /tmp directory, and logrotate, a program that cleans up old
system logs.
This section is provided strictly for informational purposes and does not indicate
anything that you need to change in a normal Red Hat Linux installation.
The /etc/sysconfig/harddisks file has some lines commented out that supposedly will
increase hard disk performance. They enable drive access in 32-bit mode and increase
the read-ahead amount. There is a warning in the file about the potential for causing
file system corruption (shudder) but to date I have had no problems.
As ROOT (superuser) edit the /etc/sysconfig/harddisks file and remove the
comment ("#" sign) from the following two separate lines in the middle of the
file. Make no other changes to the file. The two lines should look like this:
Please let me know if this causes you any trouble so I can stop recommending this
procedure.
Reference: ??? To shut down Linux and power off, use the console command:
To reboot:
The following is are some experiences I have had with some Linux application software packages.
StarOffice is an extremely powerful (and somewhat bloated) office suite.
I had some serious problems with StarOffice on a Red Hat 6.2 system, althought
those problems were probably related more to problems with my system configuration
than to kernel or program bugs.
StarOffice is configured to have a complete binary installation for each user.
There is a network installation option, but I had serious problems with it on earlier
installations. I prefer not to have large binaries cluttering up my /home/[user]
directory (to facilitate periodic backups), so I created a directory under /usr/local:
Insert the StarOffice installation disk and run the install program:
When prompted, fill in the appropriate user information when.
When asked for an installation directory, enter the /usr/local/office52 directory
that you created earlier.
OK to start installation. You will be notified that "No Java Runtime Environment
was found." Click OK (Java and JavaScript not supported - the default).
The installation takes around seven minutes on this particular machine.
After the main office program finishes installing and you OK everything, the Adabase
installation program will start running. I don't need this, so I just hit CANCEL.
StarOffice is located under "Personal" on the KDE application starter.
It takes awhile to boot, especially the first time. You can an icon to the desktop
by copying the link file in the console:
You'll need to restart X. Because it's a user specific installation, you'll
find it in the "personal" category on the KDE application launcher. One of the
first things you'll probably want to do is change the home documents directory
to your /home/[user] directory...otherwise everything will default to a
directory withing the Office52 file structure:
If you need to uninstall StarOffice (see the problem list below), I
think all you need to do is delete /usr/local/office52 and the .office52
directory in your home directory.
Problems: I was unable to install the CorelDRAW suite under Red Hat 7.0. The installation program
completed but terminated with a segmentation fault. When I tried to start CorelDRAW,
I got a message about being unable to connect to the fontastic font server. I didn't
even try to install Word Perfect.
Corel made an extremely bad strategic decision to port their Windows programs
to Linux by using WINE, a Windows emulator. Aside from slowing down the programs,
it also causes occasional bizzare windows behavior. They also chose to use the Fontastic
font server (rather than the native X font server) and this requires maintenance of
a completely separate set of fonts.
While I would love to see someone actually succeed in making a profit off of
Linux, I would not recommend buying any Corel Linux products.
Kdevelop is an integrated development environment for KDE X Windows
applications. It utilizes QT, a cross-platform X windows C++
library. The home page for Kdevelop is http://developer.kde.org/.
KDevelop is part of the Red Hat 7.0 distribution and is installed if you
choose the "Developer" package at installation time.
Kdevelop does have bugs and has on rare occasions locked up or crashed on me.
But the debugger works well and after a bit of getting used to, it's a nice development environment
for X Windows applications and I highly reccomend it.
Problems: As an operating system designed by and for developers, Linux provides a number of
methods for file transfer to and from remote hosts.
If you're a command line type of person, the program "ftp" will be exactly what
you want. For example, to connect to jomama.com:
Once ftp successfully connects, you will get an ftp> prompt. You can log in by typing
the user command. You will be prompted for a password.
If you are using the KDE desktop (which the installations instructions above
assume) you can use the KDE file manager (KFM) to do non-anonymous FTP. To connect,
instead of typing a URL, type ftp://username@www.site.com where "username" is
the login user name and "site.com" is the URL of the site. Once an FTP connection
has been established, you can open a second KFM window for the local directory and
drag-n-drop file icons from the local to the remote (or vice versa).
I went looking for a graphical FTP program and found AxY FTP. It is a
graphical front end for the native command line ftp program.
It's not very robust (i.e. like Dreamweaver),
but it's small, quick and useful for common FTP tasks.
I also tried gFTP briefly (Available as a RPM package),
but it operated very slowly.
WINE is a Windows emulator permits SOME Windows programs to run under Linux.
I had some success with trivial programs like notepad.
I was hoping that I would be able to run Dreamweaver, but I had no success
and apparently no one else has either. More information is available from
The WINE Homepage.
RHYME is a simple rhyming dictionary that supports about 127,000 words.
It supports syllable counting and perfect rhymes.A must for every Linux songwriter.
Download the source. Running RPM or
KPACKAGE (i.e. the Redhat Package Manager for KDE) will copy the source tarball
to /usr/src/redhat/SOURCES. It won't tell you this, it just does it with no
confirmation. You can then make the executable.
On another machine the compilation of the word database file took awhile to
complete, but on the 2755 it was pretty quick. "make install" installs the
executable in /usr/bin. See the readme file "INSTALL" in the source
directory for more information on configuring the makefile to place things in
different directories (if desired).
The rhymer is a command line program that you invoke with "rhyme". Other
options are listed by "rhyme -h". The minimal specifications file is in
"/usr/src/redhat/SPECS/rhyme.spec".
Although there is a postscript reader built into the K file manager that
will permit reading of Adobe PDF files, some files cannot be read and yield only
a blank window. Hopefully the newer versions of KDE (with Konqueror) are better.
The legitimate Adobe Reader is available for Linux and can
be downloaded for free from www.adobe.com.
After going through the registration process, the installation tarball downloaded
to my home directory as "linux-ar-405.tar.gz". Depending on the best
available version, your file name may vary. As SUPERUSER (root), execute the
following commands from a console window:
You can now start the Acrobat Reader from a console window with the command "acroread".
For creating PDF files, Linux has a command line utility ps2bdf
that will convert postscript files to pdf files that can be emailed or posted on websites.
You can create postscript (.ps) files by printing to a file from StarOffice, Netscape, or
pretty much any application that has a printing feature.
After reading that Applixware was a native Linux office suite I had great hopes
that it would solve the weaknesses of WordPerfect and StarOffice. However, after
my installation, I initially tried opening a M$-Word document with a large table and got
something that did not resemble the original document and was unusable. Since
I store everything as either .doc or .rtf files (in the hope that those formats will
be portable and will be around for awhile), the (apparently) inadequate filters
in Applixware are a show-stopper. I immediately uninstalled and did no further
testing.
However, I can say that installation is rather pain free and I am providing the
following installation notes for those that want to give it a try.
A Linux version of RealSystem Producer Basic is available free from Real Networks for creating
Real Media files. While it is a command line encoder and does not have a convenient X-Window
interface, it is all you need to create Real Audio files. It also apparently can encode
Real Video, but only the Windows version can handle .avi files and I have never tried it with
other formats.
To install download the tarball from
real.com
into a temporary "/home/[username]/realproducer" directory.
You need a temporary directory because the tarball does not create a subdirectory
when it uncompresses
Decompress the tarball, run the install script and follow the prompts:
Both Real Producer Basic (free) and Real Producer Plus (not free) are included
in the tarball, but Real Producer Basic has met all of my needs.
A complete list of the extensive command line options can be listed by typing
"realproducer --help".
My primary usage of Real Producer has been to create streaming audio from .wav files.
The following example creates a real audio file titled "My Song" from
the mysong.wav file specifically for 56K modems.
To stream the audio from a website, you need to create a .ram file that contains one line
that is a link to the .rm file. For the above my_song.rm example, if you were posting it
to an "audio" directory under www.mysong.com and saved as "my_song.ram":
Links to the audio should then refer to "http://www.mysong.com/audio/mysong.ram"
I had been warned that Linux installation was not for the faint of heart and
all the warnings proved justified. Nevertheless, after a long learning curve
I am now under Linux able to do most of the things I did under Windows...the notable
exceptions being the following. These are here as a reminder to me, but if they're helpful to you, great.
10. Printing
11. CD Writing
10.1 Setup
cdrecord: Inappropriate ioctl for device. Cannot send SCSI cmd via ioctl
tar -zxvf cdrecord-1.9.tar.gz
cd cdrecord-1.9
make
mv /usr/bin/cdrecord /usr/bin/cdrecord.old
cp cdrecord/OBJ/i686-linux-cc/cdrecord /usr/bin/cdrecord
#!/bin/bash
#
# mkd -- a script to create the device special files for the PARIDE subsystem
#
function mkdev {
mknod $1 $2 $3 $4 ; chmod 0660 $1 ; chown root:disk $1
}
#
function pd {
D=$( printf \\$( printf "x%03x" $[ $1 + 97 ] ) )
mkdev pd$D b 45 $[ $1 * 16 ]
for P in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
do mkdev pd$D$P b 45 $[ $1 * 16 + $P ]
done
}
#
cd /dev
#
for u in 0 1 2 3 ; do pd $u ; done
for u in 0 1 2 3 ; do mkdev pcd$u b 46 $u ; done
for u in 0 1 2 3 ; do mkdev pf$u b 47 $u ; done
for u in 0 1 2 3 ; do mkdev pt$u c 96 $u ; done
for u in 0 1 2 3 ; do mkdev npt$u c 96 $[ $u + 128 ] ; done
for u in 0 1 2 3 ; do mkdev pg$u c 97 $u ; done
mkdir /mnt/cdrw
#
# end of mkd
$ /sbin/insmod parport
$ /sbin/insmod paride
$ /sbin/insmod epat
$ /sbin/insmod pg
$ /sbin/insmod pcd
$ cdrecord -scanbus
$ mount /dev/pcd0 /mnt/cdrw
11.2 Writing a CD
mkisofs -r -J -o /home/cdimage [source directory]
mount -t iso9660 -o ro,loop=/dev/loop0 /home/cdimage /mnt/cdimage
umount /mnt/cdimage
$ /sbin/insmod parport
$ /sbin/insmod paride
$ /sbin/insmod epat
$ /sbin/insmod pg
$ /sbin/insmod pcd
cdrecord -scanbus
cdrecord -v speed=1 dev=0,0,0 -data /home/cdimage
Sense Key: 0x3 Medium Error, Segment 0
Sense Code: 0x0C Qual 0x09 (write error - loss of streaming) Fru 0x0
write track data: error after 2424832 bytes
cdrecord -v speed=1 dev=0,0,0 -pad -audio *.wav
12. Operation Notes
12.1 Startup Disk Activity
12.2 Enhanced Hard Disk Performance
MULTIPLE_IO=16
EIDE_32BIT=3
12.3 Poweroff/Reboot
$ poweroff
$ reboot
13. Applications
13.1 StarOffice 5.2
$ su
(this makes you superuser - you will be prompted for the superuser password)
$ cd /usr/local
$ mkdir office52
$ chown [your user name] office52
$ chgrp [your user name] office52
$ chmod 0777 office52
$ exit
$ mount /mnt/cdrom
$ /mnt/cdrom/linux/office52/setup
$ cp /home/[user]/.kde/share/applnk/staroffice_52/StarOffice.kdelnk /home/[user]/Desktop
Tools->Options->General->Paths->My Documents
13.2 Corel Office and Graphics Suites
13.3 Kdevelop
13.4 FTP Programs
$ ftp www.jomama.com
ftp> user [user name]
13.5 WINE
13.6 A Rhyming Dictionary
cd /usr/src/redhat/SOURCES
tar -zxvf rhyme-0.5.tar.gz
cd rhyme-0.5
make
make install
13.7 PDF Reading & Writing
tar -zxvf linux-ar-405.tar.gz
cd ILINXR.install
./INSTALL
ln /usr/local/Acrobat4/bin/acroread /usr/bin/acroread
13.8 Applixware 5.0
13.9 Real Producer
$ tar -zxvf realproducer_8.5_linux.tar.gz.
$ ./install
realproducer -i mysong.wav -o mysong.rm -b "My Song" -h "Michael Minn" -c "(c) 2001 by Michael Minn" -t 1 -a 2 -f 0
http://www.mysong.com/audio/mysong.rm
14. Things That Can't Be Done Under Linux Yet
15. Some Useful Console Commands
Find available disk space
df
Find a file in a directory
find [directory] -name "[file name (with wildcards)]"
Format a floppy
/sbin/mkdosfs /dev/fd0
Create a soft link (i.e. have /home/user/windows directory point to
/mnt/windows/user)
ln -s
Set the time/date
date --set="December 19, 2000 7:00PM"
List audio CD track data
cdda2wav -JD /dev/cdrom
"Rip" a .wav file from an audio CD. In this example "-t 2" specifies
track number two...you can specify the track you want. The output
file will be called "audio.wav" and the track information file will
be called "audio.inf".
cdda2wav -D /dev/cdrom -t 2
Convert postscript (.ps) files (which can be created from the office
applications or browsers) to .pdf (Adobe Acrobat) format:
ps2pdf input_file.ps output_file.pdf
16. Specifications
CD ROM
TEAC DV-28E
Firmware 7.0F
DMA
Disk Drives
Generic IDE Disk Type01
Generic NEC Floppy Disk
Display
S3 Inc. Savage/IX w/MV
Memory Range 000A0000 - 000AFFFF
Memory Range 000B0000 - 000BFFFF
Input/Output Range 03B0 - 03BB
Input/Output Range 03D0 - 03DF
Interrupt Request 11
Memory Range 18000000 - 1FFFFFF
Memory Range 000C0000 - 000CBFFF
Memory Range 20000000 - 2000FFFF
Floppy Disk Controller
Input/Output Range 03F0 - 03F5
Input/Output Range 03F7 - 03F7
Interrupt Request 06
Direct Memory Access 02
Toshiba Internal V.90 Modem
Port COM2
Interrupt Request 11
COM1 Port Properties
Input/Output Range 03F8 - 03FF
Interrupt Request 04
LPT1 Printer Port
Input/Output Range 0378 - 037A
Interrupt Request 07
Sound
ESS Technology ES1978 Maestro 2E
ESS Device Manager
Interrupt Request 11
I/O range FC00 - FCFF
Gameport Joystick
I/O range 0200 - 0207
Maestro DOS Games/FM Devices
I/O range 0220 - 022F
I/O range 0388 - 038B
Interrupt Request 05
DMA 01
Maestro MPU401 Devices
I/O Range 0340 - 0341
USB
Intel 82371AB/EB PCI to USB Universal Host Controller
Interrupt Request 11
I/O Range FF80 - FF9F