Skip to content

Instantly share code, notes, and snippets.

@johncf
Last active October 30, 2024 13:32
Show Gist options
  • Save johncf/5f1e0c16200ae71861131b768295f1e5 to your computer and use it in GitHub Desktop.
Save johncf/5f1e0c16200ae71861131b768295f1e5 to your computer and use it in GitHub Desktop.
Debian installation in Asus Zenbook S13
apt-listchanges
aptitude
gnome-contacts
gnome-games
gnome-music
gnome-photos
gnome-remote-desktop
nautilus
rhythmbox
shotwell
simple-scan
synaptic
xterm
amd64-microcode
apt-file
apt-utils
build-essential
chromium
curl
espeak-ng
firefox-esr
firmware-amd-graphics
firmware-linux-free
firmware-misc-nonfree
flatpak
fonts-noto-cjk
fonts-noto-core
fprintd
gimp
git
gnome-dictionary
gnome-software-plugin-flatpak
gnome-sudoku
libasound2-dev
libavif-bin
libavif-gdk-pixbuf
libmecab-dev
libpam-fprintd
linux-headers-amd64
linux-image-amd64
lsof
mesa-utils-bin
mpv
nemo
python3.11-venv
python3-dev
radeontop
ripgrep
tlp
tmux
vim-gtk3
wget
xsel
zsh
#!/bin/bash
## Flatpak - FlatHub configure
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
## Flatpak packages
flatpak install flathub org.localsend.localsend_app
flatpak install flathub org.onlyoffice.desktopeditors
flatpak install flathub com.usebottles.bottles
## Micromamba
mkdir -p ~/.local/share/micromamba/bin
curl -Ls https://micro.mamba.pm/api/micromamba/linux-64/latest | tar -xvj bin/micromamba
mv bin/micromamba ~/.local/share/micromamba/bin/
rmdir bin
~/.local/share/micromamba/bin/micromamba shell init -s zsh -p ~/.local/share/micromamba
source ~/.zshrc
micromamba config append channels conda-forge
## NordVPN
PUB_KEY=https://repo.nordvpn.com/gpg/nordvpn_public.asc
REPO_URL_DEB=https://repo.nordvpn.com/deb/nordvpn/debian
curl -s "${PUB_KEY}" | sudo tee /etc/apt/trusted.gpg.d/nordvpn_public.asc > /dev/null
echo "deb ${REPO_URL_DEB} stable main" | sudo tee /etc/apt/sources.list.d/nordvpn.list
sudo apt-get update
sudo apt-get install nordvpn
sudo usermod -aG nordvpn $USER
# then log out and login
## Other packages
# AnyType: https://download.anytype.io/
# ProtonMail: https://proton.me/support/mail-desktop-app
## GNOME shell extensions
# Dash-to-dock: https://extensions.gnome.org/extension/307/dash-to-dock/

Some useful links to investigate and fix firmware issues:

To fix some of Cirrus-related errors in dmesg:

wget -r -nd -e robots=no -A 'cs35l41-dsp1-spk-prot-10431f12*' --accept-regex '/plain/' https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/cirrus
wget -r -nd -e robots=no -A 'cs35l41-dsp1-spk-prot.*' --accept-regex '/plain/' https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/cirrus
wget -r -nd -e robots=no -A '*.wmfw' --accept-regex '/plain/' https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/cirrus/cs35l41/v6.61.1
mv halo_cspl_RAM_revB2_29.63.1.wmfw cs35l41-dsp1-spk-prot-10431f12.wmfw

After the above steps, dmesg | grep cirrus gives:

[    4.974978] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Cirrus Logic CS35L41 (35a40), Revision: B2
[    5.029401] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: Cirrus Logic CS35L41 (35a40), Revision: B2
[    5.050550] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: firmware: failed to load cirrus/cs35l41-dsp1-spk-prot-10431f12-spkid1-l0.wmfw (-2)
[    5.050627] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: firmware: failed to load cirrus/cs35l41-dsp1-spk-prot-10431f12-spkid1-l0.wmfw (-2)
[    5.050681] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: firmware: failed to load cirrus/cs35l41-dsp1-spk-prot-10431f12-l0.wmfw (-2)
[    5.050727] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: firmware: failed to load cirrus/cs35l41-dsp1-spk-prot-10431f12-l0.wmfw (-2)
[    5.050777] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: firmware: failed to load cirrus/cs35l41-dsp1-spk-prot-10431f12-spkid1.wmfw (-2)
[    5.050821] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: firmware: failed to load cirrus/cs35l41-dsp1-spk-prot-10431f12-spkid1.wmfw (-2)
[    5.051036] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: firmware: direct-loading firmware cirrus/cs35l41-dsp1-spk-prot-10431f12.wmfw
[    5.051198] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: firmware: direct-loading firmware cirrus/cs35l41-dsp1-spk-prot-10431f12-spkid1-l0.bin
[    5.051217] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot-10431f12.wmfw: Fri 27 Aug 2021 14:58:19 W. Europe Daylight Time

During update-initramfs:

I: /initrd.img is now a symlink to boot/initrd.img-6.7.12+bpo-amd64
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.7.12+bpo-amd64
W: Possible missing firmware /lib/firmware/amdgpu/ip_discovery.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vega10_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/sienna_cichlid_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/navi12_cap.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_14_0_0_ta.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_14_0_0_toc.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/psp_13_0_6_ta.bin for module amdgpu
[...]
W: Possible missing firmware /lib/firmware/amdgpu/vcn_4_0_5.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vcn_4_0_3.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/vpe_6_1_0.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/smu_13_0_10.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/smu_13_0_6.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/smu_14_0_2.bin for module amdgpu
W: Possible missing firmware /lib/firmware/amdgpu/dcn_3_5_dmcub.bin for module amdgpu
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.7.12+bpo-amd64
Found initrd image: /boot/initrd.img-6.7.12+bpo-amd64
# to be placed in /etc/tlp.d/01-zenbook.conf
CPU_BOOST_ON_AC=1
CPU_BOOST_ON_BAT=0
#SCHED_POWERSAVE_ON_AC=0
#SCHED_POWERSAVE_ON_BAT=1
# Battery Care -- Charge thresholds
# For more explanations and vendor specific details refer to
# https://linrunner.de/tlp/settings/battery.html
START_CHARGE_THRESH_BATT=0
STOP_CHARGE_THRESH_BATT=60
#!/bin/bash
OUTFILE=installed.txt
TMP_MANUAL=/tmp/all-manual.txt
TMP_DEPS=/tmp/deps-installed.txt
apt-mark showmanual | sort -u > ${TMP_MANUAL}
cp pre-installed.txt ${TMP_DEPS}
apt info $(cat pre-installed.txt) | rg 'Depends:' | sed -e 's/ ([^)]*)\|^.*Depends: //g' -e 's/, \| | /\n/g' >> ${TMP_DEPS}
comm -23 ${TMP_MANUAL} <(cat ${TMP_DEPS} | sort -u | uniq) > ${OUTFILE}
wc -l ${OUTFILE}
apt
base-passwd
bash
bash-completion
bind9-dnsutils
bsdutils
busybox
ca-certificates
console-setup
coreutils
cron
dash
dbus
debconf-i18n
debian-faq
diffutils
discover
dmidecode
dmsetup
doc-debian
dosfstools
dpkg-dev
fdisk
file
findutils
gcc-12-base
gdm3
gnome
gnome-core
gnome-initial-setup
gnome-remote-desktop
grep
grub-common
grub-efi-amd64
gzip
hostname
hunspell-en-us
hyphen-en-us
ifupdown
inetutils-telnet
init
initramfs-tools
initramfs-tools-core
installation-report
iputils-ping
isc-dhcp-client
isc-dhcp-common
iw
krb5-locales
laptop-detect
less
libapparmor1
libargon2-1
libaudit-common
libbpf1
libbsd0
libdb5.3
libext2fs2
libglib2.0-0
libgpg-error0
libhogweed6
libip4tc2
libjson-c5
libkrb5support0
liblockfile-bin
libnftables1
libnss-systemd
libpam-modules-bin
libpam-systemd
libreoffice-help-en-us
libsemanage2
libss2
libtasn1-6
libtirpc3
libunistring2
libxxhash0
locales
login
logrotate
low-memory-monitor
mailcap
man-db
manpages
mawk
mime-support
mythes-en-us
nano
ncurses-bin
ncurses-term
netcat-traditional
nftables
openssh-client
os-prober
pciutils
perl
popularity-contest
procps
readline-common
reportbug
sed
shim-signed
systemd
systemd-sysv
systemd-timesyncd
sysvinit-utils
task-desktop
task-english
task-gnome-desktop
task-laptop
tasksel
traceroute
transmission-gtk
tzdata
udev
usbutils
usr-is-merged
util-linux
vim-common
vim-tiny
wamerican
whiptail
wireless-tools
wpasupplicant
zstd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment