Wednesday, November 12, 2008

CentOS 5.2 - my desktop configuration

Normally I use Fedora for desktop, but this time I tried something a bit different

Started with kickstart that I previously put together to install headless server and then I installed gnome and the rest.

yum groupinstall 'X Window System' 'GNOME Desktop Environment'
# if get error:" 0002483: nautilus-sendto requires a non-existent" do
rpm -Uvh --nodeps nautilus-sendto-0.7-5.fc6.i386.rpm

It was a nightmare
to set up the correct resolution. First I was trying to find correct setting for my monitor on internet and manually edit xorg.conf, but had no luck. Then I was just fiddling with System/Preferences/Screen Resolution and System/Administration/System and the follwing commands till I got it right, but can't say what made it work.

system-config-display --reconfig
Xorg -configure

The resulting config looks like this:

cat /etc/X11/xorg.conf
# Xorg configuration created by system-config-display

Section "ServerLayout"
Identifier "single head configuration"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "pc105"
Option "XkbLayout" "us"

Section "Monitor"
Identifier "Monitor0"
ModelName "LCD Panel 1680x1050"
HorizSync 31.5 - 65.5
VertRefresh 56.0 - 65.0
Option "dpms"

Section "Device"
Identifier "Videocard0"
Driver "nv"

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24

Now, when looking at the first line of the file above, it seems that
system-config-display --reconfig
made it work.

USB Mouse & Keyboard
This was another issue that gave me hard time, but this time it was of my own making. I forgot that I purposely disabled USB support in kickstart with this line:
bootloader --location=mbr --append="nousb enforcing=0"

Worked that out from startup log:

dmesg | grep usb
#got message: "usbcore: USB support disabled"

vim /boot/grub/grub.conf
# and remove nousb to get USB working

Install DAG repo from
yum install pgadmin3

Firefox Flash plugin
download yum repo rpm from and then run
yum install flash-plugin

Firefox Java plugin
cd /usr/lib/mozilla/plugins
ls -s /usr/java/jre1.6.0_10/plugin/i386/ns7/
# java location might differ, see what's in /usr/java folder

gnome-do and deskbar-applet
They look fancy, but in the end, alt+F2 might be good enough for me.

gnome-do : activate with Win+space

deskbar applet : activate with alt+F3

Finally, xterm's gray background makes me sad.
echo 'XTerm*background: white' >> /etc/X11/Xresources

No comments: