Note: Currently new registrations are closed, if you want an account Contact us
Difference between revisions of "System Administrators Checklist"
(add numbered list) |
(systemctl, rsync/cron,log files added) |
||
Line 12: | Line 12: | ||
# firewall with ufw | # firewall with ufw | ||
# postgresql replication (backup) | # postgresql replication (backup) | ||
# scheduled backups (rsync and cron) | |||
# lxc container (setup services on your local machine) | # lxc container (setup services on your local machine) | ||
# sharing passwords with gpg encrypted files | # sharing passwords with gpg encrypted files | ||
Line 20: | Line 21: | ||
# environment variables | # environment variables | ||
# local network configuration (/etc/hosts, ip, ss). | # local network configuration (/etc/hosts, ip, ss). | ||
# Starting and stopping services (systemctl) | |||
# Log file handling (tail -f, truncate, logrotate) | |||
== Switching users == | == Switching users == |
Revision as of 16:19, 13 December 2020
Pre-Requisites (you need to learn yourself)
- How to install GNU/Linux
- Familiarity with Command Line
- disk partitioning with logical volume manager
- authenticating with ssh keys
Server basics (we will teach you)
- switching users (sudo, su)
- remote access (scp, rsync, custom ssh port, mosh),
- software raid
- encrypted partitions/luks (using virtual machines)
- firewall with ufw
- postgresql replication (backup)
- scheduled backups (rsync and cron)
- lxc container (setup services on your local machine)
- sharing passwords with gpg encrypted files
- nginx basics (setup web server, add custom index page)
- screen/tmux/nohup
- symbolic links (ln -s)
- locales
- environment variables
- local network configuration (/etc/hosts, ip, ss).
- Starting and stopping services (systemctl)
- Log file handling (tail -f, truncate, logrotate)
Switching users
sudo or su commands can be used to run commands as different users. `sudo -u <username>` for running as different user. `su - postgres` can give you a shell as postgres user.
Remote access to machines
- . ssh - remote shell (with ssh server on custom ports)
- . scp/sftp/rsync - copy files
- . mosh - for bad connections
Symbolic links
Symbolic links can be used to store data in data partition without changing configuration files. For example /var/lib/postgresql can be a symbolic link to /data/postgresql where /data is a dedicated partition for storing data.
Setup correct Locales
`dpkg-reconfigure locales`