Skip to content

Instantly share code, notes, and snippets.

@Alejandroacho
Last active September 3, 2023 22:27
Show Gist options
  • Save Alejandroacho/19365d9ec130c48b4dee3b2c2ce39401 to your computer and use it in GitHub Desktop.
Save Alejandroacho/19365d9ec130c48b4dee3b2c2ce39401 to your computer and use it in GitHub Desktop.
Raspberry Pi server config
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
echo " Updating "
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
apt update
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
echo " Upgrading "
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
apt upgrade -y
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
echo " Installing Vim "
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
apt-get install vim -y
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
echo " Installing Git "
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
apt-get install git -y
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
echo " Installing Python 3 "
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
apt-get install python3 python3-pip python3-setuptools -y
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
echo " Installing Docker "
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
curl -fsSL test.docker.com -o get-docker.sh && sh get-docker.sh
apt-get install libffi-dev libssl-dev
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
echo " Installing Docker Compose "
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
apt-get install docker-compose
# systemctl enable docker
# echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
# echo " Installing MySQL "
# echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
# apt-get install mariadb-server
# mysql_secure_installation
# systemctl status mysql.service
# echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
# echo " Installing Pironman "
# echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
# cd ~
# git clone https://github.com/sunfounder/pironman.git -b v2.0
# cd ~/pironman
# python3 install.py
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
echo " Finished, remember: "
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''"
echo "raspi-config -> To configure raspberry things"
echo "sudo dpkg-reconfigure console-setup -> To set up the terminal font"
echo "lsblk -> Show all external devices"
echo "sudo mkdir /mnt/USB && sudo mount /dev/sda1 /dev/sda1 -> Mount on USB folder"
echo "sudo umount /mnt/USB -> Unmount a mounted device"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment