TRAVERSING NAT: HOW TO SETUP A PERMANENT TUNNEL BETWEEN YOUR PC AND A SSH SERVER SO YOU CAN CONNECT TO YOUR PC @ ANYTIME ########################################################################################################################### Lets say you have a machine/pc/serverRead More…
SSH Passwordless login and running command – using key authentication
PASSWORDLESS LOGIN ################## This is not a lesson on public and private keys, I hope you know what those are. Also DSA vs RSA not covered here. But if you have aRead More…
Spying on your system with LSOF – LSOF command list
WHAT IS LSOF AND BENEFIT: lsof lists every used file (and in linux a file is everything) so this lists every used everything. AKA spying on your system (see if there isRead More…
Software RAID – mdadm – making a SPARE into an ACTIVE drive + Fix auto-read-only
MAKE SPARE AN ACTIVE MEMBER AND NOT A SPARE WITH RAID5 AND MAKE AUTO-READ-ONLY GO AWAY THIS FIX WORKS WITHOUT HURTING YOUR DATA IF YOU FOLLOW THE STEPS 🙂 WHAT WAS THERead More…
Simple HTTP Fileserver / Webserver on Debian
SIMPLE FILESERVER / WEBSERVER ON DEBIAN ========================================= Networking PreSteps ——————— Im assuming your web server is behind a NAT (router/firewall etc.) So all of the port forwards are completely configured from yourRead More…
secondary ip address – multihoming – with ifconfig – virtual interfaces
How to add secondary ip to linux ################################ NOTE: this is not a permanent method as we use ifconfig, to have a more permanent method we need to edit /etc/network/interfaces but thatsRead More…
script to delete problematic files and folder
BE VERY CAREFUL!!! SCRIPT TO DELETE PROBLEMATIC FOLDERS AND FILES ============================================== * i had a problem where everything in the current folder wouldnt delete and then the system would turn readonly onRead More…
screen/dtach – basic attach detach reattach – copy splitting – cheatsheet
screen and dtach allow to detach the current terminal from the shell. Thus you can turn off your shell (putty/teraterm) and still have your sessions running. You can start a session withRead More…
RSYNC Self Restarting Backup – “RSYNC loop to success” – version 1
Version 2 can be found here: version2 (note version 2 isnt necessarily better, its just shorter) What is this? This is how you make a backup job with linux or windows (withRead More…
rsync – how to exclude
RSYNC EXCLUDE ############## Imagine the source /from folder looks like this where / is the real root of the filesytem * /from/folder1 <– this has lots of files & subfolders in itRead More…