From: Ian Kelling Date: Mon, 18 Nov 2024 04:04:14 +0000 (-0500) Subject: minor fixes X-Git-Url: https://iankelling.org/git/?a=commitdiff_plain;h=e208a0c9cc38226c2c2a6c4e932c12887e354156;p=distro-setup minor fixes --- diff --git a/brc b/brc index ed3f92d..5dda2e0 100644 --- a/brc +++ b/brc @@ -1326,7 +1326,7 @@ dtr() { } # date with all digits in a format i like dtd() { - date +%F_%T% "$@" + date +%F_%T "$@" } ccomp date dt dtr dtd diff --git a/distro-begin b/distro-begin index f730f7d..a781329 100755 --- a/distro-begin +++ b/distro-begin @@ -278,6 +278,8 @@ sudo /a/exe/lnf -T /a/bin /b sudo /a/exe/lnf -T /a/f /f sudo /a/exe/lnf -T /var/log/exim4 /el sudo /a/exe/lnf -T /a/f/ans /c +sudo chown iank:iank /nocow/t +sudo chmod 700 /nocow/t sudo /a/exe/lnf -T /nocow/t /t if has_p; then lnf -T /p/News ~/News diff --git a/distro-end b/distro-end index a193a67..463580f 100755 --- a/distro-end +++ b/distro-end @@ -237,9 +237,9 @@ EOF fi if [[ ! -e /usr/share/debootstrap/scripts/noble ]]; then - # noble debootstrap as of 2024-07-05. not going to bother + # dir from within /a/opt/debootstrap_1.0.134ubuntu1_all.deb noble debootstrap as of 2024-07-05. not going to bother # adding a whole repo for one package which doesn't seem to generally change within a single distro version. - sudo dpkg -i /a/opt/debootstrap_1.0.134ubuntu1_all.deb + rsync -ra /a/opt/debootstrap_1.0.134ubuntu1_all-scripts/ /usr/share/debootstrap/scripts fi ;;& diff --git a/mymimes b/mymimes index a57e552..82637c7 100755 --- a/mymimes +++ b/mymimes @@ -29,7 +29,9 @@ trap 'echo "$0:$LINENO:error: \"$BASH_COMMAND\" returned $?" >&2' ERR shopt -s extglob nullglob echo '[Default Applications]' >/etc/xdg/defaults.list +# make these be the default for everything they can handle sed -r '/^MimeType=/!d;s/^MimeType=//;s/;/=mpv.desktop\n/g' /usr/share/applications/mpv.desktop >>/etc/xdg/defaults.list +sed -r '/^MimeType=/!d;s/^MimeType=//;s/;/=org.gnome.Evince.desktop\n/g' /usr/share/applications/org.gnome.Evince.desktop >>/etc/xdg/defaults.list echo x-scheme-handler/mailto=emacsmail.desktop >>/etc/xdg/defaults.list