NOTE: aliases for apt-get are at the top, aliases for systemd’s journalctl (debian version) are at the bottom Aliases if you dont know make life easier on linux by doing direct substitionRead More…
IPTABLES – better version for webserver like wordpress
Thanks to: http://bencane.com/2012/09/17/iptables-linux-firewall-rules-for-a-basic-web-server/ http://www.linux.org/threads/base-iptables-rules-that-will-apply-to-virtually-any-web-server.10/ (used this script with modifications) NOTES: Here is a simple script that allows all outbound connections and the inbound connections coming back from those outbound connections (conntrack). AlsoRead More…
DEBIAN – Fix timezone – and see when Daylight Saving Time is ON and OFF
To fix timezone on latest version of debian: # dpkg-reconfigure tzdata That will bring up a menu to fix your timezone, I picked America, Pacific (not Pacific-New, no clue what that is,Read More…
BTRFS – btrfsck, and checking latest version
USE METHODS AT YOUR OWN RISK, IF YOU DECIDE TO USE THIS ARTICLE, HEED ALL OF THE SAFETY MEASURE (IF I MISSED A SAFETY MEASURE, DONT BLAME ME, I SAID USE ATRead More…
BTRFS – transid issue explained and fix
USE METHODS AT YOUR OWN RISK, IF YOU DECIDE TO USE THIS ARTICLE, HEED ALL OF THE SAFETY MEASURE (IF I MISSED A SAFETY MEASURE, DONT BLAME ME, I SAID USE ATRead More…
BTRFS – restore a corrupt filesystem – btrfs recovery mounts & btrfs restore
USE METHODS AT YOUR OWN RISK, IF YOU DECIDE TO USE THIS ARTICLE, HEED ALL OF THE SAFETY MEASURE (IF I MISSED A SAFETY MEASURE, DONT BLAME ME, I SAID USE ATRead More…
HOW TO COPY PUBLIC KEY TO SSH SERVER THATS NOT LISTENING ON PORT 22 – ssh-copy-id only works on port 22 – ssh-copy-id at bottom
HOW TO COPY PUBLIC KEY TO SSH SERVER THATS NOT LISTENING ON PORT 22 – ssh-copy-id only works on port 22 ######################################################################################################## This is needed for passwordless authentication with ssh. Instead ofRead More…
FROM 404 PAGES TO SEARCH PAGES – MAKING A 404 SEARCH PAGE INSTEAD OF A PAGE NOT FOUND
How to repurpose 404 pages from displaying “page not found” to instead searching for page. So that instead it will do a search through your website’s php URI search feature. Thank you to MarkRead More…
Calculate size of everything with echo and find – command substitution, bash integer math
Print the size of everything in the system (Starting at /) in bytes: echo $(($(find / -print “+%s”))) Print the size of everything in the system (Starting at /) in Kbytes: echo $(($(find /Read More…
How to generate a Password using any letter or all letters in CLI – echo, /dev/random, /dev/urandom, head
The linux tr command can be used to substitute certain given letters, or delete them or do substitution and deletion on the given letters compliment. Meaning if I say delete all k’s,Read More…