Difference between revisions of "Base"
From wiki
(Setup clock) |
|||
Line 1: | Line 1: | ||
− | + | == Install Base Commands == | |
− | # apt install aptitude bash-completion curl dtrx file htop iotop jnettop sudo whois | + | <syntaxhighlight lang="console"> |
+ | # apt install aptitude bash-completion curl dtrx file htop iotop jnettop sl sudo whois | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | == Setup Clock == | ||
+ | Enable [https://en.wikipedia.org/wiki/Network_Time_Protocol NTP] to keep your server clock synchronized. | ||
+ | <syntaxhighlight lang="console"> | ||
+ | # apt purge ntpdate | ||
+ | # systemctl enable systemd-timesyncd.service | ||
+ | Created symlink from /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service to /lib/systemd/system/systemd-timesyncd.service. | ||
+ | # systemctl start systemd-timesyncd.service | ||
+ | </syntaxhighlight> | ||
+ | |||
+ | You also need to configure timezone.<br /> | ||
+ | For servers, it is recommended to choose the UTC timezone. That way, you avoid the time jumping in your log around [https://en.wikipedia.org/wiki/Daylight_saving_time DST] clock shifts. | ||
+ | <syntaxhighlight lang="console"> | ||
+ | # dpkg-reconfigure tzdata | ||
+ | </syntaxhighlight> | ||
+ | |||
[[Category:Linux Server]] | [[Category:Linux Server]] |
Revision as of 12:46, 13 March 2016
Install Base Commands
# apt install aptitude bash-completion curl dtrx file htop iotop jnettop sl sudo whois
Setup Clock
Enable NTP to keep your server clock synchronized.
# apt purge ntpdate
# systemctl enable systemd-timesyncd.service
Created symlink from /etc/systemd/system/sysinit.target.wants/systemd-timesyncd.service to /lib/systemd/system/systemd-timesyncd.service.
# systemctl start systemd-timesyncd.service
You also need to configure timezone.
For servers, it is recommended to choose the UTC timezone. That way, you avoid the time jumping in your log around DST clock shifts.
# dpkg-reconfigure tzdata