Section: Os

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.

Enable grub boot menu from window 10

Dec 29, 2017 1 min.

Execute the following command from Windows 10 in command prompt (run as administrator) bcdedit /set {bootmgr} path \EFI\ubuntu\grubx64.efi Execution Logs for reference: Microsoft Windows [Version 10.0.14393] (c) 2016 Microsoft Corporation. All rights reserved. C:\WINDOWS\system32>bcdedit Windows Boot Manager -------------------- identifier {bootmgr} device partition=\Device\HarddiskVolume1 path \EFI\Microsoft\Boot\bootmgfw.efi description Windows Boot Manager locale en-US inherit {globalsettings} default {current} resumeobject {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} displayorder {current} toolsdisplayorder {memdiag} timeout 30 Windows Boot Loader ------------------- identifier {current} device partition=C: path \WINDOWS\system32\winload.

Ubuntu Netbeans.desktop file

Nov 8, 2017 1 min.

File: /usr/share/applications/netbeans.desktop [Desktop Entry] Encoding=UTF-8 Name=NetBeans IDE 8.2 Comment=The Smarter Way to Code Exec=/apps/netbeans-8.2/bin/netbeans Icon=/apps/netbeans-8.2/nb/netbeans.png Categories=Application;Development;Java;IDE Version=1.0 Type=Application Terminal=0 StartupNotify=true StartupWMClass=NetBeans IDE 8.2

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: