From 3cfdc657ca0281530a332c67ece5c1e94366126c Mon Sep 17 00:00:00 2001 From: matt1432 Date: Thu, 2 Mar 2023 16:27:45 -0500 Subject: [PATCH] Fixed last TODO --- README.md | 56 ++++++++++++++++----------------- {scripts => conf}/locale.gen | 0 {scripts => conf}/settings.json | 0 scripts/chrooted.sh | 5 +-- 4 files changed, 31 insertions(+), 30 deletions(-) rename {scripts => conf}/locale.gen (100%) rename {scripts => conf}/settings.json (100%) diff --git a/README.md b/README.md index 9cd74e35..dd493882 100644 --- a/README.md +++ b/README.md @@ -184,6 +184,33 @@ systemctl stop pulseaudio.service systemctl enable --now gdm ``` +## Fingerprint Sensor Hack +### Flash [firmware](https://github.com/goodix-fp-linux-dev/goodix-fp-dump) +``` +# yay -Sy python pam-fprint-grosshack +# cd /tmp +# git clone --recurse-submodules https://github.com/goodix-fp-linux-dev/goodix-fp-dump.git +# cd goodix-fp-dump +# python -m venv .venv +# source .venv/bin/activate +# pip install -r requirements.txt +# sudo python3 run_55b4.py +``` + +### Install experimental [drivers](https://github.com/TheWeirdDev/libfprint/tree/55b4-experimental) +``` +# yay -Sy libfprint-goodixtls-55x4 fprintd +# sudo systemctl enable --now fprintd +# fprintd-enroll +``` + +### Use the reader +add this to the top of every file in /etc/pam.d/ that you want ie. sddm, kde, polkit-1, sudo uwu +``` +auth sufficient pam_fprintd_grosshack.so +auth sufficient pam_unix.so try_first_pass nullok +``` + ## Here are some random changes and tweaks ### Firefox touchscreen [tweak](https://wiki.archlinux.org/title/Firefox/Tweaks#Enable_touchscreen_gestures) @@ -221,40 +248,13 @@ then logout # sudo mv host-spawn /home/matt/bin # cd $CD -# cp settings.json ~/.var/app/com.vscodium.codium/config/VSCodium/User/ +# cp ../conf/settings.json ~/.var/app/com.vscodium.codium/config/VSCodium/User/ # sudo ln -s /home/matt/bin/host-spawn /var/lib/flatpak/app/com.vscodium.codium/current/**/files/bin/git-lfs # sudo mv /var/lib/flatpak/app/com.vscodium.codium/current/active/export/share/applications/com.vscodium.codium.desktop{,.bak} # sudo mv /var/lib/flatpak/exports/share/applications/com.vscodium.codium.desktop{,.bak} ``` -## Fingerprint Sensor Hack -### Flash [firmware](https://github.com/goodix-fp-linux-dev/goodix-fp-dump) -``` -# yay -Sy python pam-fprint-grosshack -# cd /tmp -# git clone --recurse-submodules https://github.com/goodix-fp-linux-dev/goodix-fp-dump.git -# cd goodix-fp-dump -# python -m venv .venv -# source .venv/bin/activate -# pip install -r requirements.txt -# sudo python3 run_55b4.py -``` - -### Install experimental [drivers](https://github.com/TheWeirdDev/libfprint/tree/55b4-experimental) -``` -# yay -Sy libfprint-goodixtls-55x4 fprintd -# sudo systemctl enable --now fprintd -# fprintd-enroll -``` - -### Use the reader -add this to the top of every file in /etc/pam.d/ that you want ie. sddm, kde, polkit-1, sudo uwu -``` -auth sufficient pam_fprintd_grosshack.so -auth sufficient pam_unix.so try_first_pass nullok -``` - ## Finally, install dotfiles ``` # mkdir ~/git && cd ~/git diff --git a/scripts/locale.gen b/conf/locale.gen similarity index 100% rename from scripts/locale.gen rename to conf/locale.gen diff --git a/scripts/settings.json b/conf/settings.json similarity index 100% rename from scripts/settings.json rename to conf/settings.json diff --git a/scripts/chrooted.sh b/scripts/chrooted.sh index 4fc6045a..074782b9 100644 --- a/scripts/chrooted.sh +++ b/scripts/chrooted.sh @@ -7,12 +7,13 @@ echo matt-laptop > /etc/hostname passwd mv /etc/locale.gen{,.bak} -mv ./locale.gen /etc +mv ../conf/locale.gen /etc locale-gen echo LANG=en_CA.UTF-8 > /etc/locale.conf echo KEYMAP=ca > /etc/vconsole.conf -nano /etc/mkinitcpio.conf # TODO SED +sed -i 's/BINARIES=.*/BINARIES=(btrfs)/' /etc/mkinitcpio.conf +sed -i 's/HOOKS=.*/HOOKS=(base udev autodetect modconf kms keyboard keymap consolefont block encrypt filesystems fsck)/' /etc/mkinitcpio.conf mkinitcpio -P grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=arch