X-Git-Url: https://iankelling.org/git/?a=blobdiff_plain;f=distro-begin;h=9a7a9adae33d41b3298d98e78971d2cba1556a0c;hb=3f437c0f6c11356451d5d739875eee2d4603d7ca;hp=5ae900f8b122d296cc511598e25b9bcddb857f8f;hpb=f5c8ee56b55b90298b48c83ed0f7ec98cce96bb5;p=distro-setup diff --git a/distro-begin b/distro-begin index 5ae900f..9a7a9ad 100755 --- a/distro-begin +++ b/distro-begin @@ -65,7 +65,7 @@ if [[ $1 ]]; then export HOSTNAME=$1 fi -for f in iank-dev htpc treetowl x2 frodo tp li lj demohost kw; do +for f in iank-dev htpc treetowl x2 frodo tp li lj demohost kw fz; do eval "$f() { [[ $HOSTNAME == $f ]]; }" done has_p() { ! linode; } # when tp is tracis, then not tp either @@ -239,6 +239,8 @@ if isdeb; then fi + +###### begin arch aur wrapper ######## if isarch; then #https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages sudo pacman -S --noconfirm --needed base-devel jq @@ -264,18 +266,47 @@ if isarch; then sudo systemctl enable pacserve.service sudo systemctl start pacserve.service +fi +###### end arch aur wrapper ######## + +pup + + +###### begin trash cli install ###### +if isarch; then # strange error if just installing trash-cli: "pyalpm requires python", # so I see that it requires python2, and installing that manually fixes it. - # I didn't see this on earlier installation, main thing which changed was - # pacserve, so not sure if it's related. + # I didn\'t see this on earlier installation, main thing which changed was + # pacserve, so not sure if it\'s related. pi python2 fi - -pup pi trash-cli +###### end trash cli install ###### -###### link files ########### +######## begin fix evbug bug ###### +case $distro in + trisquel|ubuntu) + # noticed in flidas. + #https://bugs.launchpad.net/ubuntu/+source/module-init-tools/+bug/240553 + #https://wiki.debian.org/KernelModuleBlacklisting + #common advice when searching is to use /etc/modprobe.d/blacklist.conf, + #but that file won't work and will get automatically reverted + sudo rmmod evbug ||: # might not be loaded yet + file=/etc/modprobe.d/evbug.conf + line="blacklist evbug" + if ! grep -xFq "$line" $file; then + sudo dd of=$file 2>/dev/null <<<"$line" + sudo depmod -a + sudo update-initramfs -u + fi + ;; +esac +######## end fix evbug bug ###### + + + +###### begin link files ########### # convenient to just do all file linking in one place @@ -303,6 +334,8 @@ if has_p; then lnf -T /i/k/mboxes ~/mail fi +###### end link files ########### + ##### basic needed packages @@ -316,7 +349,10 @@ case $(distro-name) in else pi xmacro fi - pi gtk-redshift xinput + pi xinput + # recommends gets us geoclue (for darkening automatically at night i assume), + # which recommends modemmanager, which is annoying to fix for the model01 keyboard. + pi --no-install-recommends gtk-redshift fi ;;& fedora) @@ -511,7 +547,7 @@ if encrypted; then sudo systemctl enable fstrim.timer fi -dirs=(/mnt/{1,2,3,4,5,6,7,8,9}) +dirs=(/mnt/{1,2,3,4,5,6,7,8,9} /nocow/t) s mkdir -p "${dirs[@]}" s chown $USER:$USER "${dirs[@]}"