home · contact · privacy
Add basic w530-specific setup scripting.
[config] / buster / setup_scripts / setup_desktop.sh
index e5aa7078fece68e11d8eb9c59214dbe03d32ff3a..16074f54fd564f82980a81c72d49e2fdc558e261 100755 (executable)
@@ -5,7 +5,7 @@ if [ "$#" -ne 1 ]; then
     echo 'Need exactly one argument (system name).'
     false
 fi
-if [ ! "$1" = "eeepc" ] && [ ! "$1" = "x200s" ]; then
+if [ ! "$1" = "eeepc" ] && [ ! "$1" = "x200s" ] && [ ! "$1" = "w530" ]; then
     echo "Need legal system name."
     false
 fi
@@ -15,12 +15,26 @@ system_name="$1"
 config_tree_prefix="${HOME}/config/buster"
 setup_scripts_dir="${config_tree_prefix}/setup_scripts"
 cd "${setup_scripts_dir}"
-./setup.sh "${system_name}" ""
-./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" user "${system_name}"
-./install_for_target.sh user "${system_name}"
+./setup.sh "${system_name}" "" user desktop "${system_name}"
+if [ "$1" = "x200s" ] || [ "$1" = "w530" ]; then
+  ./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" thinkpad
+fi
+# TODO: these /should/ redundant, try out without them:
+#./copy_dirtree.sh "${config_tree_prefix}/etc_files" "" user desktop "${system_name}"
+#./install_for_target.sh user desktop "${system_name}"
+
+# For hibernation on lid switch to work, we need a newer kernel on the EeePC,
+# see <https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919227>.
+if [ "${system_name}" = "eeepc" ]; then
+    apt -y install -t buster-backports linux-image-amd64
+fi
+
+# Set up printer.
+lpadmin -p 'HP_Deskjet_F300_series' -m 'drv:///hpcups.drv/hp-deskjet_f300_series.ppd' -o 'OutputMode=NormalGray' -E
+service cups restart
 
 # Install Firefox directly from Mozilla.
-firefox_release="68.1.0esr"
+firefox_release="68.4.1esr"
 firefox_filename="firefox-${firefox_release}.tar.bz2"
 url_firefox="https://ftp.mozilla.org/pub/firefox/releases/${firefox_release}/linux-x86_64/en-US/${firefox_filename}"
 wget "${url_firefox}"
@@ -42,7 +56,7 @@ url_umatrix="https://github.com/gorhill/uMatrix/releases/download/${umatrix_vers
 wget "${url_umatrix}"
 name=$(unzip -p "${umatrix_xpi}" manifest.json | jq -r .applications.gecko.id)
 mv "${umatrix_xpi}" "${name}".xpi
-tridactyl_version="1.16.3pre3162"
+tridactyl_version="1.17.1pre3355"
 tridactyl_xpi="tridactyl_beta-${tridactyl_version}-an+fx.xpi"
 url_tridactyl="https://tridactyl.cmcaine.co.uk/betas/${tridactyl_xpi}"
 wget "${url_tridactyl}"