1
0
Fork
You've already forked linux_essentials
0
Some essential commands and other things for Manjaro and EndeavourOS
2026年04月21日 18:05:37 +02:00
README.md Update README.md 2026年04月21日 18:05:37 +02:00

Essential Commands for EndeavourOS


Keyboard and Input Configuration

Replace CapsLock with Backspace

setxkbmap -option caps:backspace -option shift:both_capslock

Can be done in Plasma in System Settings > Keyboard > Advanced


Activate 'Hand Break'

Force end of session with (Ctrl + Alt + Backspace)

kate /etc/default/keyboard
XKBOPTIONS="terminate:ctrl_alt_bksp"

Can be done in Plasma in System Settings > Keyboard > Advanced


Firewall Configuration

Allow Wifi-Hotspot through Firewall (ufw)

sudo ufw allow to any port 53
sudo ufw allow to any port 67 proto udp
sudo ufw allow to any port 68 proto udp
sudo ufw allow udp 5353
sudo ufw allow bootps

Printer and Peripheral Setup

Install Printer Driver for Brother DCP-L2600D

pamac install brother-dcp-l2500d brscan5
sudo pacman -S cups
sudo systemctl enable --now cups
sudo usermod -aG lp username
sudo pacman -S system-config-printer

Activate AppArmor

pamac install apparmor
systemctl enable apparmor.service
systemctl status apparmor

Boot with AppArmor activated:

kate /etc/default/grub

-> Add apparmor=1 security=apparmor to GRUB_CMDLINE_LINUX_DEFAULT

sudo update-grub
aa-enabled

Essential Software Packages

Install Essential Programs

pamac install base-devel btrfs-progs tvtime testdisk tesseract thunar tumbler xfce4-taskmanager mkvtoolnix-gui vym vivaldi nextcloud-client smplayer qmmp gimp inkscape steam evince scrcpy pavucontrol audacity plasma-vault gocryptfs telegram-desktop signal-desktop libappindicator-gtk3 gnome-shell-extension-appindicator converseen pdfarranger gnome-disk-utility ffmpegthumbnailer bleachbit libreoffice-fresh zotero wine-staging scummvm kdenlive filezilla hunspell-pl gparted clamtk mediathekview jre-openjdk
pamac build proton-vpn-gtk-app joplin-appimage freetube qimgv puddletag rainlendar-pro linux-wifi-hotspot cover-thumbnailer proton-mail-bin qmplay2 teams-for-linux-electron-bin espanso hunspell-uk hunspell-sk peazip brother-dcp-l2500d 
pamac install vulkan-radeon lib32-vulkan-radeon
sudo pacman -S --needed mesa-demos vulkan-tools

Other Useful Commands

Initiate E-Card-Reader

sudo systemctl start pcscd.service
sudo systemctl enable pcscd.service

Tesseract Fraktur

tesseract page1.tif page1 -l deu_frak

Convert PDF to Images

pdftoppm -jpeg -r 300 Document.pdf page

Nikon as Webcam

pamac install v4l2loopback-dkms gphoto2
sudo apt install entangle linux-generic v4l2loopback-dkms gphoto2
sudo modprobe v4l2loopback
gphoto2 --stdout --capture-movie | gst-launch-1.0 fdsrc fd=0 ! decodebin name=dec ! queue ! videoconvert ! tee ! v4l2sink device=/dev/video0

Inject Spatial Metadata for 360° Videos

pamac install perl-image-exiftool
exiftool -XMP-GSpherical:Spherical="true" video.mp4

Plasma-Vaults

Path:

/home/$USER/.config/plasmavaultrc

plasmavaultrc:

[/home/$USER/.vaults/Data.enc]
activities=
backend=gocryptfs
mountPoint=/home/$USER/Vaults/Data
name=Data
offlineOnly=false
[EncryptedDevices]
/home/$USER/.vaults/Data.enc=true
[UI-notice]
SkipNotice-gocryptfs-message=false

Wipe Filesystem with Zeros (HDD only!)

dd if=/dev/zero of=zero.small.file bs=1024 count=102400
cat /dev/zero > zero.file
sync
rm zero.small.file
rm zero.file

Write Image on Disk with dd

sudo dd if=image.iso of=/dev/sd* bs=1024k status=progress

Restart Plasma-Shell

plasmashell --replace &

Re-Initialise Font-Cache

sudo fc-cache -f -v

Cleaning

Clean Cache

sudo pacman -Sc
sudo pacman -Qdt
sudo pacman -Rns $(pacman -Qtdq)

Vacuum Journals

journalctl --disk-usage
sudo journalctl --vacuum-size=50M

Remove orphaned libraries

pamac remove --orphans

Clean cache

pamac clean --build-files

Merge Textfiles

cat *.txt > all.txt

Remove Title from MKV-File

mkvpropedit "Film.mkv" --tags all: 

Set up Jellyfin-Server

pamac install jellyfin-server
pamac install jellyfin-web
sudo systemctl start jellyfin.service
sudo systemctl enable jellyfin.service
sudo find /jellyfin -type d -exec chmod 2755 {} \;
sudo find /jellyfin -type f -exec chmod 0644 {} \;
http://localhost:8096
sudo chown -R jellyfin: /etc/jellyfin /var/lib/jellyfin /var/log/jellyfin /var/cache/jellyfin /usr/share/jellyfin

Backup Jellyfin data

sudo tar czvf ~/jellyfin-backup-$(date +%F).tar.gz \
/etc/jellyfin \
/var/lib/jellyfin \
/var/cache/jellyfin \
/var/log/jellyfin
sudo tar xzvf ~/jellyfin-backup-YYYY-MM-DD.tar.gz -C /

Stop Nextcloud-Client from Popping up Randomly

mkdir -p .local/share/dbus-1/services/
touch .local/share/dbus-1/services/com.nextcloudgmbh.Nextcloud.service

Add the following to the file:

[D-BUS Service]
Name=com.nextcloudgmbh.Nextcloud
Exec=/bin/false

Install and use Stylometry with R

R
install.packages("stylo")
library(stylo)
setwd("path")
stylo()

Folder needs subfolder named "corpus" where the text-files are located.

https://computationalstylistics.github.io/stylo_nutshell/#functions-imposters
https://pittsburgh-neh-institute.github.io/Institute-Materials-2017/schedule/week_2/02-stylo.pdf