ow3*_*w3n 5 unix networking ip-address beagleboard angstrom-linux
当我用以太网电缆将它插入新网络时,我需要知道如何使用SSH连接到beaglebone(或beagleboard):
$ ssh root@beaglebone.local
Run Code Online (Sandbox Code Playgroud)
到目前为止,我只能这样访问它,如果我知道IP地址:
$ ssh root@<ip_address>
Run Code Online (Sandbox Code Playgroud)
但我并不总是知道新网络上的主板IP地址,所以我希望用以下名称来访问它:beaglebone.local.
现在,当我尝试这样做时,我收到此错误:
"ssh: Could not resolve hostname beaglebone.local: nodename nor servname provided, or not known"
Run Code Online (Sandbox Code Playgroud)
我检查了主机名和托管文件,并在beaglebone的主机上添加了"127.0.0.1 beaglebone",但不确定我还能做什么?
# cat /etc/hostname
beaglebone
# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost
127.0.0.1 beaglebone
Run Code Online (Sandbox Code Playgroud)
小智 5
我在Angstrom-Cloud9-IDE-GNOME-eglibc-ipk-v2012.05-beaglebone-2012.04.22.img.xz上运行我的beaglebone时遇到了类似的问题.在此分发中,"beaglebone.local"应在系统引导后出现在网络上.
重启后大约50%的时间,"beaglebone.local"不会出现在网络上(尽管骨骼可以通过IP地址获得).发生这种情况时,"systemctl status avahi-daemon.service"显示avahi-daemon失败并显示"退出代码255".有趣的是,随后的"systemctl start avaihi-daemon.service"将始终成功,并且"beaglebone.local"将出现在网络上.
此外,"journalctl | grep avahi"返回了一条消息,上面写着"守护进程已经运行PID NNN".
所以,我通过在/ lib/systemd/system/avahi-daemon的[Service]部分添加"ExecStartPre =/bin/rm -f/var/run/avahi-daemon/pid"这一行来"解决"问题.服务.通过此添加,"beaglebone.local"现在在网络上100%重新启动.
我说"固定"(即在引号中),因为我无法追踪离开流浪的avahi pid文件的根本原因,因此没有真正的修复.
- 弗兰克
归档时间: |
|
查看次数: |
11208 次 |
最近记录: |