Basic Installation/Configuration of Server

From DISI
Jump to navigation Jump to search

After the OS is installed:

cd /etc/sysconfig/network-scripts
vim ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="static"
NM_CONTROLLED="no"
TYPE="Ethernet"
HWADDR="00:1e:0b:c6:8a:26"
ONBOOT="yes"
IPADDR="10.10.20.9"
PREFIX="24"
GATWAY="10.10.20.254"
DNS1="10.10.10.24"
DOMAIN="rack-2.pharmacy.cluster.uoft.bkslab.org pharmacy.cluster.uoft.bkslab.org cluster.uoft.bkslab.org"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="yes"
IPV6INIT="no"
vim ifcfg-eth1
DEVICE="eth1"
BOOTPROTO="static"
ONBOOT="yes"
NM_CONTROLLED="no"
HWADDR="00:1e:0b:c6:8a:27"
IPADDR="142.150.250.19"
PREFIX="24"
GATEWAY="142.150.250.6"
DNS1="142.150.250.10"
DOMAIN="pharmacy.uoft.bkslab.org uoft.bkslab.org bkslab.org"
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
IPV6INIT=no


On spinaltap:

 cd /srv/dhcp/var/lib/dhcpd
 52  ln -s /mnt/nfs/init init
 53  ln -s /mnt/nfs/repos repos
 54  mount -at nfs
 55  /nfs/init/bin/yum.repos.d-local.sh
 56  /nfs/init/bin/ca-client.sh
 57  /nfs/init/bin/root.sh
 58  /nfs/init/bin/fstab.sh

MAKE SURE SSSD IS INSTALLED

 59  /nfs/init/bin/auth/authconfig.sh
 68  /nfs/init/bin/auth/copy-config.sh
 69  /nfs/init/bin/auth/sshd.sh
 70  /nfs/init/bin/auth/finalize.sh
  1  vim /etc/hosts
  2  vim /etc/sysconfig/network
  3  vim /etc/sysconfig/network-scripts/ifcfg-eth0
  4  ping 142.150.84.141
  5  ssh 142.150.84.142 -l tdemers
  6  ssh 142.150.84.141 -l tdemers
  7  exit
  8  scp root@142.150.84.141:/etc/sysconfig/network-scripts/ifcfg-eth0 .
  9  scp tdemers@142.150.84.141:/etc/sysconfig/network-scripts/ifcfg-eth0 .
 10  ls
 11  cat ifcfg-eth0 >> /etc/sysconfig/network-scripts/ifcfg-eth0
 12  vim /etc/sysconfig/network-scripts/ifcfg-eth0
 13  service network restart
 14  ping google.com
 15  cd /
 16  ls
 17  cd home/
 18  ls
 19  mkdir mkorcz tdemers
 20  chown mkorcz mkorcz
 21  ls
 22  cd /
 23  ls
 24  mkdir nfs
 25  cd /mnt/
 26  ls
 27  mkdir init repos
 28  ls
 29  cd /nfs/
 30  ln -s /mnt/init/ init
 31  ls -l
 32  ln -s /mnt/repos repos
 33  ssh 142.150.84.141
 34  ssh 142.150.84.141 -l tdemers
 35  vim /etc/fstab
 36  cd /mnt/
 37  ls
 38  mkdir nfs
 39  mv repos/ nfs
 40  ls
 41  mv init nfs
 42  ls
 43  cd nfs/
 44  ls
 45  cd /nfs/
 46  ls
 47  ls -l
 48  pwd
 49  rm init rm repos
 50  ls
 51  clear
 52  ln -s /mnt/nfs/init init
 53  ln -s /mnt/nfs/repos repos
 54  mount -at nfs
 55  /nfs/init/bin/yum.repos.d-local.sh
 56  /nfs/init/bin/ca-client.sh
 57  /nfs/init/bin/root.sh
 58  /nfs/init/bin/fstab.sh
 59  /nfs/init/bin/auth/authconfig.sh
 60  cd /etc/sssd/
 61  ls
 62  yum install sssd
 63  service sssd start
 64  tail /var/log/messages
 65  vim /etc/sssd/sssd.conf
 66  service sssd start
 67  /nfs/init/bin/auth/authconfig.sh
 68  /nfs/init/bin/auth/copy-config.sh
 69  /nfs/init/bin/auth/sshd.sh
 70  /nfs/init/bin/auth/finalize.sh
 71  service sssd start
 72  ls
 73  vim sssd.conf
 74  rm sssd.conf
 75  cd ../
 76  ls
 77  cd sssd/
 78  ls
 79  scp tdemers@142.150.84.141:/sssd/sssd.conf .
 80  ssh 142.150.84.141 -l tdemers
 81  hostname
 82  ls
 83  cd /etc/
 84  ls
 85  scp 142.150.84.141:/etc/sssd/sssd.conf /etc/sssd/
 86  ssh 142.150.84.141 -l tdemers
 87  scp 142.150.84.141:/etc/sssd/sssd.conf /etc/sssd/
 88  ssh 142.150.84.141 -l tdemers
 89  scp tdemers@142.150.84.141:/tmp/sssd_setup /etc/sssd/sssd.conf
 90  ls
 91  cd /etc/sssd/
 92  ls
 93  vim sssd.conf
 94  service sssd start
 95  rm sssd.conf
 96  /nfs/init/bin/ca-client.sh
 97  service sssd start
 98  /nfs/init/bin/auth/authconfig.sh
 99  /nfs/init/bin/auth/copy-config.sh
100  /nfs/init/bin/auth/sshd.sh
101  /nfs/init/bin/auth/finalize.sh
102  finger tdemers
103  yum install finger
104  finger tdemers
105  chown mkorcz /home/mkorcz/
106  chown tdemers /home/tdemers
107  vim /etc/sssd/sssd.conf
108  yum group install "console internet tools"
109  yum groupinstall "console internet tools"
110  rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
111  init 6
112  yum groupinstall "System administration tools"
113  yum groupinstall "Development Tools"
114  rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org
115  rpm -Uvh http://elrepo.org/elrepo-release-6-5.el6.elrepo.noarch.rpm
116  yum --enablerepo=elrepo install kmod-nvidia
117  init 6
118  yum install pymol
119  exit
120  yum list | grep chimera
121  yum install chimera
122  exit
123  tail /var/log/messages
124  exiyt
125  exit
126  vim /etc/ssh/sshd_config
127  service sshd restart
128  cd /home/mkorcz/
129  ls -a
130  cd .ssh/
131  ls
132  cat id_rsa.pub >> authorized_keys
133  exit
134  service sshd restart
135  exit
136  cd /etc/yum.repos.d
137  ls
138  wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
139  rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
140  rpm -K rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
141  rpm -i rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
142  yum install dkms
143  yum list
144  yum list | grep VirtualBox
145  yum install VirtualBox-4.2
146  yum update
147  yum install VirtualBox
148  yum install VirtualBox-4.2
149   wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo
150  yum update
151   yum install binutils qt gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms
152  yum install VirtualBox-4.2
153  chown mkorcz /home/WindowsVM/
154  cd /home/
155  ls
156  ls -l
157  cd WindowsVM/
158  chown mkorcz LabWindows.vdi
159  ls -l
160  exit
161  yum install ppilot
162  exit
163  egrep '(vmx|svm)' /proc/cpuinfo
164  egrep 'vmx' /proc/cpuinfo
165  init 6
166  tail /var/log/messages
167  exit
168  vim /etc/fstab
169  cd /mnt/nfs/
170  ls
171  mkdir sfhome
172  ls -l
173  mount -at nfs
174  ping sgehead.bkslab.org
175  ping google.com
176  ping sgehead1.bkslab.org
177  cd /nfs/
178  ls
179  ln -s /mnt/nfs/sfhome/ sfhome
180  mount -at nfs
181  ping 169.230.26.66
182  vim /etc/fstab
183  mount -at nfs
184  exit
185  vjisudo
186  visudo
187  vim /etc/ssh/sshd_config
188  exit
189  yum provides libssl.so.6
190  yum provides /*libssl.so.6
191  yum install openssl098e-0.9.8e-17.el6.centos.2.x86_
192  exit
193  cd /etc/yum.repos.d
194  ls
195  rpm -Uvh jre-7u25-linux-x64.rpm
196  yum list grep jre
197  yum install jre.x86_64
198  yum update
199  yum list | grep jre
200  yum list | grep java
201  yum list | grep jdk
202  yum list | grep jre
203  exit
204  ls
205  cd /home/tdemers/
206  ls
207  cp jdk-6u45-linux-x64-rpm.bin /etc/yum.repos.d/
208  cp jre-6u45-linux-x64-rpm.bin /etc/yum.repos.d/
209  cd /etc/yum.repos.d
210  ls
211  rm jre-7u25-linux-x64.rpm
212  chmod +x jdk-6u45-linux-x64-rpm.bin
213  chmod +x jre-6u45-linux-x64-rpm.bin
214  ls
215  sh jdk-6u45-linux-x64-rpm.bin
216  sh jre-6u45-linux-x64-rpm.bin
217  alternatives --install /usr/bin/java java /usr/java/jdk1.6.0_45/jre/bin/java 20000
218  alternatives --install /usr/bin/javaws javaws /usr/java/jdk1.6.0_45/jre/bin/javaws 20000
219  alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jdk1.6.0_45/jre/lib/amd64/libnpjp2.so 20000
220  alternatives --install /usr/bin/javac javac /usr/java/jdk1.6.0_45/bin/javac 20000
221  alternatives --install /usr/bin/jar jar /usr/java/jdk1.6.0_45/bin/jar 20000
222  alternatives --install /usr/bin/java java /usr/java/jre1.6.0_45/bin/java 20000
223  alternatives --install /usr/bin/javaws javaws /usr/java/jre1.6.0_45/bin/javaws 20000
224  alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/jre1.6.0_45/lib/amd64/libnpjp2.so 20000
225  java -version
226  alternatives --config java
227  exit
228  alternatives --config java
229  exit
230  alternatives --install /usr/bin/java java /usr/java/latest/jre/bin/java 20000
231  alternatives --install /usr/bin/javaws javaws /usr/java/latest/jre/bin/javaws 20000
232  alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/jre/lib/amd64/libnpjp2.so 20000
233  alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/lib/amd64/libnpjp2.so 20000
234  which java
235  alternatives --config java
236  alternatives --install /usr/bin/java java /usr/java/latest/bin/java 20000
237  alternatives --install /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so.x86_64 /usr/java/latest/lib/amd64/libnpjp2.so 20000
238  java -version
239  javac -version
240  java
241  alternatives --config java
242  java
243  java -version
244  javac -version
245  alternatives --config libjavaplugin.so.x86_64
246  libjavaplugin.so.x86_64 -version
247  alternatives --config libjavaplugin.so.x86_64