Skip to content

Instantly share code, notes, and snippets.

@NZX-DeSiGN
Last active August 10, 2021 00:34
Show Gist options
  • Save NZX-DeSiGN/cfefc9e1896b1ef589dbf22dc78a46ef to your computer and use it in GitHub Desktop.
Save NZX-DeSiGN/cfefc9e1896b1ef589dbf22dc78a46ef to your computer and use it in GitHub Desktop.

Install Pop OS 20.04

Follow this guide, partition your disk a install Pop OS 20.04 from live USB :

  • Boot from live USB
  • Partition your hard disk: EFI Boot, BTRFS root, EXT4 home, SWAP
  • Install Pop OS and DO NOT REBOOT
mount -o subvolid=5,ssd,noatime,space_cache,commit=120,compress=zstd /dev/sdb5 /mnt
btrfs subvolume create @
ls | grep -v @ | xargs mv -t @
btrfs subvolume list /mnt
nano /mnt/@/etc/fstab
mount /dev/sda1 /mnt/@/boot/efi
echo "timeout 10" >> /mnt/@/boot/efi/loader/loader.conf
sed -i 's/splash/splash rootflags=subvol=@/' /mnt/@/boot/efi/loader/entries/Pop_OS-current.conf
cat /mnt/@/boot/efi/loader/entries/Pop_OS-current.conf
nano /mnt/@/etc/kernelstub/configuration
cd /
umount -l /mnt
mount -o defaults,subvol=@,ssd,noatime,space_cache,commit=120,compress=zstd /dev/sdb5 /mnt
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
sudo cp /etc/resolv.conf /mnt/etc/
sudo chroot /mnt
mount -av
apt install -y btrfs-progs
update-initramfs -c -k all
exit
reboot

Update system

sudo apt update 
sudo apt upgrade 
sudo apt dist-upgrade 
sudo apt autoremove 
sudo apt autoclean

Install TimeShift

sudo apt install -y timeshift
sudo timeshift-gtk

Fix sleep

https://askubuntu.com/questions/935672/ubuntu-16-04-on-dell-xps-suspend-occasionally-fails

sudo micro /usr/lib/systemd/system-sleep/brcmfmac
chmod +x /usr/lib/systemd/system-sleep/brcmfmac
#!/bin/sh

case $1 in
    pre)  modprobe -r brcmfmac ;;
    post) modprobe brcmfmac  ;;
esac

Install Xanmod kernel

Download Xanmod 5.7.16-xanmod2 from Sourceforge and install it.

sudo dpkg -i linux-image-*xanmod*.deb linux-headers-*xanmod*.deb
reboot

You may encounter issue with Nvidia dkms during kernel installation, enter below commands to fix it

sudo apt install gcc-8
sudo update-alternatives --config gcc
sudo update-alternatives --remove-all gcc
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 10
sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc-8 10
sudo dpkg-reconfigure nvidia-dkms-440

Fix multi-monitor refresh rate

Fix the mutter multi-monitor 60 fps lock with below commands

xrandr
nano /etc/environment

__GL_SYNC_DISPLAY_DEVICE=DP-1

reboot

To check if fix is active :

sudo apt install mesa-utils
glxgears

Fix GDM monitors settings

sudo cp ~/.config/monitors.xml ~gdm/.config/
reboot

Install DCC Utils

sudo apt install ddcutil
sudo groupadd --system i2c
sudo usermod xps -aG i2c
sudo chmod a+rw /dev/i2c-*
su - ${USER}
ddcutil detect

Install Gnome Tweaks

sudo apt install gnome-tweaks

Fix Dash To Panel

Fix source

sudo apt-get install gir1.2-clutter-1.0 gir1.2-clutter-gst-3.0 gir1.2-gtkclutter-1.0

Import/Export Gnome settings

dconf dump / > ~/.config/dconf/user.conf
dconf load / < ~/.config/dconf/user.conf

Install CLI utils

sudo apt install htop micro

Install AppImageLauncher

sudo apt install appimagelauncher
sudo add-apt-repository ppa:appimagelauncher-team/stable
sudo apt install appimagelauncher

Install Shadow

sudo apt install libva-glx2 vainfo intel-media-va-driver-non-free
wget https://gitlab.com/aar642/libva-vdpau-driver/-/jobs/205841211/artifacts/raw/vdpau-va-driver_0.7.4-6ubuntu1_amd64.deb
sudo dpkg -i vdpau-va-driver_0.7.4-6ubuntu1_amd64.deb
sudo apt-mark hold vdpau-va-driver:amd64
vainfo 
chmod a+x Shadow.AppImage
./Shadow.AppImage 

Install Docker

sudo apt install apt-transport-https ca-certificates curl software-properties-common
url -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce docker-compose
sudo systemctl status docker
sudo usermod -aG docker ${USER}
su - ${USER}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment