Skip to content
Davood Dorostkar edited this page May 23, 2022 · 7 revisions

Basic OS

Check current OS

hostnamectl
uname -a
cat /etc/os-release

Check available upgradable ubuntu

sudo do-release-upgrade -c

Upgrade to the newest ubuntu

sudo do-release-upgrade

Grub

showing or hiding grub menu

press and hold the SHIFT button while booting.

or:

sudo nano /etc/default/grub

change GRUB_TIMEOUT to -1 and comment out GRUB_HIDDEN_TIMEOUT

sudo update-grub

Swap

best link

sudo swapon --show 

show free memory:

free -h 

allocate 1GB to swap file:

sudo fallocate -l 1G /swapfile 

check the swap file permission:

ls -lh /swapfile 

sudo chmod 600 /swapfile 

make swap active:

sudo mkswap /swapfile 

sudo swapon /swapfile 

sudo swapon --show 

make the swap permanent:

sudo nano /etc/fstab 

add /swapfile none swap sw 0 0 if it does not exist

Lattepanda kernel

Check this

check this

Clone this wiki locally