Tuesday, March 31, 2015

How to Install telnet in RHEL6/CentOS6 and RHEL7/CentOS7



What is telnet?


Telnet is a user command and an underlying TCP/IP protocol for accessing remote computers. Through Telnet, an administrator or another user can access someone else's computer remotely. On the Web, HTTP and FTP protocols allow you to request specific files from remote computers, but not to actually be logged on as a user of that computer. With Telnet, you log on as a regular user with whatever privileges you may have been granted to the specific application and data on that computer.

How to install telnet?


If you use fresh OS installation (not a full installation), you cannot access telnet command in your machine,
[akila@localhost u01]# telnet
bash: telnet: command not found...

so you have to install telnet in your machine,
if you have internet connection to your machine, type below command in the terminal, then it will install telnet in your machine,
[akila@localhost u01]# yum install telnet

If you don’t have internet connection to your machine, best way to install telnet is by using telnet rpm file.
Download telnet-0.17-48.<linux version>.x86_64.rpm and then go to the file location by using terminal.
Then type below command,
[akila@localhost rpmFiles]# rpm -ivh telnet-0.17-48.<linux version>.x86_64.rpm
warning: telnet-0.17-48.<>.x86_64.rpm: Header V3 RSA/SHA256 Signature, key ID xxxxxx: NOKEY
Preparing...                          ################################# [100%]
Updating / installing...
   1:telnet-1:0.17-48.el6             ################################# [100%]

It will install telnet properly.

How to check telnet installed correctly


Simply type below command and you will get the connected result if telnet installed successfully,

[akila@localhost rpmFiles]# telnet localhost 22
Trying ::1...
Connected to localhost.
Escape character is '^]'.
SSH-2.0-OpenSSH_6.4

Monday, March 23, 2015

How to install httpd apache server in RHEL 7 using RPMs



Check whether httpd package installed in your system using below command,

[akila@localhost] systemctl status httpd

If it says you don’t have httpd in your system (and if you don’t have direct internet connection to online repositories) you have to download httpd rpm and install it. But the problem is you have resolve dependency issues by installing another RPMs,

First download and install httpd-tools-2.4.6-31.el7.x86_64.rpm using below command,

[akila@localhost  ~]# rpm  –ivh  httpd-tools-2.4.6-31.el7.x86_64.rpm

Then download and install shared-mime-info-1.1-7.el7.x86_64.rpm using below command,



[akila@localhost  ~]# rpm –ivh shared-mime-info-1.1-7.el7.x86_64.rpm

Then download and install mailcap-2.1.41-2.el7.noarch.rpm using below command,

[akila@localhost  ~]# rpm –ivh mailcap-2.1.41-2.el7.noarch.rpm

Now you can install httpd-2.4.6-31.el7.x86_64.rpm using below command,

[akila@localhost  ~]# rpm –ivh httpd-2.4.6-31.el7.x86_64.rpm

Also install below rpm as well,

[akila@localhost  ~]# rpm –ivh httpd-manual-2.4.6-31.el7.noarch.rpm

Now you are successfully installed httpd in your system. (please note that you may need more dependencies due to your OS installation)