- enable non-free in sources.list needed for firmwares deb http://deb.debian.org/debian/ buster main non-free deb-src http://deb.debian.org/debian/ buster main deb http://security.debian.org/debian-security buster/updates main non-free deb-src http://security.debian.org/debian-security buster/updates main # buster-updates, previously known as 'volatile' deb http://deb.debian.org/debian/ buster-updates main non-free deb-src http://deb.debian.org/debian/ buster-updates main deb http://deb.debian.org/debian buster-backports main - install firmwares apt install firmware-amd-graphics firmware-iwlwifi firmware-realtek - install new kernel (needed for amd gpu) apt install linux-image-5.2.0-0.bpo.3-amd64 - firefox - cookie autodelete - ublock origin - usual packages emacs gcc make meson mutt tmux clang git xcscope-el elpa-magit git-el \ isync msmtp-mta cmake python3 libsecret-tools linux-cpupower powertop \ lm-sensors tor ripperx freecad gdb gimp adb smbclient cifs-utils pidgin \ unison audacity borgbackup - sudo adduser zer0 sudo - gpg copy private key in .gnupg - gnome3 # list all shortcuts gsettings list-recursively | grep -E 'keybindings|media-keys' gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-1 "['ampersand']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-2 "['eacute']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-3 "['quotedbl']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-4 "['apostrophe']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-5 "['parenleft']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-6 "['minus']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-7 "['egrave']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-8 "['underscore']" gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-9 "['ccedilla']" gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-1 "['ampersand']" gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-2 "['eacute']" gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-3 "['quotedbl']" gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-4 "['apostrophe']" gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-5 "['parenleft']" gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-6 "['minus']" gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-7 "['egrave']" gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-8 "['underscore']" gsettings set org.gnome.desktop.wm.keybindings move-to-workspace-9 "['ccedilla']" gsettings set org.gnome.mutter dynamic-workspaces false gsettings set org.gnome.desktop.wm.preferences num-workspaces 9 gsettings set org.gnome.desktop.wm.keybindings panel-run-dialog "['r']" gsettings set org.gnome.mutter overlay-key "" gsettings set org.gnome.desktop.wm.keybindings cycle-windows "['Tab']" gsettings set org.gnome.desktop.wm.keybindings switch-applications "['Tab']" gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['disabled']" gsettings set org.gnome.desktop.wm.keybindings switch-input-source-backward "['disabled']" # enable workspace indicator, auto-move windows, alternate tab gnome-tweaks in settings, create a new shortcut for terminal emulator (super-enter) -- bullseye: need to remove some new shortcuts for i in 1 2 3 4 5 6 7 8 9; do gsettings set org.gnome.shell.keybindings switch-to-application-$i []; done - gnome3 gtile install gnome shell extension in firefox set super+space as main shortcut - gnome3 disable workspace popup https://extensions.gnome.org/extension/959/disable-workspace-switcher-popup/ - gnome3 no title bar instead of an extension: https://joshtronic.com/2017/07/26/hide-title-bars-in-gnome-shell/ update .config/gtk-3.0/gtk.css - gnome3: legacy system tray (for pidgin) install topicons plus disable "normal" notifications in gnome settings - gnome3: improved workspace indicator - load xresources at startup # with +x perms zer0@platinum:~$ cat bin/load-xresources.sh xrdb -merge ~/.Xresources xset r rate 200 30 zer0@platinum:~$ cat .config/autostart/load-xresources.desktop [Desktop Entry] Name=load-xresources GenericName=load-xresources Comment=load Xresources with xrdb, and set the kbd rate Exec=~/bin/load-xresources.sh Terminal=false Type=Application X-GNOME-Autostart-enabled=true - pidgin update /usr/share/pixmaps/pidgin/tray/hicolor/22x22/status/pidgin-tray-available.png - etc/hosts add "127.0.0.1 glum" - msmtp dans ~/.msmtprc defaults account 6wind tls on port 587 from olivier.matz@6wind.com host smtp.gmail.com domain 6wind.com aliases /etc/aliases logfile /var/log/msmtp auth on user olivier.matz@6wind.com password XXXX account default tls on port 587 auto_from on host mail.droids-corp.org domain droids-corp.org maildomain droids-corp.org aliases /etc/aliases logfile /var/log/msmtp auth on user zer0 password XXXX - rcfiles https://www.digitalocean.com/community/tutorials/how-to-use-git-to-manage-your-user-configuration-files-on-a-linux-vps - passwords $ secret-tool store --label=Google type google user olivier.matz@6wind.com $ secret-tool lookup type google user olivier.matz@6wind.com test seahorse to show them in as gui - set default editor cat > /usr/local/bin/e << EOF #!/bin/sh emacs -nw "$@" EOF chmod a+x /usr/local/bin/e update-alternatives --install /usr/bin/editor editor /usr/local/bin/e 10 update-alternatives --install /usr/bin/editor editor /usr/local/bin/e 10 update-alternatives --set editor /usr/local/bin/e - powersaving don't know how to change thresholds for fan control, so switch to powersave, it avoids the fan to start when doing usual tasks modprobe cpufreq_powersave cpupower -c all frequency-set -g powersave sensors #disable all cpus but 0 for x in /sys/devices/system/cpu/cpu[1-9]*/online; do echo 0 >"$x" done cat << EOF | sudo tee /etc/systemd/system/powertop.service [Unit] Description=PowerTOP auto tune [Service] Type=oneshot Environment="TERM=dumb" RemainAfterExit=true ExecStart=/usr/sbin/powertop --auto-tune [Install] WantedBy=multi-user.target EOF systemctl daemon-reload systemctl enable powertop.service - pinning /etc/apt/preferences # note: do not use names like "jessie" with a=, use n= in that case --OM Package: * Pin: release a=testing Pin-Priority: -10 Package: * Pin: release a=unstable Pin-Priority: -10 Package: * Pin: release o=Debian Pin-Priority: 900 and add this in /etc/apt/sources.list # with low prio, for apt-pinning deb http://ftp.fr.debian.org/debian/ testing main contrib non-free deb-src http://ftp.fr.debian.org/debian/ testing main deb http://ftp.fr.debian.org/debian/ unstable main contrib non-free deb-src http://ftp.fr.debian.org/debian/ unstable main - mount backup fstab: //192.168.1.12/music /backup/music cifs credentials=/etc/fstab-smb-credentials,workgroup=workgroup,rw,vers=1.0 0 0 //192.168.1.12/misc /backup/misc cifs credentials=/etc/fstab-smb-credentials,workgroup=workgroup,rw,vers=1.0 0 0 //192.168.1.12/photos /backup/photos cifs credentials=/etc/fstab-smb-credentials,workgroup=workgroup,rw,vers=1.0 0 0 /etc/fstab-smb-credentials: username=zer0 password=... - mouse https://unix.stackexchange.com/questions/422470/how-to-set-device-specific-mouse-settings-in-wayland-under-libinput-debian-gnom https://wayland.freedesktop.org/libinput/doc/1.4.0/faq.html#faq_config_options libinput debug-events apt install libevdev-tools evemu-tools evemu-describe mouse-dpi-tool /dev/input/event e /lib/udev/hwdb.d/70-mouse.hwdb -> 71-mouse.hwdb # Logitech G400 (Wired) mouse:usb:v046dpc245:name:Logitech Gaming Mouse G400:* # MOUSE_DPI=3600@1000 udevadm hwdb --update udevadm trigger /dev/input/event3 udevadm info /dev/input/event3 # need to go back to gdm (ctrl-alt-f1) - mime applications root@platinum:/home/zer0# xdg-mime default /usr/share/applications/okularApplication_pdf.desktop application/pdf root@platinum:/home/zer0# xdg-mime query default application/pdf /usr/share/applications/okularApplication_pdf.desktop for mutt (bof...) see /etc/mailcap order in /etc/mailcap.order: okular:application/pdf needs update of /usr/lib/mime/packages grep okular /etc/mailcap > /usr/lib/mime/packages/okular then udpated by update-mime see https://askubuntu.com/questions/1118437/promote-evince-in-etc-mailcap-order - xterm for middle click copy/paste XTerm*selectToClipboard: false - clipboard from command line: wl-clipboard https://github.com/bugaevc/wl-clipboard - load xrdb at xterm start #!/bin/sh START_TIME=$(ps -C Xwayland --no-headers -o lstart) PREV_START_TIME=$(cat ~/.xwayland_start 2> /dev/null) if [ "$START_TIME" != "$PREV_START_TIME" ]; then load-xresources.sh echo "$START_TIME" > ~/.xwayland_start fi exec xterm "$@" TODO - emacs config - mutt - backup - transfer data from neon - gnome shortcuts - retrieve windows key - customize firefox - gpg key on yubikey - start xrdb -load ~/.Xresources at session start https://bugzilla.redhat.com/show_bug.cgi?id=1225384 - mesa >= 19.2 ? https://bugs.freedesktop.org/show_bug.cgi?id=110214#c91 - molette souris dans xterm: scroll plutot que up/down - ~/bin dans le path - imapami