Another way to print your IP address in Linux. This is a very useful one liner.

This simple one liner will print out your IP address and then IPv6 equivalent if you have it set. [homer@localhost ~]$ ifconfig enp6s1 | awk ‘/inet/ { print $2 } ‘ | sed -e s/addr:// 192.168.1.2 fe80::213:46ff:fe3a:283[homer@localhost ~]$ ifconfig enp6s1 | awk ‘/inet/ { print $2 } ‘ | sed -e s/addr:// 192.168.1.2 fe80::213:46ff:fe3a:283 Here … Read more

Using iptables on a Linux system to secure your computer against Internet threats. This is important.

Securing your Linux computer with iptables is a great way to make sure that you are safer from Internet attacks. The iptables(8) system is the built in firewall for a Linux system. This makes it very easy to secure your computer. Before you change any settings, backup your iptables configuration. iptables-save > backup.confiptables-save > backup.conf … Read more

Linux commands to find out hardware information.

Linux hardware information commands. There are many commands available for Linux that allow the user to get information about their hardware. Here is a handful of them. The lshw command is very useful for getting information about your installed hardware. ubuntu ~ $ sudo lshw -short H/W path Device Class Description ============================================================================================================================================== system HVM domU … Read more

How to disable the caps lock key permanently on Linux Mint and Ubuntu.

The caps lock key on Linux is very annoying when hit accidentally. Especially when you are typing a password. This simple command will disable the key permanently. homer@deusexmachina ~ $ setxkbmap -option ctrl:nocapshomer@deusexmachina ~ $ setxkbmap -option ctrl:nocaps If you put this in Startup Applications which may be found under System-Preferences-Startup Applications, the caps lock … Read more

How to convert an IP address to binary. This is very easy with this command.

This simple one-liner allows conversion of an IP address from decimal to binary. I came up with this after playing around with cut and grep. homer@deusexmachina ~/Documents $ ipcalc 172.18.31.2 | grep Address | cut -b 33-68 10101100.00010010.00011111. 00000010homer@deusexmachina ~/Documents $ ipcalc 172.18.31.2 | grep Address | cut -b 33-68 10101100.00010010.00011111. 00000010 The -b parameter … Read more

Ubuntu 12.04 LTS beats Windows and Macintosh as a secure operating system. This is not surprising.

Ubuntu 12.04 has proven to be more secure than Windows and Macintosh operating systems. This is not surprising though. The preponderance of Linux distributions based upon Debian is making it even easier for people to get started with computing. Ubuntu has always been a good choice for desktop computing, the easy to use desktop and … Read more

Another look at the WIFI Radar application for Linux. A good tool for a wireless site survey.

The WIFI Radar application for Linux is used to perform a wireless site survey to determine the signal strength of a wireless network that you are deploying at a particular site. This application makes a survey of wireless signal strength very easy indeed. The SSID/MAC address of the access point is shown, as well as … Read more

How to get the MD5 sum of a file with the Linux command line and the md5sum command.

The md5sum command on Linux is used to get a number that is the checksum of the file. This is commonly used to verify downloaded files to check that the file has not been modified. Below is an example, the md5sum command is used on a BMP file and I get the file checksum output … Read more

How to open a rar file with the Linux command line. This is very easy.

The unrar command for Linux takes care of opening rar files. Firstly, install the command with the yum install unrar command. [root@localhost Downloads]# yum install unrar[root@localhost Downloads]# yum install unrar Or this way on a Debian GNU/Linux system. [user@debian ~]$ sudo apt-get install unrar[user@debian ~]$ sudo apt-get install unrar Then you may unpack your rar … Read more

MATE desktop to be offered by default in the repositories for Ubuntu 14.04.

The MATE desktop that is available for the popular Linux Mint distribution is to be offered in the repositories for Ubuntu 14.04. This will offer a better Linux desktop environment than the default Unity desktop that Canonical have created. The Ubuntu distribution has been used in Doctor Who, this helps push this distribution of the … Read more

The best openbox themes for your minimalist desktop to look its best.

Best Openbox themes. Metro X: http://box-look.org/content/show.php/Metrox+20131103?content=161079. A Windows 8 Metro inspired Openbox theme. Win 7: http://box-look.org/content/show.php/Win7?content=162490. A Windows 7 styled theme for PekWM. Nodoka openbox theme: http://box-look.org/content/show.php/Nodoka?content=126725. This is an Openbox theme intended for use with the Nodoka GTK engine. Turquoise nights: http://box-look.org/content/show.php/Turquoise+Nights+Ob?content=120386. A dark theme for Openbox. Solaris theme for Fluxbox: http://box-look.org/content/show.php/Solaris%3A+Java+Fluxbox+System?content=63303. TWM theme: … Read more

How to re-build the ATI drivers on Fedora 20 after upgrading the kernel.

I recently updated to a new kernel version and the ATI drivers were not loaded as they had not been built for that kernel. I had to re-compile the ATI drivers, so I switched to the root user and navigated to this folder. [root@localhost homer]# cd /lib/modules/fglrx/build_mod/[root@localhost homer]# cd /lib/modules/fglrx/build_mod/ Then I ran this command … Read more

The best GTK themes and wallpapers for your Ubuntu or Linux Mint desktop.

GTK Themes. Zukitwo: http://gnome-look.org/content/show.php/Zukitwo?content=140562. A very good GTK theme for Gnome Shell and MATE. DeLorean-Dark — Gnome 3.4 & 3.6: http://gnome-look.org/content/show.php/DeLorean-Dark+–+Gnome+3.4+%26+3.6?content=153866. DarkMint: http://gnome-look.org/content/show.php/DarkMint?content=150904. Piratunbu theme 6.0: http://gnome-look.org/content/show.php/Piratunbu+full+theme+for+Ubuntu+13.10?content=147063. A pirate themed look for Ubuntu. reNIX (for Unity and GS): http://gnome-look.org/content/show.php/reNIX+%28for+Unity+and+GS%29?content=153312. A squared theme for Unity and Gnome Shell. Win2-7 Remix: http://gnome-look.org/content/show.php/Win2-7+Remix?content=153233. A Windows 7 styled theme … Read more

How to search and replace text in a file with sed. Not using cat.

The sed command is very useful for searching and replacing text in a file. This is how to search for and replace a text string in a file. Homer@bejiitas ~ $ sed -i ‘s/<main>/<mein>/gi;’ my.cHomer@bejiitas ~ $ sed -i ‘s/<main>/<mein>/gi;’ my.c This is how to search and replace text in a file and leave a … Read more

How to install libdvdcss on Fedora 20 to enable DVD playback.

The libdvdcss library is used to playback encrypted DVD disks on a Linux operating system. Download the tarball here: http://www.linuxfromscratch.org/blfs/view/svn/multimedia/libdvdcss.html. Then we need to unpack the tarball. [homer@localhost libdvdcss-1.2.13]$ tar -xvf libdvdcss-1.2.13.tar.bz2[homer@localhost libdvdcss-1.2.13]$ tar -xvf libdvdcss-1.2.13.tar.bz2 Then enter the directory. [homer@localhost libdvdcss-1.2.13]$ cd libdvdcss-1.2.13/[homer@localhost libdvdcss-1.2.13]$ cd libdvdcss-1.2.13/ Then begin the compilation process. [homer@localhost libdvdcss-1.2.13]$ ./configure … Read more