Guide to install Linux on lab computer
From Immersive Visualization Lab Wiki
CentOS 6.2
Preparation
- Request static IP address in 137.110.118 or 137.110.119 subnet, suggest DNS name (find inspiration at [1])
- Send DNS name to Jurgen to update data bank at [2]
Hardware
- Set up computer, monitor, keyboard, mouse on lab desk
- Make sure mouse is wired and optical; talk to Jurgen if not
- Connect monitor with DVI cable, not VGA
- Connect network cable to activated Ethernet wall jack
Install Operating System
- insert CentOS DVD-ROM
- reboot computer
- in boot manager: select DVD drive to boot from DVD
- use default regional settings (US/English)
- set root password
- in time zone settings: enable NTP
- Configure network
- start network configuration tool in System->Administration->Network
- double click on connected Ethernet port
- enter this computer's static IP address
- net mask: 255.255.255.0
- DNS servers: 132.239.0.252, 128.54.16.2
- reboot
Configure File Server Access
- Add machine's IP address to server's "exports" file
- "exportfs -r" on server
- Add two lines to /etc/fstab:
137.110.118.210:/raid/ivlhome /home nfs defaults 0 0 137.110.118.211:/raid/ivldata /data nfs defaults 0 0
- mkdir /data
- mount -a
Install Additional Library Repositories
Enable RPMforge repository:
- cd /tmp
- wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
- rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt # install GPG key
- rpm -K rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm # make sure this returns OK
- rpm -i rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm # install repository
Install additional libraries
Install libraries which are part of CentOS:
yum -y groupinstall "Chinese Support" yum -y install eclipse yum -y install kernel-devel yum -y install arts-devel yum -y install freetype-devel yum -y install freeglut-devel yum -y install ImageMagick-devel yum -y install ImageMagick-c++-devel.x86_64 yum -y install emacs yum -y install screen yum -y install gnuplot yum -y install latex2html yum -y install gsl-devel yum -y install lapack-devel yum -y install opencv-devel yum -y install giflib-devel yum -y install ffmpeg-devel yum -y install gstreamer-ffmpeg yum -y install selinux-policy.noarch yum -y install xorg-x11-apps yum -y install glibc.i686 yum -y install libstdc++.i686 yum -y install glew-devel.x86_64 yum -y install freeglut-devel.x86_64 yum -y install python-devel.x86_64 yum -y install libidn-devel.x86_64 yum -y install e2fsprogs-devel.x86_64
The following libraries are not part of CentOS:
yum -y install fltk yum -y install fltk-fluid rpm -Uhv /home/jschulze/rpm/Cg-2.1_November2008_x86_64.rpm rpm -Uhv /home/jschulze/rpm/mxml-2.2.2-8.el5.ccrma.x86_64.rpm ln -s /usr/lib64/libmxml.so.1 /usr/lib64/libmxml.so
Bring All Yum Packages Up To Date
- yum -y update
- reboot
- If an Nvidia driver was installed before the update, it may have to be reinstalled now.
Update Firefox
- cd /opt
- wget ftp://ftp.mozilla.org/pub/firefox/releases/10.0esr/linux-x86_64/en-US/firefox-10.0esr.tar.bz2
- if old firefox exists: mv firefox firefox.old
- tar -jxvf firefox-10.0esr.tar.bz2
- mv firefox firefox-10.0
- mv /usr/bin/firefox /usr/bin/firefox-old
- ln -s /opt/firefox-10.0/firefox /usr/bin/firefox
Install graphics driver
- Disable default Nvidia driver (Nouveau)
- create config file: vi /etc/modprobe.d/nvidia-installer-disable-nouveau.conf
- contents for this file:
blacklist nouveau options nouveau modeset=0
- vi /etc/grub.conf
- add rdblacklist=nouveau to all kernel entries:
kernel /vmlinuz-2.6.32-220.el6.x86_64 ro root=/dev/mapper/vg_pumice-lv_root rd_NO_LUKS KEYBOARDTYPE=pc KEYTABLE=us LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=vg_pumice/lv_root SYSFONT=latarcyrheb-sun16 rhgb rd_LVM_LV=vg_pumice/lv_swap rd_NO_DM rdblacklist=nouveau
- reboot
- on login screen: hit ctrl-alt-F2
- log in as root
- "init 3"
- log in as root again
- Install Nvidia driver:
- "sh /home/jschulze/rpm/NVIDIA-Linux-x86_64-290.10.run"
- 32 bit compatibility libraries not needed but ok to install
- yes to run nvidia-xconfig utility
- reboot
Copy root's ssh keys
- ssh root@sessions.ucsd.edu
- cd .ssh
- scp * root@<new_machine>:.ssh
Add user accounts
- Copy passwd, shadow and group files from sessions.
- On new computer:
- cd /etc
- scp root@sessions.ucsd.edu:/etc/passwd .
- scp root@sessions.ucsd.edu:/etc/shadow .
- scp root@sessions.ucsd.edu:/etc/group .
Disable user list at login
- As root type on command line:
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type Boolean --set /apps/gdm/simple-greeter/disable_user_list True
Install Trackd (optional, only for tracked VR systems
- copy trackd subdirectory from Nexcave /usr/local/trackd/
- copy trackd script from Nexcave's /etc/init.d/trackd
- install older version of libstdc++ with .so.5 libraries, for instance libstdc++-3.3.2-2.i386.rpm