| 1 | == Machine Setup == |
| 2 | |
| 3 | 1. Install Ubuntu or Debian - prefer the server version of your chosen Ubuntu or Debian LTS distro |
| 4 | |
| 5 | 2. Change root password |
| 6 | {{{ |
| 7 | cslab@machine:~$ sudo su |
| 8 | root@machine:~# passwd |
| 9 | }}} |
| 10 | |
| 11 | 3. Remove swap |
| 12 | {{{ |
| 13 | root@machine:~# swapoff -a |
| 14 | root@machine:~# rm -v /swap.img |
| 15 | }}} |
| 16 | |
| 17 | 4. Connect the NFS (nemesis is down (3.3), comment it out) |
| 18 | {{{ |
| 19 | root@machine:~# vim /etc/fstab: |
| 20 | # swap -> comment-out |
| 21 | 147.102.4.1:/home /home nfs defaults 0 0 |
| 22 | 147.102.4.1:/various /various nfs defaults,nolock 0 0 |
| 23 | #147.102.3.3:/store/cluster_data /risky_store nfs nfsvers=3,nolock 0 0 |
| 24 | }}} |
| 25 | |
| 26 | 5. Determine users, passwords, groups |
| 27 | {{{ |
| 28 | root@machine:~# vim /etc/nsswitch.conf |
| 29 | at passwd, group, shadow add: files nis |
| 30 | }}} |
| 31 | |
| 32 | 6. Test if the previous step was successful |
| 33 | {{{ |
| 34 | root@machine:~# yptest (must read the config) |
| 35 | root@machine:~# id ypap (must return user) |
| 36 | root@machine:~# ps -ef | grep yp (ypbind.service must be running) |
| 37 | }}} |
| 38 | If not running: |
| 39 | {{{ |
| 40 | root@machine:~# systemctl restart ypbind |
| 41 | root@machine:~# systemctl list-unit-files | grep yp |
| 42 | }}} |
| 43 | |
| 44 | 7. Root users enter without password |
| 45 | {{{ |
| 46 | root@machine:~# vim /etc/ssh/sshd_config |
| 47 | PasswordAuthentication no |
| 48 | }}} |
| 49 | |
| 50 | 8. Connection fix |
| 51 | {{{ |
| 52 | root@machine:~# vim /lib/systemd/system/systemd-{logind, udevd}.service # comment-out IPAddressDeny=any |
| 53 | root@machine:~# systemctl daemon-reload |
| 54 | root@machine:~# systemctl restart systemctl-logind |
| 55 | root@machine:~# systemctl restart systemctl-udevd |
| 56 | }}} |