This is one of a series of posts where I document software configurations for personal reference. This post documents the configurations for Ubuntu.
Controlling the boot process
The grub file controls the behavior of the GRand Unified Bootloader, which is a flexible and powerful boot loader program. The full path to the file is
/etc/default/grub; use the following command to edit the file:
sudo nano /etc/default/grub
There are two settings that may be of particular interest:
GRUB_DEFAULT=0: choose Ubuntu as the default operating system.
GRUB_TIMEOUT=5: boot the default system in five seconds if no keyboard input is performed during this time.
Remember to run the following command after changing the settings to update the
Dealing with a dual-boot system time conflict
When Linux and Windows constitute a dual-boot system, there will be an issue concerning system time. The solution is to use the following command to tell Ubuntu that the hardware clock is set to ‘local’ time:
timedatectl set-local-rtc 1
Note that invoking this will also synchronize the RTC (i.e., real-time clock, which stores hardware time) from the system clock (which stores system time), unless
--adjust-system-clock is passed.
The following command can be used to update system time, but note that the program is no longer installed on Ubuntu by default (install it with
sudo apt install ntpsec-ntpdate).
sudo ntpdate pool.ntp.org
Auto mount a partition on boot
/etc/fstab file to auto mount a partition on boot. An example entry could be:
UUID="" /mnt ntfs uid=1000,gid=1000,umask=0077.
Use the following command to get the UUID of a partition:
lsblk -o NAME,SIZE,FSTYPE,LABEL,UUID,MOUNTPOINT
Use the following command to get user and group IDs:
sudo apt install aria2 fcitx meld vlc flameshot filezilla gimp git virtualbox virtualbox-ext-pack