diff --git a/setup/debian-setup.md b/setup/debian-setup.md index 58b1feb..373263f 100644 --- a/setup/debian-setup.md +++ b/setup/debian-setup.md @@ -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 - Must haves: - - `sudo apt install curl earlyoom ffmpeg flatpak git gnome-clocks \ - gnome-shell-pomodoro gnome-software-plugin-flatpak gnome-sound-recorder \ - gnome-todo gnome-weather goldendict gparted keepassxc mosh obs-studio \ - shadowsocks-libev sshfs synaptic tmux trash-cli vim-gtk3 vlc \ - gnome-boxes wl-clipboard needrestart deja-dup ufw ddcutil` + - `sudo apt install curl ddcutil deja-dup earlyoom ffmpeg flatpak git gnome-boxes gnome-clocks \ + gnome-software-plugin-flatpak gnome-sound-recorder gnome-todo gnome-weather goldendict gparted \ + keepassxc mosh mpv needrestart obs-studio shadowsocks-libev sshfs synaptic tmux trash-cli ufw \ + vim-gtk3 vlc wl-clipboard` - Optional: - - `sudo apt install openjdk-17-jdk gthumb gnome-usage ranger - gnome-firmware gnome-games gnome-nettool qpdf pulseeffects - gnome-packagekit gnome-passwordsafe mkvtoolnix-gui virtualbox-qt syncplay` + - `sudo apt install gnome-firmware gnome-games gnome-nettool gnome-packagekit gnome-passwordsafe \ + gnome-shell-pomodoro gnome-usage gthumb mkvtoolnix-gui openjdk-17-jdk pulseeffectsqpdf ranger \ + syncplay virtualbox-qt` - FlatHub: - `flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo` @@ -20,6 +19,7 @@ Here's my personal Debian 12 Bookworm setup. ``` sudo swapoff /swapfile sudo fallocate -l 8GiB /swapfile + sudo chmod 0600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile ``` @@ -27,13 +27,10 @@ Here's my personal Debian 12 Bookworm setup. - `--avoid '(^|/)(systemd|sshd|mosh-server|ssh|vim|sudo|sudoedit|gnome-shell|gnome-terminal-)$' --prefer '(^|/)(Web Content|Isolated Web Co)$'` -- 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)`. +- ddcutil: + - `sudo usermod -aG i2c $(whoami)` + - External Monitor Brightness Up: `ddcutil setvcp 10 + 10` + - External Monitor Brightness Down: `ddcutil setvcp 10 - 10` ## Optional packages @@ -49,7 +46,7 @@ Here's my personal Debian 12 Bookworm setup. `$ 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 lines @@ -87,6 +84,15 @@ Here's my personal Debian 12 Bookworm setup. - `sudo ufw allow 1716:1764/udp` - 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 - `$ sudo apt install qtwayland5` - 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` - Bottles - `flatpak install flathub com.usebottles.bottles` + - Check file system permission with Flatseal - Discord - `flatpak install flathub com.discordapp.Discord` + - Check file system permission with Flatseal - Slack - `flatpak install flathub com.slack.Slack` + - Check file system permission with Flatseal - Zoom - `flatpak install flathub us.zoom.Zoom` + - Check file system permission with Flatseal ## Optional Apps @@ -193,7 +203,7 @@ sudo chmod -R 700 /opt/grub ``` sudo apt install -y openssh-server mosh 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 usermod -aG ssh-users $(whoami) mkdir -p ~/.ssh diff --git a/setup/dual-boot-ubuntu.md b/setup/dual-boot-ubuntu.md index 2a93ade..426eee2 100644 --- a/setup/dual-boot-ubuntu.md +++ b/setup/dual-boot-ubuntu.md @@ -87,7 +87,7 @@ personal answers below but it might be different for you. ## 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 || echo BIOS` - 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/` - Defaults, spell it out if you want to be extra certain: `--cipher aes-xts-plain64 --iter-time 2000 --verify-passphrase` -- `$ sudo cryptsetup open /dev/ rootfs` +- `$ sudo cryptsetup open /dev/ pvroot` - No need to overwrite data since it is originally BitLocker encrypted and would cause loss of performance and lifespan of the SSD. - `$ sudo pvcreate /dev/mapper/pvroot` @@ -111,12 +111,12 @@ personal answers below but it might be different for you. - Format `/dev/` as ext4 and mount to `/boot`. - Format `/dev/mapper/vgroot-lvroot` as ext4 and mount to `/`. - 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`. - Name the parititions if you are feeling fancy. - Once the installation is complete, click `Continue Testing` to make necessary changes to load the encrypted partitions at startup. -- Make note of the UUID: `$ sudo blkid /dev/` +- Make note of the UUID: `$ blkid /dev/` - Mount the installed Ubuntu OS on `/mnt` and use `chroot` to change the root directory to `/mnt`. ``` @@ -129,11 +129,11 @@ personal answers below but it might be different for you. # mount -t devpts devpts /dev/pts ``` - In the chroot: `# vi /etc/crypttab` - - Add the following lines to it (replacing `` from the value + - Add the following lines to it (replacing `` from the value obtained from `blkid` command earlier): ``` # - pvroot UUID= none luks,discard + pvroot UUID= none luks,discard ``` - This guide assumes you have an SSD so we have `discard`. - Update the Linux kernel to load encrypted partitions at startup: `# diff --git a/setup/ubuntu-setup.md b/setup/ubuntu-setup.md index 8af5cbc..51dd996 100644 --- a/setup/ubuntu-setup.md +++ b/setup/ubuntu-setup.md @@ -1,20 +1,20 @@ # 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 - Must haves: - - `sudo apt install curl earlyoom ffmpeg flatpak git gnome-clocks \ - gnome-shell-pomodoro gnome-software-plugin-flatpak gnome-sound-recorder \ - gnome-todo gnome-weather goldendict gparted keepassxc mosh obs-studio \ - shadowsocks-libev sshfs synaptic tmux trash-cli vim-gtk3 vlc \ - gnome-boxes wl-clipboard needrestart deja-dup ufw ddcutil` + - `sudo apt install curl ddcutil deja-dup earlyoom ffmpeg flatpak git gnome-boxes gnome-clocks \ + gnome-software-plugin-flatpak gnome-sound-recorder gnome-todo gnome-weather goldendict gparted \ + keepassxc mosh mpv needrestart obs-studio shadowsocks-libev sshfs synaptic tmux trash-cli ufw \ + vim-gtk3 vlc wl-clipboard` - Optional: - - `sudo apt install openjdk-17-jdk gthumb gnome-usage ranger - gnome-firmware gnome-games gnome-nettool qpdf pulseeffects - gnome-packagekit gnome-passwordsafe mkvtoolnix-gui virtualbox-qt syncplay` + - `sudo apt install gnome-firmware gnome-games gnome-nettool gnome-packagekit gnome-passwordsafe \ + gnome-shell-pomodoro gnome-usage gthumb mkvtoolnix-gui openjdk-17-jdk pulseeffectsqpdf ranger \ + syncplay virtualbox-qt` - 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-mark hold snapd 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 fallocate -l 8GiB /swapfile + sudo chmod 0600 /swapfile sudo mkswap /swapfile sudo swapon /swapfile ``` @@ -33,13 +34,10 @@ Here's my personal Ubuntu 22.04 setup. (Make sure to enable Wayland on Nvidia!) - `--avoid '(^|/)(systemd|sshd|mosh-server|ssh|vim|sudo|sudoedit|gnome-shell|gnome-terminal-)$' --prefer '(^|/)(Web Content|Isolated Web Co)$'` -- 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)`. +- ddcutil: + - `sudo usermod -aG i2c $(whoami)` + - External Monitor Brightness Up: `ddcutil setvcp 10 + 10` + - External Monitor Brightness Down: `ddcutil setvcp 10 - 10` ## Optional packages @@ -55,7 +53,7 @@ Here's my personal Ubuntu 22.04 setup. (Make sure to enable Wayland on Nvidia!) `$ 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 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` - 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 - `$ 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 -platform wayland || obs'` - 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` - Bottles - `flatpak install flathub com.usebottles.bottles` + - Check file system permission with Flatseal - Discord - `flatpak install flathub com.discordapp.Discord` + - Check file system permission with Flatseal - Slack - `flatpak install flathub com.slack.Slack` + - Check file system permission with Flatseal - Zoom - `flatpak install flathub us.zoom.Zoom` + - Check file system permission with Flatseal ## Optional Apps @@ -216,7 +225,7 @@ sudo chmod -R 700 /opt/grub ``` sudo apt install -y openssh-server mosh 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 usermod -aG ssh-users $(whoami) 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) -- = 20.10 & using wayland: no longer necessary +- \>= 21.10 & using wayland: no longer necessary - = 21.04: - `$ sudo apt install digimend-dkms` - Reboot.