Ubuntu forethought
1. Disable bitlocker or any encryption on Windows’ HDD
2. Set Disk Operation in BIOS to AHCI (not ATA or RAID)
3. Disable Secure Boot
4. In Installation Type screen, select Something Else and partition your hardisk manually:
i) 1G of EFI partition at the beginning of your hardisk
ii) The rest of hardisk as LVM.
Inside the LVM partiton:
i) EXT4 partition with mount point at root (single slash a.k.a /). The size of this partition should be (the size of LVM partiton - 2 x the size of your RAM)
For example:
LVM partition is 250G
Your RAM is 32G
The size of EXT4 partition = 250 - 2 x 32 = 186G
You should format this partition by checking the format tick box.
ii) Swap partition using the rest of unallocated space in the LVM partiton
Ubuntu afterthought
1. Enable firewall
sudo apt install gufw
Run Firewall Configuration from Application Menu
sudo apt install gufw
Run Firewall Configuration from Application Menu
2. Setting Up local email delivery
a) Add mail alias for root
sudo nano /etc/aliases
Add the following line at the end of the file:
root: your_username
sudo nano /etc/aliases
Add the following line at the end of the file:
root: your_username
b) Check MTA is installed: telnet 127.0.0.1 25
If no MTA is installed, you can install sendmail or any MTA
sudo apt install sendmail
If no MTA is installed, you can install sendmail or any MTA
sudo apt install sendmail
c) Install mailnag or any mail checker, or mail client
sudo add-apt-repository ppa:pulb/mailnag
sudo apt update
sudo apt install mailnag
Your local mail account type is MBox located at /var/mail/your_username
sudo add-apt-repository ppa:pulb/mailnag
sudo apt update
sudo apt install mailnag
Your local mail account type is MBox located at /var/mail/your_username
3. Install Preload
sudo apt install preload
sudo apt install preload
4. Remove language related ign from apt update
sudo nano /etc/apt/apt.conf.d/00aptitude
Add the following line at the end of the file:
Acquire::Languages "none";
sudo nano /etc/apt/apt.conf.d/00aptitude
Add the following line at the end of the file:
Acquire::Languages "none";
5. Install TLP
sudo add-apt-repository ppa:linrunner/tlp
sudo apt update
sudo apt install tlp tlp-rdw
sudo add-apt-repository ppa:linrunner/tlp
sudo apt update
sudo apt install tlp tlp-rdw
6. Disable Bluetooth driver (instead of simply disabling the Bluetooth feature)
echo "blacklist btusb" | sudo tee /etc/modprobe.d/blacklist-bluetooth.conf
Temporary re-enabling Bluetooth
sudo modprobe -v btusb
Permanently re-enabling Bluetooth
sudo rm -v /etc/modprobe.d/blacklist-bluetooth.conf
echo "blacklist btusb" | sudo tee /etc/modprobe.d/blacklist-bluetooth.conf
Temporary re-enabling Bluetooth
sudo modprobe -v btusb
Permanently re-enabling Bluetooth
sudo rm -v /etc/modprobe.d/blacklist-bluetooth.conf
7. Install cpufreq
sudo apt install indicator-cpufreq
Click on cpufreq icon on system tray and choose Powersave
sudo apt install indicator-cpufreq
Click on cpufreq icon on system tray and choose Powersave
8. Enable hibernation
a) Check your swap is file or partition
swapon -s
If you are using swap file, you need to delete your swap file and create swap partition
swapon -s
If you are using swap file, you need to delete your swap file and create swap partition
i. sudo swapoff -v /swapfile
sudo nano /etc/fstab
sudo nano /etc/fstab
ii. remove the swap file entry in /etc/fstab
/swapfile swap swap defaults 0 0
/swapfile swap swap defaults 0 0
iii. Delete the swap file
sudo rm /swapfile
sudo rm /swapfile
b) Create swap partition twice the size of your RAM. If you already using swap partition and the size is more than twice your RAM, you can skip this step. If your swap partition size is smaller, you need to resize it.
i. Boot with Ubuntu installer and choose the option Try Ubuntu
ii. Run Gparted
c) Decrease the size of your primary partition by the amount you want your new swap to be. If you already have swap partition and want to resize it, you can decrease the size of your primary partition up to size of additional space you need for your swap partition. Your swap partition should be twice the size of your RAM.
d) In the free space that has now been created, choose new, type linux-swap and you can name the partition "swap" if you like. If you want to increase the size of your existing swap partition, just use up all the free space you have after decreasing your primary partition.
e) Hit the *Apply* button (the green check mark) to write the changes to disk.
f) When done, reboot back into Ubuntu.
g) Check that swap is on
swapon -s
If not, enable the new swap partition
sudo swapon --all --verbose
swapon -s
If not, enable the new swap partition
sudo swapon --all --verbose
h) Enable hibernation
i. Run Disks
ii. Get the UUID of your swap partition
iii. sudo apt install pm-utils hibernate
iv. sudo nano /etc/default/grub
Change the line that says
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=YOUR_VALUE"
Example: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=6f45d375-68c9-4fcb-8feb-5d5fd259a226"
Change the line that says
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
to
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=YOUR_VALUE"
Example: GRUB_CMDLINE_LINUX_DEFAULT="quiet splash resume=UUID=6f45d375-68c9-4fcb-8feb-5d5fd259a226"
v. Run
sudo update-grub
sudo update-grub
vi. To test hybernation
sudo systemctl hibernate
sudo systemctl hibernate








No comments:
Post a Comment
Note: Only a member of this blog may post a comment.