# Change editor to vi: sudo update-alternatives --config editor # Change sudo to avoid asking for password each time: sudo visudo %sudo ALL=(ALL:ALL) NOPASSWD: ALL # System failed to show grub boot menu with option to boot Windows and only booted Ubuntu # Note: installed using manual file system creation /boot and / only and system seemed to not install grub to MBR initially # # To Try: Possible grub fix after Ubuntu install (Note: Need to try this instead of boot repair) # Run as root grub-install /dev/sda update-grub # May need to also do this: Unhide GRUB boot menu in sda4/boot/grub/grub.cfg # # Previously, used boot-repair to repair grub: sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt update sudo apt install -y boot-repair && boot-repair Boot successfully repaired. A new file (/var/log/boot-repair/20231231_192923/Boot-Info_20231231_1929.txt) will open in your text viewer. The default repair of the Boot-Repair utility will reinstall the grub2 of sda4 into the MBR of sda. Grub-efi will not be selected by default because no ESP detected. Additional repair will be performed: unhide-bootmenu-10s Unhide GRUB boot menu in sda4/etc/default/grub grub-install /dev/sda Installing for i386-pc platform. #Set Windows to be default boot See also: https://askubuntu.com/questions/52963/how-do-i-set-windows-to-boot-as-the-default-in-the-boot-loader # Get correct Windows menuentry from this command. sudo grep menuentry /boot/grub/grub.cfg Example: Windows 10 (on /dev/sda1) # /etc/grub.d /etc/default/grub # See information on option in the /etc/default/grub file: info -f grub -n 'Simple configuration' # sudo vi /etc/default/grub # Option 1: enable SAVEDEFAULT so that whichever option you choose is the default on next boot: Change or add these settings: GRUB_DEFAULT=saved GRUB_SAVEDEFAULT=true GRUB_TIMEOUT=3 # Option 2: specify the default boot menuitem: Change this line: GRUB_DEFAULT=0 To this: GRUB_DEFAULT="Windows 10 (on /dev/sda1)" # Save the file and exit # Run this to update /boot/grub/grub.cfg sudo update-grub Set rtc to use local time if using dual boot Ubuntu and Windows (so Windows boots correct time after booting from Ubuntu): (See also: https://www.howtogeek.com/323390/how-to-fix-windows-and-linux-showing-different-times-when-dual-booting/ ) timedatectl set-local-rtc 1 # upgrade system: sudo apt-get update sudo apt-get upgrade # show installed packages sudo dpkg -l # Compare RHEL vs Ubuntu differences: https://cmdref.net/os/linux/note/rhel-vs-ubuntu # Package install - to set scaling of login page to 200%: Login Manager Settings Then run and "Apply current display settings" And click Apply by "Login Manager Settings" and wait for it to finish # Mount local drives: ls -l /dev/disk/by-uuid sudo mkdir /l sudo mkdir /m sudo vi /etc/fstab /dev/disk/by-uuid/L_UUID_NUMBER_GOES_HERE /l ntfs-3g rw,nosuid,nodev,relatime,uid=1000,gid=1000,dmask=027,fmask=137,iocharset=utf8 0 0 /dev/disk/by-uuid/M_UUID_NUMBER_GOES_HERE /m ntfs-3g rw,nosuid,nodev,relatime,uid=1000,gid=1000,dmask=027,fmask=137,iocharset=utf8 0 0 sudo mount /l sudo mount /m sudo systemctl daemon-reload # How to open specific file system path in "Files" in Ubuntu: Note: in "Files" use "CTRL+L" to open specific path in file system # CIFS mount examples: sudo apt-get install cifs-utils sudo mkdir /r sudo mkdir /s sudo vi /root/.smbcredentials username=NAS_SHARE_USERNAME password=NAS_SHARE_PASSWORD sudo chmod 600 /root/.smbcredentials sudo vi /etc/fstab //NAS-SERVER-IP/data /r cifs credentials=/root/.smbcredentials,vers=2.0,ro,nosuid,nodev,relatime,uid=1000,gid=1000,file_mode=0440,dir_mode=0550,iocharset=utf8 0 0 //NAS-SERVER-IP/share /s cifs credentials=/root/.smbcredentials,vers=2.0,rw,nosuid,nodev,relatime,uid=1000,gid=1000,file_mode=0660,dir_mode=0770,iocharset=utf8 0 0 sudo mount /r sudo mount /s sudo systemctl daemon-reload install syncthing: see "ubuntu-syncthing-install-notes.txt" Turn off shutdown extra prompt (run commands as logged in user, NOT root): Show current setting: gsettings get org.gnome.SessionManager logout-prompt true Change setting to false: gsettings set org.gnome.SessionManager logout-prompt false Show current setting: gsettings get org.gnome.SessionManager logout-prompt false OLD OPTIONS: ------------ # Mute ACPI BIOS Errors on boot: sudo vi /etc/default/grub GRUB_CMDLINE_LINUX_DEFAULT='quiet splash loglevel=3' sudo update-grub reboot