Difference between revisions of "Cluster der kan alt/Installation af master"
(→Instal Ubuntu server) |
(→Active /var/log/messages) |
||
(48 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
#Step: Marker '''Use ISO image file''' and browse the iso file. Click '''OK''' to finish | #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 | #Step: Click '''Power on this virtual machine''' to start the machine | ||
− | == | + | == Install Ubuntu server == |
− | #Step: Choose Language (English) | + | |
− | #Step: Click '''Install Ubuntu Server''' | + | #Step: Choose Language (English) |
− | #Step: Select a language (English) | + | #Step: Click '''Install Ubuntu Server''' |
− | #Step: Select your location (Denmark) | + | #Step: Select a language (English) |
− | #Step: Configure locales (en_US.UTF-8) | + | #Step: Select your location (Denmark) |
− | #Step: Configure the keyboard choose '''yes''' and follow the guide | + | #Step: Configure locales (en_US.UTF-8) |
− | #Step: Enter the hostname (Master) | + | #Step: Configure the keyboard choose '''yes''' and follow the guide |
− | #Step: Enter the full name (Cluster) | + | #Step: Enter the hostname (Master) |
− | #Step: Username (cluster) | + | #Step: Enter the full name (Cluster) |
− | #Step: Password (cluster) | + | #Step: Username (cluster) |
− | #Step: Use weak password, choose '''yes''' | + | #Step: Password (cluster) |
− | #Step: Encrypt the home directory, choose '''No''' | + | #Step: Use weak password, choose '''yes''' |
+ | #Step: Encrypt the home directory, choose '''No''' | ||
#Step: Configure the clock, Europe/Copenhagen, choose '''yes''' | #Step: Configure the clock, Europe/Copenhagen, choose '''yes''' | ||
− | #Step: Partition disk , choose '''manual''' | + | #Step: Partition disk , choose '''manual''' |
− | #Step: Choose the virtual hard drive: '''21,5 GB VMware, VMware Virtual S''' | + | #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: Create new empty partition table on this device, choose '''yes''' |
− | #Step: Choose '''pri/log 17,2 GB FREE SPACE''' | + | #Step: Choose '''pri/log 17,2 GB FREE SPACE''' |
#Step: Create the different partions as listed below: | #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: | + | #Step: Choose '''Finish partitioning and write changes to disk''' when you are finish |
− | #Step: | + | #Step: Write the change to disk, choose '''yes''' |
− | #Step: | + | #Step: HTTP proxy should be blank |
− | #Step: | + | #Step: Choose '''No automatic updates''' |
− | #Step: | + | #Step: Choose software to install, mark '''OpenSSH server''' and '''DNS server''' |
− | #Step: | + | #Step: Install GRUB boot loader, choose '''yes''' |
− | #Step: | + | #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: | ||
+ | <source lang=cli> | ||
+ | sudo nano /etc/passwd | ||
+ | </source> | ||
+ | Change the cluster line in the bottom of the file from: | ||
+ | <source lang=cli> | ||
+ | cluster:x:1000:1000:Cluster,,,:/home/cluster:/bin/bash | ||
+ | </source> | ||
+ | To: | ||
+ | <source lang=cli> | ||
+ | cluster:x:0:0:Cluster,,,:/home/cluster:/bin/bash | ||
+ | </source> | ||
+ | You have to logout before the changes can take effect | ||
+ | <source lang=cli> | ||
+ | logout | ||
+ | </source> | ||
+ | Enter the sudoers file | ||
+ | <source lang=cli> | ||
+ | sudo nano /etc/sudoers | ||
+ | </source> | ||
+ | Add the cluster user below the root user | ||
+ | <source lang=cli> | ||
+ | root ALL=(ALL:ALL) ALL | ||
+ | username ALL=(ALL:ALL) ALL | ||
+ | </source> | ||
+ | |||
+ | ==Login via SSH== | ||
+ | Manage the server from SSH is a huge benefit because it will enable the copy/paste feature | ||
+ | |||
+ | Open a terminal software, like Putty or TeraTerm | ||
+ | |||
+ | Enter the server IP address and use the cluster/cluster for login | ||
+ | |||
+ | ==Update the system== | ||
+ | First search after updates | ||
+ | <source lang=cli> | ||
+ | sudo apt-get update | ||
+ | </source> | ||
+ | Second install the updates. -y = yes to all (unattenuated install) | ||
+ | <source lang=cli> | ||
+ | sudo apt-get upgrade -y | ||
+ | </source> | ||
+ | |||
+ | ==Active the secondary network card(eth1)== | ||
+ | Add a new network card i Vmware | ||
+ | Right-click on Cluster_Master>Settings>Add>Network Adapter>Next>Host-Only>Finish | ||
+ | Enter the network card file | ||
+ | <source lang=cli> | ||
+ | sudo nano /etc/network/interfaces | ||
+ | </source> | ||
+ | Add this at the bottum of the file (after eth0) | ||
+ | <source lang=cli> | ||
+ | # The secondary network interface | ||
+ | auto eth1 | ||
+ | iface eth1 inet static | ||
+ | address 10.0.0.1 | ||
+ | netmask 255.255.255.0 | ||
+ | </source> | ||
+ | Restart the network servise | ||
+ | <source lang=cli> | ||
+ | sudo /etc/init.d/networking restart | ||
+ | </source> | ||
+ | To verify the activation use | ||
+ | <source lang=cli> | ||
+ | ip addr | ||
+ | </source> | ||
+ | |||
+ | ==Active /var/log/messages== | ||
+ | Edit 50-default.conf | ||
+ | <source lang=cli> | ||
+ | sudo nano /etc/rsyslog.d/50-default.conf | ||
+ | </source> | ||
+ | Uncomment the lines | ||
+ | <source lang=cli> | ||
+ | *.=info;*.=notice;*.=warn;\ | ||
+ | auth,authpriv.none;\ | ||
+ | cron,daemon.none;\ | ||
+ | mail,news.none -/var/log/messages | ||
+ | </source> | ||
+ | Then restart the rsyslog daemon: | ||
+ | <source lang=cli> | ||
+ | sudo service rsyslog restart | ||
+ | </source> | ||
+ | Or reboot the entire system | ||
+ | <source lang=cli> | ||
+ | sudo reboot | ||
+ | </source> | ||
+ | {{Source cli}} |
Latest revision as of 10:34, 30 October 2014
Contents
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
Assign root permission to the cluster user
Enter the passwd file by:
sudo nano /etc/passwd
Change the cluster line in the bottom 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 to logout before the changes can take effect
logout
Enter the sudoers file
sudo nano /etc/sudoers
Add the cluster user below the root user
root ALL=(ALL:ALL) ALL
username ALL=(ALL:ALL) ALL
Login via SSH
Manage the server from SSH is a huge benefit because it will enable the copy/paste feature
Open a terminal software, like Putty or TeraTerm
Enter the server IP address and use the cluster/cluster for login
Update the system
First search after updates
sudo apt-get update
Second install the updates. -y = yes to all (unattenuated install)
sudo apt-get upgrade -y
Active the secondary network card(eth1)
Add a new network card i Vmware Right-click on Cluster_Master>Settings>Add>Network Adapter>Next>Host-Only>Finish Enter the network card file
sudo nano /etc/network/interfaces
Add this at the bottum of the file (after eth0)
# The secondary network interface
auto eth1
iface eth1 inet static
address 10.0.0.1
netmask 255.255.255.0
Restart the network servise
sudo /etc/init.d/networking restart
To verify the activation use
ip addr
Active /var/log/messages
Edit 50-default.conf
sudo nano /etc/rsyslog.d/50-default.conf
Uncomment the lines
*.=info;*.=notice;*.=warn;\
auth,authpriv.none;\
cron,daemon.none;\
mail,news.none -/var/log/messages
Then restart the rsyslog daemon:
sudo service rsyslog restart
Or reboot the entire system
sudo reboot