Difference between revisions of "Guide to install Linux on lab computer"

From Immersive Visualization Lab Wiki
Jump to: navigation, search
(CentOS 5.3 on Dell Optiplex GX620, XPS 710 or XPS 730)
(RPMForge)
 
(154 intermediate revisions by 2 users not shown)
Line 1: Line 1:
==CentOS 5.4==
+
==CentOS 6.2==
  
# Preparation
+
===Preparation===
## Request static IP address in 137.110.118 or 137.110.119 subnet, suggest DNS name (find inspiration at [http://simple.wikipedia.org/wiki/List_of_rocks])
+
# Request static IP address in 137.110.118 or 137.110.119 subnet, suggest DNS name (find inspiration at [http://simple.wikipedia.org/wiki/List_of_rocks])
## Send DNS name to Jurgen to update data bank at [http://research.calit2.net/event-coordination/index.php/List_of_IP_addresses]
+
# Send DNS name to Jurgen to update data bank at [http://research.calit2.net/event-coordination/index.php/List_of_IP_addresses]
# Hardware
+
 
## Set up computer, monitor, keyboard, mouse on lab desk
+
===Hardware===
## Make sure mouse is wired and optical
+
# Set up computer, monitor, keyboard, mouse on lab desk
## Connect monitor with DVI cable, not VGA
+
# Make sure mouse is wired and optical; talk to Jurgen if not
## Connect network cable to activated Ethernet wall jack
+
# Connect monitor via DVI or HDMI, not VGA
# Install Operating System
+
# Connect network cable to activated Ethernet jack
## insert CentOS DVD-ROM
+
 
## reboot computer
+
===Install Operating System===
## in boot manager: select DVD drive to boot from DVD
+
# insert CentOS on USB thumb drive
## use default regional settings (US/English)
+
# reboot computer
## set root password
+
# in boot manager: select DVD drive to boot from USB
## in time zone settings: enable NTP
+
# use default regional settings (US/English)
## Configure network
+
# set root password
## start network configuration tool in System->Administration->Network
+
# in time zone settings: enable NTP
## double click on connected Ethernet port
+
# instead of doing a minimum install, select "Software Development Workstation"
## enter this computer's static IP address
+
# Configure network
## net mask: 255.255.255.0
+
# start network configuration tool in System->Administration->Network
## DNS servers: 132.239.0.252, 128.54.16.2
+
# double click on connected Ethernet port
## reboot
+
# enter this computer's static IP address
# Configure server access
+
# net mask: 255.255.255.0
## add machine's IP address to server's "exports" file
+
# DNS server: 132.239.0.252
## "exportfs -r" on server
+
# reboot
## add mount line to /etc/fstab (copy from sessions.ucsd.edu)
+
 
## mount -a
+
===Configure File Server Access===
# If home directories aren't mounted upon reboot: give OS time to get network ready before mounting the NFS
+
* Add machine's IP address to server's "exports" file
## "vi /etc/init.d/netfs"
+
* "exportfs -r" on server
## insert the following line: <pre>action $"Sleeping for 30 secs: " sleep 30</pre> between line: <pre>[ ! -f /var/lock/subsys/portmap ] && service portmap start</pre> and <pre>action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4</pre>This makes sure the server directory gets mounted.
+
* Add two lines to /etc/fstab:
# Copy accounts
+
## ssh root@sessions
+
## cd .ssh
+
## scp * root@<new_machine>:.ssh
+
## cd
+
## vi labnodes.txt
+
## add "<new_machine>"
+
## ./passsync
+
# Install additional libraries
+
 
<pre>
 
<pre>
yum -y groupinstall "Development Tools"
+
  137.110.118.210:/raid/ivlhome  /home         nfs    defaults        0 0
yum -y groupinstall "Development Libraries"
+
  137.110.118.211:/data   /data        nfs    defaults        0 0
yum -y groupinstall "Chinese Support"
+
yum -y install kernel-devel
+
yum -y install arts-devel
+
yum -y install curl-devel.x86_64
+
yum -y install freetype-devel.x86_64
+
yum -y install freeglut.x86_64
+
yum -y install freeglut-devel.x86_64
+
yum -y install libpng-devel.x86_64
+
yum -y install compat-libstdc++-33
+
yum -y install boost.x86_64
+
yum -y install boost-devel.x86_64
+
yum -y install ImageMagick.x86_64
+
yum -y install ImageMagick-devel.x86_64
+
yum -y install ImageMagick-c++.x86_64
+
yum -y install ImageMagick-c++-devel.x86_64
+
yum -y install mysql.x86_64
+
yum -y install mysql-devel.x86_64
+
yum -y install screen
+
yum -y install gnuplot
+
yum -y install java-1.6.0-openjdk*.x86_64
+
yum -y install latex2html
+
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
+
rpm -Uhv /home/jschulze/rpm/opencv-1.0.0-1.el5.rf.x86_64.rpm
+
 
</pre>
 
</pre>
# Install Java 1.6.0_14
+
* Remove from /etc/fstab to avoid conflict with new /home:
 
<pre>
 
<pre>
rpm -Uhv /home/jschulze/rpm/jdk-6u14-linux-amd64.rpm
+
  /dev/mapper/centos-home /home                  xfs    defaults        0 0
/usr/sbin/alternatives --install /usr/bin/java java /usr/java/latest/bin/java 2
+
/usr/sbin/alternatives --install /usr/bin/javac javac /usr/java/latest/bin/javac 2
+
 
</pre>
 
</pre>
Then run interactive configuration tool, enter number for correct version.
+
* mkdir /data
 +
* Enable NFS services:
 
<pre>
 
<pre>
/usr/sbin/alternatives --config java
+
  systemctl enable nfs.service
/usr/sbin/alternatives --config javac
+
  systemctl start nfs.service
 
</pre>
 
</pre>
# Update all installed CentOS software:
+
* Open up firewall for NFS:
## yum -y update      <b>Note: run this command several times until no further updates are done</b>
+
## reboot
+
# Install graphics driver
+
## on login screen: hit ctrl-alt-F1
+
## log in as root
+
## type "init 3"
+
## "sh /home/jschulze/rpm/NVIDIA-Linux-x86_64-190.53-pkg2.run"
+
## skip FTP server lookup
+
## do not install 32 bit compatibility libraries
+
## do auto-configure graphics driver
+
## reboot
+
 
+
==CentOS 5.3 on Dell Studio Hybrid==
+
 
+
IP: 137.110.115.231
+
 
+
===Hardware Specs===
+
* CPU: Intel(R) Core(TM)2 Duo CPU T8100, 2.10GHz
+
* NIC: Realtek RTL 8111/8168B PCI-E
+
* Graphics: Intel Integrated Graphics Media Accelerator X3100, Chipset: 965GM
+
* RAM: 3GB
+
* Native OS: Windows Vista Home
+
* Dell 1909Wb display: 1440x900@60Hz
+
 
+
===Notes===
+
* To insert/remove DVD touch Eject icon on front panel.
+
* Installation policy: erase Windows partition, but leave recovery partition intact
+
* NIC should install automatically
+
* Select DHCP based configuration for network parameters
+
* Graphics driver: use Intel GM965/GL960
+
* install GRUB on MBR, no GRUB password
+
* create 6GB swap drive (should be default)
+
 
+
===Getting the Intel graphics unit to work===
+
* Download four libraries from Intel site
+
* Instructions at: http://intellinuxgraphics.org/install.html
+
* xorg.conf driver configuration parameters: http://alcor.concordia.ca/manpages/sys4/intel.4.html
+
* xf86 driver needs libdrm >= 2.4.3 (centos 5.3 comes with 2.0.2)
+
* libdrm 2.4.4 requires pthread-stubs, can be found at
+
http://people.redhat.com/ywong/RHEL-5-addons/x86_64/compiz-fusion/libpthread-stubs/libpthread-stubs-0.1-1.el5.x86_64.rpm
+
* Use the following /etc/X11/xorg.conf file:
+
 
<pre>
 
<pre>
# Xorg configuration created by system-config-display
+
  firewall-cmd --permanent --add-port=111/tcp
 +
  firewall-cmd --permanent --add-port=54302/tcp
 +
  firewall-cmd --permanent --add-port=20048/tcp
 +
  firewall-cmd --permanent --add-port=2049/tcp
 +
  firewall-cmd --permanent --add-port=46666/tcp
 +
  firewall-cmd --permanent --add-port=42955/tcp
 +
  firewall-cmd --permanent --add-port=875/tcp
 +
</pre>
 +
* mount -a
  
Section "ServerLayout"
+
===Install Additional Library Repositories===
        Identifier    "single head configuration"
+
        Screen      0  "Screen0" 0 0
+
        InputDevice    "Keyboard0" "CoreKeyboard"
+
EndSection
+
  
Section "InputDevice"
+
===RPM Fusion===
        Identifier  "Keyboard0"
+
        Driver      "kbd"
+
        Option      "XkbModel" "pc105"
+
        Option      "XkbLayout" "us"
+
EndSection
+
  
Section "Monitor"
+
RHEL 6 or compatible like CentOS:
    Identifier "Monitor1"
+
    VendorName "Dell"
+
    ModelName "Dell 1440x900"
+
    HorizSync 30-83
+
    VertRefresh 56-75
+
    ModeLine "1440x900@60" 106.40 1440 1520 1672 1904 900 903 909 934 -Hsync +Vsync
+
EndSection
+
  
Section "Monitor"
+
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-6.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-6.noarch.rpm
    Identifier      "VGA-0"
+
    Option "Ignore" "true"
+
EndSection
+
  
Section "Monitor"
+
RHEL 7 or compatible like CentOS:
    Identifier      "LVDS-0"
+
    Option "Ignore" "true"
+
EndSection
+
  
Section "Device"
+
sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm
        Identifier "intel"
+
        Driver      "i810"
+
#      Option    "monitor-TMDS-1" "Monitor1"
+
#      Option    "monitor-VGA" "VGA-0"
+
#      Option    "monitor-LVDS" "LVDS-0"
+
#        Option "UseDisplayDevice" "DFP, CRT"
+
        Option    "AccelMethod" "EXA"
+
        Option      "RenderAccel" "true"
+
        Option      "EnablePageFlip" "true"
+
#      Option      "MigrationHeuristic" "greedy"
+
#      Option      "ExaNoComposite" "false"
+
#      Option    "DRI" "true"
+
#      Option    "ForceCRT1" "false"
+
#      Option    "DPMS"
+
        Option  "AperTexSize" "131072"
+
        Option  "ModeDebug" "true"
+
EndSection
+
  
Section "Module"
+
====Linuxtech====
        Load "glx"
+
        Load "dri"
+
        Load "GLcore"
+
EndSection
+
  
Section "DRI"
+
* su
        Mode 0666
+
* vi /etc/yum.repos.d/linuxtech.repo
EndSection
+
* Add this to file and save:
 
+
<pre>
Section "Screen"
+
[linuxtech]
        Identifier "Screen0"
+
name=LinuxTECH
        Device    "intel"
+
baseurl=http://pkgrepo.linuxtech.net/el6/release/
        Monitor    "Monitor1"
+
enabled=1
        DefaultDepth    24
+
gpgcheck=1
        SubSection "Display"
+
gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET
                Depth    24
+
                Modes    "1440x900@60" "800x600"  # mode 1920x1440 must previously have been overwritten with 1440x900 using the 915resolution tool
+
                Viewport 0 0
+
        EndSubSection
+
EndSection
+
 
</pre>
 
</pre>
  
===Add support for widescreen monitors===
+
===Install additional libraries===
* Download 915resolution from http://www.geocities.com/stomljen/download.html
+
Install libraries which are part of CentOS:
* Copy 915resolution to /usr/sbin/
+
* Run 915resolution (eg, for Dell 1909Wb):
+
 
<pre>
 
<pre>
/usr/sbin/915resolution -c G965 5c 1440 900 32
+
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-devel.i686
 +
yum -y install libstdc++.i686
 +
yum -y install libstdc++.so.5
 +
yum -y install libstdc++.so.6
 +
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
 +
yum -y install ncurses-devel.i686
 +
yum -y install ncurses-devel.x86_64
 +
yum -y install zlib.i686
 +
yum -y install tcl-devel
 +
yum -y install tk-devel
 +
yum -y install xterm
 +
yum -y install vim-X11
 +
yum -y install telnet
 +
yum -y install xclip
 +
yum -y install uuid-devel
 +
yum -y install meld
 +
yum -y install openal-soft-devel
 +
yum -y install freealut-devel
 +
yum -y install libspnav-devel
 +
yum -y install octave-devel
 +
yum -y install pcre-devel
 +
yum -y install recordmydesktop
 +
yum -y install epel-release
 +
ln -s /usr/lib64/libhdf5.so.7 /usr/lib64/libhdf5.so.6
 
</pre>
 
</pre>
* Restart X11 (init3; init5)
 
* To permanently install the 915resolution script add this text as file "/etc/init.d/915start".
 
<pre>
 
#!/bin/sh
 
  
PATH=/sbin:/bin:/usr/sbin:/usr/bin
+
The following libraries are not part of CentOS and will require the above listed external repos to be installed, or rely on local files:
NAME=915start
+
DESC=915start
+
 
+
# test -x $DAEMON || exit 0
+
 
+
case "$1" in
+
  start)
+
        echo -n "Starting $DESC: "
+
        echo "$NAME."
+
        915resolution -c G965 5c 1440 900 32
+
        ;;
+
  stop)
+
        echo "$DESC cannot be stopped."
+
        ;;
+
  restart|force-reload)
+
        echo -n "Starting $DESC: "
+
        echo "$NAME."
+
        915resolution -c G965 5c 1440 900 32
+
        ;;
+
  *)
+
        N=/etc/init.d/$NAME
+
        echo "Usage: $N start" >&2
+
        exit 1
+
        ;;
+
esac
+
 
+
exit 0
+
</pre>
+
Then create a symlink in /etc/rc.d/:
+
 
<pre>
 
<pre>
ln -s ../init.d/915start S20915start
+
yum -y install gkrellm
</pre>
+
yum -y install tcptrack
<p>
+
yum -y install google-chrome-stable
Then create a file "/etc/default/915resolution" and put the following text in it:
+
yum -y install fltk
<pre>
+
yum -y install fltk-fluid
MODE=5c
+
yum -y install cmake28
XRESO=1440
+
yum -y install glew
YRESO=900
+
yum -y install mysql++-devel
BIT=32
+
yum -y install mplayer
HTOTAL=1904
+
yum -y install directfb
VTOTAL=934
+
yum -y install ntfs-3g
 +
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
 
</pre>
 
</pre>
  
 +
====Google====
  
An alternate, untested way is:
+
Add to /etc/yum.repos.d/google-chrome.repo:
If you are not currently using the ATrpms repository then, as root, add the following lines to the bottom of your /etc/yum.conf file:
+
  
 
<pre>
 
<pre>
[atrpms]
+
[google-chrome]
name=CentOS $releasever - $basearch - ATrpms
+
name=google-chrome - 64-bit
baseurl=http://dl.atrpms.net/el$releasever-$basearch/atrpms/stable
+
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
+
enabled=1
 
gpgcheck=1
 
gpgcheck=1
 +
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
 
</pre>
 
</pre>
  
Then execute the following command:
+
===Bring All Yum Packages Up To Date===
 +
# yum clean all
 +
# yum -y update
 +
# reboot
 +
# If an Nvidia driver was installed before the update, it may have to be reinstalled now.
 +
 
 +
===Install graphics driver===
 +
* Disable default Nvidia driver (Nouveau)
 +
** create config file: vi /etc/modprobe.d/nvidia-installer-disable-nouveau.conf
 +
** contents for this file:
 
<pre>
 
<pre>
yum install 915resolution
+
blacklist nouveau
 +
options nouveau modeset=0
 
</pre>
 
</pre>
Now you will need to configure the settings to match your monitor's native resolution. Edit the /etc/sysconfig/915resolution file with your favourite editor. You can use the following command:
+
** vi /etc/grub.conf
 +
** add rdblacklist=nouveau to all kernel entries:  
 
<pre>
 
<pre>
vi /etc/sysconfig/915resolution
+
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
 
</pre>
 
</pre>
Change the contents of this file to match below, changing the resolution to match your display's resolution:
+
** Sometimes this is also necessary (not sure when it is):
 
<pre>
 
<pre>
RESOLUTION="3c 1280 800"
+
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
</pre.
+
dracut -v /boot/initramfs-$(uname -r).img $(uname -r)
Finally we need to ensure this program is launched on startup by execute the following:
+
</pre>
 +
** 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-367.44.run"
 +
*** If installation fails with message "You appear to be running an X server": rm /tmp/.X0-lock and rm /tmp/.X1-lock
 +
** 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
 +
# exit
 +
 
 +
===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:
 
<pre>
 
<pre>
chkconfig --add 915resolution
+
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type Boolean --set /apps/gdm/simple-greeter/disable_user_list True
chkconfig 915resolution on
+
 
</pre>
 
</pre>
Reboot your system and you should now be able to use the resolution you entered.
+
 
 +
===Install Trackd (only for 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
 +
 
 +
===Install Printer (optional)===
 +
* To install in Linux, go to System->Administration->Printing and click "New".
 +
* IP address:
 +
* Printer type: Brother

Latest revision as of 16:45, 1 June 2018

Contents

CentOS 6.2

Preparation

  1. Request static IP address in 137.110.118 or 137.110.119 subnet, suggest DNS name (find inspiration at [1])
  2. Send DNS name to Jurgen to update data bank at [2]

Hardware

  1. Set up computer, monitor, keyboard, mouse on lab desk
  2. Make sure mouse is wired and optical; talk to Jurgen if not
  3. Connect monitor via DVI or HDMI, not VGA
  4. Connect network cable to activated Ethernet jack

Install Operating System

  1. insert CentOS on USB thumb drive
  2. reboot computer
  3. in boot manager: select DVD drive to boot from USB
  4. use default regional settings (US/English)
  5. set root password
  6. in time zone settings: enable NTP
  7. instead of doing a minimum install, select "Software Development Workstation"
  8. Configure network
  9. start network configuration tool in System->Administration->Network
  10. double click on connected Ethernet port
  11. enter this computer's static IP address
  12. net mask: 255.255.255.0
  13. DNS server: 132.239.0.252
  14. 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:/data	  /data         nfs     defaults        0 0
  • Remove from /etc/fstab to avoid conflict with new /home:
  /dev/mapper/centos-home /home                   xfs     defaults        0 0
  • mkdir /data
  • Enable NFS services:
  systemctl enable nfs.service
  systemctl start nfs.service
  • Open up firewall for NFS:
  firewall-cmd --permanent --add-port=111/tcp
  firewall-cmd --permanent --add-port=54302/tcp
  firewall-cmd --permanent --add-port=20048/tcp
  firewall-cmd --permanent --add-port=2049/tcp
  firewall-cmd --permanent --add-port=46666/tcp
  firewall-cmd --permanent --add-port=42955/tcp
  firewall-cmd --permanent --add-port=875/tcp
  • mount -a

Install Additional Library Repositories

RPM Fusion

RHEL 6 or compatible like CentOS:

sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-6.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-6.noarch.rpm

RHEL 7 or compatible like CentOS:

sudo yum localinstall --nogpgcheck https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm https://download1.rpmfusion.org/nonfree/el/rpmfusion-nonfree-release-7.noarch.rpm

Linuxtech

  • su
  • vi /etc/yum.repos.d/linuxtech.repo
  • Add this to file and save:
[linuxtech]
name=LinuxTECH
baseurl=http://pkgrepo.linuxtech.net/el6/release/
enabled=1
gpgcheck=1
gpgkey=http://pkgrepo.linuxtech.net/el6/release/RPM-GPG-KEY-LinuxTECH.NET

Install additional libraries

Install libraries which are part of CentOS:

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-devel.i686
yum -y install libstdc++.i686
yum -y install libstdc++.so.5
yum -y install libstdc++.so.6
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
yum -y install ncurses-devel.i686
yum -y install ncurses-devel.x86_64
yum -y install zlib.i686
yum -y install tcl-devel
yum -y install tk-devel
yum -y install xterm
yum -y install vim-X11
yum -y install telnet
yum -y install xclip
yum -y install uuid-devel
yum -y install meld
yum -y install openal-soft-devel
yum -y install freealut-devel
yum -y install libspnav-devel
yum -y install octave-devel
yum -y install pcre-devel
yum -y install recordmydesktop
yum -y install epel-release
ln -s /usr/lib64/libhdf5.so.7 /usr/lib64/libhdf5.so.6

The following libraries are not part of CentOS and will require the above listed external repos to be installed, or rely on local files:

yum -y install gkrellm
yum -y install tcptrack
yum -y install google-chrome-stable
yum -y install fltk
yum -y install fltk-fluid
yum -y install cmake28
yum -y install glew
yum -y install mysql++-devel
yum -y install mplayer
yum -y install directfb
yum -y install ntfs-3g
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

Google

Add to /etc/yum.repos.d/google-chrome.repo:

[google-chrome]
name=google-chrome - 64-bit
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub

Bring All Yum Packages Up To Date

  1. yum clean all
  2. yum -y update
  3. reboot
  4. If an Nvidia driver was installed before the update, it may have to be reinstalled now.

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
    • Sometimes this is also necessary (not sure when it is):
mv /boot/initramfs-$(uname -r).img /boot/initramfs-$(uname -r).img.bak
dracut -v /boot/initramfs-$(uname -r).img $(uname -r)
    • 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-367.44.run"
      • If installation fails with message "You appear to be running an X server": rm /tmp/.X0-lock and rm /tmp/.X1-lock
    • 32 bit compatibility libraries not needed but ok to install
    • yes to run nvidia-xconfig utility
  • reboot

Copy root's ssh keys

  1. ssh root@sessions.ucsd.edu
  2. cd .ssh
  3. scp * root@<new_machine>:.ssh
  4. exit

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 (only for 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

Install Printer (optional)

  • To install in Linux, go to System->Administration->Printing and click "New".
  • IP address:
  • Printer type: Brother