Last active
September 3, 2023 22:27
-
-
Save alejandroacho/19365d9ec130c48b4dee3b2c2ce39401 to your computer and use it in GitHub Desktop.
Raspberry Pi server config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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