Skip to content

Instantly share code, notes, and snippets.

@Eidansoft
Last active January 1, 2020 23:29
Show Gist options
  • Save Eidansoft/289870d75823888a6b81c47939333a06 to your computer and use it in GitHub Desktop.
Save Eidansoft/289870d75823888a6b81c47939333a06 to your computer and use it in GitHub Desktop.
# Install Raspbian SO, you can get it at https://www.raspberrypi.org/documentation/installation/installing-images/
# Connect to a screen and login onto the raspberry, user "pi", password "raspberry"
# Activate the SSH server running the command:
sudo raspi-config
# Select and then 7-Advance Options -> Expand Filesystem
# Select and 5-Interfacing Options -> Activate the SSH server.
# Also want to 4-Localisation Options -> configure the WiFi country; at select and select your contry.
# After those changes you need to reboot the machine.
# Change the default password for the user 'pi'
passwd
# To set a fixed ip for the machine, I like to do it at the router, but to do it directly at raspberry
# just edit /etc/dhcpcd.conf to un comment and fulfill the below lines:
nano /etc/dhcpcd.conf
# Example static IP configuration:
interface eth0
static ip_address=192.168.100.101
static ip6_address=ffff:ffff:ffff:ffff::ff/64
static routers=192.168.100.100
static domain_name_servers=8.8.8.8 8.8.4.4 aaaa:aaaa:aaaa:aaaa::1
# Update and Upgrade the repositories and dependencies:
sudo apt-get update
sudo apt-get upgrade
#Install useful utilities
sudo apt-get install tmux git ntp etherwake
# And configure the NTP
sudo timedatectl set-timezone Europe/Madrid
# Clean the temporal files for apt
sudo apt-get clean
# Install Docker:
sudo curl -sSL https://get.docker.com/ | sh
# And then the docker compose, for this I need python3 (by default) and pip
sudo apt-get install python3-pip
sudo pip3 install docker-compose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment