浏览代码

enable headless packer build

comment out `xdg-user-dirs-update` commands to verify `user-dirs.dirs` file

add todo file
Casey DeLorme 5 年之前
父节点
当前提交
6bf27d79e0
共有 3 个文件被更改,包括 41 次插入11 次删除
  1. 10 10
      arch.sh
  2. 1 1
      packer.json
  3. 30 0
      todo.md

+ 10 - 10
arch.sh

@@ -214,16 +214,16 @@ if [[ -n "$username" && -n "$password" ]]; then
 	su postgres -c "cd && createuser -ds $username" 2> /dev/null && su $username -c "cd && createdb"
 
 	# configure home directories
-	su $username -c "cd && mkdir -p ~/{desktop,downloads,templates,public,documents,music,pictures,videos,git}"
-	su $username -c 'cd && xdg-user-dirs-update --set DESKTOP $HOME/desktop'
-	su $username -c 'cd && xdg-user-dirs-update --set DOWNLOAD $HOME/downloads'
-	su $username -c 'cd && xdg-user-dirs-update --set TEMPLATES $HOME/templates'
-	su $username -c 'cd && xdg-user-dirs-update --set PUBLICSHARE $HOME/public'
-	su $username -c 'cd && xdg-user-dirs-update --set DOCUMENTS $HOME/documents'
-	su $username -c 'cd && xdg-user-dirs-update --set MUSIC $HOME/music'
-	su $username -c 'cd && xdg-user-dirs-update --set PICTURES $HOME/pictures'
-	su $username -c 'cd && xdg-user-dirs-update --set VIDEOS $HOME/videos'
-	su $username -c 'cd && xdg-user-dirs-update'
+	su $username -c "cd && mkdir -p ~/{desktop,downloads,templates,public,documents,music,pictures,videos,git} && xdg-user-dirs-update && update-desktop-database"
+	# su $username -c 'cd && xdg-user-dirs-update --set DESKTOP $HOME/desktop'
+	# su $username -c 'cd && xdg-user-dirs-update --set DOWNLOAD $HOME/downloads'
+	# su $username -c 'cd && xdg-user-dirs-update --set TEMPLATES $HOME/templates'
+	# su $username -c 'cd && xdg-user-dirs-update --set PUBLICSHARE $HOME/public'
+	# su $username -c 'cd && xdg-user-dirs-update --set DOCUMENTS $HOME/documents'
+	# su $username -c 'cd && xdg-user-dirs-update --set MUSIC $HOME/music'
+	# su $username -c 'cd && xdg-user-dirs-update --set PICTURES $HOME/pictures'
+	# su $username -c 'cd && xdg-user-dirs-update --set VIDEOS $HOME/videos'
+	# su $username -c 'cd && xdg-user-dirs-update'
 	update-desktop-database
 
 	# generate default (passwordless) ed25519 ssh key if none exists

+ 1 - 1
packer.json

@@ -8,7 +8,7 @@
 	},
 	"builders": [
 		{
-			"headless": false,
+			"headless": true,
 			"type": "virtualbox-iso",
 			"iso_url": "{{ user `iso_url` }}",
 			"iso_checksum_url": "{{ user `iso_checksum_url` }}",

+ 30 - 0
todo.md

@@ -0,0 +1,30 @@
+
+# todo
+
+- verify `user-dirs.conf` works without running `xdg-user-dirs-update --set` commands
+
+- verify `bluetoothctl` works (_requires a system with a bluetooth adapter_)
+
+- investigate `laptop-mode-tools` configuration (_on an actual laptop_)
+	- modify `panel_items = LTSCB` in `~/.config/tint2/tint2rc` for displaying battery
+
+- verify `locale-gen` with `ja_JP.UTF-8` works without any problems
+	- test `fcitx-mozc` or alternatives for GUI selection and IME support
+
+- enhance `setup/install.sh` to parameterize or ask for the main disk
+
+- enhance `setup/install.sh` such that it can intelligently size swap
+	- detect if laptop (`pacman -S dmidecode`) or ask if user wishes to enable hibernation
+	- detect memory total (`cat /proc/meminfo | grep "MemTotal" | awk '{print $2}'`)
+		- if no hibernation
+			- total > 4GB use 20% for SWAP
+			- else use 200% total
+		- if yes hibernation
+			- if total < 6G use 200%
+			- else use 100% + 2G
+
+- consider adding `https://aur.archlinux.org/packages/yay/` to the installed AUR packages
+
+- investigate `libfm` and `pcmanfm` enhancements
+	- a patch to enable directory thumbnail generation
+	- support for `webp` files; including animated `webp` files