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 … Read more

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 … Read more

The mtr command for Linux. Another way to trace network hops using the command line.

The mtr command for Linux is another good way to trace network hops. Use it like this: mtr –report [HOST] homer@deusexmachina ~ $ mtr –report yahoo.com Start: Mon Jul 28 07:42:16 2014 HOST: deusexmachina Loss% Snt Last Avg Best Wrst StDev 1.|– 192.168.100.1 0.0% 10 0.3 0.3 0.3 0.4 0.0 2.|– 185.3.148.122.network.m2c 0.0% 10 29.0 … Read more

Do You Really Need An Anti-Virus For Linux?

Do You Really Need An Anti-Virus For Linux?

Did someone tell you that you do not need to install an anti-malware for Linux? You mustn’t listen to that! It’s totally incorrect… Today, there is an increasing popularity of Linux as Desktop. Linux uses Gnome Environment, which is slowly but steadily getting attacked by malware authors. So, the free OS is no way malware … Read more

How to use the virtual console on modern Linux distributions.

The virtual consoles are six virtual terminals that allow the Linux user to administer their Linux system in a text-only environment. If you are on your Linux desktop, press Ctrl-Alt-F1 to get to the first virtual terminal. Use the Alt-F2 key combination to get to the next virtual console. Or you may hold Alt and … Read more

How to build a vanilla kernel from kernel.org on Linux and install it properly.

How to build and install a vanilla kernel on a Linux computer. How to build and install a vanilla kernel on a Linux computer.Getting the source code.Preparing to build the source.Compiling the kernelInstalling the kernel. This posting will explain how to build a vanilla kernel from kernel.org and properly install it to your Linux machine. … Read more

How to use the host command to get information about a host and do a reverse IP lookup.

This is how to get IP address information for a host. The host command is very useful for performing a DNS lookup. homer@neo:~$ host yahoo.com yahoo.com has address 206.190.36.45 yahoo.com has address 98.139.183.24 yahoo.com has address 98.138.253.109 yahoo.com mail is handled by 1 mta5.am0.yahoodns.net. yahoo.com mail is handled by 1 mta7.am0.yahoodns.net. yahoo.com mail is handled … Read more

How to renew your network interface IP address on Linux with the dhclient command.

The dhclient command on Linux is used to renew an IP address for a network interface. Here i am using Fedora 19 with the new standardised network interface names. root@neo homer# dhclient -v wlp0s26f7u5 Internet Systems Consortium DHCP Client 4.2.5 Copyright 2004-2013 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/   Listening … Read more

Another way to get information about your laptop battery when you are running Linux.

This command: upower -i /org/freedesktop/UPower/devices/battery_BAT0 will give you information about your laptop battery. homer@neo:~/Documents$ upower -i /org/freedesktop/UPower/devices/battery_BAT0 native-path: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:0c/PNP0C0A:00/power_supply/BAT0 vendor: PANASONIC model: Li_Ion_4000mA serial: 0000 power supply: yes updated: Sun Sep 29 02:39:34 2013 (3 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: discharging energy: 27.2484 Wh energy-empty: 0 … Read more

How to easily create a bash shell prompt for your personal use using a website interface.

The bash $PS1 generator here: http://www.kirsle.net/wizards/ps1.html allows you to create a cool bash shell prompt with a minimum of fuss. You can add colors to various parts of the prompt and make it look very nice indeed. Check it out now and see what you think. Here is one that I made. This uses tput … Read more

Happy 20th birthday to Debian. The distribution that spawned Ubuntu and Linux Mint.

This Linux distribution was started by Ian Murdock. He named Debian after his then-girlfriend Debra Lynn, therefore the distribution gained the name of Debian. Nowadays with the many derived distributions that use the Debian apt packaging system; the legacy of this distribution will live on long after the anniversary. We will not see the end … Read more

Useful applications and extensions for doing a WIFI site survey on Linux.

The WIFI Scanner application for Linux allows you to perform a WIFI site survey to test signal strength when deploying a wireless setup. This is very useful; you can walk around the building and see the signal strength to determine whether you should tweak the transmit power or add more wireless access points to improve … Read more

How to install the gcj Java compiler on Debian 7.0 and compile a simple program.

This is how to compile a Java source file on Linux with gcj. homer@neo:~/Documents$ gcj –main=HelloWorld HelloWorld.javahomer@neo:~/Documents$ gcj –main=HelloWorld HelloWorld.java This is the source file that I am working with. /* * My first Java program. * */   import java.util.Date;   public class HelloWorld {   public static void main(String[] args) {   System.out.printf("\"Hello, … Read more

Some very useful online Linux resources.

http://www.scribd.com/doc/12918020/Linux-Starter-Pack; The Linux starter pack. This is very good as an introduction to the Linux desktop and the various utilities available. http://tille.garrels.be/training/bash/; Introduction to Linux guide for beginners. This is a good resource if you want to learn more about the Linux shell and usage in general. http://securitron.securitronlinux.com/lc/rute/; Rute User’s Tutorial and Exposition. The definitive … Read more

How to install an anti-virus product for your Linux computer to protect any Windows machines from viruses.

Installation of Anti Virus software for Linux. This is to protect Windows users who are connecting to the Linux server to get files. This posting describes the installation and configuration of an Anti Virus product for Linux. I have chosen the Clamav Anti Virus product for x86 Linux. This Anti-Virus product is installed on a … Read more

International Space Station switches to Debian 6.0 instead of Windows XP.

The International Space Station has migrated all of its computers from Windows XP to Debian GNU/Linux 6.0. This will greatly add to the security of the computers on the ISS and although it requires retraining Cosmonauts in the use of the computers; this will have many benefits in the long run. Linux is more secure … Read more

The new Debian 7.0 distribution really is an awesome desktop Linux distribution.

I have just started using the Debian 7.0 distribution after installing it today on my laptop and it is an extremely good Linux distribution that has codecs already installed allowing the user to play Xvid and MP3 formats straight out of the box. The installation was quite painless; I had used up all of the … Read more

Viewing information about your user on Linux.

View information about your user on a Linux system The groups command displays the list of groups that your user is a member of. [neo@deusexmachina]:~> groups neo cdrom floppy audio dip video plugdev bluetooth scanner netdev[neo@deusexmachina]:~> groups neo cdrom floppy audio dip video plugdev bluetooth scanner netdev Using the id command will display a more … Read more