Created
April 12, 2019 18:10
-
-
Save kingspp/eb252e1409f8379b553007f551555467 to your computer and use it in GitHub Desktop.
Raspberry Pi Configuration
This file contains hidden or 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
#!/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