Set-up of Fedora Core 4 on Dell Inspiron 8100

Alex Barnett, 10/28/05 (updated 4/27/06)
Hardware: See my previous FC3 / XP dual boot setup. Here we go again. New OS on old machine. Works great on the whole. This time I decided to go for simpler linux-only system since I literally only used XP for Google Earth...

Hard-drive: history / partitioning

Partitioning: be prepared since the FC4 Anaconda graphical installer unfortunately is annoying if you want to customize the partitions. It forces each new partition to be placed at the first place that fits. So you need to trick it by creating dummy partitions which you then remove later before you commit. Eg I wanted 640MB space at start in case I want to put s2d partition there. Here's table:

   Device Boot      Start         End      Blocks   Id  System               Size    Mount-point
/dev/hda1   *          83          95      104422+  83  Linux                100MB   /boot
/dev/hda2              96         987     7164990   83  Linux                7GB     /
/dev/hda3             988        1369     3068415   83  Linux                3GB     /usr/local
/dev/hda4            1370        7296    47608627+   5  Extended
/dev/hda5            1370        1496     1020096   82  Linux swap / Solaris 1GB     swap
/dev/hda6            1497        6595    40957686   83  Linux                40GB    /home

FC4 installation

No trouble, from 4 CDs, plenty of guides online, eg the 3 ones first mentioned in next section below. I chose a bunch of devel options. Note BLAS/LAPACK no longer shipped. Deselected rhgb. Disabling SELinux I believe was a choice at this stage, which I did. Graphics will be 640x800 VGA on this LCD; you can sort out full resolution now...

NVIDIA drivers: Update: This is fine now. The 8178 nVidia driver installs and works fine on the new 2.6.15-1.1831_FC4 kernel; I have not had an X11-freeze in the couple of months since I updated. (begin outdated info) This is quite subtle, and has changed from FC3, due to GCC4.0 I believe. The latest driver which is free of the notorious mouse-able-to-move-but-everything-else-frozen crash bug (which is accompanied by an NVRM Xid error recorded on syslog) which plagued me with the 7xxx drivers, is 6629. With FC4's kernel and 7676 driver, this crash still happens about twice a day, so I need 6629 driver. This is documented on nvnews, with a patch put up by Kel and Aky of WarpX, which has following instructions:

(end outdated info)

Here are my X11 setup files: xorg.conf regular, xorg.conf.proj for external projectors with max 1024 x-resolution, and xorg.conf.tv for output to TV.

Notes/bugs on FC4 vs FC3, general problems:

Post-installation fixes

Some basic post-install tips include getting Realplayer, getting Java and Flash Player to work in Firefox, and XMMS player, and Microsoft TrueType fonts (although I have found controlling fonts very annoying and have given up; TT seems to make no difference). These are covered by these excellent guides, by Mauriat Miranda, Shan, and Stanton Finley.

Yum repositories: Get this RPM which points your /etc/yum/repo.d files to FreshRPMS. Heed Stanton Finley's warnings linked above about combining Livna with other repos.

Other useful packages:

yum install djvulibre          (for .djvu document viewing, creation)
yum install freeglut-devel     (for GLUT compilation)
compile xxdiff from source (fc4 rpm doesn't talk to diff correctly), requires:
yum install qt-devel           (to compile xxdiff from source)
yum install tmake-1.13-1       (to compile xxdiff)

Install via yum,

compat-libstdc++-33
compat-libstdc++-296
compat-gcc-32
compat-gcc-32-c++
compat-libf2c-32
so you have access to pre-4.0 versions of GCC.

Install smartmontools via yum, make sure smartd is started at runlevels 2-5, and enable SMART on the main drive: smartctl -s on /dev/hda

Power consumption and SpeedStep: Install the amazing hack speedstep (see my FC3 guide), put in /etc/acpid/events/, in order to switch from 1.13GHz (speedstep -m) to 733MHz (speedstep -b) at will, or let a daemon decide based on load (speedstep -d). It must be executed as root, and even then sometimes gives a permissions warning. By looking at /proc/acpi/battery/BAT0/state I see the following power drainage rates (fluctuations are within 1W):

Heavy CPU usage (floating point):       36W      at 1.13GHz
                                        27W      at 733MHz
Idle CPU:                               23W      at 1.13GHz
                                        22W      at 733MHz
Since most of the time you're idle, battery life is not increased much. That was with my wireless PCMCIA card in, and display dim (changing to bright adds about 2-2.5W).

Little-known fact: /etc/sysconfig/harddisks isn't read anymore! See 157673. I configure hdparm settings now in /etc/rc.local It seems like good DMA settings on main drive are getting set by default now (I get 38MB/s out of the box due to my 7200RPM, which I strongly recommend).

LAPACK seems to be replaced by ATLAS, not a bad move. Have not tested the ATLAS RPM for speed yet, vs the one I compiled in FC3. Append the following to /etc/syslog.conf so you can easily flick over to syslog output to debug stuff:

# writes everything to Ctrl-Alt-F9 console.
*.*                                                     /dev/tty9

Note ACPI removes the ability to Fn-F1 into Setup or check battery using the BIOS. The only way into the BIOS Setup is at boot time. Kernel boot param acpi=off reverts to APM but then the clock 5-hr jump effect and Gnome battery monitor is messed up, so I still with ACPI.

Suspend to disk/software suspend: not working (screen blank, have to hard-powerdown)

Not tried: power management or laptop modes in linux/Gnome, hdd spin-down.

Cementing my hostname: This is always fun. I want the permanent hostname fricka.localdomain, so FlexLM needed for Matlab can work correctly. I enforce this over the DHCP-chosen hostname by placing the following in /etc/sysconfig/network:

NETWORKING=yes
HOSTNAME=fricka.localdomain
I also put this in /etc/dhclient.conf so I have a guaranteed fixed alias on the network:
send host-name "fricka";
I set /etc/sysconfig/network-scripts/ifcfg-eth0 to have ONBOOT=no and USERCTL=yes

MATLAB: Reinstall 7.0.1, eg from it's original compressed download directory.

gnupod: You'll need to yum install perl-Unicode-String and install perl-MP3-Info, then in gnupod directory ./configure and make install. Works great, /media/ipod mounts automatically and shows up as an iPod on Desktop. Files are not written until eject /media/ipod is done. A couple of times the hfsplus has mounted as read only; you will then need to use hpmount, failing that, is journaling has somehow been enabled, plug it in a Mac and do a diskutil disableJournal volumeName.

OpenBUGS (Bayesian Inference using Gibbs Sampling): As root, unzip downloaded file in /usr/local, replace the file LinBUGS by the following:

#!/bin/sh
export LD_ASSUME_KERNEL=2.4.1 
/usr/local/OpenBUGS/cbugs "/usr/local/OpenBUGS/" "/tmp/OpenBUGS/" "/brugs.so" 
Then do:
chmod 755 LinBUGS cbugs
mkdir /tmp/OpenBUGS
chmod 777 /tmp/OpenBUGS
ln -s /usr/local/OpenBUGS/LinBUGS /usr/local/bin/LinBUGS
Execute LinBUGS, currently fails unless root! Not got codes working anyway...

Desktop settings:

ATAPI CDROM drive problems

Only since switching from RH7.2 to FC3 have I been pestered by the fact that after a while the CDROM can get into a dead/confused state that renders it unusable until reboot. Any process that tries to access it (such as eject, mount, cdrecord) hangs permanently, and is in fact unkillable (sudo kill -9 has no effect). In Windows it is fine. This has been reported by many, eg see this and this, or the maybe relevant 137831. This persists in FC4, with my now-up-to-date A15 BIOS. I also get the following type of errors in dmesg:
hdb: status error: status=0x00 { }
ide: failed opcode was: unknown
hdb: status error: status=0x00 { }
ide: failed opcode was: unknown
hdb: DMA disabled
hdb: ATAPI reset complete
These messages do not seem to correlate with the time of CDROM death. I do not use kernel boot option hdb=ide-scsi since I gather this is deprecated. I haven't tested reverting to this much since then automount ect doesn't work, and kernel can oops if remove module by hand, etc.

My ide-cd is compiled into kernel. Maybe should try as module? I am exploring hdparm options. I have not seen convincing explanation/fix. Please help me!

Conclusion

On the whole great, barring a few annoyances such as CDROM.

Contact me at ahb at math dot dartmouth dot edu