Useful Linux weblinks. Very interesting information.

https://www.cs.cmu.edu/~gilpin/tutorial/. Debugging Under Unix: gdb Tutorial. http://docs.kali.org/general-use/starting-metasploit-framework-in-kali. Setting up the Metasploit framework in Kali Linux. http://www.backtrack-linux.org/forums/showthread.php?t=8154. Using the netdiscover command on Linux to scan for hosts on a network. https://insights.ubuntu.com/2014/10/10/watch-netflix-in-ubuntu-today/. Watch Netflix on Ubuntu with the Google Chrome browser and ditch Windows on your media center machine. http://www.linuxquestions.org/questions/programming-9/how-can-i-list-directories-only-in-linux-375219/. How to list only directories when using … Read more

How to get information out of the system logfiles on Linux. Showing failed logins.

There are a few ways to get information out of the /var/log files using the Linux command line. Here are a few examples. Show the history of apt commands on your Linux box with this command. jason@eyjafjallajkull:~$ grep ‘Commandline: ‘ /var/log/apt/history.log Commandline: apt-get upgrade Commandline: apt-get install gnome-alsamixer Commandline: apt-get install indicator-sound-switcher Commandline: apt-get upgrade … Read more

Use the netdiscover command to find hosts on your local LAN.

The netdiscover utility will list all connected hosts on your local LAN. This is useful for scanning a network and determining which hosts are online. I used this command to scan an IP range starting with 192.168.0.1. jason@darkstar:~$ sudo netdiscover -r 192.168.0.1/24jason@darkstar:~$ sudo netdiscover -r 192.168.0.1/24 Currently scanning: Finished! | Screen View: Unique Hosts   … Read more

How to convert a Wikipedia article to a text file using the Linux command line.

The wikipedia2text command allows a command line user on Debian to output the contents of a Wikipedia article to a text file on your hard drive. Install this command this way: jason@darkstar:~/Documents$ sudo apt-get install wikipedia2textjason@darkstar:~/Documents$ sudo apt-get install wikipedia2text Then convert an article this way. jason@darkstar:~/Documents$ wikipedia2text Debian > Debian.txtjason@darkstar:~/Documents$ wikipedia2text Debian > Debian.txt … Read more

List files by modification date with the ls command on Linux.

This one-liner will list all files in a directory by modification time, newest first. jason@eyjafjallajkull:~/Pictures$ ls -thuljason@eyjafjallajkull:~/Pictures$ ls -thul Use it this way to list the top 20 files listed. jason@eyjafjallajkull:/var/log$ ls -thul | head -n 20 total 6.9M -rw-rw-r– 1 root utmp 9.0K Jul 9 11:30 wtmp -rw-r–r– 1 root root 85K Jul 9 … Read more

Get the internet facing IP address of a Linux machine easily.

This simple command will print out the Internet facing IP address of a Linux machine in no time. curl ifconfig.me/ipcurl ifconfig.me/ip This will return the useragent that is used to access this URL. ubuntu ~ $ curl ifconfig.me/ua curl/7.35.0ubuntu ~ $ curl ifconfig.me/ua curl/7.35.0 Use this string to get all information about the host that … Read more

Get information about your network connection with Linux.

This command will return only the IP address of the host. ubuntu ~ $ hostname -i 172.31.20.16ubuntu ~ $ hostname -i 172.31.20.16 Querying for all local IP addresses on the host. ubuntu ~ $ hostname -I 172.31.20.16 10.8.0.1ubuntu ~ $ hostname -I 172.31.20.16 10.8.0.1 This simple script will ping Google and will check the return … Read more

How to get comprehensive SSL information out of a website with Ubuntu.

The sslscan utility will print out a comprehensive report listing all of the SSL ciphers used by a website secured by SSL. This can be very useful information when you are planning to attack this website. Or just for research purposes. In this example, I am scanning facebook.com and getting information about the ssl ciphers … Read more

How to create keys with easy-rsa without a password prompt.

To create a new set of keys for OpenVPN using Easy-RSA, we firstly need to clean our environment and get ready for the build. $ ./easyrsa init-pki$ ./easyrsa init-pki Now we need to build the certificate authority. $ ./easyrsa build-ca nopass   Note: using Easy-RSA configuration from: ./vars Generating a 2048 bit RSA private key … Read more

Add a fancy progress bar to the apt command on Linux.

To add a fancy progress bar to the apt command on Linux, edit this file: /etc/apt/apt.conf.d/99progressbar and add the line below. Dpkg::Progress-Fancy "1";Dpkg::Progress-Fancy "1"; Save the file and when you next install software with the apt command, you will get a fancy progress bar at the bottom of the screen. This is a very nice … Read more

Get information about your computer hardware with Linux.

Get information about installed hardware with these commands This command will print the make and model of your motherboard. jason@eyjafjallajkull:~$ sudo dmidecode -t baseboard [sudo] password for jason: # dmidecode 2.12 SMBIOS 2.4 present.   Handle 0x0002, DMI type 2, 8 bytes Base Board Information Manufacturer: Gigabyte Technology Co., Ltd. Product Name: H55-USB3 Version: x.x … Read more

Change your MAC address on Linux with the command line.

To change your MAC address in Linux, you just need to issue these few commands, and then re-run dhcp or reconfigure the interface. This works for both wired and wireless cards. Bring down the interface. jason@eyjafjallajkull:~$ sudo ifconfig eth0 down [sudo] password for jason:jason@eyjafjallajkull:~$ sudo ifconfig eth0 down [sudo] password for jason: Set a new … Read more

List all of your IP addresses using the ip command.

The ip command will list all of your ip addresses when combined with the grep command to look for all inet words. This is a very useful one-liner. ubuntu ~/Documents $ ip a | grep "inet " inet 127.0.0.1/8 scope host lo inet 172.31.20.16/20 brd 172.31.31.255 scope global eth0 inet 10.8.0.1 peer 10.8.0.2/32 scope global … Read more

New GTK themes for 2015. Make Linux look awesome.

More awesome GTK themes and wallpapers for 2015. Gnome themes. Ceti-2: http://gnome-look.org/content/show.php/Ceti-2+-+Theme?content=167528. Plane GTK 3.6: http://gnome-look.org/content/show.php/Plane-Gtk3.6?content=156309. Ultra-Flat: http://gnome-look.org/content/show.php/Ultra-Flat?content=167473. Malys-Unisex: http://gnome-look.org/content/show.php/malys+-+uniSEX+?content=149602. Cinnamon themes. Zukitwo: http://gnome-look.org/content/show.php/Zukitwo-Cinnamon?content=161734. New Minty: http://gnome-look.org/content/show.php/New-Minty?content=161698. Icon themes. Evolvere icon theme: http://gnome-look.org/content/show.php/Evolvere+Icon+theme?content=164338. Wallpapers. Dead space wallpaper, creepy monster: http://4walled.cc/show-1364323. Giant world engine eating a planet: http://4walled.cc/show-1348020. Very cold looking planet with a misty atmosphere: … Read more

Calculate subnets with the Linux command line and sipcalc.

The sipcalc utility for Linux is used to calculate subnets for IP addresses. The below example shows a /26 address and the available IP addresses and number of network nodes in the subnet. This is a good way to calculate the network mask if the network administrator requires this information to input it into a … Read more

How to get information about logins on your Linux system.

Reading information about logins on a Linux system is very useful when you are running a Linux machine. The last command will print information about the last logins on a Linux system. ubuntu ~ $ last ubuntu pts/0 ip-10-8-0-6.ap-s Sun Apr 19 10:25 still logged in   wtmp begins Sun Apr 19 10:25:42 2015ubuntu ~ … Read more

How to get information about your Linux services with systemd.

The systemd init system may be used to get information about your running services. Here I am getting information about the openvpn service. jason@eyjafjallajkull:~$ systemctl -a status openvpn.service ● openvpn.service – LSB: Openvpn VPN service Loaded: loaded (/etc/init.d/openvpn) Active: active (running) since Mon 2015-04-13 14:57:18 AEST; 5h 2min ago Docs: man:systemd-sysv-generator(8) CGroup: /system.slice/openvpn.service └─1719 /usr/sbin/openvpn … Read more