Commands Just a quick reminder here as I always forget this command. getent group <group name> getent passwd <account name> id –a <account name>
Simple Bash Ping Script
I saw this and thought hmmm, this could come in very handy. As did ‘The Stupid Engineer‘ As it says in the title, the command is: for i in `seq 1 255`; do ping -c 1 192.168.1.$i | tr \\n
Turn a Linux Machine into a SOCKS Proxy in a Single Command

Introduction Need a proxy? Want to hide your IP? This is a sneaky and easy trick. Just use the following: ssh -f -N -D 0.0.0.0:1080 localhost Thats it! All there is to it. Doesn’t even need root access. Now Open-SSH
Base64-encoding Usernames & Passwords
Intoduction If a base 64 encoded password is needed for testing. Here’s the code required: Commands ~$ perl -MMIME::Base64 -e \ > ‘print encode_base64(“john\@example.org\0john\@example.org\0password”)’; This will output the following base 64 encoded string: ZGF2ZUBpcC1saWZlLm5ldABkYXZlaXAtbGlmZS5uZXQAcGFzc3dvcmQ=
Auto Mounting Drives on Linux Mint

Introduction I had started to really use Linux more and more so decided why not use Linux for my desktop as well? However I did not want to get rid of Windows, I am not a Linux fan-boy, I still
Splitting and Reassembling files via the CLI Linux

Introduction If you’ve ever had the need to get some data out of a locked down environment but need to chop the data up into bits due to issues with size constriants, you have some options. There are numerous different
Install Cacti on CentOS 6.x

Introduction The following guides cover it. http://www.tecmint.com/install-cacti-network-monitoring-on-rhel-centos-6-3-5-8-and-fedora-17-12/ Watch out for the section named “Configure MySQL settings for Cacti”, the file it references the path as /etc/cacti/db.php but the path may actually be /var/www/cacti/include/config.php http://www.betweendots.com/topic/4-install-cacti-on-centos-6x/ Things to look out for: Path
Linux Pausing Commands And Running Commands In The Background

Introduction What is this tip about? Just a simple one but really useful. Imagine this, you open a text editor to create or modify a file but halfway through someone says, “Can you just check this for me quick .
How to Auto Redirect Apache Default Webpage to a Specific Page CentOS

Introduction Not much to add here as its the same as an older post: https://ip-life.net/how-to-auto-redirect-apache-default-webpage-to-a-specific-page/ Fix The only difference required in CentOS is to actually make the index file in the /var/www/html/ location: # touch /var/www/html/index.html Then modify as per
RANCID Scripts for VyOS/Vyatta
Introduction I wanted to add my Vyatta virtual router to my RANCID server as I was in the process of extensive testing for IPv6. Luckily I found this little gem and thanks to those who created the scripts: https://github.com/natecarlson/vyatta-rancid Now