Skip to content

Instantly share code, notes, and snippets.

@theodric
Last active August 13, 2024 19:57
Show Gist options
  • Save theodric/8cf4f922c1a285b9cd1c1f38eef9d55b to your computer and use it in GitHub Desktop.
Save theodric/8cf4f922c1a285b9cd1c1f38eef9d55b to your computer and use it in GitHub Desktop.
Minimum setup script for Debian 10+
#!/bin/bash
wget https://archive.raspbian.org/raspbian.public.key -O - | sudo apt-key add -
echo deb http://archive.raspbian.org/raspbian wheezy main contrib non-free >> /etc/apt/sources.list
apt update; apt install nano tmux htop hdparm sudo net-tools whois cmatrix cowsay fortune-mod sysvinit-utils nfs-common nfs-kernel-server openssh-server systemd-sysv avahi-daemon wget curl unar gnupg2 sdparm plocate git build-essential mosquitto-clients iftop iperf3 iperf lshw mosh lynx links ncdu rsync sysstat hd-idle fwupd samba smbclient btop
## 2023-08-04 have subbed plocate in place of mlocate
curl 'https://liquorix.net/add-liquorix-repo.sh' | sudo bash && sudo apt -yf install linux-image-liquorix-amd64 linux-headers-liquorix-amd64##add liquorix bleeding-edge kernels
apt install wireguard translate-shell npm
apt install pigpio-tools gpiod rpi.gpio-common
apt install colossal-cave-adventure tfortune tfortunes fortunes-ga haskell-misfortune dopewars 9base fortune-anarchism display-dhammapada fortunes bsdgames bsdgames-nonfree
#next line is only to add cloudflared
echo 'deb [signed-by=/usr/share/keyrings/cloudflare-main.gpg] https://pkg.cloudflare.com/ buster main' | sudo tee /etc/apt/sources.list.d/cloudflare-main.list; sudo curl https://pkg.cloudflare.com/cloudflare-main.gpg -o /usr/share/keyrings/cloudflare-main.gpg; apt update; apt -yf install cloudflared
#viddy (watch successor)
#x86_64
wget -O viddy.tar.gz https://github.com/sachaos/viddy/releases/download/v0.3.4/viddy_0.3.4_Linux_x86_64.tar.gz && tar xvf viddy.tar.gz && mv viddy /usr/local/bin
#arm64
wget -O viddy.tar.gz https://github.com/sachaos/viddy/releases/download/v0.3.4/viddy_0.3.4_Linux_arm64.tar.gz && tar xvf viddy.tar.gz && mv viddy /usr/local/bin
#armv6
wget -O viddy.tar.gz https://github.com/sachaos/viddy/releases/download/v0.3.4/viddy_0.3.4_Linux_armv6.tar.gz && tar xvf viddy.tar.gz && mv viddy /usr/local/bin
apt remove dropbear
systemctl stop dropbear git
killall dropbear
echo PermitRootLogin yes >> /etc/ssh/sshd_config
systemctl enable ssh nfs-kernel-server avahi-daemon
systemctl start ssh nfs-kernel-server avahi-daemon
cd /usr/src && git clone https://github.com/jaseg/lolcat && cd ./lolcat && make install && cd -
mkdir /nfs
echo "deb http://packages.azlux.fr/debian/ buster main" | sudo tee /etc/apt/sources.list.d/azlux.list
wget -qO - https://azlux.fr/repo.gpg.key | sudo apt-key add -
apt update
apt install log2ram
systemctl enable log2ram
systemctl start log2ram
updatedb
#. <( wget -O - https://code.headmelted.com/installers/apt.sh )
#git clone https://github.com/jaseg/lolcat && cd ./lolcat && make install
## and while you're at it, edit /etc/default/grub and add
## GRUB_CMDLINE_LINUX_DEFAULT="panic=5 vga=788 RESUME=none nospectre_v1 nospectre_v2 net.ifnames=0 biosdevname=0"
npx speed-cloudflare-cli
## box86 and box64 prebuilt for Debian arm64
# https://github.com/fengxue-jrql/box86-and-box64-for-arm64/releases/tag/box86andbox64wine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment