Ver Fonte

finish packer adjustments

remove zerofree (bug eating host disk 500GB+)

fix and update mpv configuration

fix sshfs alias (remove legacy options)
Casey DeLorme há 4 anos atrás
pai
commit
5f0c165958

+ 1 - 1
install/etc/skel/.bashrc

@@ -15,7 +15,7 @@ alias ls='ls -vhFA --color=auto'
 alias grep='grep --color=auto'
 alias ..='cd ..'
 alias ...='cd ../..'
-alias sshfs='sshfs -o cache=yes,compression=yes,large_read,kernel_cache'
+alias sshfs='sshfs -o cache=yes,compression=yes,kernel_cache'
 
 # define pretty man pages colors
 man() {

+ 8 - 0
install/etc/skel/.config/mpv/input.conf

@@ -0,0 +1,8 @@
+
+# keyboard shortcut to loop playlists
+b cycle-values loop-playlist yes no ; show-text "${?=loop-playlist==inf:Looping enabled}${?=loop-playlist==no:Looping disabled}"
+
+# keyboard shortcut to shuffle playlists
+# @Note: cannot undo shuffle, it is not a toggle
+B playlist-shuffle ; show-text "Shuffle Enabled"
+

+ 1 - 2
install/etc/skel/.config/mpv/mpv.conf

@@ -1,6 +1,6 @@
 
 # video driver
-profile=opengl-hq
+profile=gpu-hq
 
 # default scale and image rendering
 scale=ewa_lanczossharp
@@ -8,7 +8,6 @@ cscale=ewa_lanczossoft
 dscale=mitchell
 dither-depth=auto
 deband=yes
-hwdec=auto
 
 # subtitles and language
 alang=jpn,jp,ja,eng,en

+ 1 - 1
packer.json

@@ -66,7 +66,7 @@
 		{
 			"type": "shell",
 			"script": "setup/packer.sh",
-			"pause_before": "30s"
+			"pause_before": "10s"
 		}
 	],
 	"post-processors": [

+ 2 - 0
setup/install.sh

@@ -91,6 +91,8 @@ cp arch.sh /mnt/srv/arch-desktop/
 arch-chroot /mnt /srv/arch-desktop/arch.sh
 if [ -n "$PACKER" ]; then
 	sed -i "/^#\?PermitRootLogin/d" /mnt/etc/ssh/sshd_config
+	sed -i "/^#\?PasswordAuthentication/d" /mnt/etc/ssh/sshd_config
+	echo "PasswordAuthentication yes" >> /mnt/etc/ssh/sshd_config
 	echo "PermitRootLogin yes" >> /mnt/etc/ssh/sshd_config
 fi
 umount -R /mnt

+ 2 - 5
setup/packer.sh

@@ -1,7 +1,9 @@
 #!/usr/bin/bash -x
 
 # re-secure ssh
+sed -i "/^#\?PasswordAuthentication/d" /etc/ssh/sshd_config
 sed -i "/^#\?PermitRootLogin/d" /etc/ssh/sshd_config
+echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
 echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
 
 # VirtualBox Guest Additions
@@ -14,9 +16,4 @@ systemctl enable rpcbind.service
 
 # Clean the pacman cache.
 yes | pacman -Scc
-
-# Write zeros to improve virtual disk compaction.
-zerofile=$(mktemp /zerofile.XXXXX)
-dd if=/dev/zero of="$zerofile" bs=1M
-rm -f "$zerofile"
 sync

+ 3 - 4
todo.md

@@ -1,12 +1,11 @@
 
 # todo
 
-- Continue to test and get packer to work correctly; _do not block the new rig installation though_
-- Use the latest successful packer build to try out `sway` and `wayland` packages as an alternative to openbox.
+- Replace PACKER env var with auto-detection via `[ $(dmidecode | grep -c VirtualBox) -gt 0 ]`
 
-- try and figure out how to add `ctrl+c` support to the getty login (_like debian_)
+- Use the latest successful packer build to try out `sway` and `wayland` packages as an alternative to openbox.
 
-- determine whether we can detect "hidpi" without xserver to automate configuration
+- Research whether we can add SIGINT support to terminal login (like Debian) to cancel quickly after typo
 
 - determine whether we can fully automate laptop configuration
 	- _for example setting `panel_items = LTSCB` in `~/.config/tint2/tint2rc` to display battery power_