Configure the Telnetd service in busybox in uClinux

Source: Internet
Author: User

There are two ways to start the Telnetd service:

    • Start with inetd service hosting
    • Start independently

Hosting through inetd seems to require many files to be configured, so select the independent startup method here.
1. Check the Kernel configuration. Select "Device Drivers-> character devices-> unix98 Pty support"
2. Re-compile the busybox in uClinux-Dist and select the following items:

    • Busybox-> busybox settings-> general configuration-> use the devpts filesystem for unix98 ptys
    • Busybox-> login/password management utilities-> Login
    • Busybox-> networking utilities-> telnetd
    • Busybox-> networking utilities-> support standalone telnetd (not inetd only)
    • If you are using a nommu Board (ARM7), set the value of the "busybox-> busybox settings-> general configuration-> path to busybox executable" option to "/bin/busybox"

3. Add the group and passwd files to the etc directory under romfs.

    1. $ Cat romfs/etc/group
    2. Root: 0: Root
    3. $ Cat romfs/etc/passwd
    4. Root: 0: 0: Root:/bin/sh

CopyCode

4. Create a device node and Directory

    1. $ CD romfs/dev/
    2. $ Touch @ ptmx, C, 5, 2
    3. $ Mkdir PTS

Copy code

5. Modify romfs/etc/rc and add the following content:

    1. Mount-T devpts/dev/PTS

Copy code

6. re-create romfs. IMG and run the following command after entering the system:

    1. # Telnetd

Copy code

Start the Telnetd service.
You do not need to add "&" at startup because it is a daemon.
Note:

    • the tested uClinux-Dist version is 20080808
    • busybox is a uClinux v1.10.2-uc0.
    • the Telnet logon username is root and the password is blank
    • according to the online documentation, When configuring the kernel, you also need to select/dev/PTS File System for unix98 ptys in file systems; but my kernel does not find this option (2.6.25)
    • reference 1: http://hi.baidu.com/qwetiop/blog... 4abc2cd4074238.html
    • reference 2: http://www.linuxforum.net/forum/showflat.php? Cat = & board = embedded & number = 524059 & page = & view = & SB = & O = & Vc = 1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.