Difference between revisions of "Cluster der kan alt/Installation af master"

From Teknologisk videncenter
Jump to: navigation, search
(Tildel root rettigheder til Cluster brugeren)
Line 39: Line 39:
 
#Step: Install GRUB boot loader, choose '''yes'''
 
#Step: Install GRUB boot loader, choose '''yes'''
 
#Step: Finish the installation, choose '''Continue''', the virtual machine will automatic unmount the iso file
 
#Step: Finish the installation, choose '''Continue''', the virtual machine will automatic unmount the iso file
==Tildel root rettigheder til Cluster brugeren==
+
==Assign root permission to the cluster user==
  
 +
Enter the passwd file by:
 
<source lang=cli>
 
<source lang=cli>
 
sudo nano /etc/passwd
 
sudo nano /etc/passwd
 
</source>
 
</source>
Ret bruger cluster nederst i filen, fra
+
Change the cluster line in the bootum of the file from:
 
<source lang=cli>
 
<source lang=cli>
 
cluster:x:1000:1000:Cluster,,,:/home/cluster:/bin/bash
 
cluster:x:1000:1000:Cluster,,,:/home/cluster:/bin/bash
 
</source>
 
</source>
til
+
To:
 
<source lang=cli>
 
<source lang=cli>
 
cluster:x:0:0:Cluster,,,:/home/cluster:/bin/bash
 
cluster:x:0:0:Cluster,,,:/home/cluster:/bin/bash
 
</source>
 
</source>
For at de nye rettigheder kan træde i kæft skal Cluster logges af dette gøres med kommandoen
+
You have too logout before the changes take effect
 
<source lang=cli>
 
<source lang=cli>
 
logout
 
logout

Revision as of 13:08, 1 November 2013

Installation of the master

Mount the Ubuntu server .iso file (ubuntu-12.04.3-server-amd64.iso)

  1. Step: Click CD/DVD under the devices menu under Cluster_Master
  2. Step: Marker Use ISO image file and browse the iso file. Click OK to finish
  3. Step: Click Power on this virtual machine to start the machine

Install Ubuntu server

  1. Step: Choose Language (English)
  2. Step: Click Install Ubuntu Server
  3. Step: Select a language (English)
  4. Step: Select your location (Denmark)
  5. Step: Configure locales (en_US.UTF-8)
  6. Step: Configure the keyboard choose yes and follow the guide
  7. Step: Enter the hostname (Master)
  8. Step: Enter the full name (Cluster)
  9. Step: Username (cluster)
  10. Step: Password (cluster)
  11. Step: Use weak password, choose yes
  12. Step: Encrypt the home directory, choose No
  13. Step: Configure the clock, Europe/Copenhagen, choose yes
  14. Step: Partition disk , choose manual
  15. Step: Choose the virtual hard drive: 21,5 GB VMware, VMware Virtual S
  16. Step: Create new empty partition table on this device, choose yes
  17. Step: Choose pri/log 17,2 GB FREE SPACE
  18. 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 
  1. Step: Choose Finish partitioning and write changes to disk when you are finish
  2. Step: Write the change to disk, choose yes
  3. Step: HTTP proxy should be blank
  4. Step: Choose No automatic updates
  5. Step: Choose software to install, mark OpenSSH server and DNS server
  6. Step: Install GRUB boot loader, choose yes
  7. Step: Finish the installation, choose Continue, the virtual machine will automatic unmount the iso file

Assign root permission to the cluster user

Enter the passwd file by:

sudo nano /etc/passwd

Change the cluster line in the bootum of the file from:

cluster:x:1000:1000:Cluster,,,:/home/cluster:/bin/bash

To:

cluster:x:0:0:Cluster,,,:/home/cluster:/bin/bash

You have too logout before the changes take effect

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

  1. 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