多语言展示
当前在线:972今日阅读:23今日分享:31

嵌入式开发-环境搭建:[1]telnet安装配置

介绍嵌入式开发的一般方法,包括交叉编译环境搭建、uboot移植、内核移植、文件系统移植等。
工具/原料
1

CPU性能好一点的电脑,因为要同时开大量软件

2

Ubuntu、虚拟机、secureCRT软件、各种开源软件

方法/步骤
1

安装软件:使用命令:apt-get install xinetd telnetd 进行安装

2

创建文件并编辑:命令:sudo vi /etc/inetd.conf 在文件内加入以下一行telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetdwq保存退出。

3

编辑文件:命令:sudo vi /etc/xinetd.conf对比加入以下内容:

4

编辑文件:命令:sudo vi /etc/xinetd.d/telnet对比后加入以下缺少的内容:# default: on# description: The telnet server serves telnet sessions; it uses \# unencrypted username/password pairs for authentication.service telnet{disable = noflags = REUSEsocket_type = streamwait = nouser = rootserver = /usr/sbin/in.telnetdlog_on_failure += USERID}

5

重启机器 或 使用命令重启网络服务命令:sudo /etc/init.d/xinetd restart使用TELNET客户端远程登录即可进行非root用户访问。

6

修改文件使用root可登录:命令: mv /etc/securetty /etc/securetty.bak 这样root可以登录了。也可这样:修改/etc/pam.d/login这个文件。只需将下面一行注释掉即可。#auth required lib/security/pam_securetty.so使用secureCRT从win7远程登陆虚拟机如下图所示,成功!

注意事项

所有配置文件的修改都要进行比较,看哪里不同就修改哪里!

推荐信息