-
Notifications
You must be signed in to change notification settings - Fork 13
General Linux
reubenajohnston edited this page Mar 6, 2022
·
2 revisions
- Specify hostname within
/etc/hostname - Customize terminal prompt by setting
PS1environment variable (e.g., from within~/.bashrc) - Create a user:
# useradd -m REPLACEME# passwd REPLACEME-
# usermod -aG sudo REPLACEME(gives sudo privileges) -
# usermod -aG dialout REPLACEME(allows running minicom as a normal user by setting appropriate permissions for accessing /dev/ttyUSB* devices) # usermod -s /bin/bash REPLACEME
- Remove a user:
# userdel -r REPLACEME
- Setup ssh for a user who provides you their id_rsa.pub:
# mkdir /home/REPLACEME/.ssh/# echo 'Replace this string with contents of id_rsa.pub' > /home/REPLACEME/.ssh/authorized_keys# chown -R REPLACEME:REPLACEME /home/REPLACEME/.ssh# chmod -R 0700 /home/REPLACEME/.ssh
- Install Terminator
# apt-get install terminator
- Install minicom using
# apt-get install minicom - Install gparted using
# apt-get install gparted - Install tftp server using
# apt-get install tftpd-hpa