15. November 2020
Manjaro Fallout 1 Steam
30. September 2020
Linux Bootfail Stuff
In case of a non booting system, be it because whatever reasons, I hereby now have a list with some simple tools and shit to check. I intend to upgrade this when discovering new stuff.
Commands to mount and chroot into the system in case of non HDD failures (all
as root):
mkdir -p /mnt/root
mount -t ext4 /dev/sda3 /mnt/root
mount -t fat /dev/sda1 /mnt/root/boot
mount -t proc none /mnt/root/proc
mount -o bind /dev /mnt/root/dev
mount -o bind /sys /mnt/root/sys
chroot /mnt/root /bin/bash
source /etc/profile
whdd [https://github.com/whdd/whdd]
Writing to HDD and waiting with sync? This command gives at least a little bit feedback while watching how the dirty bits slowly go down.
watch -d grep -e Dirty: -e Writeback: /proc/meminfo
watch -d grep -e Dirty: -e Writeback: /proc/meminfo
28. August 2020
Manjaro NVIDIA Screen Tearing Fix
Using the information from https://www.blogger.com/blog/posts/1177617571463101591?hl=en&tab=jj the following things are requried:
Change the contents of /etc/X11/mhwd.d/nvidia.conf the Section "Device" from:
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "1"
EndSection
to:
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
Option "NoLogo" "1"
Option "metamodes" "nvidia-auto-select +0+0 { ForceFullCompositionPipeline = On }"
EndSection
mv 90-mhwd.conf ../90-mhwd.conf.bak # this is only a symlink but I always feel bad deleting stuff
sudo ln -s ../95-mhwd.conf .
27. August 2020
Create systemd user specific service
This is just a short cutdown from: https://unix.stackexchange.com/questions/496982/restarting-systemd-service-only-as-a-specific-user as it is easier than to google everytime.
In the case that one wants to run a service as a specific user, if the application allows, by using systemd it is possible. First you have to activate the linger for the user in question:
loginctl enable-linger username
Now you create the corresponding directory and move your service files into it. In my case this was a noip2.service file. All commands are executed as the normal user.
mkdir -p ~/.config/systemd/user
mv ~/noip2.service ~/.config/systemd/user
systemctl --user daemon-reload
systemctl --user enable noip2.service
systemctl --user start noip2.service
It is important to note, that within the user context there is no multi-user.target. Therefore these have to be changed to default.target.
Sources:
https://wiki.archlinux.org/index.php/Systemd/User#Automatic_start-up_of_systemd_user_instances
https://unix.stackexchange.com/questions/496982/restarting-systemd-service-only-as-a-specific-user
https://gist.github.com/NathanGiesbrecht/da6560f21e55178bcea7fdd9ca2e39b5
OpenVPN --askpass
Mein OpenVPN Server, fragte nach jedem Systemneustart nach einem Passwort mit folgender Zeile:
Password entry required for 'Enter Private Key Password:' (PID 6285).
Please enter password with the systemd-tty-ask-password-agent tool!
8. Juni 2020
Linux Shrink PDF
With the gs command it is possilbe. 'gs' stands for Ghostcript (PostScript and PDF language interpreter and previewer).
Whereas possible options for PDFSETTINGS are:
- /screen
- - lowest resolution and file size, fine for viewing on screen
- /ebook
- - middle was of resolution and file size
- /printer
- - for printing it
- /prepress
- - for highquality printing(?)
Source for this:
https://www.techwalla.com/articles/how-to-make-the-output-darker-on-a-pdf-print28. Mai 2020
Manjaro Graphic Driver Update
27. Mai 2020
Compile Manjaro kernel. No patches.
5. April 2020
Trine 4 FPS Limit
16. März 2020
ELECROW 7 Inch HDMI Display
max_usb_current=1
hdmi_group=2
hdmi_mode=1
hdmi_mode=87
hdmi_cvt 1024 600 60 6 0 0 0
hdmi_drive=1
15. März 2020
Borderlands 3 Steam
Erstmal feststellen, wo es installiert ist. In meinem Fall auf der SSD wo auch Windows drauf ist. Genauer gesagt:
"/mnt/win/LinuxSteam/steamapps"
Weiters in Steam selbst auf Proton Version 5.0.4 umstellen unter Optionen bei Borderlands 3 und nebenbei 2 Git Repos herunterladen:
https://github.com/z0z0z/mf-installcab
Diese mit folgendem Befehl installieren (jeweils aus den heruntergeladenen Repositories heraus):
WINEPREFIX="/mnt/win/LinuxSteam/steamapps/compatdata/397540/pfx" ./install-mf-64.sh
cp mfplat.dll /mnt/win/LinuxSteam/steamapps/common/Borderlands\ 3/OakGame/Binaries/Win64/
WINEPREFIX="/mnt/win/LinuxSteam/steamapps/compatdata/397540/pfx" WINEARCH=win64 wine wineboot
die Windows Version dann auf Windows 7 umstellt, aber das habe ich nicht weiter getestet.
Was eventuell auch wichtig ist (zumindest hat Wine bei mir hier Warnungen geworfen): der Ordner muss der ausführenden Person gehören. In meinem Fall hat es sich um ein NTFS FS gehandelt welches so gemounted wurde das es root gehört und alle Lese- und Schreiberechte darauf hatten. Dafür wurde einfach der Eintrag im /etc/fstab geändert der diese Partition mounted und zwar von:
5. Januar 2020
i3 Standard Browser
Telegram verwendete nicht vivaldi obwohl er in den diversen Files passend gesetzt war (~/.config/mimeapps.list).
Kurzes googeln ergab folgende Befehlsfolge:
xdg-settings set default-web-browser vivaldi-stable.desktop
# $BROWSER is set and can't be changed with xdg-settings
echo $BROWSER
# /usr/bin/vivaldi-stable
unset BROWSER
echo $BROWSER
#
xdg-settings set default-web-browser vivaldi-stable.desktop
Und es funktioniert.
Der Clue an der Sache (und das erforder vermutli bessere Recherche) ist nämlich das
xdg-settings get default-web-browser
PulseAudio Standard Output
Lösung:
# um auflistung der verfügbaren Karten zu bekommen:
pacmd list-sinks
# auflistung der karten und der profile
pacmd list-cards
# aus der liste die richtige auswählen (anhand des Namens: $NAME (bei mir: alsa_output.pci-0000_00_14.2.analog-stereo))
pacmd set-default-sink $NAME
pacmd set-sink-port $NAME analog-output-headphones
Den Part für den Standardport packt man je nach Gegebenheit der lokalen Konfigurationen in ~/.config/pulse/default.pa, /etc/pulse-default.pa oder /etc/pulse/system.pa (die Orte kann man mittels
man default.pa
ermitteln). Also am Ende folgende Zeile hinzufügen:
set-sink-port alsa_output.pci-0000_00_14.2.analog-stereo analog-output-headphones