Skip to content

Instantly share code, notes, and snippets.

@Gutem
Last active August 29, 2015 14:16
Show Gist options
  • Save Gutem/ca2a77ad565a00eac3d2 to your computer and use it in GitHub Desktop.
Save Gutem/ca2a77ad565a00eac3d2 to your computer and use it in GitHub Desktop.
Post install of a vanilla ArchLinux on RaspberryPi
#!/bin/bash
pacman-key --init
# Make a download folder
mkdir $HOME/downloads
cd ~/downloads
# Update repositories and update software.
pacman -Syu
# Apps to Install
pacman_apps=(
base-devel
sudo
wget
adduser
openssh
openvpn
openresolv
git-core
gcc
python2
python3
unzip
# ZSH
zsh
# wifi things
iw
wpa_supplicant
dialog
wpa_actiond
#Xorg
xorg-xinit
xorg-server
xf86-video-fbturbo-git
lxde
)
# Install Apps w/o confirmation
pacman -S --noconfirm ${pacman_apps[@]}
# Change shell to zsh and install oh-my-zsh
chsh -s $(which zsh)
curl -L https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh | sh
# Start and enable SSH on startup
netctl enable sshd.service
netctl start sshd.service
# Config, start and enable Wifi on startup
wifi-menu -o
WIFI_SSID=`ls /etc/netctl/ | grep wlan`
netctl enable $WIFI_SSID
netctl start $WIFI_SSID
# Xorg conf
echo "exec startlxde" > ~/.xinitrc
# VPN's DNS Openresolv script
wget https://github.com/masterkorp/openvpn-update-resolv-conf/raw/master/update-resolv-conf.sh
chmod +x update-resolv-conf.sh
mv update-resolv-conf.sh /etc/openvpn/
cp /usr/lib/systemd/system/openvpn@.service /etc/systemd/system/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment