4 CHANNEL=${CHANNEL:=devel-proposed}
5 MYNAME=$(getent passwd `whoami` | cut -f5 -d: | cut -f1 -d,)
6 MYMAIL=${DEBMEMAIL:-$EMAIL}
8 # flash the latest image
9 ubuntu-device-flash --channel devel-proposed
12 adb shell "touch /userdata/.writable_image"
14 adb shell "timedatectl set-timezone `cat /etc/timezone`"
16 echo "rebooting to activate writable image..."
21 phablet-network -n /etc/NetworkManager/system-connections/pittinet
23 # install some necessary packages
24 adb shell "apt-get install -y vim bzr build-essential fakeroot"
26 # set up bzr, vim, ssh
27 adb shell "su -c 'mkdir ~/.ssh' phablet"
28 adb push ~/.ssh/id_rsa.pub /home/phablet/.ssh/authorized_keys
29 adb shell "chmod 600 /home/phablet/.ssh/authorized_keys"
30 if [ -e ~/.vimrc ]; then
31 adb push ~/.vimrc /home/phablet/.vimrc
32 adb shell "echo 'set bg=light' >> /home/phablet/.vimrc"
34 adb shell "chown -R phablet:phablet /home/phablet"
38 adb forward tcp:22000 tcp:22