Linux Allerlei
Screen
- screen -S name
- STRG+a -> d (in den Hintergrund schicken)
- screen -r name (holt den Screen name in den Vordergrund)
MiniDLNA
- nano -w /etc/minidlna.conf
user=minidlna
media_dir=V,/mnt/data/Video
media_dir=A,/mnt/data/Mp3
media_dir=P,/mnt/data/Bilder
media_dir=AV,/mnt/data/Austrians
# Path to the directory that should hold the database and album art cache.
db_dir=/mnt/data/.minidlna/cache
# Path to the directory that should hold the log file.
log_dir=/mnt/data/.minidlna/logs
- Zusätzliche A/V-Codecs für mpg/avi Support
apt-get install libavcodec-extra
Debian Update
- sudo apt update
- sudo apt list --upgradable
- sudo apt upgrade
- sudo apt autoremove
- sudo apt clean
Check Debian Version
Netzwerk-Konfiguration
NFS Installation
- sudo apt install nfs-kernel-server rpcbind
- mkdir /srv/nfs/data
Export:
- nano -w /etc/fstab
/mnt/hdd_ext_1 /srv/nfs/data/hdd_ext_1 none bind 0 0
- nano -w /etc/exports
/srv/nfs/data 192.168.0.2(rw,fsid=root)
/srv/nfs/data/hdd_ext_1 192.168.0.2(rw,sync)
- sudo systemctl enable rpcbind
- sudo systemctl enable nfs-kernel-server
- (sudo systemctl enable nfs-server)
Import:
- sudo nano -w /etc/fstab
192.168.0.20:/hdd_ext_1 /mnt/backup_1/ nfs rw,_netdev,users 0 0
NTP-Client installieren
- sudo apt install ntp
- sudo systemctl status ntp
- sudo timedatectl list-timezones
- sudo timedatectl set-timezone (e.g.) America/New_York
Certbot
- Certbot installieren
sudo apt install certbot
- Zertifikat(e) erstellen:
sudo systemctl stop lighttpd
certbot certonly --standalone -d domain.com -d www.domain.com -d sub.domain.com
sudo systemctl start lighttpd
- SSL Zertifikate anzeigen
certbot certificates
- Zertifikat löschen
certbot delete --cert-name domain.com
- Zertifikat aktualisieren
sudo systemctl stop lighttpd
certbot renew
sudo systemctl start lighttpd