Categories: Ubuntu

How to Enable Disable Startup Services in Ubuntu

Mar 15, 2019 1 min.

Enable / Disable startup service Apache2 # Disable a startup service sudo systemctl disable apache2 # Or sudo update-rc.d apache2 disable # Enable a startup service sudo systemctl enable apache2 # Or sudo update-rc.d apache2 enable MySQL # Disable a startup service sudo systemctl disable mysql # Enable a startup service sudo systemctl enable mysql Remove / Add # Delete sudo update-rc.d apache2 remove #Or sudo update-rc.d -f apache2 remove # To add it back sudo update-rc.

Ubuntu Sync Internet Time

Jan 26, 2017 1 min.

Check NTP installed by following command $timedatectl status Output  Local time: Thu 2017-01-26 15:14:55 UTC Universal time: Thu 2017-01-26 15:14:55 UTC Timezone: Etc/UTC (UTC, +0000) NTP enabled: yes NTP synchronized: no RTC in local TZ: no DST active: n/a If NTP synchronized ‘no’ then install NTP using the following command sudo apt install ntp Start/Restart NTP sudo service ntp restart Reference: https://help.ubuntu.com/lts/serverguide/NTP.html