Wiki World

SElinux

Set label on folder semanage fcontext -a -t samba_share_t <complete-path-to-folder> Se label also on subfolder and files semanage fcontext -a -t …

Docker

Docker notes. First steps Run container (first time, download and run) docker run <options> <image> Start container docker start <name … Read more ⮕

SSH

SSH port forwarding Single Local Port ssh [user]@server -L [localPort]:[server]:[port] Dynamic Local Port ssh [user]@server -D [localIP]:[localPort] … Read more ⮕

Git

Initialize git repository git init Connect to remote repository (bitbucket) git remote add origin git@bitbucket.org:<user>/<repository> … Read more ⮕

Set Wallpaper with feh

assign desktop wallpaper to dual monitor setup with feh feh --bg-fill <wallpaper 1> --bg-fill <wallpaper 2> For the change to be loaded on …

Bash

Remove character from filenames To remove the characters “ < > : * | ? from filenames in the current folder (especially handy when files need to … Read more ⮕

Apache

How to disable cache of Apache This is especially useful when doing local web development as the files are no longer cached by the browser. if you are … Read more ⮕

Apt

Unattended upgrades Email From Add the following line in 50unattended-upgrades Unattended-Upgrade::Sender "Unattended-upgrades Example …

Crontab

Problem: Email From Address When setting up crontab it is possible to define a MAILTO address, however it’s not possible to define a from … Read more ⮕

Firewalld

Is the firewall running firewall-cmd --state Show default zone firewall-cmd --get-default-zone list current settings firewall-cmd --list-all open port …