Setup: update dual boot and setup tutorials
This commit is contained in:
parent
b159429e14
commit
da048a6db5
@ -4,15 +4,14 @@ Here's my personal Debian 12 Bookworm setup.
|
|||||||
|
|
||||||
- Set font size in Terminal to 15 and initial column count to 85
|
- Set font size in Terminal to 15 and initial column count to 85
|
||||||
- Must haves:
|
- Must haves:
|
||||||
- `sudo apt install curl earlyoom ffmpeg flatpak git gnome-clocks \
|
- `sudo apt install curl ddcutil deja-dup earlyoom ffmpeg flatpak git gnome-boxes gnome-clocks \
|
||||||
gnome-shell-pomodoro gnome-software-plugin-flatpak gnome-sound-recorder \
|
gnome-software-plugin-flatpak gnome-sound-recorder gnome-todo gnome-weather goldendict gparted \
|
||||||
gnome-todo gnome-weather goldendict gparted keepassxc mosh obs-studio \
|
keepassxc mosh mpv needrestart obs-studio shadowsocks-libev sshfs synaptic tmux trash-cli ufw \
|
||||||
shadowsocks-libev sshfs synaptic tmux trash-cli vim-gtk3 vlc \
|
vim-gtk3 vlc wl-clipboard`
|
||||||
gnome-boxes wl-clipboard needrestart deja-dup ufw ddcutil`
|
|
||||||
- Optional:
|
- Optional:
|
||||||
- `sudo apt install openjdk-17-jdk gthumb gnome-usage ranger
|
- `sudo apt install gnome-firmware gnome-games gnome-nettool gnome-packagekit gnome-passwordsafe \
|
||||||
gnome-firmware gnome-games gnome-nettool qpdf pulseeffects
|
gnome-shell-pomodoro gnome-usage gthumb mkvtoolnix-gui openjdk-17-jdk pulseeffectsqpdf ranger \
|
||||||
gnome-packagekit gnome-passwordsafe mkvtoolnix-gui virtualbox-qt syncplay`
|
syncplay virtualbox-qt`
|
||||||
- FlatHub:
|
- FlatHub:
|
||||||
- `flatpak remote-add --if-not-exists flathub
|
- `flatpak remote-add --if-not-exists flathub
|
||||||
https://flathub.org/repo/flathub.flatpakrepo`
|
https://flathub.org/repo/flathub.flatpakrepo`
|
||||||
@ -20,6 +19,7 @@ Here's my personal Debian 12 Bookworm setup.
|
|||||||
```
|
```
|
||||||
sudo swapoff /swapfile
|
sudo swapoff /swapfile
|
||||||
sudo fallocate -l 8GiB /swapfile
|
sudo fallocate -l 8GiB /swapfile
|
||||||
|
sudo chmod 0600 /swapfile
|
||||||
sudo mkswap /swapfile
|
sudo mkswap /swapfile
|
||||||
sudo swapon /swapfile
|
sudo swapon /swapfile
|
||||||
```
|
```
|
||||||
@ -27,13 +27,10 @@ Here's my personal Debian 12 Bookworm setup.
|
|||||||
- `--avoid
|
- `--avoid
|
||||||
'(^|/)(systemd|sshd|mosh-server|ssh|vim|sudo|sudoedit|gnome-shell|gnome-terminal-)$'
|
'(^|/)(systemd|sshd|mosh-server|ssh|vim|sudo|sudoedit|gnome-shell|gnome-terminal-)$'
|
||||||
--prefer '(^|/)(Web Content|Isolated Web Co)$'`
|
--prefer '(^|/)(Web Content|Isolated Web Co)$'`
|
||||||
- Firefox
|
- ddcutil:
|
||||||
- Change default zoom to 110%
|
- `sudo usermod -aG i2c $(whoami)`
|
||||||
- Enable HTTPS only
|
- External Monitor Brightness Up: `ddcutil setvcp 10 + 10`
|
||||||
- Proxy DNS when using SOCKS v5
|
- External Monitor Brightness Down: `ddcutil setvcp 10 - 10`
|
||||||
- Enable DNS over HTTPS
|
|
||||||
- In `about:config` set `browser.sessionstore.max_windows_undo` to 10.
|
|
||||||
- Go to settings -> `Region & Language` and install `Chinese (simplified)`.
|
|
||||||
|
|
||||||
## Optional packages
|
## Optional packages
|
||||||
|
|
||||||
@ -49,7 +46,7 @@ Here's my personal Debian 12 Bookworm setup.
|
|||||||
|
|
||||||
`$ sudo ufw enable`
|
`$ sudo ufw enable`
|
||||||
|
|
||||||
## Wayland (?)
|
## Wayland, if it doesn't show up
|
||||||
|
|
||||||
- `sudoedit /usr/lib/udev/rules.d/61-gdm.rules` and comment the two uncommented
|
- `sudoedit /usr/lib/udev/rules.d/61-gdm.rules` and comment the two uncommented
|
||||||
lines
|
lines
|
||||||
@ -87,6 +84,15 @@ Here's my personal Debian 12 Bookworm setup.
|
|||||||
- `sudo ufw allow 1716:1764/udp`
|
- `sudo ufw allow 1716:1764/udp`
|
||||||
- Flatseal
|
- Flatseal
|
||||||
- `flatpak install flathub com.github.tchx84.Flatseal`
|
- `flatpak install flathub com.github.tchx84.Flatseal`
|
||||||
|
- Firefox
|
||||||
|
- Change default zoom to 110%
|
||||||
|
- Enable HTTPS only
|
||||||
|
- Proxy DNS when using SOCKS v5
|
||||||
|
- Enable DNS over HTTPS
|
||||||
|
- In `about:config` set `browser.sessionstore.max_windows_undo` to 10.
|
||||||
|
- Go to settings -> `Region & Language` and install `Chinese (simplified)`.
|
||||||
|
- VSCodium
|
||||||
|
- `flatpak install flathub com.vscodium.codium`
|
||||||
- OBS Studio
|
- OBS Studio
|
||||||
- `$ sudo apt install qtwayland5`
|
- `$ sudo apt install qtwayland5`
|
||||||
- In `/usr/share/applications/com.obsproject.Studio.desktop`, replace
|
- In `/usr/share/applications/com.obsproject.Studio.desktop`, replace
|
||||||
@ -110,12 +116,16 @@ Here's my personal Debian 12 Bookworm setup.
|
|||||||
- To host servers: `sudo ufw allow 25565/tcp`
|
- To host servers: `sudo ufw allow 25565/tcp`
|
||||||
- Bottles
|
- Bottles
|
||||||
- `flatpak install flathub com.usebottles.bottles`
|
- `flatpak install flathub com.usebottles.bottles`
|
||||||
|
- Check file system permission with Flatseal
|
||||||
- Discord
|
- Discord
|
||||||
- `flatpak install flathub com.discordapp.Discord`
|
- `flatpak install flathub com.discordapp.Discord`
|
||||||
|
- Check file system permission with Flatseal
|
||||||
- Slack
|
- Slack
|
||||||
- `flatpak install flathub com.slack.Slack`
|
- `flatpak install flathub com.slack.Slack`
|
||||||
|
- Check file system permission with Flatseal
|
||||||
- Zoom
|
- Zoom
|
||||||
- `flatpak install flathub us.zoom.Zoom`
|
- `flatpak install flathub us.zoom.Zoom`
|
||||||
|
- Check file system permission with Flatseal
|
||||||
|
|
||||||
## Optional Apps
|
## Optional Apps
|
||||||
|
|
||||||
@ -193,7 +203,7 @@ sudo chmod -R 700 /opt/grub
|
|||||||
```
|
```
|
||||||
sudo apt install -y openssh-server mosh
|
sudo apt install -y openssh-server mosh
|
||||||
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
|
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
|
||||||
sudo cp ../system/sshd_config /etc/ssh/sshd_config
|
sudo cp ../system/sshd/sshd_config /etc/ssh/sshd_config
|
||||||
sudo groupadd --system ssh-users
|
sudo groupadd --system ssh-users
|
||||||
sudo usermod -aG ssh-users $(whoami)
|
sudo usermod -aG ssh-users $(whoami)
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
|
@ -87,7 +87,7 @@ personal answers below but it might be different for you.
|
|||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
- Booting Ubuntu 20.04 LTS live image with `Try Ubuntu` option.
|
- Booting Ubuntu 22.10 live image with `Try Ubuntu` option.
|
||||||
- Verify that we are using UEFI: `$ [ -d /sys/firmware/efi ] && echo UEFI ||
|
- Verify that we are using UEFI: `$ [ -d /sys/firmware/efi ] && echo UEFI ||
|
||||||
echo BIOS`
|
echo BIOS`
|
||||||
- Give 1 GiB (or 500 MiB if you are short on space) for `/boot` using GParted and make a partition
|
- Give 1 GiB (or 500 MiB if you are short on space) for `/boot` using GParted and make a partition
|
||||||
@ -96,7 +96,7 @@ personal answers below but it might be different for you.
|
|||||||
--use-random /dev/<root partition>`
|
--use-random /dev/<root partition>`
|
||||||
- Defaults, spell it out if you want to be extra certain:
|
- Defaults, spell it out if you want to be extra certain:
|
||||||
`--cipher aes-xts-plain64 --iter-time 2000 --verify-passphrase`
|
`--cipher aes-xts-plain64 --iter-time 2000 --verify-passphrase`
|
||||||
- `$ sudo cryptsetup open /dev/<root partition> rootfs`
|
- `$ sudo cryptsetup open /dev/<root partition> pvroot`
|
||||||
- No need to overwrite data since it is originally BitLocker encrypted and would
|
- No need to overwrite data since it is originally BitLocker encrypted and would
|
||||||
cause loss of performance and lifespan of the SSD.
|
cause loss of performance and lifespan of the SSD.
|
||||||
- `$ sudo pvcreate /dev/mapper/pvroot`
|
- `$ sudo pvcreate /dev/mapper/pvroot`
|
||||||
@ -111,12 +111,12 @@ personal answers below but it might be different for you.
|
|||||||
- Format `/dev/<boot partition>` as ext4 and mount to `/boot`.
|
- Format `/dev/<boot partition>` as ext4 and mount to `/boot`.
|
||||||
- Format `/dev/mapper/vgroot-lvroot` as ext4 and mount to `/`.
|
- Format `/dev/mapper/vgroot-lvroot` as ext4 and mount to `/`.
|
||||||
- Format `/dev/mapper/vgroot-lvhome` as ext4 and mount to `/home`.
|
- Format `/dev/mapper/vgroot-lvhome` as ext4 and mount to `/home`.
|
||||||
- Choose the main disk (`/dev/sd?`) as the `Device for boot loader
|
- Choose the main disk (e.g. `/dev/sda` or `/dev/nvme0n1p2`) as the `Device for boot loader
|
||||||
installation`.
|
installation`.
|
||||||
- Name the parititions if you are feeling fancy.
|
- Name the parititions if you are feeling fancy.
|
||||||
- Once the installation is complete, click `Continue Testing` to make necessary
|
- Once the installation is complete, click `Continue Testing` to make necessary
|
||||||
changes to load the encrypted partitions at startup.
|
changes to load the encrypted partitions at startup.
|
||||||
- Make note of the UUID: `$ sudo blkid /dev/<root partition>`
|
- Make note of the UUID: `$ blkid /dev/<root partition>`
|
||||||
- Mount the installed Ubuntu OS on `/mnt` and use `chroot` to change the root
|
- Mount the installed Ubuntu OS on `/mnt` and use `chroot` to change the root
|
||||||
directory to `/mnt`.
|
directory to `/mnt`.
|
||||||
```
|
```
|
||||||
@ -129,11 +129,11 @@ personal answers below but it might be different for you.
|
|||||||
# mount -t devpts devpts /dev/pts
|
# mount -t devpts devpts /dev/pts
|
||||||
```
|
```
|
||||||
- In the chroot: `# vi /etc/crypttab`
|
- In the chroot: `# vi /etc/crypttab`
|
||||||
- Add the following lines to it (replacing `<UUID_ROOTFS>` from the value
|
- Add the following lines to it (replacing `<UUID_PVROOT>` from the value
|
||||||
obtained from `blkid` command earlier):
|
obtained from `blkid` command earlier):
|
||||||
```
|
```
|
||||||
# <target name> <source device> <key file> <options>
|
# <target name> <source device> <key file> <options>
|
||||||
pvroot UUID=<UUID_ROOTFS> none luks,discard
|
pvroot UUID=<UUID_PVROOT> none luks,discard
|
||||||
```
|
```
|
||||||
- This guide assumes you have an SSD so we have `discard`.
|
- This guide assumes you have an SSD so we have `discard`.
|
||||||
- Update the Linux kernel to load encrypted partitions at startup: `#
|
- Update the Linux kernel to load encrypted partitions at startup: `#
|
||||||
|
@ -1,20 +1,20 @@
|
|||||||
# Ubuntu Setup
|
# Ubuntu Setup
|
||||||
|
|
||||||
Here's my personal Ubuntu 22.04 setup. (Make sure to enable Wayland on Nvidia!)
|
Here's my personal Ubuntu 22.10 setup. (Make sure to enable Wayland on Nvidia!)
|
||||||
|
|
||||||
- Set font size in Terminal to 15 and initial column count to 85
|
- Set font size in Terminal to 15 and initial column count to 85
|
||||||
- Must haves:
|
- Must haves:
|
||||||
- `sudo apt install curl earlyoom ffmpeg flatpak git gnome-clocks \
|
- `sudo apt install curl ddcutil deja-dup earlyoom ffmpeg flatpak git gnome-boxes gnome-clocks \
|
||||||
gnome-shell-pomodoro gnome-software-plugin-flatpak gnome-sound-recorder \
|
gnome-software-plugin-flatpak gnome-sound-recorder gnome-todo gnome-weather goldendict gparted \
|
||||||
gnome-todo gnome-weather goldendict gparted keepassxc mosh obs-studio \
|
keepassxc mosh mpv needrestart obs-studio shadowsocks-libev sshfs synaptic tmux trash-cli ufw \
|
||||||
shadowsocks-libev sshfs synaptic tmux trash-cli vim-gtk3 vlc \
|
vim-gtk3 vlc wl-clipboard`
|
||||||
gnome-boxes wl-clipboard needrestart deja-dup ufw ddcutil`
|
|
||||||
- Optional:
|
- Optional:
|
||||||
- `sudo apt install openjdk-17-jdk gthumb gnome-usage ranger
|
- `sudo apt install gnome-firmware gnome-games gnome-nettool gnome-packagekit gnome-passwordsafe \
|
||||||
gnome-firmware gnome-games gnome-nettool qpdf pulseeffects
|
gnome-shell-pomodoro gnome-usage gthumb mkvtoolnix-gui openjdk-17-jdk pulseeffectsqpdf ranger \
|
||||||
gnome-packagekit gnome-passwordsafe mkvtoolnix-gui virtualbox-qt syncplay`
|
syncplay virtualbox-qt`
|
||||||
- Remove all snaps:
|
- Remove all snaps:
|
||||||
- ```
|
- ```
|
||||||
|
# if this command fails, unmount the snap mounts as reported by `mount` and try again
|
||||||
sudo apt autoremove --purge snapd
|
sudo apt autoremove --purge snapd
|
||||||
sudo apt-mark hold snapd
|
sudo apt-mark hold snapd
|
||||||
trash ~/snap
|
trash ~/snap
|
||||||
@ -26,6 +26,7 @@ Here's my personal Ubuntu 22.04 setup. (Make sure to enable Wayland on Nvidia!)
|
|||||||
```
|
```
|
||||||
sudo swapoff /swapfile
|
sudo swapoff /swapfile
|
||||||
sudo fallocate -l 8GiB /swapfile
|
sudo fallocate -l 8GiB /swapfile
|
||||||
|
sudo chmod 0600 /swapfile
|
||||||
sudo mkswap /swapfile
|
sudo mkswap /swapfile
|
||||||
sudo swapon /swapfile
|
sudo swapon /swapfile
|
||||||
```
|
```
|
||||||
@ -33,13 +34,10 @@ Here's my personal Ubuntu 22.04 setup. (Make sure to enable Wayland on Nvidia!)
|
|||||||
- `--avoid
|
- `--avoid
|
||||||
'(^|/)(systemd|sshd|mosh-server|ssh|vim|sudo|sudoedit|gnome-shell|gnome-terminal-)$'
|
'(^|/)(systemd|sshd|mosh-server|ssh|vim|sudo|sudoedit|gnome-shell|gnome-terminal-)$'
|
||||||
--prefer '(^|/)(Web Content|Isolated Web Co)$'`
|
--prefer '(^|/)(Web Content|Isolated Web Co)$'`
|
||||||
- Firefox
|
- ddcutil:
|
||||||
- Change default zoom to 110%
|
- `sudo usermod -aG i2c $(whoami)`
|
||||||
- Enable HTTPS only
|
- External Monitor Brightness Up: `ddcutil setvcp 10 + 10`
|
||||||
- Proxy DNS when using SOCKS v5
|
- External Monitor Brightness Down: `ddcutil setvcp 10 - 10`
|
||||||
- Enable DNS over HTTPS
|
|
||||||
- In `about:config` set `browser.sessionstore.max_windows_undo` to 10.
|
|
||||||
- Go to settings -> `Region & Language` and install `Chinese (simplified)`.
|
|
||||||
|
|
||||||
## Optional packages
|
## Optional packages
|
||||||
|
|
||||||
@ -55,7 +53,7 @@ Here's my personal Ubuntu 22.04 setup. (Make sure to enable Wayland on Nvidia!)
|
|||||||
|
|
||||||
`$ sudo ufw enable`
|
`$ sudo ufw enable`
|
||||||
|
|
||||||
## Wayland (?)
|
## Wayland, if it doesn't show up
|
||||||
|
|
||||||
- `sudoedit /usr/lib/udev/rules.d/61-gdm.rules` and comment the two uncommented
|
- `sudoedit /usr/lib/udev/rules.d/61-gdm.rules` and comment the two uncommented
|
||||||
lines
|
lines
|
||||||
@ -93,11 +91,18 @@ Here's my personal Ubuntu 22.04 setup. (Make sure to enable Wayland on Nvidia!)
|
|||||||
- `sudo ufw allow 1716:1764/udp`
|
- `sudo ufw allow 1716:1764/udp`
|
||||||
- Flatseal
|
- Flatseal
|
||||||
- `flatpak install flathub com.github.tchx84.Flatseal`
|
- `flatpak install flathub com.github.tchx84.Flatseal`
|
||||||
|
- Firefox
|
||||||
|
- Change default zoom to 110%
|
||||||
|
- Enable HTTPS only
|
||||||
|
- Proxy DNS when using SOCKS v5
|
||||||
|
- Enable DNS over HTTPS
|
||||||
|
- In `about:config` set `browser.sessionstore.max_windows_undo` to 10.
|
||||||
|
- Go to settings -> `Region & Language` and install `Chinese (simplified)`.
|
||||||
- VSCodium
|
- VSCodium
|
||||||
- `flatpak install flathub com.vscodium.codium`
|
- `flatpak install flathub com.vscodium.codium`
|
||||||
- OBS Studio
|
- OBS Studio
|
||||||
- `$ sudo apt install qtwayland5`
|
- `$ sudo apt install qtwayland5`
|
||||||
- In `/usr/share/applications/com.obsproject.Studio.desktop`, replace
|
- On Ubuntu <22.10, in `/usr/share/applications/com.obsproject.Studio.desktop`, replace
|
||||||
`Exec=obs` with `Exec=sh -c '[ "$XDG_SESSION_TYPE" = "wayland" ] && obs
|
`Exec=obs` with `Exec=sh -c '[ "$XDG_SESSION_TYPE" = "wayland" ] && obs
|
||||||
-platform wayland || obs'`
|
-platform wayland || obs'`
|
||||||
- Birdtray
|
- Birdtray
|
||||||
@ -133,12 +138,16 @@ Here's my personal Ubuntu 22.04 setup. (Make sure to enable Wayland on Nvidia!)
|
|||||||
- To host servers: `sudo ufw allow 25565/tcp`
|
- To host servers: `sudo ufw allow 25565/tcp`
|
||||||
- Bottles
|
- Bottles
|
||||||
- `flatpak install flathub com.usebottles.bottles`
|
- `flatpak install flathub com.usebottles.bottles`
|
||||||
|
- Check file system permission with Flatseal
|
||||||
- Discord
|
- Discord
|
||||||
- `flatpak install flathub com.discordapp.Discord`
|
- `flatpak install flathub com.discordapp.Discord`
|
||||||
|
- Check file system permission with Flatseal
|
||||||
- Slack
|
- Slack
|
||||||
- `flatpak install flathub com.slack.Slack`
|
- `flatpak install flathub com.slack.Slack`
|
||||||
|
- Check file system permission with Flatseal
|
||||||
- Zoom
|
- Zoom
|
||||||
- `flatpak install flathub us.zoom.Zoom`
|
- `flatpak install flathub us.zoom.Zoom`
|
||||||
|
- Check file system permission with Flatseal
|
||||||
|
|
||||||
## Optional Apps
|
## Optional Apps
|
||||||
|
|
||||||
@ -216,7 +225,7 @@ sudo chmod -R 700 /opt/grub
|
|||||||
```
|
```
|
||||||
sudo apt install -y openssh-server mosh
|
sudo apt install -y openssh-server mosh
|
||||||
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
|
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
|
||||||
sudo cp ../system/sshd_config /etc/ssh/sshd_config
|
sudo cp ../system/sshd/sshd_config /etc/ssh/sshd_config
|
||||||
sudo groupadd --system ssh-users
|
sudo groupadd --system ssh-users
|
||||||
sudo usermod -aG ssh-users $(whoami)
|
sudo usermod -aG ssh-users $(whoami)
|
||||||
mkdir -p ~/.ssh
|
mkdir -p ~/.ssh
|
||||||
@ -288,7 +297,7 @@ For Ubuntu < 22.04: `echo 'options nvidia-drm modeset=1' | sudo tee
|
|||||||
|
|
||||||
### Digimend for Huion tablet (works with H640p)
|
### Digimend for Huion tablet (works with H640p)
|
||||||
|
|
||||||
- = 20.10 & using wayland: no longer necessary
|
- \>= 21.10 & using wayland: no longer necessary
|
||||||
- = 21.04:
|
- = 21.04:
|
||||||
- `$ sudo apt install digimend-dkms`
|
- `$ sudo apt install digimend-dkms`
|
||||||
- Reboot.
|
- Reboot.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user