Changes between Version 2 and Version 3 of Machinesetup


Ignore:
Timestamp:
11/22/24 14:16:54 (3 days ago)
Author:
ypap
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Machinesetup

    v2 v3  
    11== Machine Setup ==
    22
    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 ====
    44
    5 2.  Change root password
     5==== 2.  Change root password ====
    66{{{
    77cslab@machine:~$ sudo su
     
    99}}}
    1010
    11 3.  Update and install necessary packages. If prompted for NIS domain name, enter: sci.nis
     11==== 3.  Update and install necessary packages ===
    1212{{{
    1313root@machine:~# apt update
     
    1616}}}
    1717
    18 4.  Remove swap
     18==== 4.  Remove swap ====
    1919{{{
    2020root@machine:~# swapoff -a
     
    2222}}}
    2323
    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) ====
    2525{{{
    2626root@machine:~# vim /etc/fstab:
     
    3131}}}
    3232
    33 6.  Determine users, passwords, groups
     33==== 6. NIS setup ====
     34
     35* Determine users, passwords, groups
    3436{{{
    3537root@machine:~# vim /etc/nsswitch.conf
     
    3739}}}
    3840
    39 7.  Test if the previous step was successful
     41* Create defaultdomain file
     42
     43{{{
     44root@machine:~# vim /etc/defaultdomain
     45               write: sci.nis
     46}}}
     47
     48* Set ypserver
     49
     50{{{
     51root@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{{{
     59root@machine:~# systemctl enable ypbind.service
     60}}}
     61
     62==== 7.  Test if the previous step was successful====
    4063{{{
    4164root@machine:~# yptest (must read the config)
     
    4972}}}
    5073
    51 8.  Root users enter without password
     74==== 8.  Remove Password authentication from sshd ====
    5275{{{
    5376root@machine:~# vim /etc/ssh/sshd_config
     
    5578}}}
    5679
    57 9.  Connection fix
     80==== 9.  Connection fix [NOT NECESSARY] ====
    5881{{{
    5982root@machine:~# vim /lib/systemd/system/systemd-{logind, udevd}.service # comment-out IPAddressDeny=any