tonywhitmore.co.uk  

      blog : gallery : wiki : articles : projects : shell scripts : wallpaper : cv : links :
 Project Homepage

Telnet

Preparation

  1. Download the telnetd source code from ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/.
  2. Burn the .tar.gz file to a CD. This page assumes that the subdirectory /apps is used for the .tar.gz file. The CD-ROM can be a multi-session disk.

Give me more details on this

Booting

  1. Boot your Core Linux PC.
  2. Login as root. You will need to enter the password at the prompt.

Give me more details on this

Extract the source

  1. Place the CD-R in the CD-ROM drive. Mount the CD-ROM drive under /mnt/cdrom.
  2. Change to the /apps directory on the CD-R.
  3. Copy the netkit-telnet-0.17.tar.gz file to the directory /usr/src.
  4. Change to the /usr/src directory and extract the source from the .tar.gz file.

Give me more details on this

Configure and compile

  1. Change to the /usr/src/netkit-telnet-0.17 directory.
  2. Run the ./configure script.
  3. Change to the /usr/src/netkit-telnet-0.17/telnetd directory.
  4. Run the make program.
  5. Run the make program with the argument install.

Give me more details on this

Initial Testing

  1. Start the telnetd server using /usr/sbin/in.telnetd -debug.
  2. Using your other computer, try to access the telnet server.

Give me more details on this

Looping telnetd

  1. Create the following shell script at /usr/sbin/telnetd:
    #!/bin/sh
    x=0
    until [ "$x" -ge 1 ]; do
    /usr/sbin/in.telnetd -debug
    done

  2. Change the properties of /usr/sbin/telnetd to make it executable.
  3. Test the new script using the command /usr/sbin/telnetd.
  4. Using your other computer, see if you can make repeated connections to the telnet server.

Give me more details on this

Starting and stopping telnetd

  1. Start the telnetd server using /usr/sbin/telnetd &
  2. To stop the telnetd server you must use kill to kill the script before killing the single instance of in.telnetd running.

Give me more details on this

Automating telnetd

  1. Append the following line to the /etc/rc.d/rc.mu script:
    /usr/sbin/telnetd &
    You can also add comments and echoes for your own information.
  2. Reboot the system and check that telnetd is running.

Give me more details on this

Creative Commons License
The text of this page is licensed under a Creative Commons License.


Valid CSS!     Valid HTML 4.0!     Valid RSS
Original design © For oswd.org by SquireCD