How to save your iptables firewall rules using the iptables-persistent package for Linux.

The iptables firewall is the built-in firewall for protecting a Linux machine from online threats. But the settings are not save upon a re-boot. This is easily alleviated by installing the iptables-persistent package for Ubuntu. Once this is installed, you will be greeted with a screen that will ask you if you wish to save … Read more

How to use the ping command in a script to get an IP address automatically and ping it.

This command will get the IP address from the interface supplied and then ping it. ping $(ifconfig enp6s1 | awk ‘/inet / { print $2 } ‘ | sed -e s/addr://)ping $(ifconfig enp6s1 | awk ‘/inet / { print $2 } ‘ | sed -e s/addr://) Here is an example. This shows how well this … Read more

Mt Gox source code leaked to the Internet. This is a good example of how not to setup a bitcoin exchange.

This is a screenshot of some leaked source code for a Bitcoin exchange. This source code is intended to access a MySQL database. Here is the full code listing: http://pastebin.com/W8B3CGiN. The bitcoin digital currency was devised to allow payment over the Internet using a digital currency. This breach shows that security is not absolute. But … Read more

Some more beautiful wallpapers for your high-resolution Linux desktop.

http://res1.windows.microsoft.com/resbox/en/windows/main/6c386979-15d5-4878-b7f6-cc15a17f32e2_5.jpg. Crater lake wallpaper. This one is very nice indeed. http://res2.windows.microsoft.com/resbox/en/windows/main/b76ed5b2-26aa-4408-8808-1e9481cd24fd_5.jpg. Full moon over a Greek township. http://res1.windows.microsoft.com/resbox/en/windows/main/5a08e8ef-3098-4209-abbe-991e746adf82_5.jpg. Illuminated Alhambra, Andalusia (Spain). http://res1.windows.microsoft.com/resbox/en/windows/2013-win81ga/4305912a-c44c-499a-b211-1b8dcf2253db_5.jpg. Kuala Lumpur at night. http://res2.windows.microsoft.com/resbox/en/windows/2013-win81ga/8ee15352-2ef5-4c41-bca8-1bd38261bde5_5.jpg. Quiraing, Isle of Skye (Scotland, U.K.). http://res2.windows.microsoft.com/resbox/en/windows/main/8b97cd10-a7f5-46f5-8dc4-727e94ce4aeb_6.jpg. Windmills, Kinderdijk (Netherlands). http://hqdesktop.net/wallpapers/l/1920×1080/17/outer_space_stars_planets_rings_digital_art_1920x1080_16429.jpg. A massive crater on a moon and Saturn in the background. Awesome HD space wallpaper. http://hqscreen.com/wallpapers/l/1920×1080/63/digital_art_outer_space_sea_1920x1080_62719.jpg. … Read more

Useful networking study resources for students.

Some useful networking resources. http://www.routeralley.com/ra/docs/tcp_udp.pdf TCP and UDP reference. http://www.razorpoint.com/PDF/Rz.PortsList.pdf TCP/IP Ports listing. This is very useful for reference. http://www.gasmi.net/tcp.php Another TCP ports listing in HTML. http://www.hardwaresecrets.com/article/431 An introduction to the OSI model and how the TCP/IP  Protocol works. http://www.protocols.com/pbook/tcpip1.htm A definition of common TCP/IP names. Intro to TCP/IP. TCP/IP and subnet masking explained. Kali … Read more

How to list all iptables rules that are set on your Linux system. This is very easy.

The iptables -L or iptables –list commands will list all of the iptables rules that are set on your Linux machine. Below is the abbreviated output of this command on my Fedora Linux system. [root@localhost homer]# iptables –list Chain INPUT (policy ACCEPT) target prot opt source destination ACCEPT all — anywhere anywhere ctstate RELATED,ESTABLISHED ACCEPT … Read more

Another very useful BIOS simulator. This is for a Phoenix BIOS.

http://www.grs-software.de/sims/bios/phoenix/pages/. This is a BIOS simulator that allows a visitor to practice using a Phoenix BIOS in a web browser. This is a very useful page for playing around with BIOS settings without hurting anything. There is another simulator here: Thinkpad X40 BIOS simulator. This one is also very interesting to play with. More BIOS … Read more

How to find a file with Linux using the command line.

The Linux command line offers useful tools that enable you to find files easily. The find command is one useful example. Here I am using the find command to look for all *.png files in a folder. homer@deusexmachina ~/Documents $ find /usr/share/backgrounds -name "*.png" /usr/share/backgrounds/linuxmint-petra/linux_mint_16.png /usr/share/backgrounds/linuxmint-petra/petra.png /usr/share/backgrounds/warty-final-ubuntu.pnghomer@deusexmachina ~/Documents $ find /usr/share/backgrounds -name "*.png" /usr/share/backgrounds/linuxmint-petra/linux_mint_16.png /usr/share/backgrounds/linuxmint-petra/petra.png … Read more

How I got the ATI graphics working again with the 3.13 kernel on Fedora 20.

I recently updated to the 3.13 kernel on Fedora Core 20 and the 12.1 ATI drivers stopped working. I fixed this by downloading the 14.1 beta drivers which support that kernel. Download this here: http://support.amd.com/en-us/kb-articles/Pages/Latest-LINUX-Beta-Driver.aspx. This works perfectly for those Fedora 20 users like me who are also affected by this update. Just uninstall the … Read more

The new Ubuntu 14.04 Unity desktop. Some cool new features.

The new Ubuntu 14.04 Unity desktop has some cool features. The icons on the sidebar launcher may be re-sized to 16 pixels in size. This allows the launcher bar to take up even less space. And the new 3.13 kernel includes many enhancements over the old 3.12 release. Firefox 25.0 is the standard browser for … Read more

How to use ipgrab to capture TCP packets that are travelling through a network interface.

How to use ipgrab to capture TCP packets. The ipgrab command when run as root is very useful for capturing information about network packets that are traveling through your network interfaces. In this example I am capturing packets from my wlan0 interface. ubuntu ~ $ sudo ipgrab -i eth0 > capture.log ipgrab 0.9.10 Listening on … Read more

How to convert a midi file to Ogg or FLAC with Timidity.

This is how to use Timidity to convert a MIDI file into an Ogg Vorbis audio file. This is very useful for playing them with Banshee or Audacious. [homer@localhost Documents]$ timidity sound009.mid -Ov -o blood009.ogg Playing sound009.mid MIDI file: sound009.mid Format: 1 Tracks: 10 Divisions: 480 Sequence: Seq-1 Track name: Track-5 Track name: Track-7 Track … Read more

ASUS and Linksys router vulnerabilities leaving computer users exposed.

The many vulnerabilities uncovered that allow malicious read-write access to hard drives connected to ASUS routers continues to be a dangerous thing that needs to be addressed. There is a patch for ASUS routers that patches this vulnerability; but it is up to the users to install this patch. This is far too easy to … Read more

Using the tar command on Linux to uncompress tar.gz files with the command line.

The tar command on Linux is very useful for uncompressing files on your Linux machine. The most used command on a Linux system is uncompressing files that you have downloaded from an Internet source. The tar -xvf command will uncompress a tar.gz file. ~$ tar -xvf myfile.tar.gz~$ tar -xvf myfile.tar.gz To uncompress a tar.bz2 file … Read more

An alternative to CPU-Z for your Ubuntu or Linux Mint desktop. This utility is awesome.

A very good CPU-Z alternative for a Linux machine. This awesome utility for Linux is an alternative to the CPU-Z program for Windows machines. This allows the user to gather information about their computer with a nice tabbed interface. There is a tab to gather system/OS information as well as CPU statistics. This is very … Read more

How to find out which rpm package provides a file that you need.

How to find out what rpm package provides a file that you need. The yum provides command is useful for finding out this information. You may use wildcards to search for a file, this can make finding it easier. [homer@localhost jackhammer]$ yum provides */redhat**.jpg Loaded plugins: langpacks nagios-3.5.1-4.fc20.x86_64 : Nagios monitors hosts and services and … Read more

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