CategoryLinux

How to enable telnet in a Linux server?

Telnet is a network protocol, used to provide bi-directional text-oriented communication facility.

Note: Telnet in is insecure protocol and it is recommended that you use ssh server. 

WARNING! Installing telnet on your server makes the server open to an un-encrytpted communications, it’s not recommended to use telnet, use Secure (SSH).

Telnet Server installation

In Debian/Ubuntu
user@techinx$ sudoapt-get install telnetd
In fedora/RedHat
root@techinx# yum install telnet-server telnet xinetd

Configure telnet server (turn on telnet server)

If you are using Red Hat / Fedora Linux
The configuration file for telnet is /etc/xinetd.d/telnet. To enable telnet server you need to open this file and make sure disable = no read as disable = yes.
Alternately,
root@techinx# chkconfig telnet on
To start telnet server type command:
root@techinx# /etc/init.d/xinetd restart

How to enable root login from telnet server

Edit /etc/securetty file, In the end of file add pts/0 to enable one telnet session for root. if you need to open more telnet session for root and add more pts/1 pts/2 and so on.

Restart services, you are done!.

Unable to install IBM Installation Manager on RHEL 6.* (64-bit)

There was an issue, with IBM installation manager not able to install or start in RHEL 6.* series. This issue is fixed by IBM and is available in Fix central for download. The fix name is agent.installer.linux.gtk.x86_64_1.6.0.20120831_1216.

If you are using the old IBM installation manager, during install you may face errors like this.

[root@rhel64]# ./install
bash: ./install: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

Cause:

Installation Manager is a 32-bit application and requires 32-bit versions of OS system libraries. These libraries are not installed on RHEL 6.0/6.1 x86_64 (64-bit) by default. You must install these 32-bit libraries on your system before you run Installation Manager.

Solution:

Configure yum on your server, install the required 32bit binaries.

To configure yum on your server refer here http://www.technix.in/local-yum-setup-for-rhel/

after the yum configuration install the dependent 32bit binaries as shown below.

[root@localhost]# yum install gtk2.i686
[root@localhost]# yum install libXtst.i686
[root@localhost]# yum install compat-libstdc++

Once the install is complete. IBM installation manager installation can be proceeded as normal.

 

How to use proxy server from Linux terminal

In Linux/Unix there is an environment variable called “http_proxy” which can be configured for text based internet sessions.  This variable is used by wget, curl, lynx etc.

How to set http_proxy variable

Type the following command to set proxy server

#export http_proxy=http://10.99.2.197:8080

 How to set the http_proxy variable globally

#vi /etc/profile

add the following lines.

#export http_proxy=http://10.99.2.197:8080

 How to I use a password protected proxy while using command line internet

#curl --proxy-user <username>:<password> www.technix.in

 

 

© 2017 My techbook

Theme by Anders NorénUp ↑