# xawtv has webcam cli control. v4lctl bright 80%; v4lctl list
# guvcview also adjusts webcam
simple_packages+=(
+ adb
apache2
apache2-doc
apt-doc
jq
kid3-qt
kid3-cli
+ linphone
linux-doc
locate
lshw
# Set gui username and password.
#
# install syncthing via f-droid,
- # folder setting, turn off master folder (makes it read only).
+ # folder setting, turn off send only.
# on phone, add device, click bar code icon
# on dekstop, top right, actions, device id
# after adding, notification will appear on desktop to confirm
# notification will appear in android\'s notifications, you have to
# swipe down and tap it to add the folder. It won\'t appear in the
# syncthing ui, which would be intuitive, but don\'t wait for it
- # there.
+ # there. The notification may not work, instead open the web gui
+ # from in the app, there should be a notification within there.
#
# On phone, set settings to run syncthing all the time, and
# show no notification.
####### begin misc packages ###########
+### begin spd install
+
+pi libswitch-perl libdigest-md5-file-perl libgnupg-interface-perl
+t=$(mktemp)
+wget -O $t http://mirror.fsf.org/fsfsys-trisquel/fsfsys-trisquel/pool/main/s/spd-perl/spd-perl_0.2-1_amd64.deb
+s dpkg -i $t
+rm $t
+# this guesses at the appropriate directory, adjust if needed
+x=(/usr/lib/x86_64-linux-gnu/perl/5.*)
+sudo ln -s ../../../perl/5.18.2/SPD/ $x
+# newer distro had gpg2 as default, older one, flidas, need to make it that way
+x=$(which gpg2)
+if [[ $x ]]; then
+ lnf -T $x /usr/local/bin/gpg
+fi
+### end spd install
+
+
if [[ $HOSTNAME == kw ]]; then
cat <<'EOF'
NOTE: after this finishes, i did
shift
apps=($@)
d=/nocow/schroot/$n
- if [[ -e $d/bin ]]; then
- s chroot $d apt-get update
- s chroot $d apt-get -y dist-upgrade --purge --auto-remove
- s schroot -c $n -- apt-get install --allow-unauthenticated -y ${apps[@]}
- else
- s mkdir -p $d
- s debootstrap $n $d http://deb.debian.org/debian/
- s dd of=/etc/schroot/chroot.d/$n.conf <<EOF
+ s dd of=/etc/schroot/chroot.d/$n.conf <<EOF
[$n]
description=$n
type=directory
directory=$d
profile=desktop
preserve-environment=true
-users=$USER
+users=$USER,traci
EOF
-
- s cp -P {,$d}/etc/localtime
- cd #schroot fails if our current directory is not in the chroot
- s schroot -c $n -- apt-get install --allow-unauthenticated -y ${apps[@]}
+ if [[ -e $d/bin ]]; then
+ s chroot $d apt-get update
+ s chroot $d apt-get -y dist-upgrade --purge --auto-remove
+ cd; s schroot -c $n -- apt-get install --allow-unauthenticated -y ${apps[@]}
+ else
+ s mkdir -p $d
+ s debootstrap $n $d http://deb.debian.org/debian/
+ cd; s schroot -c $n -- apt-get install --allow-unauthenticated -y ${apps[@]}
fi
+ s cp -P {,$d}/etc/localtime
+
}
# for my roommate
case $distro in
trisquel)
mkschroot stretch firefox-esr pulseaudio chromium
- ;;
+ ;;
esac
s mkdir -p /nocow/user
case $distro in
arch) spa firefox pulseaudio;;
- *) : ;; # comes default or with other packages
+ trisquel) spa abrowser ;;
+ *) : ;; # comes default or with other packages, or uknown
esac
########### misc stuff
+
+
+
# stop autopoping windows when i plug in an android phone.
# dbus-launch makes this work within an ssh connection, otherwise you get this message,
# with still 0 exit code.