Changes between Version 2 and Version 3 of Machinesetup
- Timestamp:
- 11/22/24 14:16:54 (3 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Machinesetup
v2 v3 1 1 == Machine Setup == 2 2 3 1. Install Ubuntu or Debian - prefer the server version of your chosen Ubuntu or Debian LTS distro 3 ==== 1. Install Ubuntu or Debian - prefer the server version of your chosen Ubuntu or Debian LTS distro ==== 4 4 5 2. Change root password 5 ==== 2. Change root password ==== 6 6 {{{ 7 7 cslab@machine:~$ sudo su … … 9 9 }}} 10 10 11 3. Update and install necessary packages. If prompted for NIS domain name, enter: sci.nis 11 ==== 3. Update and install necessary packages === 12 12 {{{ 13 13 root@machine:~# apt update … … 16 16 }}} 17 17 18 4. Remove swap 18 ==== 4. Remove swap ==== 19 19 {{{ 20 20 root@machine:~# swapoff -a … … 22 22 }}} 23 23 24 5. Connect the NFS (nemesis is down (3.3), comment it out) 24 ==== 5. Connect the NFS (nemesis is down (3.3), comment it out) ==== 25 25 {{{ 26 26 root@machine:~# vim /etc/fstab: … … 31 31 }}} 32 32 33 6. Determine users, passwords, groups 33 ==== 6. NIS setup ==== 34 35 * Determine users, passwords, groups 34 36 {{{ 35 37 root@machine:~# vim /etc/nsswitch.conf … … 37 39 }}} 38 40 39 7. Test if the previous step was successful 41 * Create defaultdomain file 42 43 {{{ 44 root@machine:~# vim /etc/defaultdomain 45 write: sci.nis 46 }}} 47 48 * Set ypserver 49 50 {{{ 51 root@machine:~# vim /etc/yp.conf 52 at ypserver line, write: 53 ypserver scirouter.cslab.ece.ntua.gr 54 }}} 55 56 * Enable the service: 57 58 {{{ 59 root@machine:~# systemctl enable ypbind.service 60 }}} 61 62 ==== 7. Test if the previous step was successful==== 40 63 {{{ 41 64 root@machine:~# yptest (must read the config) … … 49 72 }}} 50 73 51 8. Root users enter without password 74 ==== 8. Remove Password authentication from sshd ==== 52 75 {{{ 53 76 root@machine:~# vim /etc/ssh/sshd_config … … 55 78 }}} 56 79 57 9. Connection fix 80 ==== 9. Connection fix [NOT NECESSARY] ==== 58 81 {{{ 59 82 root@machine:~# vim /lib/systemd/system/systemd-{logind, udevd}.service # comment-out IPAddressDeny=any