Select-> Valid XHTML 1.0 Transitional Robert B. White
14 Sep 2008

NOTES FROM INSTALLING Fedora Core 7 LINUX

Fedora Core 7 GOTCHAS! MAJOR: Sound driver is usually inaccessible.
Kernel 2.6.22.9-91.fc7 implements /proc/bus/usb, thus USB. Need to determine whether USB is available for VMware
ANOTHER: rup and rstatd do not exist!!
(sourceforge has these as a tarball) And rstatd doesn't reply anyway.
MORE: qps does not exist!
(but the one from SuSE 9.2 works in 10.2)
ANNOYING: German special characters do not render in enscript.
Old: APPLIX DOES NOT RUN!!

FOREWORD

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

These are my notes from installing Fedora Core 7.0.0 (27 May 2007) Linux on a WinBook W245 which had previously run SuSE Linux 10.2 with fair success. SuSE 10.3, however, would not start the X-Display on this machine, so I elected to fight Fedora Core 7 for a while instrad of SuSE 10.3. Fedora Core ran the X-Display "out of the box" and accepted the 915resolution patch to use 1280x768. Linux is the primary OS. 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://fedoraproject.org/get-fedora

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

Unfortunatelu Fedora lacks this utility. Possibly http://www.procyon.com/~pda/lphdisk is a solution.

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 10.2 started 6 Dec 2006. Normal operation of SuSE 10.2 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/rc.d/rc.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.

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.


CONVERTING FROM SuSE

A SuSE KDE user area copied to Fedora will not allow an X-Display to start. Need to determine why. Created a new KDE user in Fedora and logged into it to establish a working setup. Then copied the following files and directories to the imported SuSE KDE user:

  1. .dmrc
  2. .qt
  3. .mcop
  4. .kde
  5. .config
  6. .local
  7. .gnupg
    This is not involved, since no SuSE version exists.
  8. .mcoprc
    This is not involved, since no Fedora version exists.
  9. .kderc
    This is not involved, since no Fedora version exists.

This resulted in a working login, though the launcher icons needed re-positioning, not a big deal. Next, restore all original items and see what happens.

What happens, unexpectedly, is that login succeeds! The SuSE display appears to use larger fonts than Fedora. Icon positions are preserved. I set up scripts to switch between Fedora and Suse, which worked repeatedly. Some other directory or file appears to hold the icon positions, and I still don't know what prevented the initial login.


CONTROL CENTER


FIREWIRE DISK

14 Oct 2007: To be checked on Fedora system.
. 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.

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

Fedora provides Firefox version 2.0.0.5, but 2.0.0.7 is current at 14 Oct 2007. No upgrade has been offered so far. Remove 2.0.0.5, which has not connected to Real Player, and install 2.0.0.7 from downloaded files. Default location was: /usr/bin/firefox
Unfortunately attempting to start firefox 2.0.0.7 elicits:
/opt/firefox/firefox-bin: error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory
Attempting to start Thunderbird elicits the same error.
libstdc++ - 4.1.2-27.fc7.i386 is already installed
Install compat-libstdc++-33 - 3.2.3-61.i386 and see if this helps.
Firefox started with a large collection of command line errors, but it DID start! It already is connected to Java and RealPlayer. Firefox attempts to edit WMNR's RealPlayer stream. It starts RealPlayer on the MP3 Player stream, but RealPlayer claims the audio device (otherwise unspecified) is busy and does not connect.

Added several ALSA support files, now in the root account Firefox automagically uses RealPlayer to listen to WMNR's Real Player stream. Unfortunately ALSA Mixer freezes shortly after starting for both root and non-root users. Even more unfortunately, RealPlayer still fails for a non-root user unless /dev/audio is set to chmod 666 and the MP3 stream is selected. Later it turned out this was irrelevant, and connection to the audio device is unpredictable.

Why are keys not repeating when held down??? They resumed repeating after a reboot.

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

Look for these (no particular order, just as I thought of them), from the Fedora Core 6 Installation review. (This list needs to be merged with the Missing Utilities list which follows.)

  1. RealPlayer Plays RealAudio, RealVideo 10, MP3, Ogg Vorbis and Theora, H263, AAC and more.

    This is NOT in Fedora Core 7 distributioin nor is it found by the Add/Remove Software module. It works correctly with the distribution's Firefox (1.5) without having to do any additional installation.

    Download it from: http://www.real.com/linux

    Now we have a problem: Firefox uses Totem for audio streams even after Real Player is installed. Totem does NOT handle, for example, any stream from wmnr.org/listen.htm despite it's claims to do so. Removed Totem and friends.

  2. mandb create or update the manual page index caches.

    Possibly equivalent to man -u.
    man page for whatis says use: /usr/sbin/makewhatis which works.

  3. rup remote uptime display
  4. rstatd kernel statistics server (for rup)

    rup / rstatd are available from sourceforge as a tarball. After following the instructions in INSTALL, also (as root) execute the command:
    make install-man
    to install the man pages.
    Then install (as root) the following file as /etc/xinetd.d/rstatd:

         # default: off
         # description: The rpc.statd server implements the NSM (Network Status Monitor)
         # RPC protocol..
         service rstatd
         {
                 rpc_version     = 1-5
                 socket_type     = dgram
                 protocol        = udp
                 wait            = yes
                 user            = root
                 group           = root
                 server          = /usr/local/sbin/rpc.rstatd
                 type            = RPC
                 type            = RPC
                 type            = RPC
                 flags           = IPv4
         }
        

    These appear to build & install without incident. For Fedora rstatd is listed in "On Demand Services" instead of the expected "Background Services" tab. The machine does NOT respond to rup from another machine on the LAN, but successfully reports other machines from rup.

  5. qps Visual Process Manager

    Get this from:
    http://rpmseek.com/rpm-pl/qps.html?hl=com&cx=0::
    or:
    http://rpmfind.net/linux/rpm2html/search.php?query=qps

    Installed with:
    rpm -i qps-1.9.7-852.i586.rpm
    No problems reported. Immediately, without rehash.
    which qps
    responds: /usr/bin/qps. It starts & runs perfectly. Created launcher icon which works correctly.

    An hour or two after qps had been installed per the above, an update to version 1.9.19-0.2.b.fc7.i386 was offered by Fedora.(!!?)

  6. gvim Vi IMproved, a programmers text editor (runs in own window)

    It's supplied in package vim-X11.

  7. xosview X based system monitor

    Try a download from http://sourceforge.net/projects/xosview/ 2 complaints: iostream and fstream present but cannot be compiled- missing but unspecified libraries. Appears to not install. Version from SuSE 10.2 Linux works! Needed to copy 2 files:
    /usr/bin/xosview
    /usr/bin/xosview.bin
    Curiously Fedora Core 6 includes an Xosview icon, even though it lacks xosview

    There is a Core 3 .rpm file, xosview-1.8.3-1.fc3.rf.i386.rpm at: http://dag.wieers.com/rpm/packages/xosview/ which I haven't tried.
    This is from Dag Wieers web site, which has over 3000 .rpm packages for Red Hat and Fedora.

  8. ntpd Network Time Protocol (NTP) daemon

    This is included in the core6 distribution.

  9. gftp GUI version of ftp

    Fedora has this, and as with SuSE, you have to ask for it.

  10. ftpd pure-ftpd is supplied (good! need to install and test)

    Have not been able to ftp to Fedora system from another machine on LAN.
    Try proftpd - 1.3.0a-3fc6.i386
    proftpd accepts connections but connects only to "/" and doesn't allow cd. It also won't get a file from a path.

    Try: http://ubuntuguide.org/wiki/Fedora_fc5 and look for the section: " FTP Server"

  11. xclock analog / digital clock for X

    Command from SuSE 10.2 install notes works, and the clock persists over logout.

  12. xine or equivalent DVD player

    I didn't take the time to look into this. It would have the same problems as kaffeine.

    See the Softpedia URL mentioned above and look for: "Install DVD/avi/mpeg/etc Player" which looks as if it can handle the situation.

  13. kaffeine audio / video player

    This is included in the core6 distribution. As installed, it does not play my Monty Python DVD.

  14. kscd CD player

    This is included in the core6 distribution. As installed the system detected an audio CD and played it after selecting kscd.


BROKEN UTILITIES


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.