Scan ports with NMAP

There comes a time when you need to scan your hosts and see what services are on or what ports are listening.

Here is a quick command for scanning TCP ports with NMAP. Throw it on terminal.

nmap -oN nmap.txt -p- -sTV

-p- will scan all the known ports. T stands for TCP and V for versions.

If you want to check a particular port, then specify it with -p. For example:

nmap -oN nmap.txt -p 123 -sTV

Replace with an actual IP or if you scan multiple hosts then just add ips like on the example above. The command above will create nmap.txt to userĀ“s home directory and it will append the information to the file. If you run the command again, then all the content in the nmap.txt will get replaced with the new data. Continue reading

Changing IP to static on Fedora,CentOS and Oracle Linux

DHCP is great but there usually comes a time when you need to make sure that your IP stays always the same. This post outlines the steps you can take to setup a static IP on Fedora, Centos and Oracle Linux.

Before you begin do these two steps in terminal:

yum -y install net-tools

ip a

After ip a, you will see something like this:

2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether dc:4a:3e:43:dc:1c brd ff:ff:ff:ff:ff:ff
inet brd scope global dynamic eno1
valid_lft 68056sec preferred_lft 68056sec
inet6 fe80::593e:cf18:df4e:f815/64 scope link
valid_lft forever preferred_lft forever Continue reading

Run Gui application in a Docker

RunIT Browser was first introduced in PostX Gnu/Linux Debian base. Now, since Fedora base is coming there are dependency issues, which will inhibit RunIT functionality.

One way to run the browser is via Docker. With below commands you can easily run RunIT Browser in a docker container. Here I will be running a Debian Stretch based container. 

Continue reading