Reprint: Cross-compile inetutils and configure Telnet service

Source: Internet
Author: User

Recently in the SBC2410 board to write programs, always appear infinite cycle, super terminal so be when live, originally in thought Ctrl + C can end the process, but in HyperTerminal invalid, no way, had to log up, kill the process. Looking for a long time, finally found that there is inetutils this good dongdong.

Inetutils integrates many network client and service programs, including, Finger, FTP, FTPD, RCP, rexec, Rlogin, Rlogind, rsh, rshd, syslog,syslogd, Talk, TALKD, Telnet , telnetd, TFTP, TFTPD, and UUCPD.

1 First Download ftp://ftp.gnu.org/gnu/inetutils/inetutils-1.5.tar.gz

2 Next Cross Compile

CC=/USR/LOCAL/ARM/3.4.2/BIN/ARM-LINUX-GCC ldflags=-static./configure--disable-clients--disable-ipv6-- Disable-ncurses--host=arm--prefix=/

Note that ldflags=-static to specify, of course, if the shared library has been copied to the target board will not be necessary. and--prefix=/must be designated as the root directory, otherwise it will not be under/etc/to find the configuration file.

Make
All smooth, generate inetd telnetd and so on the need for the program. Be careful not to make install, or this will cause a little bit of trouble.

Arm-linux-strip inetd telnetd # slimming down

Copy telnetd inetd to the target board because TELNETD cannot be run independently and requires support from inetd Super service

3 Configure on the target board

VI/ETC/INETD.CONF # inetd configuration file, join the service to be opened

Telnet stream TCP nowait root/mnt/telnetd in.telnetd

After running inetd, using netstat-a did not find the Telnet port was listen,

Vi/etc/services # Network Service file, add telnet name (match with inetd.conf), Port and protocol
Telnet 23/tcp

Now rerun Inetd,netstat-a will find that the Telnet port is listen, and there will be an error logging on:
Telnetd:out of Ptys. Because the devpts file system is not loaded.

Mount Devpts-t devpts/dev/pts

By adding it to the/etc/init.d/rcs file, you don't have to manually lose the command.

Of course, the login program is required on the target board.

OK, finish!

Self-summary: Because the use of serial connection to the Development Board can only open a terminal, so think of other ways to connect, the beginning of the search for things are taught in the redhat and other environments to configure Telnet service, and later found to use the "cross-compilation +telnet" To search, a search on the search. Later on the development Board to upload other things can also follow this method to search.

In addition, inetutils,http://download.csdn.net/source/3148398 can also be downloaded here

Related Article

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.