|
|
Robert B. White
29 Jun 2006 |
MAJOR GOTCHA: APPLIX DOES NOT RUN UNDER 9.2!!
These are my notes from installing SuSE Linux on a ChemBook N38W and a "tower" using 2.4 GHz P-IV, 1GB RAM, 2xIDE HD, etc. Both machines run Linux as the primary OS, though the laptop can boot MS-DOS 6.2. Some of the "recipes" following are specific to these machines, but most apply generally and even the specifics can be understood as recommendations.
If you're installing Linux for the first time, have a hard disk which you can use just for this so you can experiment. You will probably make more than 1 "initial" installation before you're satisfied with the result, so don't destroy your existing system. Linux (at least SuSE) includes all the tools you need to easily set up multiple boot systems. Since Linux can read Windows file systems, you will be able to access all your existing files from Linux. Windows, however, cannot access Linux file systems.
Please note this is a "what to do" which needs some prior knowledge of how to carry out the actions recommended. A full "how to" for a new first time installer is more than I want to write now!
Return to topUnder the Windows OS's through Win 2000, you're allowed one "primary" partition and an optional "extended" partition. In the extended partition you can make as many (within some limit) "virtual" partitions as you want.
Under most (all?) Linux distributions you're allowed up to 4 "primary" partitions, each of which can be further divided into many "virtual" partitions. There will be a provision in the installation software to specify these partitions and whether you want them formatted.
In order to properly prepare a hard disk for suspend-to-disk on your laptop, you will need to make sure there is enough space free to accommodate an additional hibernation partition. The hibernation partition must be a primary partition (1-4), and the required size will be determined by the amount of physical and video RAM in your laptop. To determine the size you need to make the partition, as root run:
lphdisk --probeonly
Having created a primary partition of the proper size using a disk partitioning utility, you should set it to type A0 hex (identified by fdisk as "IBM ThinkPad Hibernation", though "Phoenix NoteBIOS Hibernation" would be a more correct label).
lphdisk will then locate, verify, and format this partition for use. At this point you will need to reboot the system so that BIOS can locate and use the new hibernation partition.
Here are my recommendations (remember to add a "primary" partition on a laptop if you want to be able to suspend it):
# Request for Comments: 1918 # Address Allocation for Private Internets # # From: http://www.isi.edu/in-notes/rfc1918.txt # # 3. Private Address Space # # The Internet Assigned Numbers Authority (IANA) has reserved the # following three blocks of the IP address space for private internets: # # 10.0.0.0 - 10.255.255.255 (10/8 prefix) # 172.16.0.0 - 172.31.255.255 (172.16/12 prefix) # 192.168.0.0 - 192.168.255.255 (192.168/16 prefix)
These are un-routable addresses and will help protect your computers. Normally you use an address in the last range, which is for "Class C" networks. Your hardware firewall should do the necessary Network Address Translation (NAT). If there's an option to do NAT, enable it. If your hardware firewall doesn't do NAT, replace it with one that does.
Return to topHowever, during tar | tar to retrieve saved data from Fire-Wire drive, transfers would repeatedly hang with the Ethernet card in lower slot. Succeeded by removing card for these transfers. Later experience indicates (32 bit) network cards will not work for long in the (16 bit) lower slot.
On the laptop, installing "ifplugd" to enable switching between
network cards rendered the Ethernet card "eth0" non-startable.
Even with "eth0" configured:
yast2: Network Devices -> Network Card -> {Change | Configure} -> Edit -> Advanced -> Detailed Settings "At Boot Time"
to start at boot and "ath0" (wireless) configured to start on
hot-plug (which required "ifplugd"), "eth0" could not be found.
Use the following kernel parameters, and ensure they are installed through boot loader (these work for me, you may need something different. You can safely omit them and let the installation program figure out what to use.):
Additionally, the laptop should include:acpi=off apm=on,inupower_off
Accept default SW load initially, then go back and adjust from running system. Be sure to configure display at initial load.vga=791
On desk-side, have scanner connected and on before installation, be sure to install S/W for it. I have not been able to get the scanner to work with the laptop, though it used to. Still works fine on desk-side.
The following change allowed the scanner to work long enough to hang the
system during setup using
yast2 -> Hardware -> Scanner
After that it was no longer detected.
From: http://portal.suse.com/sdb/en/2004/04/thallma_scsiscanner_91.html
You want to set up your SCSI scanner in SUSE LINUX, but your scanner
model is not detected by YaST.
The kernel module for the support of generic SCSI devices is not loaded
on your system. Currently, the reason for this error is unknown. Possibly,
the problem may be related to block devices (hard disk, CD-ROM, etc.) that
are also connected to the SCSI bus.
The temporary solution will not work after you reboot the system.
Proceed as follows in order to load the module automatically when the
system is booted. This procedure places the kernel module "sg" in the
initial ramdisk. Subsequently, the module will be loaded automatically.
1. Open the YaST Control Center and go to the following dialog:
* System
* Editor for /etc/sysconfig Files
2. Open the following path in the /etc/sysconfig editor:
* System
* Kernel
* MODULES_LOADED_ON_BOOT
3. Append the value "sg" to any existing values in the input field to
the right. The individual values must be separated with blank spaces.
4. Click "Finish".
5. Confirm the "Modified Variables" dialog by clicking "OK".
6. Close the YaST Control Center.
Return to top
Have given up on getting laptop to work w/SCSI scanner. (24 Jan 2005) Might be worth trying the following before attempting to install scanner:
yast2 -> Network Services -> Network Services inetd
Enable SANE port
yast2 -> System -> Runlevel Editor
Enable SANE
Remaining actions can be done in approximately the sequence given.
Exact order given is not required for most of the rest, I've ordered
the steps as were convenient for me and may change this in the future.
Return to top
192.168.2.1 router.my-home router 192.168.2.12 rel-home.my-home rel-home 192.168.2.16 bob-port.my-home bob-port 192.168.2.20 print-serv.my-home print-serv
The disk should have been powered long enough to start before plugging the FireWire adapter into it's PCMCIA slot. 5-10 seconds after plugin cat /proc/scsi/scsi will identify the disk and a few seconds after that it will be automounted as /media/ieee1394-*yast2 -> /etc/sysconfig Editor -> System -> Kernel -> MODULES_LOADED_ON_BOOT ohci1394 sbp2
To re-enable remote access, set the following variable in the file
to "yes":/etc/sysconfig/displaymanager
The changes become effective after executing SuSEconfig and restarting the XServer.DISPLAYMANAGER_XSERVER_TCP_PORT_6000_OPEN
pervga_cyr8x16.pcf
so dosemu will display correctly. Restart X-Server to make this font effective./home/linux/dosemu/0.98.1/README.vga_cyr8x16.pcf
I strongly recommend using dosemu version 0.98.1. More recent versions work well and may not need the font file installation mentioned here, but believe the drive is network mounted and so will not allow running defrag and scandisk.
libdvdcss-1.2.8-2.network.i386.rpm libxine1-1_cvs-041122.i686.rpm w32codec-0.52-1.i386.rpm xine-mozilla-plugin-1.2-041122.i586.rpm xine-ui-0.99.2cvs-041122.i586.rpm <- install this last
Install these files with the following commend line (from http:/www.xinehq.de, cited in
Dec 2003 Linux Journal, page 58):
rpm --install --force w32codec-0.52-1.i386.rpm xine-mozilla-plugin-0.2-040826.i586.rpm libdvdcss-1.2.8-2.network.i386.rpm curl-7.10.3-1.i386.rpm libxine1-1_cvs-040826.i686.rpm xine-ui-0.99.2cvs-040725.i586.rpm
Expected response is:
warning: curl-7.10.3-1.i386.rpm: V3 DSA signature: NOKEY, key ID df3d5207
Reboot after installation to attain full functionality. After this,
both xine and kaffeine will play DVD videos.
To get smooth reproduction from DVD's execute the following.
More conveniently add it to /etc/init.d/boot.local
# 22 Nov 2004 Attempt to set hdparms at boot time since '-k1' appeared # to not persist over reboot. rbw /sbin/hdparm -c1 -u1 -d1 -k1 /dev/hda /sbin/hdparm -u1 -d1 -k1 /dev/hdc
Also add the following to the same file to speed up DVD writing (may not be needed with 9.2, but WAS for 9.0):
# 22 Nov 2004 added per "IDE CD Writer" FAQ on SuSE website. rbw # /sbin/modprobe ide-scsi
Workaround is to install xsession and make .xinitrc executable in each user's home directory. Need to check that .xinitrc correctly specifies and tests for olvwm. Probably this and defining the wm should be revised to allow choices. Forcing olvwm is sufficient for now.
Additionally .openwin-init needs some revision for font specification and clock geometry. After xterm initializations sleep needs to be more than 1 second, 3 is OK.
However, when invoked from an rlogin it displays correctly on the remote machine. Workaround is to use /usr/bin/X11/xclock. Will need to define display string laterXView warning: Cannot load font '-b&h-lucida-medium-r-*-*-*-120-*-*-*-*-*-*' (Font package) XView warning: Cannot load font '-b&h-lucida-medium-r-normal-sans-*-120-*-*-*-*-*-*' (Font package) XView error: Cannot open connection to window server: :0.0 (Server package)
Unaccountably -title does not display, though it does when run from an rlogin and displayed on a remote machine.
There's a common thread with these display problems: XF86 on the laptop's SuSE 8.2 does expected things which Xorg on SuSE 9.2 does not. Need to test 9.0. (9.0 appears to use XF86 since Applix runs on it.)
On 26 May 2005 I installed VMware 5.0 without the preceding. This works with SuSE 9.2, other versions need other algorithms.cd /usr/src/linux make cloneconfig make prepare depmod -a
vmware-config.pl asks first to setup vmnet8. For compatibility across machines, supply the following:
inet addr 172.16.64.1 mask 255.255.255.0
Then it asks for the optional host-only network, vmnet1. For compatibility across machines, supply the following:
inet addr 192.168.47.1 mask 255.255.255.0
This step is REQUIRED before reboot with VMware 5.x also. Deceptively, the computer will run normally without this step, but will have major problems finding modules on the next boot.cd /lib/modules depmod -a
On starting, VMware may complain that the running kernel is more recent that that for which it was compiled. It appears to run OK after that- I started it, installed W2K, and was able to install VMTools, then start updates from it, proving that the basic system and networking were OK.
Initially leave the floppy connected. For the CD/DVD select /dev/hdc and legacy emulation. After installation, set both floppy and CD/DVD to disconnect at startup. In some cases leaving the CD/DVD connected invites the Guest OS to check the drive for a new disk about every 4 seconds. These checks briefly hang the Guest OS and are extremely annoying.
Get updates from http://java.sun.com/
Do the following as root: Following installation run "updatedb". Then cd to each browser's plugin directory, for example:
and run the command:cd /opt/mozilla/plugins cd /opt/firefox/plugins
Note: in some cases it may be necessary to use instead:locate libjavaplugin_oji.so
locate libjavaplugin_oji.so | grep gcc
if this returns exactly one line, then run the command:
or:ln -s `locate libjavaplugin_oji.so`
If there is more than one response, you get to figure out which one to use.ln -s `locate libjavaplugin_oji.so | grep gcc`
NB: it's tempting to "ln -s" instead of "cp -p", and linked files will work. However, linked files drastically slow FireFox's response to changing selections from, for example, bbc.co.uk/radio based on tests 14 Apr 2005- use 'cp -p'!
Do the following as root: Following installation run "updatedb". Then cd to each browser's plugin directory, for example:
and run the command:cd /opt/mozilla/plugins cd /opt/firefox/plugins
Copy the resulting file into the plugins directory.ls -lt `locate nphelix.so` | grep -v '^l'
Then cd to each browser's components directory, for example:
and run the command:cd /opt/mozilla/components cd /opt/firefox/components
Copy the resulting file into the components directory.ls -lt `locate nphelix.xpt` | grep -v '^l'
Following installation run "updatedb". Then cd to each browser's plugin directory, for example:
and run the command:cd /opt/mozilla/plugins cd /opt/firefox/plugins
Copy the resulting file into the plugins directory.ls -lt `locate libflashplayer.so` | grep -v '^l'
and run the command:cd /opt/mozilla/components cd /opt/firefox/components
Copy the resulting file into the components directory.ls -lt `locate flashplayer.xpt` | grep -v '^l'
Install it to /opt/OpenOffice.org<version number>, then link /opt/OpenOffice to this directory../setup -net
and remove older directories with names in the form of:cd /home/<user_dir>/.kde/share/applnk
and YES, that IS a SPACE in the middle of the directory name, hence the single quotes.'OpenOffice.org <version_number>'
After an update or relocating OpenOffice (for instance from /usr/local to /opt), check links in each user's OpenOffice directory and program paths in Konqueror. In each user's home directory is a subdirectory 'OpenOffice.org<version_number>'. In this subdirectory are links to setup, soffice, and spadmin. Each of these must be to the actual installation directory, NOT to the link recommended above.
In Konqueror, check
"Edit -> Edit File Type... -> Application (in Application Preference Order) -> Edit... -> Application".
Path for "Command" may be set to either the link or the
actual installation directory.
Setting to the link will require fewer changes in the future.
Also, especially after an OS or Kernel upgrade, check ~/.gnome/apps for references to
obsolete programs and remove them.