Select-> Valid XHTML 1.0 Transitional Robert B. White
14 Nov 2009

NOTES FROM INSTALLING ubuntu LINUX 7.04 / 7.10 / 8.04 / 9.04 / 9.10

ubuntu GOTCHAS! 9.10 is asocial, refusing windows other than rlogin. No XDMCP.
/tmp is cleaned on every boot.
7.10 fails to start the X-display from the boot CD.
7.04 can no longer be updated, so install 8.04 on WinBook. (incompatibility with laptop)
pxlmono is an agonizingly slow printer driver with Firefox.
rlogin is disabled by default. Use ssh instead.
root login is disabled.

FOREWORD

These are my notes from installing ubuntu:

Linux is the primary OS for all these machines. Some of the "recipes" following are specific to my machine(s), but most apply generally and even the specifics can be understood as recommendations.

Download the installation CD from: http://www.ubuntu.com/getubuntu

7.10 would not correctly drive the display of the WinBook, and 7.04 would not drive the display of the Fujitsu. See XSERVER for solutions.

Fortunately 8.04 handles both, though the WinBook must be booted from the distribution CD in "Safe graphics mode" until "915resolution" can be installed

Motivation for this experiment was a glowing recommendation of ubuntu by Hank Skawinski of Datawise at the SPAUG meeting 12 September 2007. Additional motivation was the complete failure of SuSE Linux 10.3 to operate the X-Display on the Winbook after installation, and the accumulated failures of Fedora Core 7 to access WinBook hardware.

Booting from the live CD (and I was surprised it was only a CD!) involved an enormous amount of shuffling on the CD, as did installation once started. This was the situation on the ChemBook. Attempting to use the same CD with the WinBook revealed mostly read errors. A freshly downloaded and burned CD worked quickly and flawlessly.

The install process sets up a system administrator (NOT root) account, for the first user. Login to the root account is permanently blocked, so one has to use sudo to perform root functions. Leave it this way!! See below... The password for the installation account is sufficient for sudo, because the first user is by default a system administrator. While this system is peculiar if you're used to a root login, it works well and there is a workaround (see "root management" below). The workaround appeared to not work in 9.04. I strongly recommend using an initial account name such as the windows style "Administrator", then set up all "real" users later. Peculiarly, ubuntu forbids upper case in user names, so "administrator" will have to do.

In general, perform all system maintenance from the administrator or equivalent account.

Following installation from CD, for which no software selection is offered, the system requests a reboot, then very quickly finds updates (for 7.04: 119 on the ChemBook, 129 on the WinBook!) and requests to install them. Following updates, a subtle icon near the right end of the top toolbar requests another reboot. Having failed to notice this, I discovered there was a root account and changed its password from the default. I could then not start a terminal, which had been possible when running the "live" system. Then I discovered the reboot request and initiated it. Reboot started OK, then deteriorated into a long sequence of error pop-ups approximating:

An error occurred while loading or saving configuration information for evolution-alarm-notify. Some of your configuration settings may not work properly.
Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash.
(and several lines more...)

Indeed! There was no X-window manager running, and only launcher icons for "Computer" and "Trash" appeared on an otherwise black screen. A right mouse click brought up a short menu which did not include logout or shutdown.

Time to crash the computer and reinstall...

Second try worked correctly! The WinBook also took two tries, since I got part of the disk setup wrong and found no provision to backup and correct.

root management
root login is blocked, and leave it that way! The "administrator" account acts as a pseudo root. It does not have root powers. It gets a more extensive set of menus than ordinary users, and these menus contain many root capabilities. Successful attempts to invoke root applications are always through sudo.

I have found at least one task which sudo could not handle and for which root access was needed. Enabling a direct root login causes problems (see below) so I used my favorite old trick of creating an alias to root, croot, which uses tcsh and allows login. This solved the problem, which was to use a command chain like:
tar -cf - * | ( cd destination ; tar -xvf - )
to transfer a file system from an external drive to the newly installed one.

NB: while the above works writing to a disk, it may fail writing to a USB memory stick, probably because whatever "formatting" the stick has allows files but not file systems, i.e. directories. I have also, 12 Sep 2009, while writing to a 16GB USB memory stick, encountered an absolute limit to output file size at 4294967295 bytes. Guess what! This is (2^^32) -1, suggesting the stick has in effect an NTFS file system. However, I can write at least 2 such files to the same stick.

/tmp is cleaned on every boot
So DON'T ever put in /tmp anything you want to keep, such as backup files being prepared to write to DVD. Instead put these items in /var/tmp.

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

Please note that my document 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

During setup for installation ubuntu provides a partitioner step. I used it to over-write the existing Linux partition, leaving DOS or Windows and swap partitions alone. The swap partition was recognized and, I guess, properly handled. The pre-existing "/" partition was reiser, and was left as such.

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

Unfortunately ubuntu lacks this utility.

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


XSERVER

WinBook

On the WinBook, Ubuntu 7.10 CD did not set up the X-display after booting, the screen remained blank for both default VGA and 1024x768x32 selections. Booting in the "Safe" selection eventually produced a screen full of flashing horizontal streaks, through which a desktop image could be seen, but the display settings are still plainly unusable. As of April 2009 (at least) 7.04 can no longer be updated, so is no longer a starting point for bringing up the WinBook. Why does it matter? I tried installing 9.04, which misbehaves badly, and needed to restore 8.04.

Note to self: USE A SPARE DISK NEXT TIME SO YOU DON'T DESTROY A WORKING INSTALLATION!!

8.04 had to be installed in "Safe Graphics" mode, but would not switch to 1280x768 upon installation of 915resolution. Replacing /etc/X11/xorg.conf with a version which had prevoiusly worked with 8.04 restored the 1280x768 display. This may not be correct for your situation, but I hope it helps!

Fujitsu

News flash: 20 Jun 2008 had a bad Xserver start on the Fujitsu laptop! At least the odds appear to be better, this was the first one in a week or two since the countermeasure described below. Keep watching! Have had a few more, I'm guessing a rate of 2 per week. Mildly annoying, but better than before.

On the Fujitsu, Ubuntu 8.04 can operate the screen correctly without extra S/W. CPU load due to the screen driver is much less than in 7.10. But (and you knew there would be one) about 2 times in 3 the screen for the Radeon HD 2600 graphic chip isn't correct and reboot is required. An apparent correction was obtained by installing the package "xorg-driver-fglrx". This raised idling CPU load to about half of what had been observed under ubuntu 7.10. After a few reboots this package was then removed and screen driver startup remains usually correct! Apparently a configuration file somewhere was altered just enough! FWIW, with 8.04 copying the "xorg.conf" file from 7.10 did not work.

On the Fujitsu, basic 7.10 installation could not produce a screen display better than 800x600 on its 1440x900 screen. Some googling produced Alberto Milone's Envy installer for a good solution! After installing from this URL an "Envy" item will appear on one or more menus of (at least) gnome and KDE UI systems. Invoke this item TWICE. The first time downloads and installs the driver, the second time configures the driver for your screen. (The first time I tried this I didn't know to make a second invocation, thus not getting benefit of the driver!)

This ATI driver appears to have a downside, though, it keeps %CPU around 65%, vs 10% to 20% for the WinBook. Installing and running irqbalance appears not to help. However, a couple of days later (22 Mar 2008) after having started irqbalance at boot time by adding to /etc/rc.local:
/etc/init.d/irqbalance start &
CPU load is about the same, but interrupt handling is a lot smoother. audacity playback is still "jerkey", so not useable. The Fujitsu's BIOS allows turning off one of the CPU cores. With this done, audacity playback is vastly worse.

On the Fujitsu using Ubuntu 8.04 audacity runs well enough to successfully play and edit files. As of 10 July 2008 I have not tried recording an LP with audacity, that is on my to-do list!


REBOOT BEFORE CONTINUING

As soon as possible after this reboot:
cp -p /usr/share/vim/vimcurrent/gvimrc_example.vim /etc/gvimrc
Then edit the new file and add the line
set guifont=monospace\ 8
for a laptop or 9 for deskside. before the final endif near the end of the file.

As administrator attempting to invoke at a command line a command which is not installed frequently results in a command being generated for you which can be used to install the missing item. When this happens, copy & paste the generated command into a command prompt to get the item. I don't know if these offers are made for non-root users, and suspect it's a Gnome feature.


CONTROL CENTER


FIREWIRE DISK

I haven't tried this as of 23 Oct 2007.

This was needed on the laptop. I haven't yet tried this with ubuntu. The "Firewire" disk 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 23 Oct 2007.

The disk should have been powered long enough to start before plugging the FireWire adapter into it's PCMCIA slot. 5-10 seconds after plug-in the disk it will be automounted as /media/ieee1394-*

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.


DESKTOP

I have found KDE4 far less satisfactory than KDE3.x, thus have switched to GDM as the lesser evil. Ubuntu 9.10 may require, to restore XDMCP, revising that decision.


VIDEO


AUDIO

Sound recording has not yet been tried on the WinBook. Under SuSE 10.2 this resulted in a very annoying ringing from transients and high pitched (3KHz to 5KHz?) sounds, for example a piano sounds like a harpsichord. It was essentially unusable.


FTP


SESSION MANAGER


VMWARE

VMware 5.5.5 would not compile it's modules in ubuntu 7.10, but
VMware 6.0.2 installed successfully.
VMware 6.0.3 needs an adjustment to source code to install:

From http://ubuntuforums.org/showthread.php?t=770716 27 Apr 2008
I had the same problem. If you are using VM Workstation 6, the following will work. Assuming you are familiar with working in terminal mode on the command line, execute the following series of commands:

  1. unpack VMware-workstation-6.0.3
  2. go to vmware-distrib/lib/modules/source
  3. untar the file vmmon.tar (tar xvf vmmon.tar)
  4. cd vmmon-only/include
  5. edit the file vcpuset.h
  6. go to line 74
  7. change #include "asm/bitops.h" to #include "linux/bitops.h" (Because there are some changes made to the 2.6.24 kernel, it's not possible to include bitops.h from asm and you will have to include it from the linux directory)
  8. go back to vmware-distrib/lib/modules/source
  9. remove the old vmmon.tar file (rm vmmon.tar)
  10. repack the new vmmon.tar file (tar cvf vmmon.tar vmmon-only)
  11. remove vmmon-only directory (rm -rf vmmon-only)

Now go to vmware-distrib directory and install vmware as you usually do. It should work without a glitch. Last edited by Rizlaw; 2 Weeks Ago at 03:42 PM

RBW, 13 May 2008: Installation succeeds, and VMware runs correctly.

On 9 May 2007 VMware 6.0 appeared at http://www.vmware.com/ It installs per the instructions given below (6.0.3 REQUIRES the adjustment given above). 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 little 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, unlike some of the DOS-emu versions.


BROWSER

Firefox, Thunderbird and Mozilla

ubuntu provides by default it's own renamed versions of Firefox and Thunderbird. Starting with 8.04, "Firefox" will be Firefox 3, and the older version will be Firefox-2, whth the executable in /usr/lib/firefox/firefox-2. You will need to do some renaming to continue using Firefox 2, which you may want to do until extensions such as Adblock Plus and Launchy are updated for Firefox 3.

The following applies to versions obtained directly from mozilla.com, and may be helpful with the ubuntu versions.

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, and auto magically knows about Flash. If you install Firefox from the distribution CD / DVD you will be forever plagued by pop-up ads unless you install the add-on "Adblock" or "Adblock Plus". I STRONGLY recommend "Adblock Plus"!

ubuntu 7.10 upgrade, 24 Oct 2007, removes the "mozilla-" prefix, but now attempts to run firefox fail with:
/usr/bin/X11/firefox: 184: /usr/bin/X11/run-mozilla.sh: not found
run-mozilla.sh exists, of course, but in /usr/lib/firefox, so in the launcher remove the path /usr/bin/X11/ and let the system deal with it.

Following browser installation (Firefox at least, also Mozilla if you use it) several plug-ins need installing: Thunderbird is a mail tool only. I don't know which of these it needs. Thunderbird setups should be similar to the following.


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!


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


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