Websitetemplate.org

Welcome > Linux > Workstation Builds > CentOS 4 Workstation

CentOS 4 Workstation

Simple to use workstation used ICE WM for a small memory footprint.  System is ultra-stable and fast, even on an old Athalon XP2400+ CPU with 2GB RAM.

Pros

  • It plays music, streams mp3 from the Internet, plays AVI, WMA, DVD, VCD movies.
  • Looks and feels like Windows.
  • Has mail, web browsing, Acrobat reader, Flash Player installed.

 

Cons

  • Menus must be hand-edited (not really hard)
  • Will not play Descent using two monitors
  • Will not run two sound-intensive applications at the same time (ALSA design issue)

 

Build Instructions

Boot using CentOS 4.4 CD.

Select the appropriate keyboard and languages. 

For the type of installation, choose personal workstation.  You don't need to worry about additional packages - we'll add them in later.

Automatically partition your hard drive.

Select your time zone.

Once you reboot, the system will run a one-time-only command to set up a new user ("george" in this case).  Once that is done, log in as root, open up a terminal window and enter these commands:

# update system
yum -y update
# * File Server UID Compatibility *
# Changed user george to group 100
usermod -g users george
cd /home
chgrp -R users george
# Following added to mount the NFS export - ignore if you don't have an NFS server
mkdir /share
echo "fs3:/share /share nfs nfsvers=2,defaults 0 0" >> /etc/fstab
mount -a
# Create sudoers file
cat <<EOF >/etc/sudoers
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the man page for details on how to write a sudoers file.
#
# User alias specification
User_Alias ADMIN = root,george
# Cmnd alias specification
Cmnd_Alias SU = /bin/su -
# User privilege specification
root ALL = (ALL) ALL
ADMIN ALL = NOPASSWD: ALL
EOF
shutdown -r now
### Log in as root via the GUI and open a terminal window ###
# Add Dag Wieers repository
cd /etc/yum.repos.d/
cat <<EOF >dag.repo
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el\$releasever/en/\$basearch/dag
gpgcheck=1
enabled=1
EOF
cat <<EOF >RPM-GPG-KEY.dag.txt
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.2.1 (GNU/Linux)

mQGiBD9JMT0RBAC9Q2B0AloUMTxaK73sD0cOu1MMdD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vHkUxOBRvD6oIU6tlmuG3WByKyA1d0MTqMr3eWieSYf/L
n5VA9NuD7NwjFA1kLkoDwfSbsF51LppTMkUggzwgvwE46MB6yyuqAVI1kReAWw+I
RgQYEQIABgUCP0kxPwAKCRCiDlIUa4155oktAKDAzm9QYbDpk6SrQhkSFy016BjE
BACeJU1hpElFnUZCL4yKj4EuLnlo8kc=
=mqUt
-----END PGP PUBLIC KEY BLOCK-----
EOF
rpm --import RPM-GPG-KEY.dag.txt
# Install useful packages: 
yum -y install mc nedit mozilla-mail lynx grip k3b kdemultimedia expect rdesktop
tsclient j2re mozilla-j2re
yum -y install xcdroast vnc vcdimager unrar sharutils mpg123 kdegames alsaplayer sysstat icewm thunderbird
# Remove those I don't want:
yum -y remove ypbind yptools wireless-tools rdate mt-st emacs fetchmail mutt slrn
# Installed nvidia video drivers:
init 3
yum -y install gcc make nvidia-x11-drv strace
cd /share/software/linux/Drivers
sh NVIDIA-Linux-x86-100.14.19-pkg1.run
cd /etc/X11
mv xorg.conf xorg.conf.NVIDIA-built-me
cp /share/system-builds/donelle/etc/X11/xorg.conf .
init 5
# * PRINTER *
# Set up printer
# - printconf-gui
# -- New
# -- Forward
# -- name: printer
# -- short description: HP LaserJet 5
# -- Forward
# -- select queue type: Networked Unix (LPD)
# -- Server: printer
# -- Queue: PS-73E547-P1
# -- Forward
# -- Manufacturer: HP
# -- LaserJet 5P
# -- Forward
# -- Finish
# -- Print test page
### Log out as root, log in as george, finish installations from george account
# Become root
sudo su -
# * MPLAYER / XINE / XMMS *
yum -y install xmms xmms-blursk xmms-itouch xmms-nebulus xmms-mp3 xmms-status-plugin xmms-wma xmms-speex
yum -y install mplayer mplayer-fonts mplayer-skins mplayerplug-in
yum -y install xine xine-lib xine-skins
# for xine
hdparm -d1 /dev/cdrom1
echo "# mod for xine" >> /etc/rc.local
echo "hdparm -d1 /dev/cdrom1" >> /etc/rc.local
# Start Xine
# ctrl+s
# GUI tab -> Configuration experience level: Advanced
# GUI tab -> gui skin theme: xinetic
# video tab -> video driver to use: opengl
# Apply
# Close
# * SOFTWARE *
# Install software from file server:
# Acrobat Reader
cd /share/software/linux/Apps/AcrobatReader
./INSTALL
# Type: accept
# Press: [enter]
# Press: [enter]
ln -s /usr/local/Acrobat5/bin/acroread /usr/local/bin/acroread
# Yahoo Messenger
rpm -ivh /share/software/linux/Utilities/ymessenger/ymessenger-0.93.0-1.i386.rpm
# MP3 Splitter
rpm -ivh /share/software/linux/Utilities/mp3splt-2.1-1.i386.rpm
# Blade Encoder
rpm -ivh /share/software/linux/Utilities/BEnc-0927-Linux-i586/bladeenc.rpm
# * WINDOW MANAGER *
switchdesk icewm
# Turn on locate database
cd /etc
cp -p updatedb.conf updatedb.conf.orig
sed -e "s/DAILY_UPDATE=no/DAILY_UPDATE=yes/" updatedb.conf.orig > updatedb.conf
updatedb
# * Firefox *
# Installed Adobe Flash plugin
# http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash su -
rpm -ivh /share/software/linux/Utilities/adobe-flash-release-i386-1.0-1.noarch.rpm
yum -y install flash-plugin
# *** Time Sync ***
touch /var/lib/ntp/drift
chkconfig ntpd on
service ntpd start
cd /etc/cron.d
cat <ntpdate
# ensure clock is updated upon reboot
@reboot root /usr/sbin/ntpdate -u 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org
EOF
exit # no longer root

That's it!

 

Content Copyright 2003-2014 George Toft