How to use scp to download files from a remote machine over a secure encrypted connection.

This is the sample command I am using to download my OpenVPN keys from a remote VPN server to allow me to setup a local connection. And to backup the keys safely. [1]homer@deusexmachina ~ $ scp -i Goku.pem -P 443 [email protected]:/home/ubuntu/easy-rsa/keys/*.* /home/homer/vpn/ 01.pem 100% 5589 5.5KB/s 00:00 ca.crt 100% 1736 1.7KB/s 00:00 ca.key 100% 1704 […]

Very funny Finally Fast commercial. This is hilarious!

How to perform an Internet speedtest using the command line in Ubuntu.

A network speedtest is a good way to get a picture of how fast your Internet connection really is. To perform a speedtest in Ubuntu, first install pip using this command. sudo apt-get install python-pip Then install speedtest-cli. homer@ubuntu:~$ sudo pip install speedtest-cli Downloading/unpacking speedtest-cli Downloading speedtest-cli-0.3.1.tar.gz Running setup.py (path:/tmp/pip_build_root/speedtest-cli/setup.py) egg_info for package speedtest-cli Installing […]

Basic text filtering with sed. Very useful when you are manipulating text files.

This example uses sed to replace the beginning word of a sentence. Administrator@WIN-EM8GK0ROU41 ~ $ echo “this is a line of text.” | sed “s/this/This/gi;” This is a line of text. This is a better way to capitalize the first letter of every word in the sentence. I found this tip here. Administrator@WIN-EM8GK0ROU41 ~ $ […]

CDE desktop running on Ubuntu 14.04.

I have got the CDE desktop to compile on Ubuntu 14.04. I found this website: https://www.ics.com/blog/retrocomputing-motif-and-cde#.U-840NaKhqg, which in turn lead me here: http://sourceforge.net/p/cdesktopenv/wiki/LinuxBuild/, a WIKI which contains the build instructions for Ubuntu 14.04. I followed this guide and the build worked perfectly. This is very cool indeed. The performance of the CDE desktop is very […]

The best tutorial I found to install FreePBX on Ubuntu 14.04 LTS server.

This is the best tutorial I have found that allowed me to install FreePBX on an Ubuntu 14.04 instance on an Amazon AWS instance. I tried a few and this one really did work for me after following all of the steps and exercising patience. http://wiki.freepbx.org/display/HTGS/Installing+FreePBX+12+on+Ubuntu+Server+14.04+LTS. FreePBX is a very useful tool for setting up […]

How to print out a list of all BBC news headlines with the command line. This is very cool.

This simple one-liner will print out all of the news headlines from the BBC news website in a simple text format. This is useful if you want to do something with a list like this. Or if you just want a listing to see if there is anything interesting happening. curl http://feeds.bbci.co.uk/news/rss.xml | grep “<title>” […]

How to format a partition on Linux using the mkfs command.

The formatting of a hard disk partition on Linux is not very difficult if you use the right command. The mkfs command is used on Linux for this task; I will be showing a simple example of its usage here to make it clear how this is done. This is a simple example; I am […]

Some miscellaneous Linux tips for Ubuntu and Linux Mint users.

If you are starting Firefox from a terminal window where you have specified the proxy settings, and you have the use system proxy settings option ticked, you will not need to set the proxy within Firefox. That is a very cool tip indeed. If you need to set the proxy before using apt, you will […]

How to connect to a Windows machine using RDP from a Linux machine using bash.

The rdesktop utility for Linux allows easy remote desktop access from a Linux machine. Type: sudo apt-get install rdesktop to install this useful utility and then type: rdesktop 192.168.100.5 to connect to a remote machine. Specify the username with the -u parameter: rdesktop -u homer 192.168.100.5. If you wish to use RDP in full-screen; enabling […]

Configuring private Internet access with OpenVPN on Linux Mint.

Private Internet Access with OpenVPN.

Some very useful networking tricks for Linux users.

Get your gateway IP address with curl on the command line. [homer@localhost ~]$ echo $(curl -# http://ipecho.net/plain) ######################################################################## 100.0% 153.107.97.164 Another way to list the IP addresses of your network interfaces. Using the ip command. [homer@localhost ~]$ ip a | grep inet* inet 127.0.0.1/8 scope host lo inet6 ::1/128 scope host inet 192.168.233.138/24 brd 192.168.233.255 […]

The ss command. A very useful way to find open and listening ports on a Linux system.

The ss command for Linux allows a user to list all listening ports on a Linux system. This command lists all listening TCP ports. homer@deusexmachina ~ $ ss -l -t State Recv-Q Send-Q Local Address:Port Peer Address:Port LISTEN 0 1 127.0.0.1:4101 *:* LISTEN 0 50 *:netbios-ssn *:* LISTEN 0 128 *:sunrpc *:* LISTEN 0 128 […]

Useful networking commands for listing open ports and listening services.

To print a list of all open ports and established TCP connections, type this command. homer@deusexmachina /etc/asterisk $ netstat -vatn Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.1:4101 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 […]

A useful script for gaining information about your Ethernet adapter.

This useful shell script will print information about your Ethernet or Wireless adapter. This is very useful for getting a lot of information at once. #!/bin/sh DEV=”eno16777736″ echo “Showing information for the active network interface: $DEV.” echo -e “-*- \e[1mGet timestamping information for your Ethernet device.\e[0m -*-” echo ethtool -T $DEV echo -e “-*- \e[1mPrinting […]