No Image

openssl

February 10, 2014 Andy 0

The OpenSSL project is an open-source general purpose cryptography library that implements the SSL and TLS protocols. Configuration File The configuration file for OpenSSL is openssl.cnf. The location of which will probably vary across Linux distributions. On Red Hat systems the configuration file is as shown below. /etc/pki/tls/openssl.cnf You can use this file to define certain default values. For example, editing the dir variable sets the default directory for saving your certificates. You will need to first create the directory if you change this value. dir = /certs/ssl/ca Some additional variables I like to set are as shown below. You […]

No Image

tar

February 10, 2014 Andy 0

Compressed Archive Resources How do I Compress a Whole Linux or UNIX Directory? http://www.cyberciti.biz/faq/how-do-i-compress-a-whole-linux-or-unix-directory/

No Image

nmap

February 10, 2014 Andy 0

nmap -sS 1.2.3.4 nmap -PN 1.2.3.4 -p 22 The -PN option treats the host as if it is online and will not perform any host discovery.

No Image

curl

February 10, 2014 Andy 0

curl -I http://pikedom.com http://curl.haxx.se/docs/httpscripting.html https://httpkit.com/resources/HTTP-from-the-Command-Line/ http://www.yilmazhuseyin.com/blog/dev/curl-tutorial-examples-usage/

No Image

locate

February 10, 2014 Andy 0

The locate command can be used to find files by name. As usual you can find out everything you could possibly want to know about the the locate command in the manual pages. man locate Essentially, locate, at set periods runs a cron job indexing each file name into a database. The locate command simply searches the database for a given file name. If you know the file you are searching for is new, you might first need to update the locate database with updatedb. In its simplest form, to find a file called myfile.txt, run. locate myfile.txt

No Image

find

February 10, 2014 Andy 0

You can use the find command to search a system for files or directories. The find command can be quite resource intensive as it trawls recursively through your file structure. Often a more suitable command is locate. See here for more information about the locate command. As usual you should head to the manual pages to find out more. man find In its simplest form, you can use the find command like this. find / -name myfile.txt The ‘/’ is the directory to start recursively searching from. We use the ‘-name’ command line option to indicate we are searching on […]

No Image

nvPY on Gentoo

December 14, 2013 Andy 0

nvPY is a fast, simple to use, no fuss, cross-platform note taking application. One of the big benefits is that all your notes are stored somewhere on the cloud – so you don’t need to worry about them! Unfortunately we can not simply use emerge to install nvPY, so there are a few prerequisites prior to installation. Prerequisites There are not many prerequisites to nvPY but here they are all the same. Simplenotes Account In order to use nvPY, you will first need to create yourself a simplenotes account at simplenote.com. Now armed with your simplenotes login credentails, you can […]

No Image

Create a Self-Signed Certificate for Apache

December 7, 2013 Andy 0

Contained within an SSL certificate is information that pertains to you and your secured domain. Lets imaging that you have a web hosting company called Spider and the details for which are shown below. Country Name (2 letter code): UK State or Province Name (full name): Surrey Location Name (city): Camberley Organisation Name (company): Spider Web Hosting Organisation Unit Name (section): IT Support Common Name (your domain name): spiderwebhosting.com Email Address (): webmaster@spiderwebhosting.com A challenge password: leave blank An optional company name: leave blank Generate a Private Key and Certificate Signing Request Here we generate a Certificate Signing Request and […]

No Image

Shutter with XMonad

December 7, 2013 Andy 0

For me, Shutter is the best open-source screenshot program available for Linux. When I used Windows, I really liked Snagit – Shutter is a good alternative. Installing Shutter Installing Shutter is straight forward enough. However, before doing so, I added a couple of use flags to enable the drawing tools and afford the functionality of taking screenshots of websites. This needed if you want similar functionality to Snagit where you can easily take a screenshot and then quickly and easily edit it. Such as highlighting an area or blurring-out sensitive information. echo “x11-misc/shutter drawing webphoto” >> /etc/portage/package.use To install, simply […]

No Image

Gentoo: Temporarily Configure Networking

December 7, 2013 Andy 0

This can be useful if your working from a LiveCD or testing the network. Note, “temporary” means it will not survive a reboot! To configure networking, adjust the below command for your own environment. ifconfig eth0 192.168.1.109 broadcast 192.168.1.255 netmask 255.255.255.0 up route add default gw 192.168.1.254 The above commands assign the static IP address of 192.168.1.109 to the eth0 interface and defines the default gateway as 192.168.1.254. You might also need to add some nameservers to your /etc/resolv.conf configuration file. nameserver 192.168.1.254 nameserver 1.2.3.4 Again, this configuration will be lost after a reboot. To permanently create these rules, use […]