Skip to content

Latest commit

 

History

History
executable file
·
120 lines (105 loc) · 2.81 KB

File metadata and controls

executable file
·
120 lines (105 loc) · 2.81 KB

Setup for Raspberry Pi

fish shell

sudo apt-get install fish
chsh -s $(which fish)
# install fisher + fzf (using fish shell)
curl -sL https://git.io/fisher | source && fisher install jorgebucaran/fisher
sudo apt-get install fzf
fisher install jethrokuan/fzf
# install exa
brew install exa
# install starship.rs
curl -sS https://starship.rs/install.sh | sh
# add "starship init fish | source" to ~/.config/fish/config.fish

mount nfs / samba

# manually for nfs
sudo mkdir /mnt/Shared
sudo mount -t nfs 10.10.0.10:/Shared /mnt/Shared

# automatically for nfs
sudo mkdir /mnt/Shared
sudo vi /etc/fstab
# <file system> <dir> <type> <options> <dump> <pass>
# 10.10.0.10:/Shared /mnt/Shared nfs defaults 0 0
sudo mount -a

# manual mount for samba/cifs
sudo mkdir /mnt/Shared
# uid=$(id =u)
# gid=$(id -g)
sudo mount -t cifs -o username=user,password=password,uid=1000,gid=1000,file_mode=0777,dir_mode=0777,vers=2.0 //10.10.0.10/Shared /mnt/Shared

# automatically for samba/cifs
sudo mkdir /mnt/Shared
sudo vi /etc/fstab
# <file system> <dir> <type> <options> <dump> <pass>
# //10.10.0.10/Shared /mnt/Shared cifs username=user,password=password,uid=1000,gid=1000,file_mode=0777,dir_mode=0777,vers=2.0 0 0
sudo mount -a

openvpn

sudo apt-get install openvpn
sudo cd /etc/openvpn
sudo cp [*.ovpn] .
# start
sudo openvpn --config [*.ovpn] --daemon
# shutdown
sudo killall -SIGINT openvpn

ssh

sudo raspi-config
# enable "Interfacing Options" -> "SSH" 

transmission

sudo apt install transmission-daemon

# edit configs
sudo systemctl stop transmission-daemon
sudo vi /etc/transmission-daemon/settings.json
# blocklist-url = http://list.iblocklist.com/?list=bt_level1
# rpc-authentication-required = false
# rpc-whitelist-enabled = false

# add permissions
sudo usermod -aG debian-transmission $USER
sudo systemctl daemon-reload
sudo systemctl start transmission-daemon

vnc server (RealVNC)

sudo raspi-config
# enable "Interfacing Options" -> "VNC" 
# set "Advanced Options" -> "Resolution" to "1920x1080"
# reboot

dig

sudo apt-get install dnsutils
# check for external ip
dig +short myip.opendns.com @resolver1.opendns.com

docker + docker-compose

# install docker
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker $USER
sudo systemctl enable docker

# install docker-compose
sudo apt-get install libffi-dev libssl-dev
sudo apt install python3-dev
sudo apt-get install -y python3 python3-pip
sudo pip3 install docker-compose

pi-hole via docker

# install
git clone https://github.com/pi-hole/docker-pi-hole.git
cd docker-pi-hole
cp docker-compose.yml.example docker-compose.yml
docker-compose up -d
# get new password
docker exec -it <container_id> pihole -a -p
# upgrade pi-hole
docker pull pihole/pihole
docker-compose up -d