summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--guides/setups/operating-systems/debian.org167
1 files changed, 84 insertions, 83 deletions
diff --git a/guides/setups/operating-systems/debian.org b/guides/setups/operating-systems/debian.org
index 3037bc1..c991d9a 100644
--- a/guides/setups/operating-systems/debian.org
+++ b/guides/setups/operating-systems/debian.org
@@ -1,11 +1,12 @@
-* Step-by-step recap (Bullseye)
-** Setup keyboard
+* Installation
+** Step-by-step recap (Bullseye)
+*** Setup keyboard
Turn CapsLock key into Control (cf. keyboard(5)):
- add =ctrl:nocaps= to =XKBOPTIONS= in =/etc/default/keyboard=
- run =udevadm trigger --subsystem-match=input --action=change=
- run =setupcon= in a TTY
-** Install stuff
-*** Distro-provided packages
+*** Install stuff
+**** Distro-provided packages
#+begin_src sh
packages=(
# To clone & update dotfiles.
@@ -34,8 +35,8 @@ packages=(
)
sudo apt install ${packages[@]}
#+end_src
-*** Latest and greatest
-**** Firefox
+**** Latest and greatest
+***** Firefox
- download most recent release from from <https://www.mozilla.org>
- unpack it =$SOMEWHERE=
- make sure everyone can find it:
@@ -48,20 +49,20 @@ $ ln -s ${SOMEWHERE}/firefox/firefox ~/.local/bin/
#+end_src
- paste backuped profile into =~/.mozilla/firefox/${profile}=
-**** Symbola
+***** Symbola
- grab the archive from <http://users.teilar.gr/~g1951d/>
- drop the TTF files in =~/.local/share/fonts=
- run =fc-cache -fv=
-**** youtube-dl
+***** youtube-dl
#+begin_src sh
$ sudo apt install python3-pip
$ pip3 install --user youtube-dl
#+end_src
-** Setup dotfiles
-*** Clone versioned dotfiles
+*** Setup dotfiles
+**** Clone versioned dotfiles
- create new SSH key for GitLab
- follow instructions in dotfiles README
-*** Tweak non-versioned dotfiles
+**** Tweak non-versioned dotfiles
- set EMAIL in =.profile=
- add =~/.local/bin= to PATH
- copy =.profile= to =.xsessionrc=
@@ -69,7 +70,7 @@ $ pip3 install --user youtube-dl
- enable globstar and autocd
- uncomment grep and ls aliases
- source =~/.bash_prompt=
-** Setup Emacs
+*** Setup Emacs
- clone from Savannah
- =apt build-dep emacs=
- =apt install libgconf2-dev libwebkit2gtk-4.0-dev=
@@ -79,62 +80,62 @@ $ pip3 install --user youtube-dl
(package-refresh-contents)
(package-install-selected-packages)
#+end_src
-** Setup XFCE
-*** Appearance
-**** Style
+*** Setup XFCE
+**** Appearance
+***** Style
Greybird-dark
-**** Icons
+***** Icons
elementary Xfce darker
-**** Fonts
+***** Fonts
- Rendering
- [X] Enable anti-aliasing
- Hinting: Slight
- Sub-pixel order: RGB (trusting the [[http://www.lagom.nl/lcd-test/subpixel.php][Lagom LCD test pages]])
-*** File Manager
-**** View
+**** File Manager
+***** View
- Side Pane: Tree
- View as Detailed List
-*** Panel
-**** Top panel
-***** Items
-****** Whisker Menu
-****** Window Buttons
-****** Separator
-****** Workspace Switcher
-****** Separator
-****** Status Tray Plugin
-****** PulseAudio Plugin
-****** Power Manager Plugin
+**** Panel
+***** Top panel
+****** Items
+******* Whisker Menu
+******* Window Buttons
+******* Separator
+******* Workspace Switcher
+******* Separator
+******* Status Tray Plugin
+******* PulseAudio Plugin
+******* Power Manager Plugin
- Show label: None
-****** Notification Plugin
-****** Separator
-****** Clock
-**** Bottom panel
+******* Notification Plugin
+******* Separator
+******* Clock
+***** Bottom panel
Delete.
-*** Window Manager
-**** Keyboard
+**** Window Manager
+***** Keyboard
- Move window to previous workspace: Shift+Super+Left
- Move window to next workspace: Shift+Super+Right
- Tile window to the left: Super+Left
- Tile window to the right: Super+Right
- Show desktop: Super+D
-*** Window Manager Tweaks
-**** Accessibility
+**** Window Manager Tweaks
+***** Accessibility
- [X] Hide title of windows when maximized
-**** Compositor
+***** Compositor
- [ ] Show shadows under…
-*** Terminal
-**** General
+**** Terminal
+***** General
- Scrolling
- [ ] Scroll on output
- Scrollbar is: Disabled
- [X] Unlimited scrollback
-**** Appearance
+***** Appearance
- Font
- [X] Use system font
- Opening New Windows
- [ ] Display menubar in new windows
-**** Advanced
+***** Advanced
- Shortcuts
- [X] Disable all menu access keys (such as Alt+f) /for readline/
- [X] Disable menu shortcut key (F10 by default) /for htop &
@@ -143,8 +144,8 @@ Delete.
wavemon/
- Misc
- [X] Automatically copy selection to clipboard
-*** Keyboard
-**** Application shortcuts
+**** Keyboard
+***** Application shortcuts
- emacs: Super+E
- exo-open --launch FileManager: Super+F
- exo-open --launch TerminalEmulator: Super+T
@@ -156,29 +157,29 @@ Delete.
- xfce4-screenshooter --window: Super+Print
- xfce4-session-logout: Super+X
- xflock4: Super+L
-*** Mouse and Touchpad
-**** Devices
+**** Mouse and Touchpad
+***** Devices
- =… Touchpad=
- Touchpad
- [X] Tap touchpad to click
-*** Power Manager
-**** System
+**** Power Manager
+***** System
- On battery / Plugged in
- When laptop lid is closed: Suspend
-*** Removable Drives and Media
-**** Storage
+**** Removable Drives and Media
+***** Storage
- [X] Mount removable drives when hot-plugged
- [X] Mount removable media when inserted
-** Setup more stuff
-*** lightdm
+*** Setup more stuff
+**** lightdm
Show my account on startup:
#+begin_src conf
# /usr/share/lightdm/lightdm.conf.d/99_custom.conf
[Seat:*]
greeter-hide-users=false
#+end_src
-*** system groups
+**** system groups
#+begin_src sh
groups=(
adm # Access /var/log journals.
@@ -189,11 +190,11 @@ do
sudo adduser ${USER} ${g}
done
#+end_src
-* Live reactions
-** Samsung NC10 (Buster)
-*** installer
+** Live reactions
+*** Samsung NC10 (Buster)
+**** installer
Touchpad is not recognized, for some reason.
-*** first boot
+**** first boot
#+BEGIN_QUOTE
A start job is running for Load AppArmor profiles
#+END_QUOTE
@@ -217,7 +218,7 @@ Wifi function key does not work.
Battery life seems somewhat shorter than with Bunsenlabs, even after
applying all powertop tricks in the book.
-*** apt install (1/n)
+**** apt install (1/n)
git greybird-gtk-theme elementary-xfce-icon-theme emacs
git suggests git-doc: why of course, good idea!
@@ -269,7 +270,7 @@ $ sudo sed -ri 's/security\.debian\.org/deb.debian.org/' /etc/apt/sources.list
[[https://wiki.debian.org/SourcesList#Example_sources.list][🤷]]
-*** tweak dotfiles
+**** tweak dotfiles
Set EMAIL in .profile; copy .profile to .xsessionrc (AFAICT XFCE does
not read ~/.config/environment.d) to get PATHs.
@@ -278,13 +279,13 @@ source personal .bash_prompt.
Fun fact! git can guess user.email from $EMAIL and user.name from the
[[https://en.wikipedia.org/wiki/Gecos_field][GECOS field]].
-*** apt install (2/n)
+**** apt install (2/n)
#+BEGIN_QUOTE
E: Package 'gcc-doc' has no installation candidate
#+END_QUOTE
gcc-doc is only available in /backports/?
-*** configure XFCE
-**** Mouse and Touchpad
+**** configure XFCE
+***** Mouse and Touchpad
- Move sliders a bit to no avail, restore defaults.
- Google around.
- Why do my XFCE settings not have this "Touchpad" tab?
@@ -293,11 +294,11 @@ gcc-doc is only available in /backports/?
- Woah the pointer is much faster now.
- And the "Touchpad" tab is here now!
🎉
-**** Panels
+***** Panels
Remove bottom panel: I'd rather remember a few Super-… shortcuts to
launch these applications rather than waste all this vertical space.
-**** Appearance
-***** Style
+***** Appearance
+****** Style
Greybird
Patch the xfwm-tabwin style to prevent the mouse from screwing with
@@ -319,37 +320,37 @@ diff -u /usr/share/themes/Greybird/gtk-2.0/gtkrc.bkp /usr/share/themes/Greybird/
fg[NORMAL] = shade (0.8, @base_color)
fg[ACTIVE] = @base_color
#+end_src
-*** configure more stuff
-**** lightdm
+**** configure more stuff
+***** lightdm
Debian [[https://wiki.debian.org/LightDM#Enable_user_list][hides the list of users]] on the login screen; Bunsenlabs [[https://github.com/BunsenLabs/bunsen-configs/blob/9.6-1/lightdm.conf.d/50_bunsen.conf][enables
it]] and I kind of like it (fewer keystrokes, and a cute avatar).
-** Dell 3190 (Buster)
-*** groundwork
+*** Dell 3190 (Buster)
+**** groundwork
Using instructions from <https://wiki.debian.org/Firmware>.
-**** Get netinst image from <https://www.debian.org/CD/netinst/>
-**** Get firmware archive from <https://cdimage.debian.org/cdimage/unofficial/non-free/firmware/stable/current/>
+***** Get netinst image from <https://www.debian.org/CD/netinst/>
+***** Get firmware archive from <https://cdimage.debian.org/cdimage/unofficial/non-free/firmware/stable/current/>
So that the installer can use the wireless network card. Extract all
.deb files to a top-level =firmware= folder on a USB key.
-**** Shrink the MS partition
+***** Shrink the MS partition
Had to "optimize the disk", otherwise some free space remained
unavailable.
-*** installer
+**** installer
Everything went smoothly:
- if the USB key holding the firmware isn't plugged in, the installer
requests it, otherwise it finds the firmware automatically;
- Secure Boot supported transparently;
- dual-booting too.
-*** package repositories
+**** package repositories
Non-free repositories automatically added during the installation,
because of the WiFi firmware I presume.
-*** kernel issues
-**** i915/glk_dmc_ver1_04.bin
+**** kernel issues
+***** i915/glk_dmc_ver1_04.bin
kern.log:
#+begin_quote
i915 0000:00:02.0: firmware: failed to load i915/glk_dmc_ver1_04.bin (-2)
#+end_quote
apt install firmware-misc-nonfree seems to quiet that down.
-**** i2c_hid_get_input: incomplete report
+***** i2c_hid_get_input: incomplete report
kern.log:
#+begin_quote
i2c_hid i2c-MSFT0001:00: i2c_hid_get_input: incomplete report (14/65535)
@@ -363,8 +364,8 @@ $ apt install -t buster-backports \
firmware-iwlwifi \
firmware-misc-nonfree
#+end_src
-*** daily maintenance
-**** impromptu IBus
+* Maintenance
+** impromptu IBus
Installing [[https://zoom.us/][Zoom]]'s Debian package somehow enabled IBus[fn:: AFAICT
because ibus recommends im-config, and the latter autostarts the
former by default], which unconditionally set my keyboard to English
@@ -383,8 +384,8 @@ had left an error marker somewhere?]. Steps taken:
(which eventually just writes ~run_im none~ in =~/.xinputrc=).
3. Eventually, maybe I should just uninstall im-config.
-**** random lag
-***** DONE diagnosing
+** random lag
+*** DONE diagnosing
Since… a few days? weeks? one month? everything randomly becomes
"choppy":
@@ -412,7 +413,7 @@ suspects. Some things I considered:
5.7 solves all of the "choppiness" issues listed above.
Now to pinpoint what's wrong with 5.8…
-***** TODO fixing
+*** TODO fixing
Found a way to "quantify" the problem; asked around on the
debian-kernel mailing list, to no avail.