Saturday, 22 August 2015

Configuring Telnet server on Linux system

2- How to configure telnet server for a Linux system?

Ans : TELNET (TELetype NETwork) is a network protocol used on the Internet or local area network LAN connections. Telnet server is used to login into another system. You can use the telnet command to log in remotely to another system on your network. The system can be on your local area network or available through an Internet connection. Telnet operates as if you were logging in to another system from a remote terminal. You will be asked for a login name and password. The telnetd program (telnet server) is a server which supports the DARPA telnet interactive communication protocol. Telnetd is normally invoked by the internet server inetd or xinetd for requests to connect to the telnet port as indicated by the /etc/services file. Usually telnet listen on port TCP port 23.


Telnet Server Installation ---

Debain/Ubuntu Linux user type the following command:# apt-get install telnetdOR$ sudo apt-get install telnetdFedora Linux user the following command:# yum install telnet-server telnetRed Hat enterprise Linux user type the following command:up2date telnet-server telnet

The same can be implemented graphically through the software center packages installation modes . It is however great to try installing every thing in Linux via CommandLine. 


Telnet Server Configuration --- 

Again each distribution has its own method to turn on or off telnet service; same applies to telnet UNIX/Linux 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,# chkconfig telnet onTo start telnet server type command:# /etc/init.d/xinetd restartIf you are using Debian LinuxThe configuration file for telnet is /etc/inetd.conf. By default it is enabled when you install telnet server. To start telnet server type command:# /etc/init.d/inetd restartYou should now be able to telnet to the server from Windows or Linux desktop system. Type the following command to connect to Telnet server:telnet server-ip-address
telnet 172.31.101.193

.1

Software Center Settings / Configuring Internet access on Linux Terminal

1- How to run Ubuntu/Linux Software Center or configuring Internet access on Linux Terminal  using an internet with WPA/WPA2 type proxy authentication (say our college network) ??

Ans : Have a sudo user login (root preferred) , usually to easily allow permissions issue with .conf files.
Now , go to /etc/apt directory --
Create a file named apt.conf in this directory.
In case the file already exists before ,you just need to modify the existing file.
Now write the following to the apt.conf file --

Acquire::http::proxy "http://username:password@proxyserver:port/";
Acquire::https::proxy"https://username:password@proxyserver:port/";
Acquire::socks::proxy "socks://username:password@proxyserver:port/";
Here,the proxyserver stands for your proxy network address while the port signifies the designated proxy port.
Save the file and restart your ethernet/WiFi again. That's all , your software center and internet access on terminal and other apps should work now !! .
Snapshots of the task ::