Linux IP Calculator

I found a CLI IP Calculator for Ubuntu, it’s really useful to quickly resolve network details without leaving the console. You can install using apt-get: sudo apt-get install ipcalc You can then run the following (as an example) ipcalc 192.168.0.0/17 and get the following results Address: 192.168.0.0 11000000.10101000.0 0000000.00000000 Netmask:…

Continue reading

Using Screen

Screen is a terminal multiplexer, which allows you to access multiple separate terminal sessions inside a single terminal window or remote terminal session.  This can be really useful when you are performing different tasks at the same time, or when you have a process that will take a long time to complete.  …

Continue reading

Apt-get via a proxy

To get apt-get to go out via a proxy, edit the apt.conf: sudo nano /etc/apt/apt.conf Add in your proxy (you only need to add an http proxy, but can add in ftp and https if your repositories require this). Acquire::http::proxy “http://<proxy>:<port>/”;  Acquire::ftp::proxy “ftp://<proxy>:<port>/”;  Acquire::https::proxy “https://<proxy>:<port>/”;

Continue reading

Installing Duo Security on Ubuntu

Duo Security offer a free two factor authentication (limited to 10 users), which I have found very useful to secure servers. http://www.duosecurity.com/docs/duounix First install the compiling software sudo apt-get install build-essential automake checkinstall libssl-dev libpam-dev Visit https://github.com/duosecurity/duo_unix/downloads to download the latest version of of install, and use wget to dowload it. sudo wget https://dl.duosecurity.com/duo_unix-latest.tar.gz…

Continue reading

Install Dropbox on Ubuntu

To download Dropbox, you can do this by typing the following in a terminal: wget -O dropbox.tar.gz “http://www.dropbox.com/download/?plat=lnx.x86_64” Extract the file tar -xzvf dropbox.tar.gz Run dropboxd to link this server to your account ~/.dropbox-dist/dropboxd You will be prompted to visit a URL, copy this into a browser as this wil…

Continue reading

Install Logwatch on Ubuntu

First you need to install Logwatch, you can do this by typing the following in a terminal: sudo apt-get install logwatch Create a directory the Logwatch package in the repositories currently does not create, but is required for proper operation: sudo mkdir /var/cache/logwatch Configuration shouldn’t be edited in the install…

Continue reading

Install compile software on Ubuntu

You might need to compile software depending on the language in which the program is written. Applications which require compiling are usually written in C and C++. If this is the case, you will need to install a compiler gcc which can be obtained by installing the build-essential package. Normally, you can do this by typing the following…

Continue reading