redhat

How to Display Lines That Starts With A Given String

Matching strings can be counted using grep, cat, sed. Matching strings can be sorted and even omitted for matching repetitions using sort and uniq. They can also be highlighted during the string parsing operation via grep. More can be done using awk. But have you ever tried to display the first occurrence of matching line [...]

How to Extremely Powerful Linux Password Sniffer

Password Sniffer on Linux? Yep, we all need to be informed of passwords being sniffed out! I would not entail those details and cover specific issues of identifying your network securities as that would be large enough to be covered here and case to case basis. However, those two words are being mentioned here and [...]

How to Copy and Paste A Text File into Another Text File via Terminal

Let us view two example of text files namelyh textfile1.txt and textfile2.txt # cat textfile1.txt RedHat Fedora CentOS # cat textfile2.txt Enterprise Version Core Version 9 Linux Distro Now, let us merge or combine two text files using the linux paste command # paste textfile1.txt textfile2.txt result: RedHat Enterprise Version Fedora Core Version 9 CentOS [...]

How to Join Two Text Files with Common Columnar Field via Terminal

HowTo: Join Two Text Files with Common Columnar Field via Terminal Say we have two text files, namely test1.txt and test2.txt, with data content as follows # cat test1.txt first Fedora second Redhat third CentOS # cat test2.txt first Core 9 second Enterprise Version third Free OS Now, the simplest approach to merge data contents [...]

How To Create Separate SSH Log File for Specific SSH Clients

By default, OpenSSH dumps log messages to /var/log/secure authentication log file. The need to log particular host or group of IP address to separate SSH log file is needed at times to further log SSH details for further record and monitoring. Create Separate SSH Log File for Particular SSH Client Log Attempts Here’s how to [...]

How To Send System Message To FTP Clients via TCP Wrapper

From recent posts, granting access (allow and deny) restrictions to particular services is a good additional security practice anybody could use of nowadays. There are some system admins that prefer sending system message or account status when denying access to particular clients or hosts. Sending service message or service system status to particular hosts or [...]

How To Enable IP Forwarding in Linux

By installation default, Linux distribution such as Redhat, CentOS, White OS, and Fedora comes with IP Forwarding disabled. The reason for this is that default linux installation, whether desktop or server, does not consider a default OS installation of forwarding IP packets and request by default, as the linux OS is not fully aware of [...]

How To Bypass DNS Log Monitoring By Your ISP

Resolving domains into human-readable IP addresses requires DNS IP addresses from your ISP. The DNS nature of resolving domain names into its equivalent IP addresses provides a lot of things to you and your ISP provider. DNS Nature One major thing that this DNS nature setup provides you is browsing convenience. Since DNS resolves domains [...]

Top 100 of the Best (Useful) OpenSource Applications

The following is a list of about 100 of the best OpenSource Applications, that actually help make Linux more usable for people. It is my hope that this list shows potential Linux users that there really is a large, effective, productive and usable range of free, OpenSource applications. For existing Linux users (like myself), I [...]

How to change the hostname of a Linux system

hange the hostname on a running system On any Linux system you can change its hostname with the command ‘hostname‘ (surprised?)… Here are some quick usages of the command line hostname: hostname without any parameter it will output the current hostname of the system. hostname –fqd it will output the fully qualified domain name (or [...]

How to enable IP Forwarding in Linux

By default any modern Linux distributions will have IP Forwarding disabled. This is normally a good idea, as most peoples will not need IP Forwarding, but if we are setting up a Linux router/gateway or maybe a VPN server (pptp or ipsec) or just a plain dial-in server then we will need to enable forwarding. [...]

How to quickly bind a range of IPs on RedHat based systems

Normally when you add a new IP to a network interface in a RedHat based system you create a file ifcfg-eth0:x in /etc/sysconfig/network-scripts/. For example: /etc/sysconfig/network-scripts/ifcfg-eth0:0 DEVICE=eth0:0 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.0.100 NETMASK=255.255.255.0 NETWORK=192.168.0.0 BROADCAST=192.168.0.255 TYPE=Ethernet Similar to the above example you can create several aliases. But what if you have to add a lot of IPs [...]

How to Install OpenVPN

OpenVPN can be downloaded here. For security, it’s a good idea to check the file release signature after downloading. The OpenVPN executable should be installed on both server and client machines, since the single executable provides both client and server functions. Linux Notes (using RPM package) If you are using a Linux distribution which supports [...]

HOW TO CONFIGURE SENDMAIL

With the growth of the Internet, e-mail has quickly become the main vehicle to spread information through the public at large. As the demand for fast, cheap and reliable e-mail grows, more individuals are turning to Linux to provide a fast, cheap and reliable solution. sendmail was originally developed by Eric Allman, in 1979, as [...]