notes

% legacy notes

installation note

Un-plug rtl8192 network controller before installation; otherwise kernel will load buggy rtl8192cu module, which hang the system (maybe for several minutes).

(The working module is rtl8xxxu.)

Before plug it (after system installation), add rtl8192cu module to blacklist first.

# add to file under /etc/modprobe.d/, e.g., /etc/modprobe.d/rtl8192cu.conf

blacklist rtl8192cu

optional: blacklist pcspkr (no beep).

run Arch Linux in sandbox (bubblewrap)

install

bwrap --uid 0 --gid 0 --bind root.x86_64 / --tmpfs /tmp --ro-bind /etc/resolv.conf /etc/resolv.conf --bind new-root /mnt/ --dev /dev --proc /proc --unshare-all --share-net --clearenv --setenv TERM "$TERM" --setenv USER root --new-session --die-with-parent /bin/bash

run (root)

bwrap --uid 0 --gid 0 --bind ~/.sandbox/archlinux / --tmpfs /tmp --ro-bind /etc/resolv.conf /etc/resolv.conf --dev /dev --proc /proc --unshare-all --share-net --clearenv --setenv TERM "$TERM" --setenv USER root --new-session --die-with-parent /bin/bash

run (non-root)

bwrap --ro-bind ~/.sandbox/archlinux / --bind ~/.sandbox/archlinux/"$HOME" "$HOME" --tmpfs /tmp --ro-bind /etc/resolv.conf /etc/resolv.conf --dev /dev --proc /proc --unshare-all --share-net --clearenv --setenv TERM "$TERM" --setenv USER "$USER" --setenv HOME "$HOME" --setenv PATH "$HOME/bin:/bin:/usr/local/bin" --new-session --die-with-parent /bin/bash

openSUSE

qemu builtin smb (samba) won’t work in openSUSE tumbleweed.

fedora

.xprofile / env / dm

It’s quite tricky to make session script loaded at startup (have not figured out yet).

So just remove any dm (systemctl disable lightdm first if using lightdm; then uninstall it), use plain old startx instead.

It seems that on Fedora, xprofile script may not run because of selinux.