User Tools

Site Tools


computing:miscadmin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
computing:miscadmin [2022/02/25 07:26] oemb1905computing:miscadmin [2024/04/14 18:54] oemb1905
Line 1: Line 1:
- 
 ------------------------------------------- -------------------------------------------
   * **miscadmin**    * **miscadmin** 
Line 259: Line 258:
   zpool export tank    zpool export tank 
   zpool import -d /dev/disk/by-id tank   zpool import -d /dev/disk/by-id tank
 +  
 +monitor ram usage every 3 seconds in human readable way
  
- --- //[[jonathan@haacksnetworking.org|oemb1905]] 2022/02/25 00:24//+  free -h -w -s 3 
 +   
 +postfix to relay, satellite option, enter the relay like this:  to prevent lookups 
 +   
 +  [smtp.smtpserver.com]:587 
 +   
 +Re-attach to screen session that's attached. 
 + 
 +  screen -d -r <session#.user> 
 +   
 +mysqldump to local from remote 
 + 
 +  ssh root@hub.haacksnetworking.org /usr/bin/mysqldump --all-databases --single-transaction --skip-comments --skip-dump-date > hknet.sqldump 
 +   
 +Turn off sleep. 
 + 
 +  sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target 
 +   
 +Amd gPU errors fix 
 +   
 +  mkdir ~/Repositories 
 +  cd /home/user/Repositories && git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/firmware/linux-firmware.git 
 +  sudo cp /home/user/Repositories/linux-firmware/amdgpu/* /lib/firmware/amdgpu && sudo update-initramfs -k all -u -v 
 +   
 +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 "Failed password" /var/log/auth.log 
 +  journalctl _SYSTEMD_UNIT=ssh.service | egrep "Failed|Failure" 
 +  faillock --user <user> 
 +  grep "authentication failure" /var/log/auth.log | awk '{ print $14 }' | cut -b7-  | sort | uniq -c 
 + 
 +Display Managers (Lightdm, etc.) 
 + 
 +  sudo nano /etc/lightdm/lightdm-gtk-greeter.conf 
 +  [SeatDefaults] 
 +  allow-guest=false 
 +  greeter-hide-users=true 
 +  nano ~/.config/gtk-3.0/settings.ini 
 +  [Settings] 
 +  gtk-application-prefer-dark-theme=1 
 +  sudo nano /etc/lightdm/lightdm.conf 
 +  cd /usr/share/lightdm/light.conf.d/ 
 +   
 +Setting ufw to allow connections to only certain subnets. 
 + 
 +  ufw allow from 192.168.1.0/24 to any proto tcp port 8006 
 +   
 + --- //[[jonathan@haacksnetworking.org|oemb1905]] 2024/01/28 20:31//
computing/miscadmin.txt · Last modified: 2024/05/05 11:48 by oemb1905