Changes between Initial Version and Version 1 of Machinesetup


Ignore:
Timestamp:
03/27/23 14:54:15 (20 months ago)
Author:
ypap
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Machinesetup

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