User Tools

Site Tools


computers:server_basic_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
computers:server_basic_setup [2020/09/13 21:07] – [Packages] chkuocomputers:server_basic_setup [2023/10/27 16:54] (current) hychang
Line 55: Line 55:
   * after updating the config file, execute ''sudo netplan try'' to validate, then ''sudo netplan apply'' to apply   * after updating the config file, execute ''sudo netplan try'' to validate, then ''sudo netplan apply'' to apply
   * to check the network info: ''ip a''   * to check the network info: ''ip a''
 +
 +
 +  * note: for Ubuntu 16.04 and earlier versions; edit ''/etc/network/interfaces''
  
  
Line 117: Line 120:
 <code bash> <code bash>
 $ sudo deluser username groupname $ sudo deluser username groupname
 +</code>
 +
 +==== Change username and home directory====
 +<code bash>
 +$ sudo usermod -l new_username old_username
 +$ sudo usermod -d /home/new_username -m new_username
 </code> </code>
  
Line 134: Line 143:
 $ sudo deluser username $ sudo deluser username
 $ sudo delgroup groupname $ sudo delgroup groupname
 +</code>
 +
 +
 +==== Create scratch directory and storage====
 +Run the shell script make_work_dir, which had written by Dr. Kuo.
 +<code bash>
 +$ sudo /home/chkuo/bin/make_work_dir username
 </code> </code>
  
computers/server_basic_setup.1600002424.txt.gz · Last modified: 2020/09/13 21:07 by chkuo