Skip to content

Instantly share code, notes, and snippets.

@kingspp
Created April 12, 2019 18:10
Show Gist options
  • Save kingspp/eb252e1409f8379b553007f551555467 to your computer and use it in GitHub Desktop.
Save kingspp/eb252e1409f8379b553007f551555467 to your computer and use it in GitHub Desktop.
Raspberry Pi Configuration
#!/bin/bash
# Install required softwares
sudo apt-get update
sudo apt-get install fish -y
sudo chsh -s /usr/bin/fish
# Setup static IP -
# LAN - 192.168.0.99
# WLAN - 192.168.0.199
sudo cat <<EOF >> /etc/dhcpcd.conf
interface eth0
static ip_address=192.168.0.99/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
interface wlan0
static ip_address=192.168.0.199/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment