wiki:Machinesetup

Version 2 (modified by ypap, 2 days ago) ( diff )

--

Machine Setup

  1. Install Ubuntu or Debian - prefer the server version of your chosen Ubuntu or Debian LTS distro
  1. Change root password
    cslab@machine:~$ sudo su
    root@machine:~# passwd
    
  1. Update and install necessary packages. If prompted for NIS domain name, enter: sci.nis
    root@machine:~# apt update
    root@machine:~# apt upgrade -y && apt install -y vim git htop dstat nfs-common nis tmux
    root@machine:~# apt autoremove -y
    
  1. Remove swap
    root@machine:~# swapoff -a
    root@machine:~# rm -v /swap.img
    
  1. Connect the NFS (nemesis is down (3.3), comment it out)
    root@machine:~# vim /etc/fstab: 
    		# swap -> comment-out
    		147.102.4.1:/home	/home	nfs	defaults	0	0
    		147.102.4.1:/various	/various	nfs	defaults,nolock	0	0
    		#147.102.3.3:/store/cluster_data	/risky_store	nfs	nfsvers=3,nolock	0	0
    
  1. Determine users, passwords, groups
    root@machine:~# vim /etc/nsswitch.conf
    		at passwd, group, shadow add: files nis
    
  1. Test if the previous step was successful
    root@machine:~# yptest (must read the config)
    root@machine:~# id ypap (must return user)
    root@machine:~# ps -ef | grep yp (ypbind.service must be running)
    
    If not running:
    root@machine:~# systemctl restart ypbind
    root@machine:~# systemctl list-unit-files | grep yp
    
  1. Root users enter without password
    root@machine:~# vim /etc/ssh/sshd_config
                    PasswordAuthentication no
    
  1. Connection fix
    root@machine:~# vim /lib/systemd/system/systemd-{logind, udevd}.service # comment-out IPAddressDeny=any
    root@machine:~# systemctl daemon-reload
    root@machine:~# systemctl restart systemctl-logind
    root@machine:~# systemctl restart systemctl-udevd
    
Note: See TracWiki for help on using the wiki.