- Install
- Application Config and Notes
- Linux Mint Desktop Environment
- Debian Server Environment
- Dell Latitude 5450 Config
update apt, download and install updates, then install needed apps
sudo apt update && sudo apt upgrade -y
sudo apt install -y git vim stow yubikey-manageradd yubikey to ssh
ssh-add -Kclone this git repo to ".dotfiles" in home folder (url will vary)
git clone ssh://git@code.bonner.uk:2222/adambonneruk/linux.git ~/.dotfilesremove existing directories, they will be replaced with stow symlinks
rm ~/.bashrc ~/.ssh
stow -d ~/.dotfiles -t ~ bash ksnip lazygit ssh starship tmux vscodesudo apt install -y acpi btop curl ffmpeg figlet htop lolcat mc nwipe pass rclone smartmontools tmux tty-clock ufw tlp tlp-rdwCheck swappiness
cat /proc/sys/vm/swappinessSet it lower (e.g. 10):
sudo sysctl vm.swappiness=10Make permanent:
echo "vm.swappiness=10" | sudo tee /etc/sysctl.d/99-swappiness.confsudo ufw allow from 10.0.0.0/8 to any port 22 proto tcp
sudo ufw allow from 192.168.0.0/16 to any port 22 proto tcp
sudo ufw enableNetwork Connections > Wireguard > Import (+) > "wg0.conf"
- MTU: ```1280```
- Search Domain: ```bonner.uk```
sudo apt install -y audacity chromium digikam dropbox filezilla gimp keepass2 ksnip nemo-dropbox qbittorrent remmina veracrypt vlc wine-installer wireguard-tools xclipfwupdmgr get-devices
fwupdmgr refresh
fwupdmgr get-updates
fwupdmgr updatechmod 700 ~/.bash/logon.sh
chmod 700 ~/.bash/onepwclip.shDownload and Install FiraCode Nerd Font, Set Text Size 12
curl -sS https://starship.rs/install.sh | shDownload Visual Studio Code and Install
.deb
Export Extensions
code --list-extensions > ~/extensions.txtImport Extensions
cat extensions.txt | xargs -n 1 code --install-extensionpronounced: “TIK-sis”, IPA: /ˈtɪk.sɪs/
Install via flatpak
sudo apt install flatpak -y
flatpak install https://dl.flathub.org/repo/appstream/app.devsuite.Ptyxis.flatpakrefRun with --tab flag
flatpak run app.devsuite.Ptyxis --tabInstall via flatpak
sudo apt install flatpak -y
flatpak install io.github.vemonet.EmojiMartRun with --theme flag
flatpak run io.github.vemonet.EmojiMart --theme darkTBC
TBC
Install from Source/Release on GitHub
LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | \grep -Po '"tag_name": *"v\K[^"]*')
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz"
tar xf lazygit.tar.gz lazygit
sudo install lazygit -D -t /usr/local/bin/sudo apt install wine-installer -yTBC
Access via flag, -r is select by rectangle area
ksnip -rDon't track recent file changes etc. in .conf file
git update-index --skip-worktree ksnip/.config/ksnip/ksnip.conf || truegpg --quick-generate-key adam@bonner.uk
pass init adam@bonner.uk
pass insert 1passwordDownload and "Install" (i.e. copy) FIGlet fonts
mkcd ~/Projects && git clone ssh://git@code.bonner.uk:2222/adambonneruk/figlet.git
cd figlet
git submodule update --init --recursive
sudo cp ./fonts/*.{flf,tlf} /usr/share/figlet/Optionally test
chmod +x ./make.sh && ./make.sh > /dev/nullVerify virtualization support
egrep -c '(vmx|svm)' /proc/cpuinfo
dmesg | grep -e DMAR -e IOMMUInstall packages
sudo apt install qemu-kvm libvirt-daemon-system virt-manager ovmf bridge-utils spice-client-gtk virtiofsdAdd your user to libvirt + kvm groups:
sudo usermod -aG libvirt $USER
sudo usermod -aG kvm $USERRestart host machine
sudo reboot nowTBC
Install and Start vdagent
sudo apt update
sudo apt install spice-vdagent
sudo systemctl enable spice-vdagentd
sudo systemctl start spice-vdagentdRestart
sudo restart nowsudo apt install docker.io docker-composesudo apt remove -y transmission transmission-gtk transmission-commonTBC
Backup
dconf dump /org/cinnamon/desktop/keybindings/ > keybindings.dconfRestore
dconf load /org/cinnamon/desktop/keybindings/ < keybindings.dconfCopy with sudo, chown will be root:root
sudo cp /usr/share/backgrounds/example.jpg ~/Pictures/example.jpgSubstitute User to ROOT, Install Sudo and Vim, Add adam to sudoers
su
apt install sudo vim
sudo adduser adam sudoSubstitute back to USER and check sources list
su - $USER
sudo vim /etc/apt/sources.listrun visduo with vim
sudo EDITOR=vim visudo -f /etc/sudoers.d/adamadd this line and save/close
adam ALL=(ALL) NOPASSWD:ALL
clear cache and verify
sudo -K
sudo whoamiEdit SSHd Configuration
sudo vim /etc/ssh/sshd_configPubkeyAuthentication yes
PasswordAuthentication no
KbdInteractiveAuthentication no
ChallengeResponseAuthentication no
UsePAM yes
AllowUsers adam
Validate SSHd config
sudo sshd -tRestart SSHd
sudo systemctl reload sshTest
ssh -o PubkeyAuthentication=no adam@cargoship.bonner.ukNote: multiple services can trigger wake
cat /proc/acpi/wakeup | grep enabledCreate Service
sudo vim /etc/systemd/system/acpi-disable-wakeups.serviceEdit Contents
[Unit]
Description=Disable problematic ACPI wakeup sources
After=multi-user.target
[Service]
Type=oneshot
ExecStart=/bin/sh -c '\
echo XHCI > /proc/acpi/wakeup; \
echo RP11 > /proc/acpi/wakeup; \
echo TXHC > /proc/acpi/wakeup; \
echo TDM1 > /proc/acpi/wakeup; \
echo TRP2 > /proc/acpi/wakeup; \
echo TRP3 > /proc/acpi/wakeup'
[Install]
WantedBy=multi-user.targetEnable it
sudo systemctl daemon-reload
sudo systemctl enable acpi-disable-wakeups.serviceReboot
sudo reboot nowVerify
cat /proc/acpi/wakeup | grep enabledExpected Output
AWAC S4 *enabled platform:ACPI000E:00
LID0 S3 *enabled platform:PNP0C0D:00
PBTN S3 *enabled platform:PNP0C0C:00
Notes:
- LID0: Lid switch, Required so opening the lid wakes the laptop
- PBTN: Power button, Required so you can wake it manually
- AWAC: ACPI Wake Alarm Clock, Used for: RTC alarms, Timers etc.