Skip to content

Instantly share code, notes, and snippets.

@salopst
Last active May 26, 2024 12:18
Show Gist options
  • Save salopst/4a862fd3c5ec3ccf083f807bdf074188 to your computer and use it in GitHub Desktop.
Save salopst/4a862fd3c5ec3ccf083f807bdf074188 to your computer and use it in GitHub Desktop.

Linux Mint 21.3 x86_64

Cinnamon 6.0.4

Pop!_OS wouldn't drive my ancient HP L(aserjet 4050, hence a Mint install. This is as minimal as can be, with a nod to maybe using i3 in the future.

from ventoy disk

Apt

sudo apt install -y arp-scan copyq i3 flameshot rofi ssh tmux x11-xserver-utils zsh 

#virtualization
sudo apt install -y qemu bash coreutils ovmf grep jq lsb procps python3 genisoimage usbutils util-linux sed spice-client-gtk swtpm wget xdg-user-dirs zsync unzip qemu-utils

mkdir ~/VMs && cd VMs
git clone https://github.com/quickemu-project/quickemu.git
./quickemu/quickget macos monterey
./quickemu/quickemu --vm macos-monterey --display spice



# allow VNC
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino require-encryption false
gsettings set org.gnome.Vino vnc-password $(echo -n '1111'|base64)
gsettings set org.gnome.settings-daemon.plugins.sharing active true
eths=$(nmcli -t -f uuid,type c s --active | grep 802 | awk -F  ":" '{ print "'\''" $1 "'\''" }' | paste -s -d, -)
gsettings set org.gnome.settings-daemon.plugins.sharing.service:/orghttps://github.com/containers/podman/issues/12775

# Neovim
cd ~/Downloads && curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
sudo rm -rf /opt/nvim
sudo mv /usr/bin/nvim /usr/bin/nvim-old 
sudo tar -C /usr/bin -xzf nvim-linux64.tar.gz
sudo cp /usr/bin/nvim-linux64/bin/nvim /usr/bin/ 
echo "alias nvim='/usr/bin/nvim-linux64/bin/nvim'" >> ~/.bashrc
echo "alias nvim='/usr/bin/nvim-linux64/bin/nvim'" >> ~//.zshrc

# syncthing
sudo mkdir -p /etc/apt/keyrings
sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
sudo apt install update
sudo apt install -y syncthing
sudo apt install -y vino  # GNOME VNC server
sudo apt install -y x11vnc net-tools

install Haskell stack ... and Kmonad

curl -sSL https://get.haskellstack.org/ | sh
mkdir ~/src && cd ~/src
https://github.com/kmonad/kmonad.git
cd kmonad
stack build
stack install

# Add self to the input and uinput groups
sudo usermod -aG input $USER
sudo groupadd uinput
sudo usermod -aG uinput $USER

install Rust stack:

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
cargo install bat eza espanso

flatpaks

flatpak install flathub com.visualstudio.code
flatpak install flathub com.tomjwatson.Emote
flatpak install flathub com.google.Chrome

login into and sync vscode... requires github account.

Basic networking

# allow ssh
systemctl enable ssh && systemctl start ssh
sudo apt install -y x11vnc net-tools

# allow VNC
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino require-encryption false
gsettings set org.gnome.Vino vnc-password $(echo -n '1111'|base64)
gsettings set org.gnome.settings-daemon.plugins.sharing active true
eths=$(nmcli -t -f uuid,type c s --active | grep 802 | awk -F  ":" '{ print "'\''" $1 "'\''" }' | paste -s -d, -)
gsettings set org.gnome.settings-daemon.plugins.sharing.service:/org/gnome/settings-daemon/plugins/sharing/vino-server/ enabled-connections "[ $eths ]"

~.Xresorces

Xft.dpi:        132
Xft.antialias:  1
Xft.hinting:    1
Xft.hintstyle:  hintslight
Xft.rgba:       rgb
Xcursor.size:   24
Xcursor.theme:  Adwaita
! Use a truetype font and size.
xterm*faceName: Monospace
xterm*faceSize: 14
! then run
! xrdb -merge ~/.Xresources

modify .bashrc

[[ -f ~/.Xresources ]] && xrdb -merge ~/.Xresources

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