How to show the routing table on Linux with the bash command shell.

Netscape Navigator install floppies.

The netstat command may be used to show the routing tables for your network connection easily. Use the netstat -r command to achieve this. iMac05:~ admin$ netstat -r Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 172.18.31.1 UGSc 31 0 en0 127 localhost UCS 0 0 lo0 localhost localhost UH 0 0 […]

Happy Birthday Ubuntu! 10 years of Linux goodness.

The Ubuntu Linux distribution has turned 10. This distribution of the Linux kernel and various user-space tools is the one one thing that has really spurred interest in Linux on the desktop. I just wish that you could get the newer desktops to look just like the classic Ubuntu 5.10 Gnome 2 desktop. But Unity […]

What the insides of the new 5K iMac look like.

The new 5K iMac looks very simplistic when you take the screen out. There is one hard disk drive and one cooling fan that takes hot air away from the CPU. The main selling point of the new iMac is the 5K screen, not the Darwin UNIX based OSX operating system or the ease of […]

How to change the default shell for new users on your Ubuntu Linux system.

The useradd command is used to add new users on your Linux system. But it can be used for other things too. You may display the defaults for new users. jason-H55-USB3% sudo useradd -D GROUP=100 HOME=/home INACTIVE=-1 EXPIRE= SHELL=/bin/sh SKEL=/etc/skel CREATE_MAIL_SPOOL=no Use the -s parameter to useradd and this will change the default shell for […]

How to uninstall a package in Ubuntu.

To remove a package in Ubuntu, use the sudo apt-get remove command. This will uninstall the package. jason-H55-USB3 [mc] ~ 14-10-18 8:47PM jason-H55-USB3% sudo apt-get remove linphone Reading package lists… Done Building dependency tree Reading state information… Done The following packages were automatically installed and are no longer required: libexosip2-10 liblinphone5 libmediastreamer-base3 libortp9 libosip2-10 libupnp6 […]

Using the route command on Linux to show the routing table.

The route command on Linux will show the kernel routing table, this is very useful as in my case, when you are using a VPN and you need to see the routing table. This is an example, I am viewing the routing table on my Ubuntu 14.04 machine running OpenVPN. jason-H55-USB3 [route -v] ~ 14-10-17 […]

Cool Linux tricks and hacks for the desktop and server user.

Using the shellshock bash bug on an iMac. iMac04:~ admin$ env VAR1=’me() {echo “hello”}\ ‘ /bin/echo “hello” hello Getting free hard disk space easily. iMac04:~ admin$ df -Hla Filesystem Size Used Avail Capacity iused ifree %iused Mounted on /dev/disk0s2 89G 64G 25G 73% 15757422 6089307 72% / /dev/disk0s4 410G 4.7G 405G 2% 1147839 98859403 1% […]

Use iperf to check the bandwidth between two servers over the Internet.

The iperf utility is used to transfer data from one machine to another over the Internet. This is a client-server utility and is the go-to utility to test a Wide Area Network connection. To use this, type sudo apt-get install iperf. Then open port 5001 in your router and/or firewall to allow the incoming connection […]

Indian space probe imaging the Martian landscape from space.

The Indian space probe, Mars Orbiter Mission has reached the red planet. This is a momentous day for the struggling nation, this shows that anyone can reach into space if they have the money and the determination to achieve greatness. Mars has always been a mystery ever since the first people to see the red […]

Some news about the new Windows 10 preview. It does have many improvements.

The new Windows 10 preview has just been released, since I have an MSDN account I have just downloaded this and installed it in VMware. My initial impressions are very positive, the CMD window now can be resized at will just like a Linux xterm window. This is the version of Windows you will see […]

A variant of the shellshock bug that still works with the bash 4.3.11 shell.

This is a variant of the shellshock bug for bash that still works on a patched system. I am using Ubuntu 14.04 and this still works for me. env VAR1=’me() {echo "hello"}\ ‘ /bin/touch /home/$LOGNAME/my.text So you can still put arbitrary content after the function definition in a bash script. I have installed the latest […]

Shellshock bug a wake up call for all Linux users, but not the end of the world.

The shellshock bug for Linux is a wake up call for all Linux administrators and home users, but this is not the end of the world. The Linux distribution developers will issue patches very soon after a leak of a bug like this. There is not going to be a massive catastrophe that the media […]

Check if you are vulnerable to the shellshock bug. This is an easy way to find out.

A vulnerable cygwin shell. Using the shellshock vulnerability to run ls in cygwin. Homer@bejiitas ~ $ x='() { :;}; `/bin/ls -hula`’ bash -c : bash: total 53K drwxrwxr-x+ 1 Homer Homer 0 Sep 26 18:38 . drwxrwxrwt+ 1 Homer Homer 0 Sep 26 2013 .. -rw-rw—- 1 Homer Homer 222 Sep 26 2013 .bash_history -rwxrwxr-x […]

How to upload files to your Amazon AWS instance using the bash shell and sftp.

This is how to copy files from the local machine to your Amazon instance when you are logged into the EC2 instance via SSH. Firstly, connect to the remote AWS instance by SSH. Then use the sftp command to connect back to your local Linux machine. sftp -P 443 [email protected] Then, you may use the […]

How to get an OpenVPN server working on Ubuntu 14.04.

This guide, [openvpn.net] has a good guide to setting up an OpenVPN server on a Linux machine. I used this guide as the other guides online are not as good and often do not lead to a satisfactory result. I am using one on Linux and I can connect to it on my Windows machine […]