This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
computing:miscadmin [2019/11/03 02:57] – oemb1905 | computing:miscadmin [2024/12/07 19:48] (current) – oemb1905 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | |||
------------------------------------------- | ------------------------------------------- | ||
* **miscadmin** | * **miscadmin** | ||
Line 26: | Line 25: | ||
gsettings set org.gnome.desktop.background show-desktop-icons false | gsettings set org.gnome.desktop.background show-desktop-icons false | ||
gsettings set org.nemo.desktop show-desktop-icons true | gsettings set org.nemo.desktop show-desktop-icons true | ||
- | |||
-motd- | -motd- | ||
Line 47: | Line 45: | ||
| | ||
cat /etc/motd | cat /etc/motd | ||
- | |||
-Firefox- | -Firefox- | ||
To install the latest firefox on Debian and make it default, do the following. | To install the latest firefox on Debian and make it default, do the following. | ||
- | |||
sudo mkdir -p / | sudo mkdir -p / | ||
Line 66: | Line 62: | ||
mv / | mv / | ||
| | ||
+ | -youtube-dl- | ||
- | -optical ripping- | + | sudo curl -L https:// |
+ | sudo chmod 750 / | ||
+ | |||
+ | -optical ripping | ||
cdrecord -pad -dao -data blag-140k-i686.iso | cdrecord -pad -dao -data blag-140k-i686.iso | ||
- | + | -pam hardening location- | |
- | + | ||
- | -pam garbage- | + | |
sudo nano / | sudo nano / | ||
Line 196: | Line 194: | ||
use this for local interfaces for ipv6 | use this for local interfaces for ipv6 | ||
:::: | :::: | ||
+ | | ||
+ | view | ||
+ | exim -Mvh | ||
| | ||
-verifying TLS with swaks on exim4 relay setup | -verifying TLS with swaks on exim4 relay setup | ||
Line 227: | Line 228: | ||
cat / | cat / | ||
cat / | cat / | ||
+ | | ||
+ | -checking disk space- | ||
+ | |||
+ | 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 10.16.16.0/ | ||
+ | ufw allow from 10.36.36.0/ | ||
+ | ufw allow from 10.16.16.0/ | ||
+ | ufw allow from 10.36.36.0/ | ||
+ | ufw allow from 10.16.16.0/ | ||
+ | ufw allow from 10.36.36.0/ | ||
+ | ufw allow from 10.16.16.0/ | ||
+ | ufw allow from 10.36.36.0/ | ||
+ | |||
+ | Establish NIC name using mac:ID | ||
+ | |||
+ | nano / | ||
+ | SUBSYSTEM==" | ||
+ | | ||
+ | Establish Nemo as default, remove desktop icons, verify nemo default | ||
+ | |||
+ | xdg-mime default nemo.desktop inode/ | ||
+ | gsettings set org.gnome.desktop.background show-desktop-icons false | ||
+ | xdg-mime query default inode/ | ||
+ | | ||
+ | Sury php | ||
+ | |||
+ | sudo apt install -y apt-transport-https lsb-release ca-certificates wget | ||
+ | wget -O / | ||
+ | echo "deb https:// | ||
+ | | ||
+ | Static ipv6 in ifupdown | ||
+ | |||
+ | iface enp0s3 inet6 static | ||
+ | address 2001: | ||
+ | netmask 64 | ||
+ | gateway 2001: | ||
+ | autoconf 0 | ||
+ | dns-nameservers 2001: | ||
+ | | ||
+ | Assigning an interface a persistent name so that bridging and static ifupdown assignments don't fail on reboot. | ||
+ | |||
+ | sudo nano / | ||
+ | SUBSYSTEM==" | ||
+ | | ||
+ | Convert pdf to Word | ||
+ | |||
+ | libreoffice --infilter=" | ||
+ | | ||
+ | Instruct a client to ignore the DNS server offers made by the router on Debian. | ||
+ | |||
+ | sudo nano / | ||
+ | |||
+ | In that file, find the section that begins with '' | ||
+ | |||
+ | request subnet-mask, | ||
+ | domain-name, | ||
+ | dhcp6.name-servers, | ||
+ | netbios-name-servers, | ||
+ | rfc3442-classless-static-routes, | ||
+ | |||
+ | After that's removed, find the section that begins with '' | ||
+ | |||
+ | prepend domain-name-servers 192.168.1.20; | ||
+ | prepend domain-name-servers 192.168.1.21; | ||
+ | sudo systemctl restart networking | ||
+ | | ||
+ | After you restart networking, run '' | ||
+ | |||
+ | tcpdump -vv -x -X -s 1500 -i eth0 'port 853' | ||
+ | |||
+ | In order to set a policy on Chrome to stop DOT, or DNS over TLS/https, do the following: | ||
+ | |||
+ | sudo nano / | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | |||
+ | Running Debian testing/ | ||
+ | |||
+ | sudo apt-get install linux-headers-$(uname -r) | ||
+ | |||
+ | Alright .... | ||
- | --- //[[oemb1905@jonathanhaack.com|oemb1905]] | + | --- //[[webmaster@haacksnetworking.org|oemb1905]] |