view counter

Linux Feed

Linux Support, Oracle Linux, Red Hat Enterprise Linux, SUSE, Oracle Unbreakable Enterprise Kernel and the Oracle Unbreakable Linux Support Program (ULN) resources, news, and support articles.

Nmap – Scan for open ports

 
nmap is a network exploration tool and security/port scanner.
We can list all open ports using nmap for a given IP/Host.
Use following command to list all open ports:
$ sudo nmap -v -sS 192.168.1.1
Use following command to scan specific ports:
$ nmap -sS -O -p80,8080 192.168.1.1
To can specific range of ports(scan from port 80 to 100):

Configuring OpenLDAP on CentOS 6 (Part 1)

Step 1″ Install OpenLDAP packages
# yum install openldap openldap-servers openldap-clients
Step 2: Generate a password hash to be used as the admin password. This password hash will be used when you create the root user for your LDAP installation. For example:

Share the keyboard and mouse on two X terminals - part 1/2

I have a desktop and a laptop on my workstation, side by side. No KVM switch. Each has its own display, mouse, and keyboard. I thought I could always slide over to use the other computer. Wishful thinking at its finest. I started investigating KVM options. I like the idea of having both displays visible simultaneously. Therefore, the final solution only needs to share the mouse and the keyboard.

How to Remove Write Protection of any Flash Drives/Memory Cards

http://way2usefulinfo.blogspot.com/2014/07/how-to-remove-write-protection-of-any.html

Upcoming new v8-stable

A new rsyslog v8-stable is coming up soon. It will not just be the next iteration of 8.2, instead it will be a new feature release based on the current 8.3 devel. So be prepared to welcome 8.4. Frequent followers may wonder why 8.4 is ready. Originally, we planned to release it after the summer break. The reason is simple: its ready to come up, albeit with a little less functionality than originally anticipated.

Ping all IP’s in a subnet

 
We can use nmap command to ping all IP’s in subnet.
If you don’t have nmap installed in your machine install nmap with following command:
$ apt-get install nmap
Use following command to ping all IP’s in a subnet:
$ nmap -n -sP 192.168.2.0/26
Output:

Ping all IP’s in a subnet

 
We can use nmap command to ping all IP’s in subnet.
If you don’t have nmap installed in your machine install nmap with following command:
$ apt-get install nmap
Use following command to ping all IP’s in a subnet:
$ nmap -n -sP 192.168.2.0/26
Output:

How to resize a picture using command-line tools

Occasionally, I need to resize an image. For instance, Google+ refuses to use my favorite portrait as my profile picture. The reason is that the portrait is smaller than the minimum requirement of 250 x 250 pixels. To scale the image, I can opt for a GUI tool such as GIMP or Pinta. This post explores the scaling of pictures using command-line tools.

mutt – send mails with attachments

 
By using mutt we can send mails with attachments from command line.
Install mutt:
$ apt-get install mutt
Send mail with attachment:
$ mutt -s "PFA" -a attachment.txt user@example.com < body.txt

or

$ echo "body text here" | mutt -s "PFA" -a t.txt user@example.com
Send mail without attachment:

mutt – send mails with attachments

 
By using mutt we can send mails with attachments from command line.
Install mutt:
$ apt-get install mutt
Send mail with attachment:
$ mutt -s "PFA" -a attachment.txt user@example.com < body.txt

or

$ echo "body text here" | mutt -s "PFA" -a t.txt user@example.com
Send mail without attachment:

view counter