Select-> Valid XHTML 1.0 Transitional Robert B. White
27 Oct 2007

NOTES FROM INSTALLING DEBIAN LINUX 40r0

DEBIAN 40r0 GOTCHAS! As indicated in the index file for this website I stopped testing DEBIAN and shifted to UBUNTU. Consequently this file is incomplete. Old SuSE notes remain as placeholders for future testing.

FOREWORD

Have a look at this MAJOR resource for Linux help: http://www.howtoforge.com/.

These are my notes from installing DEBIAN Linux on a WinBook W245 laptop Linux is the primary OS, though the laptop can boot Windows 2000. Some of the "recipes" following are specific to my machine(s), 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. Even if this is an update, you should have a spare HD for experimentation. Updates are NOT a "slam-dunk" 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!


DISK LAYOUT

Under 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):


NETWORKS

If you're running a private or home ether-net (and you SHOULD be doing this on the LAN side of a hardware firewall even if you have only 1 computer!) set up your home network / DHCP server to use one of the following address ranges:

    # 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.


INITIAL INSTALLATION

NOTE: Laptop testing with 40r0 started 20 Oct 2007. Normal operation of DEBIAN 40r0 is OK with a few exceptions noted throughout this document.

One SERIOUS problem noted immediately is that the X11 display system presents a 1024 x 768 display despite all SAX settings at 1280 x 768. This can be corrected!

Look for commands in /sbin incorporating the name "resolution", as:
ls -l /sbin | grep resolution
Assuming you get "915resolution", as root run the command:
915resolution -l
and note which mode corresponds to your current display (in my case 58). Experimentation suggets the best result is to select by horizontal pixel count and color depth, then modify vertical pixel count to suit. Then do the following:

  1. Exit your display manager in the usual fashion.
  2. Ctrl-Alt-F1
  3. Login as root
  4. init 3 YOU MUST DO THIS FOR THE NEXT STEPS TO WORK!
  5. 915resolution 58 1280 768
  6. init 5
  7. Log back in and you're in business!

Unfortunately, while this works it isn't "permanent", needing to be done every boot. This command needs to be added to /etc/init.d/boot.local as:

# REMEMBER THE '&', ELSE BOOT HANGS HERE!!
/sbin/915resolution 58 1280 768 &
  

Thanks to "User:Jvdoever" at http://en.opensuse.org/User:Jvdoever for the analysis which led to this correction!

Running W2K within VMware resulted in approximately 80MB of memory swapping in a 256MB system. This makes VMware effectively useless for Laptops (or any other machine) with less than 512MB memory, and 1GB is a whole lot better.


REBOOT BEFORE CONTINUING

Reboot at this time may not be necessary, but some aspects of setup work better if you do. Also, if you do an on-line update which installs a new kernel, ALWAYS reboot after kernel installation before doing anything else- you do want the new kernel running, don't you? Installing a new kernel is about the only change which requires a reboot.

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.

As soon as possible after this reboot, copy /usr/share/doc/packages/gvim/gvimrc_example.vim to /etc/gvimrc
Then edit the file and change the line "set guifont=monospace" to "set guifont=monospace\ 8" for a laptop or 9 for deskside.


CONTROL CENTER


FIREWIRE DISK

This was needed on the laptop, and reported from 9.2. I haven't yet tried this with 10.2. The "Firewire" works in the "tower" machine using the drive's USB 2 port. This is more convenient because I have a pair of USB extensions on my desk near where the disk can sit. Be sure to plug the disk into a USB 2.0 connector, NOT USB 1! I haven't tried the disk on the "tower" machine with Firewire as of 27 Aug 2006. The module "sg" is needed for the (non functioning) scanner but not for the FireWire disk, so it's not in the following list.

On the deskside with KDE, the Firewire disk starts on being plugged into a USB port. It is automatically recognized as a "Memory Stick" and a Konqueror window opened for it. I have found no provision to unmount it after use. Closing the disk's Konqueror window before disconnecting it seems to be adequate. The drive must then be powered off at it's power button.


XSERVER


KDE DESKTOP


VIDEO


AUDIO

Sound recording using "krecord" worked well on the deskside machine (under SuSE 10.0) AFTER removing a SondBlaster card and using instead sound drivers built into the motherboard. Sound recording on the WinBook 245 resulted in a very annoying ringing from transients and high pitched (3KHz to 5KHz?) sounds. It was essentially unusable. 10.2 is at least as bad, for example a piano sounds like a harpsichord.


FTP


SESSION MANAGER


VMWARE

On 9 May 2007 VMware 6.0 appeared at http://www.vmware.com/ It installs per the instructions given below for 5.x. Unfortunately the toolbars at the top of VMware's window are no longer unpinnable, costing about 0.5" of height. On a deskside machine this makes no difference, but on a laptop it hurts! This VMware version retains the USB connection restored in a recent Kernel patch (to 2.6.18.8-0.3 ). The good news is this version runs Vista. There is still no capability to copy or paste by mouse in a DOS emulation.

Attempt to install VMWARE per
http://www.howtoforge.com/debian_sarge_vmware_server_howto
The .rpm package had already been converted to .deb using aliae and installed using:
dpkg -i vmwareworkstation_5.5.5-56456_i386.deb

apt-get install kernel-headers-`uname -r` libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 xlibs-dev
resulted in:
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package kernel-headers-2.6.18-5-686
Installed kernel headers are 2.6.18-7 (!!).

VMware does not establish host file system connections when the Ethernet adapter is swapped out for Wi-Fi. No DHCP servers are started on any virtual Ethernet.
Furthermore, from the Workstation 5 User's Manual, page 309,

Additionally, wireless network bridging is supported for Windows hosts.

Note: NOT for Linux hosts!
Making a fresh install with the Wi-Fi adapter running instead of the Ethernet one at least allows both vmnet1 and vmnet8 to start and run. This configuration, with NAT selected instead of bridged, allows external network access. Unfortunately this does not allow access to the host file system from the guest Windows OS.


BROWSER

Firefox, Thunderbird and Mozilla

In Mozilla and Firefox, use the url about:config to view and control settings not available from the Edit -> Preferences menu. In Linux, Firefox doesn't know how to start Thunderbird for a mailto:. See "Launchy" below for a workaround.

Firefox from the distribution CD / DVD installs into /usr/lib/firefox, starts from firefox.sh instead of firefox, and automagically knows about Flash. If you install Firefox from the distribution CD / DVD you will be forever plagued by popup ads. I recommend downloading Firefox from mozilla.com and installing it into /opt/firefox.<version>, which is linked by /opt/firefox .

Following browser installation (Firefox at least, also Mozilla if you use it) several plug-ins need installing: Thunderbird is a mailtool only. I don't know which of these it needs. Thunderbird setups should be similar to the following. I recommend installing to /opt/firefox, /opt/mozilla, etc. to reduce clutter in /usr and /usr/local. Java will take care of itself, and It's a large and complex enough installation. I recommend letting it go to the default location, even if there is a choice. Check for what's there by entering "about:plugins" in the browser's URL window and hit "Enter".


OPENOFFICE

18 September 2007 IBM announced it's version of "OpenOffice", Lotus Symphony, downloadable from: http://symphony.lotus.com/software/lotus/symphony/home.jspa You will have to sign up to to this, which means leaving your email, name, address and phone number. While the on screen layout is different from OpenOffice 2.x, and its internal construction is wildly different, a quick test indicates it can read OO 1.1.5 files and shares the same problems reported next for 2.x. It has its own internal web browser. It lacks the File -> Properties... dialog box of OpenOffice.


MISSING UTILITIES


BROKEN UTILITIES


HARDWARE UPDATES


So you think you're done?

In April 2007 while testing software for the SPAUG CD I discovered a MAJOR resource for Linux help: http://www.howtoforge.com/. This site helps with 7 major Linux distributions and indexes 15 general topics, etc. Definitely try it!

Now it's time to read Jem Matzan's article "Hacking OpenSUSE" on Desktop Linux.com.

Also see Steven J. Vaughan-Nichols' article "Putting openSUSE 10.2 through its paces" on Desktop Linux.com.


Be sure to have a look at these to find more software:


Entire contents © Robert B. White 2005, 2006, 2007.