This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
computing:miscadmin [2021/04/03 23:09] – oemb1905 | computing:miscadmin [2024/04/21 22:01] – oemb1905 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
------------------------------------------- | ------------------------------------------- | ||
* **miscadmin** | * **miscadmin** | ||
Line 234: | Line 233: | ||
du -ch -d 1 | sort -hr | du -ch -d 1 | sort -hr | ||
- | --- // | + | -check disk space with ncurses tool- |
+ | |||
+ | sudo apt install ncdu | ||
+ | ncdu | ||
+ | |||
+ | -stop/start sleep of any form on servers- | ||
+ | |||
+ | sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target | ||
+ | sudo systemctl unmask sleep.target suspend.target hibernate.target hybrid-sleep.target | ||
+ | |||
+ | -xorg with ssh | ||
+ | |||
+ | touch / | ||
+ | touch / | ||
+ | |||
+ | -batch convert with ffmpeg to mp4 from mkv | ||
+ | |||
+ | for i in *.mkv; do | ||
+ | ffmpeg -i " | ||
+ | done | ||
+ | |||
+ | -fix badly configured zpool that used short names to by-id names. This command can be entered as-is, and does not need to be adjusted at all for what your specific ids are or for multiple drives. It literally exports the short names and by-ids, unmounts the volumes/ | ||
+ | |||
+ | zpool export tank | ||
+ | zpool import -d / | ||
+ | |||
+ | monitor ram usage every 3 seconds in human readable way | ||
+ | |||
+ | free -h -w -s 3 | ||
+ | |||
+ | postfix to relay, satellite option, enter the relay like this: to prevent lookups | ||
+ | |||
+ | [smtp.smtpserver.com]: | ||
+ | |||
+ | Re-attach to screen session that's attached. | ||
+ | |||
+ | screen -d -r < | ||
+ | |||
+ | mysqldump to local from remote | ||
+ | |||
+ | ssh root@hub.haacksnetworking.org / | ||
+ | |||
+ | Turn off sleep. | ||
+ | |||
+ | sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target | ||
+ | |||
+ | Amd gPU errors fix | ||
+ | |||
+ | mkdir ~/ | ||
+ | cd / | ||
+ | sudo cp / | ||
+ | |||
+ | Unattended Upgrades | ||
+ | |||
+ | sudo apt install unattended-upgrades | ||
+ | sudo apt install apt-config-auto-update | ||
+ | sudo unattended-upgrades --dry-run --debug | ||
+ | sudo systemctl status unattended-upgrades | ||
+ | |||
+ | Next ... ssh failed attempts | ||
+ | |||
+ | grep " | ||
+ | journalctl _SYSTEMD_UNIT=ssh.service | egrep " | ||
+ | faillock --user < | ||
+ | grep " | ||
+ | |||
+ | Display Managers (Lightdm, etc.) | ||
+ | |||
+ | sudo nano / | ||
+ | [SeatDefaults] | ||
+ | allow-guest=false | ||
+ | greeter-hide-users=true | ||
+ | nano ~/ | ||
+ | [Settings] | ||
+ | gtk-application-prefer-dark-theme=1 | ||
+ | sudo nano / | ||
+ | cd / | ||
+ | |||
+ | Setting ufw to allow connections to only certain subnets. | ||
+ | |||
+ | ufw allow from 192.168.1.0/ | ||
+ | |||
+ | Establish NIC name using mac:ID | ||
+ | |||
+ | nano / | ||
+ | SUBSYSTEM==" | ||
+ | |||
+ | |||
+ | --- // |