computers:server_basic_setup
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computers:server_basic_setup [2020/08/16 00:11] – chkuo | computers:server_basic_setup [2023/10/27 16:54] (current) – hychang | ||
---|---|---|---|
Line 3: | Line 3: | ||
===== RAID ===== | ===== RAID ===== | ||
* high-reliability servers (firewall, DHCP, web, etc) | * high-reliability servers (firewall, DHCP, web, etc) | ||
- | * 4 drives: RAID 1 (* 2), hot spare * 1, cold spare *1 | + | * 4 drives: RAID 1 (* 2), hot spare * 1, cold spare * 1 |
* computational servers | * computational servers | ||
* RAID 10, hot spare * 1 or 2 | * RAID 10, hot spare * 1 or 2 | ||
Line 20: | Line 20: | ||
# Zero Configuration Networking (Zeroconf) | # Zero Configuration Networking (Zeroconf) | ||
$ sudo apt install avahi-daemon | $ sudo apt install avahi-daemon | ||
+ | # in case the avahi-daemon does not work after reboot, log-in using ip address and restart | ||
+ | $ sudo service avahi-daemon restart | ||
+ | |||
# remove all unused packages | # remove all unused packages | ||
Line 32: | Line 35: | ||
* edit ''/ | * edit ''/ | ||
* use space for indentation, | * use space for indentation, | ||
- | * Or delete the original *.yaml file generated by the installer, then create a new xxx.yaml in ''/ | + | * or delete the original *.yaml file generated by the installer, then create a new xxx.yaml in ''/ |
* example: eno1 uses DHCP; eno2 uses a static IP | * example: eno1 uses DHCP; eno2 uses a static IP | ||
< | < | ||
Line 52: | Line 55: | ||
* after updating the config file, execute '' | * after updating the config file, execute '' | ||
* to check the network info: '' | * to check the network info: '' | ||
+ | |||
+ | |||
+ | * note: for Ubuntu 16.04 and earlier versions; edit ''/ | ||
Line 114: | Line 120: | ||
<code bash> | <code bash> | ||
$ sudo deluser username groupname | $ sudo deluser username groupname | ||
+ | </ | ||
+ | |||
+ | ==== Change username and home directory==== | ||
+ | <code bash> | ||
+ | $ sudo usermod -l new_username old_username | ||
+ | $ sudo usermod -d / | ||
</ | </ | ||
Line 131: | Line 143: | ||
$ sudo deluser username | $ sudo deluser username | ||
$ sudo delgroup groupname | $ sudo delgroup groupname | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Create scratch directory and storage==== | ||
+ | Run the shell script make_work_dir, | ||
+ | <code bash> | ||
+ | $ sudo / | ||
</ | </ | ||
computers/server_basic_setup.1597507889.txt.gz · Last modified: 2020/08/16 00:11 by chkuo