# already ran for pxe installs, but used for vps & updates
distro=$(distro-name)
case $distro in
- ubuntu|debian)
+ ubuntu|debian|trisquel)
sudo bash -c ". /a/bin/fai/fai-wrapper && /a/bin/fai/fai/config/scripts/GRUB_PC/11-ian"
;;
*)
tu /etc/sudoers <<'EOF'
ian ALL=(ALL) NOPASSWD: ALL
Defaults env_keep += SUDOD
+# makes ubuntu be like debian
+# https://unix.stackexchange.com/a/91572
+Defaults always_set_home
EOF
isfedora && tu /etc/sysctl.conf 'kernel.sysrq = 1'
-if isdebian; then
- codename=$(debian-codename)
+if isdeb; then
if isdebian-stable && has_x; then
+ codename=$(debian-codename)
s dd of=/etc/apt/sources.list.d/mozilla-iceweasel.list <<EOF
deb http://mozilla.debian.net/ $codename-backports firefox-release
deb-src http://mozilla.debian.net/ $codename-backports firefox-release
pi $p
fi
;;&
- ubuntu|debian)
+ trisquel|ubuntu|debian)
if has_x; then
- if isdebian-stable; then
- pi xmacro
- else
+ if isdebian-testing; then
pi xmacro/unstable # has no unstable deps
+ else
+ pi xmacro
fi
pi gtk-redshift xinput
fi
fi
;;&
- ubuntu|debian|fedora)
+ ubuntu|trisquel|debian|fedora)
if has_x; then
- if isdebian-stable; then
- pi xkbset
- else
+ if isdebian-testing; then
# xkbset was in testing for quite a while, dunno
# why it\'s not anymore. Sometime I should check and
# see if it\'s back in testing, but the unstable package
# doesn\'t upgrade anything form testing, and it\'s tiny
# so I\'m not bothering to automate it.
pi xkbset/unstable
+ else
+ pi xkbset
fi
fi
;;&
s dd of=/etc/systemd/system/imount.service <<'EOF'
[Unit]
Description=Mount /i and related mountpoints
-RequiredBy=syncthing@ian.service
Before=syncthing@ian.service
[Service]
ExecStart=/root/imount
[Install]
+RequiredBy=syncthing@ian.service
# note /kr needs networking, this target is the simplest way to
# time it when the network should be up, but not do something
# dumb like delay startup until the network is up. It happens
fi
if isubuntu; then
- # disable crash report annoying crap
+ # disable crash report annoying dialogs.
s dd of=/etc/default/apport <<<'enabled=0'
fi
fi
pi dmenu
- if isdeb && (tp || x2); then
- pi task-laptop
+ if tp || x2; then
+ case $distro in
+ debian)
+ pi task-laptop
+ ;;
+ ubuntu|trisquel)
+ # the exact packages that task-laptop would install, since ubuntu
+ # doesn\'t have this virtual in practice package.
+ pi avahi-autoipd bluetooth powertop iw wireless-tools wpasupplicant
+ ;;
+ # todo: other distros unknown
+ esac
fi
fi