use i3
[distro-setup] / distro-begin
index 182a9d92ee2af270a22dfee2e30017c80720def2..1da0579e1fd704bf047d2e85b64c1b819f281097 100755 (executable)
@@ -134,6 +134,15 @@ EOF
     sudo systemctl daemon-reload # needed if the file was already there
     sudo systemctl enable keyscriptoff.service
     sudo systemctl start keyscriptoff.service
+
+    # from /usr/share/doc/dropbear-initramfs/README.initramfs.gz
+    while read m _; do /sbin/modinfo -F filename "$m"; done </proc/modules | \
+      sed -nr "s@^/lib/modules/`uname -r`/kernel/drivers/net(/.*)?/([^/]+)\.ko\$@\2@p" \
+          | sudo dd of=/etc/initramfs-tools/modules
+    sudo apt-get -y install initramfs-tools-core
+    # initram auth keys get setup with rootsshsync
+    # then for remote unlock, ssh and do this once per crypt disk:
+    # echo -n PASS >/lib/cryptsetup/passfifo
 fi
 ##### end setup encryption scripts ######
 
@@ -313,6 +322,7 @@ fi
 s lnf /q/root/.editor-backups /q/root/.undo-tree-history \
   /a/opt /a/c/.emacs.d $HOME/mw_vars /k/backup /root
 pi rsync # needed for rootsshsync
+/a/bin/ds/install-my-scripts # needed for rootsshsync
 rootsshsync
 s lnf /a/c/.vim /a/c/.vimrc /a/c/.gvimrc /root
 if has_p; then
@@ -575,17 +585,13 @@ if tp || x2 || x3; then
 fi
 
 
-##### install xmonad
+##### install x stuff
 if has_x; then
     pi ${p2[@]}
-    # note: on older ubuntu I used cabal xmonad + xfce, using cabal versin
-    # see /w/archive/programming/xmonad-cabal.sh
     if isarch; then
         # xorg-xmessage for displaying error messages.
         # optional dependency in arch, standard elsewhere.
-        pi xorg-server xorg-xmessage xmonad-contrib xorg-xsetroot xorg-xinit
-    else
-        pi suckless-tools
+        pi xorg-server xorg-xmessage xorg-xsetroot xorg-xinit
     fi
 fi