Last active
August 29, 2015 14:16
-
-
Save Gutem/ca2a77ad565a00eac3d2 to your computer and use it in GitHub Desktop.
Post install of a vanilla ArchLinux on RaspberryPi
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
#!/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/[email protected] /etc/systemd/system/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment