This is an old revision of the document!
Kudell auf Debian
Installierte Pakete
/etc/apt/sources.list
Installation
apt install \ vim gimp ffmpeg default-jdk git wget nano vim \ htop locate zip p7zip p7zip-full unzip \ gnome-shell-extension-manager nvidia-driver libavcodec-extra \ vlc nvidia-detect nvidia-driver keepass2 emacs rsync curl \ nvidia-opencl-icd imagemagick exiftool dcraw sqlitebrowser \ smartmontools lshw inxi restic abcde lame easytag brasero \ remmina needrestart scribus net-tools mono-complete mc pv
user-account in sudoers
Hinzufügen des Benutzernamens in die Zeile sudo der Datei /etc/group
Swappiness senken
Swappiness is 60 by default which is fine in most cases. But if you decrease this number, your system will use RAM more and start writing to Swap much later. Swap is an actual disk space and it is much slower than RAM. If you have 8G or more of RAM, you can force your system to use it at maximum.
First, check your swappiness value:
cat /proc/sys/vm/swappiness
Open the /etc/sysctl.conf file with Vim and add vm.swappiness = 10 at the very end.
Einschub: Verbindung zu hermes und den backups herstellen
ssh springm@hermes
sudo su echo "restic --no-lock -p /root/resticpw -r /backupdisk/restic-repo mount /resticrestore" | at now cd /resticrestore/hosts/kudell/latest tar cjf /tmp/kudellroot.tg2 root tar cjf /tmp/kudelletc.tg2 tar cjf /tmp/kudellspringmssh.tg2 home/springm/.ssh
Auf kudell:
scp springm@hermes:/tmp/kudell*2 /tmp mv ~springm/.ssh ~springm/.ssh.old cd /tmp tar xjf kudellroot.tg2 mv /root /root.old mv root /
Damit sind die alten ssh-keys wieder intakt.
Nvidia-Suspend
Ohne diese Maßnahmen funktioniert OpenCL nach Suspend-Resume nicht mehr in darktable.
Von: https://askubuntu.com/questions/1228423/how-do-i-fix-cuda-breaking-after-suspend
options nvidia NVreg_PreserveVideoMemoryAllocations=1 options nvidia NVreg_TemporaryFilePath=/tmp
anlegen und
systemctl enable nvidia-suspend.service
ausführen.
root@kudell:/home/springm# systemctl status nvidia-suspend.service
○ nvidia-suspend.service - NVIDIA system suspend actions
Loaded: loaded (/lib/systemd/system/nvidia-suspend.service; enabled; prese>
Active: inactive (dead)
Mai 29 10:23:59 kudell systemd[1]: Starting nvidia-suspend.service - NVIDIA sys>
Mai 29 10:23:59 kudell suspend[4896]: nvidia-suspend.service
Mai 29 10:23:59 kudell logger[4896]: <13>May 29 10:23:59 suspend: nvidia-suspen>
Mai 29 10:24:00 kudell systemd[1]: nvidia-suspend.service: Deactivated successf>
Mai 29 10:24:00 kudell systemd[1]: Finished nvidia-suspend.service - NVIDIA sys>
Wake-on-Lan
1.Install ethtool :
sudo apt install ethtool
2.Checking the Interface :
ip a
3.Select the interface you want to use. For Example : enp4s0
4.Turn wake on lan On Temporarily :
sudo ethtool --change enp4s0 wol g
5.Check the WOL status of the interface with the following command :
sudo ethtool enp4s0
6.find the bellow section :
Wake-on: g
Making wake on lan Permanent
7.find ethtool directory :
which ethtool
in my os : /usr/sbin/ethtool
8.Create wol.service in /etc/systemd/system/ with the following content.
[Unit] Description=Enable Wake On Lan [Service] Type=oneshot ExecStart = /usr/sbin/ethtool --change enp4s0 wol g [Install] WantedBy=basic.target
9.Enable The Service :
sudo systemctl daemon-reload sudo systemctl enable wol.service
Signal
Download und installieren entsprechend Anweisungen entsprechend https://signal.org/download/linux/
darktable
Stable
Master
Paket von https://software.opensuse.org//download.html?project=graphics%3Adarktable%3Amaster&package=darktable herunterladen und mit dpkg -i installieren
Nightly NICHT EMPFOHLEN, kein Lua
AppImage von https://github.com/darktable-org/darktable/releases/tag/nightly herunterladen.
Starten mit
~/downloads/Darktable-4.7.0+227.g420bc453d7-x86_64.AppImage --configdir "~/.config/darktable-master" --cachedir "~/.cache/darktable-master"
raw-Previews
siehe https://ocroquette.wordpress.com/2021/03/30/thumbnails-for-raw-images-in-gnome-nautilus/
- /usr/local/bin/dcraw-thumbnailer
#!/bin/bash # Usage: # dcraw-thumbnailer [size] [source] [destination] # Exit with error on any error set -e size=$1 source=`echo "$2" | sed 's/file:\/\///'` destination=$3 # Conversion table from EXIF orientation code to degrees (Bash 4 and newer) declare -A conv=( ["1"]="0" ["3"]="180" ["6"]="90" ["8"]="270" ) # Read orientation with exiftool # Triple -s : output only the value # -n : output numerical value, do not convert to human readable form rotation_code=`exiftool -Orientation -s -s -s -n "$source"` rotation_deg="${conv[$rotation_code]}" # Extract the thumbnail (usually stored as JPEG) with dcraw, resize, rotate and convert it. # The target format will be inferred from the destination file name (usually PNG). dcraw -c -e -w "$source" | convert -resize ${size}x${size} -rotate "${rotation_deg}" - "$destination"
- ~/.local/share/thumbnailers/dcraw.thumbnailer
[Thumbnailer Entry] TryExec=/usr/bin/dcraw-thumbnailer Exec=/usr/bin/dcraw-thumbnailer %s %i %o MimeType=image/x-sony-arw;image/x-canon-cr2;image/x-canon-crw;image/x-kodak-dcr;image/x-adobe-dng;image/x-epson-erf;image/x-kodak-k25;image/x-kodak-kdc;image/x-minolta-mrw;image/x-nikon-nef;image/x-olympus-orf;image/x-pentax-pef;image/x-fuji-raf;image/x-panasonic-raw;image/x-sony-sr2;image/x-sony-srf;image/x-sigma-x3f;
Damit auch große Raws Thumbnails erhalten:
gsettings set org.gnome.nautilus.preferences thumbnail-limit 500 rm -rf ~/.cache/thumbnails/
atuin
bash <(curl --proto '=https' --tlsv1.2 -sSf https://setup.atuin.sh)
Konfiguration für atuin in ~/.config/atuin/config.toml, wichtig hier die Zeile
sync_address = "http://192.168.2.252:8888"
damit der Atuin-Server auf hermes angesprochen wird
Webex
Download von https://binaries.webex.com/WebexDesktop-Ubuntu-Official-Package/Webex.deb
Installieren mit dpkg -i Webex.deb. Dependencies nachinstallieren mit apt-get -f install
user.dirs verändern
Downloads in downloads verwandeln, damit Dokumente und downloads unterschiedlich beginnen und das autocomplete schon nach 2 Buchstaben funktioniert.
- bash
# This file is written by xdg-user-dirs-update # If you want to change or add directories, just edit the line you're # interested in. All local changes will be retained on the next run. # Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped # homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an # absolute path. No other format is supported. # XDG_DESKTOP_DIR="$HOME/Schreibtisch" XDG_DOWNLOAD_DIR="$HOME/downloads" XDG_TEMPLATES_DIR="$HOME/Vorlagen" XDG_PUBLICSHARE_DIR="$HOME/Öffentlich" XDG_DOCUMENTS_DIR="$HOME/Dokumente" XDG_MUSIC_DIR="$HOME/Musik" XDG_PICTURES_DIR="$HOME/Bilder" XDG_VIDEOS_DIR="$HOME/Videos"
keepass2
Installieren als normales Debian-Paket. Kee-Plugin holen und installieren mit
sudo su exit curl -s https://api.github.com/repos/kee-org/keepassrpc/releases/latest | jq -r ".assets[] | select(.name | test(\"KeePassRPC.plgx\")) | .browser_download_url" | xargs sudo curl -s -L -o "/usr/lib/keepass2/Plugins/KeePassRPC.plgx" ls -l /usr/lib/keepass2/Plugins/KeePassRPC.plgx
Adobe Reader
siehe Adobe Reader unter Linux
Restic Backup
Einstellungen
Alt-Tab Verhalten ändern
For anyone who is using Ubuntu 18 (to give you the same behavior as e.g. on Windows10):
- go to settings > devices > keyboard
- look for the keyboard shortcut for “Switch windows”
- set this to the shortcut Alt+Tab (this will overwrite the old shortcut)
Zusätzliche emacs-Desktop-Einträge verhindern
cd /usr/share/applications sudo chmod 600 emacsclient.desktop emacs-term.desktop
Mac-Theme
Drucken auf Kyocera 1061
Wird nicht vom Standard-Debian unterstützt
cd projekte mkdir kyocera cd kyocera git clone https://github.com/Fe-Ti/rastertokpsl-re/ cd rastertokpsl-re/ sudo apt install libcupsimage2-dev libcups2-dev cmake -B_build -H. cmake --build _build/ ./install.sh
Drucker in CUPS einrichten als socket://192.168.2.3:9100 und den Treiber aus dem Build-Verzeichnis (Kyocera FS-1060DN) angeben.
Sound und Subwoofer
Sound funktioniert über die XONAR SE Soundkarte, Subwoofer läuft nicht am Subwoofer-Ausgang :(
Abhilfe: Subwoofer an den Rear-Port anschließen






