Skip to content

Instantly share code, notes, and snippets.

@qgeissmann
Last active August 29, 2015 14:07
Show Gist options
  • Save qgeissmann/e9761cd9c24065bfdf94 to your computer and use it in GitHub Desktop.
Save qgeissmann/e9761cd9c24065bfdf94 to your computer and use it in GitHub Desktop.
Post installation script of a n arch raspeberry pi
######################################
# To build the sd card, follow instructions @ http://archlinuxarm.org/platforms/armv6/raspberry-pi
# before that install sudo, and use visudo to allow root access to wheel users
######################################
sudo useradd -m -g users -G wheel -s /bin/bash psv
sudo passwd psv
############# PACKAGES #########################
### to setup a computer in the lab just after installing arch:
sudo pacman -S base-devel
cd /tmp/
curl -O https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz
tar zxvf package-query.tar.gz
cd package-query
makepkg -si
sudo pacman -U *.pkg.tar.xz
cd ..
curl -O https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz
tar zxvf yaourt.tar.gz
cd yaourt
makepkg -si
sudo pacman -U *.pkg.tar.xz
cd ..
#bootstrapping yaourt
yaourt -S yaourt
### Video capture related
yaourt -S opencv mplayer ffmpeg gstreamer gstreamer0.10-plugins mencoder
#### Note we should let pip deal with the python packages dependency
# a desktop environment may be useful
yaourt -S ytf-dejavu ttf-liberation ttf-bitstream-vera lxde xorg xorg-video-drivers xorg-input-drivers gamin gnome-icon-theme tango-icon-theme gtk-engines pm-utils udisks
# utilities
yaourt -S ntp bash-completion
######################################################################################
# enable networktime protocol
systemctrl start ntpd.service
systemctrl enable ntpd.service
# setting up ssh server
sudo systemctl enable ssh.service
sudo systemctl start ssh.service
@qgeissmann
Copy link
Author

get the script using curl https://gist.github.com/qgeissmann/e9761cd9c24065bfdf94/download > tmp.tar.gz
or
curl http://tinyurl.com/ndqq4m8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment