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

From Immersive Visualization Lab Wiki
Jump to: navigation, search
(Install Library Repositories)
Line 41: Line 41:
 
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
 
# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
 
# rpm -i /home/jschulze/rpm/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
 
# rpm -i /home/jschulze/rpm/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
 +
 +
===Install Library Repositories===
 +
 +
Enable EPEL repository (git, etc):
 +
 +
* wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
 +
* rpm -Uhv epel-release-5-4.noarch.rpm
 +
 +
Enable [http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&redirect=Repositories/RPMForge#head-5aabf02717d5b6b12d47edbc5811404998926a1b RPMforge repository] (contains libraries like fltk, vlc, etc):
 +
 +
* wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
 +
* rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
 +
* rpm -K rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm  # make sure this returns OK
 +
* rpm -i rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
  
 
===Install additional libraries===
 
===Install additional libraries===
Line 77: Line 91:
 
yum -y install lapack
 
yum -y install lapack
 
yum -y install lapack-devel
 
yum -y install lapack-devel
 +
yum -y install git
 
rpm -Uhv /home/jschulze/rpm/Cg-2.1_November2008_x86_64.rpm
 
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
 
rpm -Uhv /home/jschulze/rpm/mxml-2.2.2-8.el5.ccrma.x86_64.rpm
Line 82: Line 97:
 
rpm -Uhv /home/jschulze/rpm/opencv-1.0.0-1.el5.rf.x86_64.rpm
 
rpm -Uhv /home/jschulze/rpm/opencv-1.0.0-1.el5.rf.x86_64.rpm
 
</pre>
 
</pre>
 
===Install Library Repositories===
 
 
Enable EPEL repository (git, etc):
 
 
* wget http://download.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
 
* rpm -Uhv epel-release-5-4.noarch.rpm
 
 
Enable [http://wiki.centos.org/AdditionalResources/Repositories/RPMForge?action=show&redirect=Repositories/RPMForge#head-5aabf02717d5b6b12d47edbc5811404998926a1b RPMforge repository] (contains libraries like fltk, vlc, etc):
 
 
* wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
 
* rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
 
* rpm -K rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm  # make sure this returns OK
 
* rpm -i rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm
 
  
 
===Install Java 1.6.0_14===
 
===Install Java 1.6.0_14===

Revision as of 10:14, 13 July 2011

Contents

CentOS 5.5

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 with DVI cable, not VGA
  4. Connect network cable to activated Ethernet wall jack

Install Operating System

  1. insert CentOS DVD-ROM
  2. reboot computer
  3. in boot manager: select DVD drive to boot from DVD
  4. use default regional settings (US/English)
  5. set root password
  6. in time zone settings: enable NTP
  7. Configure network
  8. start network configuration tool in System->Administration->Network
  9. double click on connected Ethernet port
  10. enter this computer's static IP address
  11. net mask: 255.255.255.0
  12. DNS servers: 132.239.0.252, 128.54.16.2
  13. reboot

Configure server access

  1. add machine's IP address to server's "exports" file
  2. "exportfs -r" on server
  3. add mount line to /etc/fstab (copy from sessions.ucsd.edu)
  4. mount -a

Optional: Delay NFS Mount

If home directories aren't mounted upon reboot: give OS time to get network ready before mounting the NFS

  1. "vi /etc/init.d/netfs"
  2. insert the following line:
    action $"Sleeping for 30 secs: " sleep 30
    between line:
    [ ! -f /var/lock/subsys/portmap ] && service portmap start
    and
    action $"Mounting NFS filesystems: " mount -a -t nfs,nfs4
    This makes sure the server directory gets mounted.

Install RPMforge repository

  1. su -
  2. rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
  3. rpm -i /home/jschulze/rpm/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

Install Library Repositories

Enable EPEL repository (git, etc):

Enable RPMforge repository (contains libraries like fltk, vlc, etc):

Install additional libraries

yum -y groupinstall "Development Tools"
yum -y groupinstall "Development Libraries"
yum -y groupinstall "Chinese Support"
yum -y install yum-utils
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 libXp.x86_64
yum -y install emacs
yum -y install screen
yum -y install gnuplot
yum -y install java-1.6.0-openjdk*.x86_64
yum -y install latex2html
yum -y install libgfortran
yum -y install fltk
yum -y install fltk-fluid
yum -y install gsl
yum -y install gsl-devel
yum -y install lapack
yum -y install lapack-devel
yum -y install git
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

Install Java 1.6.0_14

rpm -Uhv /home/jschulze/rpm/jdk-6u14-linux-amd64.rpm
/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

Then run interactive configuration tool, enter number for correct version.

/usr/sbin/alternatives --config java
/usr/sbin/alternatives --config javac

Update Everything To Latest Version

  1. yum -y update Note: run this command several times until no further updates are done
  2. reboot

Install graphics driver

  1. on login screen: hit ctrl-alt-F1
  2. log in as root
  3. type "init 3"
  4. "sh /home/jschulze/rpm/NVIDIA-Linux-x86_64-190.53-pkg2.run"
  5. skip FTP server lookup
  6. do not install 32 bit compatibility libraries
  7. do auto-configure graphics driver
  8. reboot

Copy root's ssh keys

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