Cluster der kan alt/Installation af master
From Teknologisk videncenter
Contents
- 1 Installation of the master
Installation of the master
Mount the Ubuntu server .iso file (ubuntu-12.04.3-server-amd64.iso)
- Step: Click CD/DVD under the devices menu under Cluster_Master
- Step: Marker Use ISO image file and browse the iso file. Click OK to finish
- Step: Click Power on this virtual machine to start the machine
Install Ubuntu server
- Step: Choose Language (English)
- Step: Click Install Ubuntu Server
- Step: Select a language (English)
- Step: Select your location (Denmark)
- Step: Configure locales (en_US.UTF-8)
- Step: Configure the keyboard choose yes and follow the guide
- Step: Enter the hostname (Master)
- Step: Enter the full name (Cluster)
- Step: Username (cluster)
- Step: Password (cluster)
- Step: Use weak password, choose yes
- Step: Encrypt the home directory, choose No
- Step: Configure the clock, Europe/Copenhagen, choose yes
- Step: Partition disk , choose manual
- Step: Choose the virtual hard drive: 21,5 GB VMware, VMware Virtual S
- Step: Create new empty partition table on this device, choose yes
- Step: Choose pri/log 17,2 GB FREE SPACE
- Step: Create the different partions as listed below:
Size: 1GB, Partion type: Primary Mounting point: / Size: 512MB, Partion type: Logical Mounting point: /boot Size: 3GB, Partion type: Logical Mounting point: /var Size: 3GB, Partion type: Logical Mounting point: /tmp Size: 5GB, Partion type: Logical Mounting point: /usr Size: 1GB, Partion type: Logical Mounting point: /srv Size: 1GB, Partion type: Logical Mounting point: /home Size: 1GB, Partion type: Logical Swap Area
- Step: Choose Finish partitioning and write changes to disk when you are finish
- Step: Write the change to disk, choose yes
- Step: HTTP proxy should be blank
- Step: Choose No automatic updates
- Step: Choose software to install, mark OpenSSH server and DNS server
- Step: Install GRUB boot loader, choose yes
- Step: Finish the installation, choose Continue, the virtual machine will automatic unmount the iso file
Tildel root rettigheder til Cluster brugeren
sudo nano /etc/passwd
Ret bruger cluster nederst i filen, fra
cluster:x:1000:1000:Cluster,,,:/home/cluster:/bin/bash
til
cluster:x:0:0:Cluster,,,:/home/cluster:/bin/bash
For at de nye rettigheder kan træde i kæft skal Cluster logges af dette gøres med kommandoen
logout
Login via SSH
Administrere serveren via SSH er en kæmpe fordel da man har mulighed for at copy/paste
Åben en terminal såsom Putty eller TeraTerm Indtast serverens IP og login
Aktivere sekundære netkort(eth1)
nano /etc/network/interfaces
Add herefter dette
# The secondary network interface
auto eth1
iface eth1 inet static
address 10.0.0.1
netmask 255.255.255.0
Resolv.conf skal ikke overskrives
sudo chattr +i /etc/resolv.conf
Installere de sidste programmer
- Step:
apt-get install tftpd-hpa lighttpd system-config-kickstart nfs-kernel-server gcc g++
Aktivere /var/log/messages i Ubuntu 12.04
Edit /etc/rsyslog.d/50-default.conf and uncomment the lines
*.=info;*.=notice;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none -/var/log/messages
Then restart the rsyslog daemon:
# service rsyslog restart