# for testing firefox specific issues
case $distro in
trisquel|ubuntu)
- bookworm
+ name=bookworm
m mkschroot -s /a/bin/fai/fai/config/files/etc/apt/sources.list.d/bookworm.list/BOOKWORM_FREE \
- bookworm bookworm chromium fonts-noto-color-emoji fonts-recommended locales
- sd /nocow/schroot/$schroot_name/etc/locale.gen <<'EOF'
+ $name $name chromium fonts-noto-color-emoji fonts-recommended locales
+ sd /nocow/schroot/$name/etc/locale.gen <<'EOF'
en_US.UTF-8 UTF-8
EOF
- s schroot -c $schroot_name locale-gen
- s schroot -c $schroot_name update-locale LANG=en_US.UTF-8
+ s schroot -c $name locale-gen
+ s schroot -c $name update-locale LANG=en_US.UTF-8
;;
debian)
fi
fi
}
-tr-config-daemon
case $HOSTNAME in
$d_host)
+ tr-config-daemon
sgo transmission-daemon-nn
;;
esac
rm -rf /home/iank/.mpv
+# run appimages without manually extracting.
+# https://github.com/AppImage/AppImageKit/wiki/FUSE
+case $(debian-codename) in
+ aramo)
+ pi libfuse2
+ ;;
+ # assume this is newer than aramo
+ *)
+ pi libfuse2t64
+ ;;
+esac
+
+##### begin beets #####
+
+
## note: begin u24 message upon pip install
# If you wish to install a non-Debian-packaged Python package,
# create a virtual environment using python3 -m venv path/to/venv.
## end
## in ubuntu, you can install python3-venv
-
-# if [[ ! -e ~/.local/bin/pip ]]; then
-# tmp=$(mktemp)
-# wget -O$tmp https://bootstrap.pypa.io/get-pip.py
# ### begin msg from below without
# # error: externally-managed-environment
# # tried using --break-system-packages, but then trying to use pipx
# # failed with something like: no module ensurepath, and again
# # complained that I should install system packages, but this time
-# # there was no alternative. So, fuck it, just getting the system
-# # package from ubuntu for now.
+# # there was no alternative. bleh
+# if [[ ! -e ~/.local/bin/pip ]]; then
+# tmp=$(mktemp)
+# wget -O$tmp https://bootstrap.pypa.io/get-pip.py
+
# python3 $tmp --user
# hash -r
# python3 -m pip install --user pipx --break-system-packages
# # Upgrade pipx with python3 -m pip install --user --upgrade pipx
# fi
-pi pipx
-
-# run appimages without manually extracting.
-# https://github.com/AppImage/AppImageKit/wiki/FUSE
-case $(debian-codename) in
- aramo)
- pi libfuse2
- ;;
- # assume this is newer than aramo
- *)
- pi libfuse2t64
- ;;
-esac
-
-##### begin beets #####
-
-# ## apt install method, disabled because it is 2025 & packaged version is 2021.
-# # apt install beets fails due to wanting a pip package,
-# # we find out why it wants this through
-# # apt-cache depends --recurse --no-recommends --no-suggests --no-conflicts --no-breaks --no-replaces --no-enhances beets | less
-# # python-mediafile requires tox, which requires virtualenv, which requires pip.
-# # but, python-mediafile doesn't really require tox, it is specified in
-# # ./usr/lib/python3/dist-packages/mediafile-0.9.0.dist-info/METADATA
-# # as being required only for testing, but the debian package
-# # included it anyways, due to a mistake or bad tooling or something.
-# # I don't plan to use tox, so, according to https://serverfault.com/a/251091,
-# # we can create and install a dummy package by:
-# #
-# # "equivs-control <name>, edit the file produced to provide the right
-# # dependency and have a nice name, then run equivs-build <name> and
-# # finally dpkg -i the resulting .deb file"
-# # as of 2023-02, the tox dependency was removed in debian unstable, so
-# # this hack will probably go away in t12.
-
-# case $(debian-codename) in
-# aramo)
-# if pcheck tox; then
-# tmpdir="$(mktemp -d)"
-# cd "$tmpdir"
-# # edited from output of equivs-control tox
-# cat >tox <<'EOF'
-# Section: python
-# Priority: optional
-# Standards-Version: 3.9.2
-# Package: tox
-# Description: tox-dummy
-# EOF
-# equivs-build tox
-# sudo dpkg -i tox_1.0_all.deb
-# rm -rf ./tox*
-# cd
-# rm -r "$tmpdir"
-# fi
-# ;;
-# esac
-# pi beets beets-doc
-# # get rid of annoying message
-# s sed -ri "s/^([[:space:]]*ui.print_\('Playing)/#\1/" /usr/share/beets/beetsplug/play.py
-# I ran this initially to make sure things were working, but don't need it again.
-#pipx ensurepath -v
-#
-# in brackets are nondefault plugins
-pipx install 'beets[lyrics,discogs,mbsync]'
+if [[ ! -d ~/.pyenv/.git ]]; then
+ git clone https://github.com/pyenv/pyenv.git ~/.pyenv
+ . /b/ds/brc2
+ mypyenvinit
+ pyenv install 3.13
+ pyenv global 3.13
+ # from pipx install instructions
+ python3 -m pip install --user pipx
+ python3 -m pipx ensurepath
+ # from beets install instructions.
+ # in brackets are nondefault plugins
+ pipx install 'beets[lyrics,discogs,mbsync]'
+fi
-# note: when i first setup beets, i found installing some plugins
-# useful, but now it is bundled with enough good ones that i found no
-# urgent need.
##### end beets #####
if [[ ! -e /etc/apt/sources.list.d/pgdg.sources ]]; then
pi postgresql-common
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh -y noble
- pi postgresql-18
+ pi postgresql-17
sudo -u postgres createuser -d iank
sudo usermod -a -G postgres iank
fi