Steps written for 2017-11-29-raspbian-stretch-lite.img at the time of this writing.
Since I'm from the US and primarily use my Raspberry Pis on my Atrix Lapdock, I use these settings:
- en_US.UTF-8 UTF-8
- US/Pacific Ocean
- Generic 104-key PC
- No AltGr key
- No compose key
Shell in using ssh -o PubkeyAuthentication=no pi@xxx.xxx.xxx.xxx and run:
sudo apt-get updatesudo apt-get install vim gitsudo apt-get upgradesudo apt-get autoremove
sudo update-alternatives --set editor /usr/bin/vim.basic
curl https://raw.githubusercontent.com/Robpol86/dotfiles/master/vimrc |sudo tee -a /etc/vim/vimrc
curl https://raw.githubusercontent.com/Robpol86/dotfiles/master/bashrc.sh |sudo tee /etc/skel/.bashrc
curl https://raw.githubusercontent.com/Robpol86/dotfiles/master/bash_profile.sh |sudo tee -a /etc/skel/.bashrc
cp /etc/skel/.bashrc ~/.bashrc
sudo bash -c 'cp /etc/skel/.bashrc ~/.bashrc'
bash -lc _robpol86_run_oncesudo apt-get install python-pip libssl-devsudo pip install tox
for v in 3.3.6 3.4.3; do
cd; wget https://www.python.org/ftp/python/$v/Python-$v.tgz
tar -xzf Python-$v.tgz; cd Python-$v
./configure --prefix=/usr/local && make && sudo make altinstall
sudo ln -s /usr/local/bin/python${v::3} /usr/bin/python${v::3}
wget https://bootstrap.pypa.io/get-pip.py -O - |sudo python${v::3}
sudo ln -s /usr/local/bin/pip${v::3} /usr/bin/pip${v::3}
sudo pip${v::3} install virtualenv
done
sudo rm /usr/local/bin/pipp=pypy3-2.4.0
cd; wget https://bitbucket.org/pypy/pypy/downloads/$p-linux-armhf-raspbian.tar.bz2
sudo mkdir /opt/$p
sudo tar -xjf $p-linux-armhf-raspbian.tar.bz2 -C /opt/$p --strip 1
sudo ln -s /opt/$p/bin/pypy3 /usr/bin/pypy3Here I'll use terminaltables as an example.
mkdir -p ~/workspace/terminaltables/.git
cd !$ && git init --bare
cat << EOF > hooks/post-receive
#!/bin/bash
while read oldrev newrev ref; do
branch=\$(echo \$ref |cut -d/ -f3)
export GIT_WORK_TREE=../\$branch
[ ! -e \$GIT_WORK_TREE ] && mkdir -p \$GIT_WORK_TREE
git clean -f -d
git checkout -f \$branch
done
EOF
chmod +x hooks/post-receiveRun this command on the "client":
git remote add rpi ssh://pi@raspberrypi/home/pi/workspace/terminaltables/.git