Sunday, August 23, 2015

8-23-2015: Adding more laptops at home for 4 computer clusters (DONE)

I have 3 laptops at home. One was for my tv and one was an old crappy laptops. I don't want to use them for real work. So I got 2 more laptops and hooked them up to my monitor that has 2 hdmi ports. Now I have a cluster. Here is the steps I used to install.



  • Install Linux
    • Download the last Linux Mint and burn it.
    • Put cdrom in external cdrm drive first. Bios might not detect this. 
    • Reboot into bios and make the cdrom the first bootable device. 
    • Remove secure boot in BIOS.
    • Reboot 
    •  When it comes to partitions:
      • 100 megs for EDI parition
      • 100 meg for swap, I know its an overkill. 
      • 10000 megs for /BACKUP
      • rest for /
  • Post Install STEP 1
    • In the control panel, for power management, set it to do nothing when the laptop is closed and turn off any power management after a time.
    • Run  the script I have below. 
    • In screensaver, make bsod the default and no locking when screensaver is activated. Who cares. This is for testing. 
  • Post Install Step 2 . 
    • Add the two systems to DNS 
    • Install DNS on the two systems
    • Exchange SSH keys. 
    • Install SALT on those two systems. 
  • Then for the future, I have a cluster of 3 servers for mono, vertica, voltdb, MySQL and Galera, and maybe MaxScale.



DNS entry.

ns3   IN A 192.168.1.30
mark4 IN CNAME ns3
ns4   IN A 192.168.1.179
mark5 IN CNAME ns4

Install script


echo "deb http://us.archive.ubuntu.com/ubuntu/ trusty multiverse" >> /etc/apt/sources.list
echo "deb-src http://us.archive.ubuntu.com/ubuntu/ trusty multiverse " >> /etc/apt/sources.list
echo "deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse " >> /etc/apt/sources.list
echo "deb-src http://us.archive.ubuntu.com/ubuntu/ trusty-updates multiverse " >> /etc/apt/sources.list

apt-get update

   # Unfortunately, you will have to answer questions for some of these. 
apt-get -y install emacs  tripwire nmap lynx curl vnstat ttf-mscorefonts-installer
apt-get -y xscreensaver-data-extra xscreensaver-gl-extra xscreensaver-screensaver-bsod
apt-get -y  ncftp openssh-server openssh-client

cd /usr/share/applications/screensavers
find . -name '*.desktop' | xargs sed -i 's/OnlyShowIn=GNOME;/OnlyShowIn=GNOME;MATE;/'

wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/talkplugin/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt-get install google-talkplugin 

  # It seems to cause problems with apt-get update
rm -f /etc/apt/sources.list.d/google.list
   
   # This might make the computer seem to stall, but just wait. 
apt-get -y install xfonts-*

apt-get update
apt-get -y upgrade

No comments:

Post a Comment