-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathraspi-setup.sh
31 lines (24 loc) · 952 Bytes
/
raspi-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/bash -e
# Configure .bash_aliases
sudo touch /home/pi/.bash_aliases
echo 'alias cls="clear"' | sudo tee -a /home/pi/.bash_aliases
echo 'alias ll="ls -al"' | sudo tee -a /home/pi/.bash_aliases
# Update, remove bloat + install apps
sudo apt update -y
sudo apt remove thonny geany -y
sudo apt install libreoffice syncthing syncthing-gtk tmux ntfs-3g fail2ban -y --no-install-recommends
sudo apt autoremove -y
# Disable screensleep
echo "Disabling screensleep..."
echo '@xset s off' | sudo tee -a /etc/xdg/lxsession/LXDE-pi/autostart
echo '@xset -dpms' | sudo tee -a /etc/xdg/lxsession/LXDE-pi/autostart
echo "Disabled screensleep..."
# Make reconfigure.sh executable
sudo chmod +x /home/pi/raspi-setup/reconfigure.sh
sudo chmod +x /home/pi/raspi-setup/kiosk-configure.sh
sudo ./reconfigure.sh
echo "Make sure to set the hostname manually using raspi-config!"
# Reboot
# echo "This machine will reboot in 5 seconds..."
# sleep 5
# sudo reboot