Skip to content

Instantly share code, notes, and snippets.

@vadimstasiev
Last active July 30, 2022 15:50
Show Gist options
  • Select an option

  • Save vadimstasiev/0b0fd5f5e9a1ed1336b5e256d0aa8fcd to your computer and use it in GitHub Desktop.

Select an option

Save vadimstasiev/0b0fd5f5e9a1ed1336b5e256d0aa8fcd to your computer and use it in GitHub Desktop.
Ubuntu 22 Biased Installation, aka, How I like things to be

Preview:

image

BTRFS

When installing on BTRFS, make sure that @ (as /) and @home (as /home) subvolumes are created, otherwise Timeshift won't work.

My custom mount options for BTRFS, can be added after installation.

In my case I'm using an Intel 660p NVME SSD, but it is probably a good idea to read up and decide on the individual options yourself as different options will work better or worse, or in some cases much worse depending on the disks used.

,noatime,space_cache=v2,compress=lzo,discard=async 0 0

Another Note on BTRFS: never use more than 1 device for a BTRFS installation, not even for RAID 0, learned the latter on my own, it worked really bad with constant freezes, keeping it simple seems better for now.

Preview (example)

image

Ubuntu Applications/Configurations

sudo apt install ubuntu-restricted-extras

sudo apt-get install icoutils dolphin kde-cli-tools konsole kfind cifs-utils menulibre

sudo apt install flatpak gnome-software-plugin-flatpak gnome-software

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

sudo apt install ttf-mscorefonts-installer

xdg-mime default org.kde.dolphin.desktop inode/directory

sudo apt install htop tmux bmon iotop

Laptop Optimizations

sudo apt install powertop

sudo powertop

Determine whats sipping power and find a way to stop it, or:

sudo powertop --auto-tune

...and then if that doesnt cause problems, find a way to run that on start.

Note: In my case it does cause me a slight problem as if my wireless mouse dongle is plugged in when i boot up the machine the tool will somehow configure it to use less power and as part of that configuration it causes the mouse to become unresponsive soon after i stop moving it for a bit and then move it again is when it takes a while longer to register. I just move it to a different port and that solves it since Ive set that up to only run after boot.

Hybrid Graphics

For hybrid graphics just make sure there is a Xorg session running on the gpu, that means that it is probably working properly. To launch apps just add switcherooctl launch before any app you want to launch in order to launch it on dedicated graphics.

watch -n 1 nvidia-smi to check that things are in fact running on the dedicated.

Theming Dolphin and Gnome with Windows 11 theme

Installation

  • Install Tweaks

    • sudo apt install gnome-tweaks
  • Install: https://github.com/yeyushengfan258/Win11-icon-theme

  • Select that icon theme in Tweaks, (in this preview I'm using yaru-olive-dark for the legacy applications)

  • Install Kvantum

    • sudo apt install qt5-style-kvantum qt5-style-kvantum-themes
  • Add following to /etc/environment:

    QT_STYLE_OVERRIDE=kvantum

  • Install this theme within Kvantum: https://www.opendesktop.org/p/1554628/

  • Tick

    • Disable Composite Effects

Additional Notes:

To achieve the look and functionality in the preview, I have also installed and tweaked some gnome extensions, here are some of the ones that I currently use in this example:

  • ArcMenu
  • Burn My Windows
  • Clipboard History
  • Dash to Panel
  • Desktop Icons
  • Gnome 4x UI Improvements
  • Blur My Shell
  • GameMode
[/]
animate-appicon-hover=false
animate-appicon-hover-animation-extent={'RIPPLE': 4, 'PLANK': 4, 'SIMPLE': 1}
appicon-margin=4
appicon-padding=8
available-monitors=[0]
click-action='TOGGLE-SHOWPREVIEW'
dot-position='BOTTOM'
dot-style-focused='METRO'
group-apps=true
hotkeys-overlay-combo='TEMPORARILY'
intellihide=false
isolate-monitors=false
isolate-workspaces=true
leftbox-padding=-1
panel-anchors='{"0":"MIDDLE"}'
panel-element-positions='{"0":[{"element":"showAppsButton","visible":false,"position":"stackedTL"},{"element":"activitiesButton","visible":false,"position":"stackedTL"},{"element":"leftBox","visible":true,"position":"stackedTL"},{"element":"taskbar","visible":true,"position":"stackedTL"},{"element":"centerBox","visible":true,"position":"stackedBR"},{"element":"rightBox","visible":true,"position":"stackedBR"},{"element":"dateMenu","visible":true,"position":"stackedBR"},{"element":"systemMenu","visible":true,"position":"stackedBR"},{"element":"desktopButton","visible":true,"position":"stackedBR"}]}'
panel-lengths='{"0":100}'
panel-positions='{"0":"BOTTOM"}'
panel-sizes='{"0":48}'
primary-monitor=0
scroll-panel-action='NOTHING'
secondarymenu-contains-showdetails=false
show-appmenu=false
show-apps-icon-file=''
status-icon-padding=-1
stockgs-keep-dash=false
stockgs-keep-top-panel=false
stockgs-panelbtn-click-only=false
taskbar-locked=false
trans-gradient-bottom-color='#26a269'
trans-gradient-bottom-opacity=0.050000000000000003
trans-panel-opacity=0.59999999999999998
trans-use-custom-gradient=false
trans-use-custom-opacity=true
trans-use-dynamic-opacity=false
tray-padding=-1
window-preview-title-position='TOP'
[/]
arc-menu-icon=69
custom-menu-button-icon-size=28.0
distro-icon=5
enable-standlone-runner-menu=false
menu-background-color='rgba(48,48,49,0.98)'
menu-border-color='rgb(60,60,60)'
menu-button-appearance='Icon'
menu-button-icon='Distro_Icon'
menu-foreground-color='rgb(223,223,223)'
menu-hotkey='Super_L'
menu-item-active-bg-color='rgb(25,98,163)'
menu-item-active-fg-color='rgb(255,255,255)'
menu-item-hover-bg-color='rgb(21,83,158)'
menu-item-hover-fg-color='rgb(255,255,255)'
menu-layout='Windows'
menu-position-alignment=50
menu-separator-color='rgba(255,255,255,0.1)'
pinned-app-list=['Software', '', 'org.gnome.Software.desktop', 'Files', '', 'org.gnome.Nautilus.desktop', 'Terminal', '', 'org.gnome.Terminal.desktop', 'Visual Studio Code', '', 'code.desktop', 'Apex Legends', '', 'Apex Legends.desktop', 'Piper', '', 'org.freedesktop.Piper.desktop', 'Bottles', '', 'com.usebottles.bottles.desktop', 'GreenWithEnvy', '', 'com.leinardi.gwe.desktop', 'VMware Workstation', '', 'vmware-workstation.desktop', 'Google Chrome', '', 'google-chrome.desktop', 'Plex', '', 'tv.plex.PlexDesktop.desktop', 'The Witcher 3', '', 'menulibre-the-witcher-3.desktop', 'Timeshift', '', 'timeshift-gtk.desktop', 'EasyEffects', '', 'com.github.wwmm.easyeffects.desktop', 'Steam', '', 'steam.desktop']
position-in-panel='Left'
prefs-visible-page=0
recently-installed-apps=['org.sugarlabs.Paint.desktop', 'com.github.maoschanz.drawing.desktop', 'WinRAR.desktop', 'Programs--WinRAR--1652626911.96736.desktop', 'org.rncbc.qpwgraph.desktop', 'postman_postman.desktop', 'wine-Programs-Ubisoft-Ubisoft Connect-Ubisoft Connect.desktop', 'wine-Programs-Ubisoft-Ubisoft Connect-Uninstall.desktop', 'wine-Programs-Apex Legends-Privacy and Cookie Policy.desktop', 'stacks-task-manager_stacks-task-manager.desktop', 'org.kde.kdeconnect.app.desktop', 'org.kde.kdeconnect.sms.desktop', 'org.kde.kdeconnect.nonplasma.desktop', 'winrar_winrar.desktop', 'wine-Programs-OneNote 2016.desktop', 'wine-Programs-OneDrive for Business.desktop', 'lxtask.desktop', 'playonlinux-Microsoft Outlook 2016.desktop', 'playonlinux-Microsoft Powerpoint 2016.desktop', 'playonlinux-Microsoft OneNote 2016.desktop']
@vadimstasiev
Copy link
Author

vadimstasiev commented Jul 24, 2022

Recovery partition

When installing the recovery partition, use ext4 for simplicity and install the refind boot manager, if possible do not install grub. If grub is installed, after installing refind, chroot from the original installation and install grub again.

sudo apt install btrfs-progs timeshift

Timeshift can then be configured to manage the btrfs snapshots of the other installation, just select the correct partition.

add following to fstab:

UUID=f562e4e2-bd3e-4961-b7d5-16046cb0e1c0 /media/vadim444/Snapshots btrfs rw,relatime,ssd,space_cache=v2,subvolid=5,subvol=/ 0 0
UUID=f562e4e2-bd3e-4961-b7d5-16046cb0e1c0 /media/vadim444/InstalledSystem btrfs rw,noatime,ssd,space_cache=v2,subvol=/@ 0 0
UUID=f562e4e2-bd3e-4961-b7d5-16046cb0e1c0 /media/vadim444/InstalledSystem/home btrfs rw,noatime,ssd,space_cache=v2,subvol=/@home 0 0

The above fstab entries is just to make it easier to browse files and snapshots of the other installation, in the event of disaster, this is probably the most accessible I can make it so that I can copy files, should I need to do that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment