开发板UT-S3C6410 telnet Linux主机的详细设置(二)
0赞各位友坚科技开发板的用户,以下是开发板UT-S3C6410 telnet Linux主机的详细设置,应通过初次验证,请大家指教。www.urbetter.com
----------------------------------------------------------------------------------------------------------------------
3.开发板设置好网络,登录Internet
---设置网关:route add default gw 192.168.1.1(根据实际情况设定)
---确认连通Internet:ping 202.112.17.137
---设置域名解析服务器:
查看你pc机上的DNS服务器的ip地址202.96.128.96
vim /etc/resolv.conf 添加nameserver 202.96.128.96
或者rm /etc/resolv.conf ;touch /etc/resolv.conf;
echo nameserver 202.96.128.96 >> /etc/resolv.conf
-------------------------------------------------------------
4.开发板登录Linux主机
4.1Linux主机安装telnet服务
sudo apt-get install xinetd telnetd
修改配置
sudo vi /etc/inetd.conf并加入以下一行
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd
4.2sudo vi /etc/xinetd.conf并加入以下内容:
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/
defaults
{
# Please note that you need a log_type line to be able to use log_on_success
# and log_on_failure. The default is the following :
# log_type = SYSLOG daemon info
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}
includedir /etc/xinetd.d
