关于imx6ull开发板无法通过局域网中的主机名登陆ssh,ping主机名也ping不通的问题

关于imx6ull开发板无法通过局域网中的主机名登陆ssh,ping主机名也ping不通的问题

  • 如何实现局域网内两块开发板以主机名的方式互相ping通?
  • 如何实现局域网内两块开发板以主机名的方式互相ping通,且以ssh方式登陆(主机名方式登陆)?

如何实现局域网内两块开发板以主机名的方式互相ping通?

因为单纯的通过ping 对方的IP地址的形式是很麻烦的,如果对方开发板的ip不是静态的那就更加麻烦了,一旦ip改变,那么我们又要根据对方ip做相应的修改,这样一来非常麻烦。
于是我就在网上查了一下,总结如下:

修改第一块开发板中/etc/hosts以及/etc/hostname文件,
/etc/hosts文件:

127.0.0.1       localhost
127.0.1.1       npi			#A主机名

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
#在此填入要ping的对方的ip地址以及它的主机名字
192.168.0.218   npi_jason		#B主机名
192.168.0.95    npi				#A主机名

/etc/hostname文件:

npi				#A主机名

修改另外一块开发板中的/etc/hosts以及/etc/hostname文件:
/etc/hosts文件:

127.0.0.1       localhost
#127.0.1.1      npi.localdomain npi_jason
127.0.1.1       npi_jason	#B主机名

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
#在此填入要ping的对方的ip地址以及它的主机名字
192.168.0.218   npi_jason	#B主机名
192.168.0.95    npi			#A主机名

/etc/hostname文件:

npi_jason		#B主机名

这样两个开发板便可以在同一局域网下互相ping主机名,可以ping通啦!总的来说就是将要ping对方的主机名以及ip填入/etc/hosts下即可。

如何实现局域网内两块开发板以主机名的方式互相ping通,且以ssh方式登陆(主机名方式登陆)?

这块我琢磨了差不多两天,最后发现是我的两块带debian系统的imx6ull开发板都没有安装samba服务,而我在使用ssh时以树莓派主机名raspberrypi的方式是可以登陆的,通过查找博客发现,树莓派之所以可以以主机名raspberrypi的方式登陆ssh是因为它装了samba服务

输入dpkg -l|grep samba命令查看树莓派是否安装了samba服务!
反馈如下

~ dpkg -l|grep samba
ii  samba-libs:armhf                      2:4.9.5+dfsg-5+deb10u1+rpi1       armh                           f        Samba core libraries
ii  vlc-plugin-samba:armhf                3.0.8-0+deb10u1+rpt1              armh                           f        Samba plugin for VLC

可见树莓派确实安装了samba服务,但是我的另外两块imx6ull开发板并没有安装samba服务,于是我输入一下命令进行安装:

sudo apt-get update
sudo apt-get install samba

安装比较简单,一路y,Yes即可。

安装信息如下:

root@npi:~#
root@npi:~# apt-get update
Hit:1 http://mirrors.tuna.tsinghua.edu.cn/debian buster InRelease
Hit:2 https://cloud.embedfire.com/mirrors/ebf-debian buster InRelease
Hit:3 http://repos.rcn-ee.com/debian buster InRelease
Reading package lists... Done
root@npi:~# apt-get install samba
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
  attr bzip2 file ibverbs-providers libavahi-client3 libavahi-common-data
  libavahi-common3 libboost-atomic1.67.0 libboost-iostreams1.67.0
  libboost-regex1.67.0 libboost-system1.67.0 libboost-thread1.67.0 libcephfs2
  libcups2 libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0 libgpgme11 libibverbs1
  libicu63 libjansson4 libldb1 libmagic-mgc libmagic1 libnspr4 libnss3
  libpython-stdlib libpython2-stdlib libpython2.7 libpython2.7-minimal
  libpython2.7-stdlib librados2 libtalloc2 libtdb1 libtevent0 libtirpc-common
  libtirpc3 libwbclient0 mime-support python python-crypto python-dnspython
  python-gpg python-ldb python-minimal python-samba python-talloc python-tdb
  python2 python2-minimal python2.7 python2.7-minimal samba-common
  samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools
  xz-utils
Suggested packages:
  bzip2-doc cups-common python-doc python-tk python-crypto-doc python2-doc
  python2.7-doc binutils binfmt-support bind9 bind9utils ctdb ldb-tools ntp
  | chrony smbldap-tools ufw winbind heimdal-clients
The following NEW packages will be installed:
  attr bzip2 file ibverbs-providers libavahi-client3 libavahi-common-data
  libavahi-common3 libboost-atomic1.67.0 libboost-iostreams1.67.0
  libboost-regex1.67.0 libboost-system1.67.0 libboost-thread1.67.0 libcephfs2
  libcups2 libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0 libgpgme11 libibverbs1
  libicu63 libjansson4 libldb1 libmagic-mgc libmagic1 libnspr4 libnss3
  libpython-stdlib libpython2-stdlib libpython2.7 libpython2.7-minimal
  libpython2.7-stdlib librados2 libtalloc2 libtdb1 libtevent0 libtirpc-common
  libtirpc3 libwbclient0 mime-support python python-crypto python-dnspython
  python-gpg python-ldb python-minimal python-samba python-talloc python-tdb
  python2 python2-minimal python2.7 python2.7-minimal samba samba-common
  samba-common-bin samba-dsdb-modules samba-libs samba-vfs-modules tdb-tools
  xz-utils
0 upgraded, 61 newly installed, 0 to remove and 1 not upgraded.
Need to get 40.2 MB of archives.
After this operation, 143 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libpython2.7-                           minimal armhf 2.7.16-2+deb10u1 [395 kB]
Get:2 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python2.7-min                           imal armhf 2.7.16-2+deb10u1 [1171 kB]
Get:3 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python2-minim                           al armhf 2.7.16-1 [41.4 kB]
Get:4 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python-minima                           l armhf 2.7.16-1 [21.0 kB]
Get:5 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf mime-support                            all 3.62 [37.2 kB]
Get:6 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libpython2.7-                           stdlib armhf 2.7.16-2+deb10u1 [1837 kB]
Get:7 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python2.7 arm                           hf 2.7.16-2+deb10u1 [305 kB]
Get:8 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libpython2-st                           dlib armhf 2.7.16-1 [20.8 kB]
Get:9 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libpython-std                           lib armhf 2.7.16-1 [20.8 kB]
Get:10 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python2 armh                           f 2.7.16-1 [41.6 kB]
Get:11 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python armhf                            2.7.16-1 [22.8 kB]
Get:12 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libwbclient0                            armhf 2:4.9.5+dfsg-5 [128 kB]
Get:13 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python-dnspy                           thon all 1.16.0-1 [90.1 kB]
Get:14 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python-crypt                           o armhf 2.6.1-9+b1 [255 kB]
Get:15 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libtalloc2 a                           rmhf 2.1.14-2 [32.8 kB]
Get:16 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libtdb1 armh                           f 1.3.16-2+b1 [39.4 kB]
Get:17 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libtevent0 a                           rmhf 0.9.37-1 [27.7 kB]
Get:18 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libldb1 armh                           f 2:1.5.1+really1.4.6-3 [111 kB]
Get:19 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libpython2.7                            armhf 2.7.16-2+deb10u1 [892 kB]
Get:20 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python-ldb a                           rmhf 2:1.5.1+really1.4.6-3 [33.7 kB]
Get:21 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python-tdb a                           rmhf 1.3.16-2+b1 [16.0 kB]
Get:22 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libavahi-com                           mon-data armhf 0.7-4+b1 [122 kB]
Get:23 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libavahi-com                           mon3 armhf 0.7-4+b1 [51.1 kB]
Get:24 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libavahi-cli                           ent3 armhf 0.7-4+b1 [54.5 kB]
Get:25 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libcups2 arm                           hf 2.2.10-6+deb10u3 [291 kB]
Get:26 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libjansson4                            armhf 2.12-1 [34.2 kB]
Get:27 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python-tallo                           c armhf 2.1.14-2 [12.2 kB]
Get:28 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf samba-libs a                           rmhf 2:4.9.5+dfsg-5 [4872 kB]
Get:29 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python-samba                            armhf 2:4.9.5+dfsg-5 [1812 kB]
Get:30 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf samba-common                            all 2:4.9.5+dfsg-5 [169 kB]
Get:31 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf samba-common                           -bin armhf 2:4.9.5+dfsg-5 [579 kB]
Get:32 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf tdb-tools ar                           mhf 1.3.16-2+b1 [26.6 kB]
Get:33 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf samba armhf                            2:4.9.5+dfsg-5 [1023 kB]
Get:34 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf bzip2 armhf                            1.0.6-9.2~deb10u1 [46.7 kB]
Get:35 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libmagic-mgc                            armhf 1:5.35-4+deb10u1 [242 kB]
Get:36 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libmagic1 ar                           mhf 1:5.35-4+deb10u1 [110 kB]
Get:37 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf file armhf 1                           :5.35-4+deb10u1 [65.5 kB]
Get:38 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf xz-utils arm                           hf 5.2.4-1 [181 kB]
Get:39 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf attr armhf 1                           :2.4.48-4 [39.7 kB]
Get:40 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libibverbs1                            armhf 22.1-1 [44.1 kB]
Get:41 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf ibverbs-prov                           iders armhf 22.1-1 [20.2 kB]
Get:42 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libboost-ato                           mic1.67.0 armhf 1.67.0-13+deb10u1 [226 kB]
Get:43 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libboost-ios                           treams1.67.0 armhf 1.67.0-13+deb10u1 [245 kB]
Get:44 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libicu63 arm                           hf 63.1-6+deb10u1 [8005 kB]
Get:45 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libboost-reg                           ex1.67.0 armhf 1.67.0-13+deb10u1 [438 kB]
Get:46 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libboost-sys                           tem1.67.0 armhf 1.67.0-13+deb10u1 [229 kB]
Get:47 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libboost-thr                           ead1.67.0 armhf 1.67.0-13+deb10u1 [261 kB]
Get:48 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libnspr4 arm                           hf 2:4.20-1 [90.0 kB]
Get:49 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libnss3 armh                           f 2:3.42.1-1+deb10u2 [969 kB]
Get:50 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf librados2 ar                           mhf 12.2.11+dfsg1-2.1+b1 [2420 kB]
Get:51 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libcephfs2 a                           rmhf 12.2.11+dfsg1-2.1+b1 [388 kB]
Get:52 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libtirpc-com                           mon all 1.1.4-0.4 [16.7 kB]
Get:53 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libtirpc3 ar                           mhf 1.1.4-0.4 [80.2 kB]
Get:54 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libglusterfs                           0 armhf 5.5-3 [2735 kB]
Get:55 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libgfxdr0 ar                           mhf 5.5-3 [2488 kB]
Get:56 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libgfrpc0 ar                           mhf 5.5-3 [2507 kB]
Get:57 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libgfapi0 ar                           mhf 5.5-3 [2526 kB]
Get:58 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf libgpgme11 a                           rmhf 1.12.0-6 [232 kB]
Get:59 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf python-gpg a                           rmhf 1.12.0-6 [278 kB]
Get:60 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf samba-dsdb-m                           odules armhf 2:4.9.5+dfsg-5 [352 kB]
Get:61 http://mirrors.tuna.tsinghua.edu.cn/debian buster/main armhf samba-vfs-mo                           dules armhf 2:4.9.5+dfsg-5 [407 kB]
Fetched 40.2 MB in 6s (6673 kB/s)
Extracting templates from packages: 49%
Extracting templates from packages: 100%
Preconfiguring packages ...
Package configuration



 ┌──────────────────────┤ Samba server and utilities ├───────────────────────┐
 │                                                                           │
 │ If your computer gets IP address information from a DHCP server on the    │
 │ network, the DHCP server may also provide information about WINS servers  │
 │ ("NetBIOS name servers") present on the network.  This requires a change  │
 │ to your smb.conf file so that DHCP-provided WINS settings will            │
 │ automatically be read from /var/lib/samba/dhcp.conf.                      │
 │                                                                           │
 │ The dhcp-client package must be installed to take advantage of this       │
 │ feature.                                                                  │
 │                                                                           │
 │ Modify smb.conf to use WINS settings from DHCP?                           │
 │                                                                           │
 │                    <Yes>                       <No>                       │
 │                                                                           │
 └───────────────────────────────────────────────────────────────────────────┘



Selecting previously unselected package libpython2.7-minimal:armhf.
(Reading database ... 16806 files and directories currently installed.)
Preparing to unpack .../0-libpython2.7-minimal_2.7.16-2+deb10u1_armhf.deb ...
Unpacking libpython2.7-minimal:armhf (2.7.16-2+deb10u1) ...
Selecting previously unselected package python2.7-minimal.
Preparing to unpack .../1-python2.7-minimal_2.7.16-2+deb10u1_armhf.deb ...
Unpacking python2.7-minimal (2.7.16-2+deb10u1) ...
Selecting previously unselected package python2-minimal.
Preparing to unpack .../2-python2-minimal_2.7.16-1_armhf.deb ...
Unpacking python2-minimal (2.7.16-1) ...
Selecting previously unselected package python-minimal.
Preparing to unpack .../3-python-minimal_2.7.16-1_armhf.deb ...
Unpacking python-minimal (2.7.16-1) ...
Selecting previously unselected package mime-support.
Preparing to unpack .../4-mime-support_3.62_all.deb ...
Unpacking mime-support (3.62) ...
Selecting previously unselected package libpython2.7-stdlib:armhf.
Preparing to unpack .../5-libpython2.7-stdlib_2.7.16-2+deb10u1_armhf.deb ...
Unpacking libpython2.7-stdlib:armhf (2.7.16-2+deb10u1) ...
Selecting previously unselected package python2.7.
Preparing to unpack .../6-python2.7_2.7.16-2+deb10u1_armhf.deb ...
Unpacking python2.7 (2.7.16-2+deb10u1) ...
Selecting previously unselected package libpython2-stdlib:armhf.
Preparing to unpack .../7-libpython2-stdlib_2.7.16-1_armhf.deb ...
Unpacking libpython2-stdlib:armhf (2.7.16-1) ...
Selecting previously unselected package libpython-stdlib:armhf.
Preparing to unpack .../8-libpython-stdlib_2.7.16-1_armhf.deb ...
Unpacking libpython-stdlib:armhf (2.7.16-1) ...
Setting up libpython2.7-minimal:armhf (2.7.16-2+deb10u1) ...
Setting up python2.7-minimal (2.7.16-2+deb10u1) ...
Linking and byte-compiling packages for runtime python2.7...
Setting up python2-minimal (2.7.16-1) ...
Selecting previously unselected package python2.
(Reading database ... 17592 files and directories currently installed.)
Preparing to unpack .../python2_2.7.16-1_armhf.deb ...
Unpacking python2 (2.7.16-1) ...
Setting up python-minimal (2.7.16-1) ...
Selecting previously unselected package python.
(Reading database ... 17625 files and directories currently installed.)
Preparing to unpack .../00-python_2.7.16-1_armhf.deb ...
Unpacking python (2.7.16-1) ...
Selecting previously unselected package libwbclient0:armhf.
Preparing to unpack .../01-libwbclient0_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking libwbclient0:armhf (2:4.9.5+dfsg-5) ...
Selecting previously unselected package python-dnspython.
Preparing to unpack .../02-python-dnspython_1.16.0-1_all.deb ...
Unpacking python-dnspython (1.16.0-1) ...
Selecting previously unselected package python-crypto.
Preparing to unpack .../03-python-crypto_2.6.1-9+b1_armhf.deb ...
Unpacking python-crypto (2.6.1-9+b1) ...
Selecting previously unselected package libtalloc2:armhf.
Preparing to unpack .../04-libtalloc2_2.1.14-2_armhf.deb ...
Unpacking libtalloc2:armhf (2.1.14-2) ...
Selecting previously unselected package libtdb1:armhf.
Preparing to unpack .../05-libtdb1_1.3.16-2+b1_armhf.deb ...
Unpacking libtdb1:armhf (1.3.16-2+b1) ...
Selecting previously unselected package libtevent0:armhf.
Preparing to unpack .../06-libtevent0_0.9.37-1_armhf.deb ...
Unpacking libtevent0:armhf (0.9.37-1) ...
Selecting previously unselected package libldb1:armhf.
Preparing to unpack .../07-libldb1_2%3a1.5.1+really1.4.6-3_armhf.deb ...
Unpacking libldb1:armhf (2:1.5.1+really1.4.6-3) ...
Selecting previously unselected package libpython2.7:armhf.
Preparing to unpack .../08-libpython2.7_2.7.16-2+deb10u1_armhf.deb ...
Unpacking libpython2.7:armhf (2.7.16-2+deb10u1) ...
Selecting previously unselected package python-ldb.
Preparing to unpack .../09-python-ldb_2%3a1.5.1+really1.4.6-3_armhf.deb ...
Unpacking python-ldb (2:1.5.1+really1.4.6-3) ...
Selecting previously unselected package python-tdb.
Preparing to unpack .../10-python-tdb_1.3.16-2+b1_armhf.deb ...
Unpacking python-tdb (1.3.16-2+b1) ...
Selecting previously unselected package libavahi-common-data:armhf.
Preparing to unpack .../11-libavahi-common-data_0.7-4+b1_armhf.deb ...
Unpacking libavahi-common-data:armhf (0.7-4+b1) ...
Selecting previously unselected package libavahi-common3:armhf.
Preparing to unpack .../12-libavahi-common3_0.7-4+b1_armhf.deb ...
Unpacking libavahi-common3:armhf (0.7-4+b1) ...
Selecting previously unselected package libavahi-client3:armhf.
Preparing to unpack .../13-libavahi-client3_0.7-4+b1_armhf.deb ...
Unpacking libavahi-client3:armhf (0.7-4+b1) ...
Selecting previously unselected package libcups2:armhf.
Preparing to unpack .../14-libcups2_2.2.10-6+deb10u3_armhf.deb ...
Unpacking libcups2:armhf (2.2.10-6+deb10u3) ...
Selecting previously unselected package libjansson4:armhf.
Preparing to unpack .../15-libjansson4_2.12-1_armhf.deb ...
Unpacking libjansson4:armhf (2.12-1) ...
Selecting previously unselected package python-talloc:armhf.
Preparing to unpack .../16-python-talloc_2.1.14-2_armhf.deb ...
Unpacking python-talloc:armhf (2.1.14-2) ...
Selecting previously unselected package samba-libs:armhf.
Preparing to unpack .../17-samba-libs_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking samba-libs:armhf (2:4.9.5+dfsg-5) ...
Selecting previously unselected package python-samba.
Preparing to unpack .../18-python-samba_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking python-samba (2:4.9.5+dfsg-5) ...
Selecting previously unselected package samba-common.
Preparing to unpack .../19-samba-common_2%3a4.9.5+dfsg-5_all.deb ...
Unpacking samba-common (2:4.9.5+dfsg-5) ...
Selecting previously unselected package samba-common-bin.
Preparing to unpack .../20-samba-common-bin_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking samba-common-bin (2:4.9.5+dfsg-5) ...
Selecting previously unselected package tdb-tools.
Preparing to unpack .../21-tdb-tools_1.3.16-2+b1_armhf.deb ...
Unpacking tdb-tools (1.3.16-2+b1) ...
Selecting previously unselected package samba.
Preparing to unpack .../22-samba_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking samba (2:4.9.5+dfsg-5) ...
Selecting previously unselected package bzip2.
Preparing to unpack .../23-bzip2_1.0.6-9.2~deb10u1_armhf.deb ...
Unpacking bzip2 (1.0.6-9.2~deb10u1) ...
Selecting previously unselected package libmagic-mgc.
Preparing to unpack .../24-libmagic-mgc_1%3a5.35-4+deb10u1_armhf.deb ...
Unpacking libmagic-mgc (1:5.35-4+deb10u1) ...
Selecting previously unselected package libmagic1:armhf.
Preparing to unpack .../25-libmagic1_1%3a5.35-4+deb10u1_armhf.deb ...
Unpacking libmagic1:armhf (1:5.35-4+deb10u1) ...
Selecting previously unselected package file.
Preparing to unpack .../26-file_1%3a5.35-4+deb10u1_armhf.deb ...
Unpacking file (1:5.35-4+deb10u1) ...
Selecting previously unselected package xz-utils.
Preparing to unpack .../27-xz-utils_5.2.4-1_armhf.deb ...
Unpacking xz-utils (5.2.4-1) ...
Selecting previously unselected package attr.
Preparing to unpack .../28-attr_1%3a2.4.48-4_armhf.deb ...
Unpacking attr (1:2.4.48-4) ...
Selecting previously unselected package libibverbs1:armhf.
Preparing to unpack .../29-libibverbs1_22.1-1_armhf.deb ...
Unpacking libibverbs1:armhf (22.1-1) ...
Selecting previously unselected package ibverbs-providers:armhf.
Preparing to unpack .../30-ibverbs-providers_22.1-1_armhf.deb ...
Unpacking ibverbs-providers:armhf (22.1-1) ...
Selecting previously unselected package libboost-atomic1.67.0:armhf.
Preparing to unpack .../31-libboost-atomic1.67.0_1.67.0-13+deb10u1_armhf.deb ...
Unpacking libboost-atomic1.67.0:armhf (1.67.0-13+deb10u1) ...
Selecting previously unselected package libboost-iostreams1.67.0:armhf.
Preparing to unpack .../32-libboost-iostreams1.67.0_1.67.0-13+deb10u1_armhf.deb                            ...
Unpacking libboost-iostreams1.67.0:armhf (1.67.0-13+deb10u1) ...
Selecting previously unselected package libicu63:armhf.
Preparing to unpack .../33-libicu63_63.1-6+deb10u1_armhf.deb ...
Unpacking libicu63:armhf (63.1-6+deb10u1) ...
Selecting previously unselected package libboost-regex1.67.0:armhf.
Preparing to unpack .../34-libboost-regex1.67.0_1.67.0-13+deb10u1_armhf.deb ...
Unpacking libboost-regex1.67.0:armhf (1.67.0-13+deb10u1) ...
Selecting previously unselected package libboost-system1.67.0:armhf.
Preparing to unpack .../35-libboost-system1.67.0_1.67.0-13+deb10u1_armhf.deb ...
Unpacking libboost-system1.67.0:armhf (1.67.0-13+deb10u1) ...
Selecting previously unselected package libboost-thread1.67.0:armhf.
Preparing to unpack .../36-libboost-thread1.67.0_1.67.0-13+deb10u1_armhf.deb ...
Unpacking libboost-thread1.67.0:armhf (1.67.0-13+deb10u1) ...
Selecting previously unselected package libnspr4:armhf.
Preparing to unpack .../37-libnspr4_2%3a4.20-1_armhf.deb ...
Unpacking libnspr4:armhf (2:4.20-1) ...
Selecting previously unselected package libnss3:armhf.
Preparing to unpack .../38-libnss3_2%3a3.42.1-1+deb10u2_armhf.deb ...
Unpacking libnss3:armhf (2:3.42.1-1+deb10u2) ...
Selecting previously unselected package librados2:armhf.
Preparing to unpack .../39-librados2_12.2.11+dfsg1-2.1+b1_armhf.deb ...
Unpacking librados2:armhf (12.2.11+dfsg1-2.1+b1) ...
Selecting previously unselected package libcephfs2:armhf.
Preparing to unpack .../40-libcephfs2_12.2.11+dfsg1-2.1+b1_armhf.deb ...
Unpacking libcephfs2:armhf (12.2.11+dfsg1-2.1+b1) ...
Selecting previously unselected package libtirpc-common.
Preparing to unpack .../41-libtirpc-common_1.1.4-0.4_all.deb ...
Unpacking libtirpc-common (1.1.4-0.4) ...
Selecting previously unselected package libtirpc3:armhf.
Preparing to unpack .../42-libtirpc3_1.1.4-0.4_armhf.deb ...
Unpacking libtirpc3:armhf (1.1.4-0.4) ...
Selecting previously unselected package libglusterfs0:armhf.
Preparing to unpack .../43-libglusterfs0_5.5-3_armhf.deb ...
Unpacking libglusterfs0:armhf (5.5-3) ...
Selecting previously unselected package libgfxdr0:armhf.
Preparing to unpack .../44-libgfxdr0_5.5-3_armhf.deb ...
Unpacking libgfxdr0:armhf (5.5-3) ...
Selecting previously unselected package libgfrpc0:armhf.
Preparing to unpack .../45-libgfrpc0_5.5-3_armhf.deb ...
Unpacking libgfrpc0:armhf (5.5-3) ...
Selecting previously unselected package libgfapi0:armhf.
Preparing to unpack .../46-libgfapi0_5.5-3_armhf.deb ...
Unpacking libgfapi0:armhf (5.5-3) ...
Selecting previously unselected package libgpgme11:armhf.
Preparing to unpack .../47-libgpgme11_1.12.0-6_armhf.deb ...
Unpacking libgpgme11:armhf (1.12.0-6) ...
Selecting previously unselected package python-gpg.
Preparing to unpack .../48-python-gpg_1.12.0-6_armhf.deb ...
Unpacking python-gpg (1.12.0-6) ...
Selecting previously unselected package samba-dsdb-modules:armhf.
Preparing to unpack .../49-samba-dsdb-modules_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking samba-dsdb-modules:armhf (2:4.9.5+dfsg-5) ...
Selecting previously unselected package samba-vfs-modules:armhf.
Preparing to unpack .../50-samba-vfs-modules_2%3a4.9.5+dfsg-5_armhf.deb ...
Unpacking samba-vfs-modules:armhf (2:4.9.5+dfsg-5) ...
Setting up libibverbs1:armhf (22.1-1) ...
Setting up mime-support (3.62) ...
Setting up ibverbs-providers:armhf (22.1-1) ...
Setting up libmagic-mgc (1:5.35-4+deb10u1) ...
Setting up attr (1:2.4.48-4) ...
Setting up libtdb1:armhf (1.3.16-2+b1) ...
Setting up libtirpc-common (1.1.4-0.4) ...
Setting up libmagic1:armhf (1:5.35-4+deb10u1) ...
Setting up file (1:5.35-4+deb10u1) ...
Setting up samba-common (2:4.9.5+dfsg-5) ...

Creating config file /etc/samba/smb.conf with new version
Setting up bzip2 (1.0.6-9.2~deb10u1) ...
Setting up libgpgme11:armhf (1.12.0-6) ...
Setting up libwbclient0:armhf (2:4.9.5+dfsg-5) ...
Setting up libicu63:armhf (63.1-6+deb10u1) ...
Setting up libjansson4:armhf (2.12-1) ...
Setting up libpython2.7-stdlib:armhf (2.7.16-2+deb10u1) ...
Setting up libtalloc2:armhf (2.1.14-2) ...
Setting up libtevent0:armhf (0.9.37-1) ...
Setting up libnspr4:armhf (2:4.20-1) ...
Setting up libavahi-common-data:armhf (0.7-4+b1) ...
Setting up tdb-tools (1.3.16-2+b1) ...
update-alternatives: using /usr/bin/tdbbackup.tdbtools to provide /usr/bin/tdbba                           ckup (tdbbackup) in auto mode
Setting up xz-utils (5.2.4-1) ...
update-alternatives: using /usr/bin/xz to provide /usr/bin/lzma (lzma) in auto m                           ode
Setting up libboost-iostreams1.67.0:armhf (1.67.0-13+deb10u1) ...
Setting up libboost-atomic1.67.0:armhf (1.67.0-13+deb10u1) ...
Setting up libboost-system1.67.0:armhf (1.67.0-13+deb10u1) ...
Setting up libtirpc3:armhf (1.1.4-0.4) ...
Setting up libpython2.7:armhf (2.7.16-2+deb10u1) ...
Setting up libboost-regex1.67.0:armhf (1.67.0-13+deb10u1) ...
Setting up libldb1:armhf (2:1.5.1+really1.4.6-3) ...
Setting up python2.7 (2.7.16-2+deb10u1) ...
Setting up libboost-thread1.67.0:armhf (1.67.0-13+deb10u1) ...
Setting up libpython2-stdlib:armhf (2.7.16-1) ...
Setting up libavahi-common3:armhf (0.7-4+b1) ...
Setting up libnss3:armhf (2:3.42.1-1+deb10u2) ...
Setting up python2 (2.7.16-1) ...
Setting up libglusterfs0:armhf (5.5-3) ...
Setting up libpython-stdlib:armhf (2.7.16-1) ...
Setting up python (2.7.16-1) ...
Setting up libavahi-client3:armhf (0.7-4+b1) ...
Setting up libgfxdr0:armhf (5.5-3) ...
Setting up python-crypto (2.6.1-9+b1) ...
Setting up librados2:armhf (12.2.11+dfsg1-2.1+b1) ...
Setting up libcephfs2:armhf (12.2.11+dfsg1-2.1+b1) ...
Setting up python-ldb (2:1.5.1+really1.4.6-3) ...
Setting up libcups2:armhf (2.2.10-6+deb10u3) ...
Setting up python-tdb (1.3.16-2+b1) ...
Setting up python-dnspython (1.16.0-1) ...
Setting up python-gpg (1.12.0-6) ...
Setting up python-talloc:armhf (2.1.14-2) ...
Setting up libgfrpc0:armhf (5.5-3) ...
Setting up samba-libs:armhf (2:4.9.5+dfsg-5) ...
Setting up libgfapi0:armhf (5.5-3) ...
Setting up samba-dsdb-modules:armhf (2:4.9.5+dfsg-5) ...
Setting up python-samba (2:4.9.5+dfsg-5) ...
Setting up samba-vfs-modules:armhf (2:4.9.5+dfsg-5) ...
Setting up samba-common-bin (2:4.9.5+dfsg-5) ...
Checking smb.conf with testparm
Load smb config files from /etc/samba/smb.conf
Loaded services file OK.
Server role: ROLE_STANDALONE

Done
Setting up samba (2:4.9.5+dfsg-5) ...
Adding group `sambashare' (GID 113) ...
Done.
Samba is not being run as an AD Domain Controller: Masking samba-ad-dc.service
Please ignore the following error about deb-systemd-helper not finding those ser                           vices.
(samba-ad-dc.service masked)
Created symlink /etc/systemd/system/multi-user.target.wants/nmbd.service → /lib/                           systemd/system/nmbd.service.
Failed to preset unit: Unit file /etc/systemd/system/samba-ad-dc.service is mask                           ed.
/usr/bin/deb-systemd-helper: error: systemctl preset failed on samba-ad-dc.servi                           ce: No such file or directory
Created symlink /etc/systemd/system/multi-user.target.wants/smbd.service → /lib/                           systemd/system/smbd.service.
Processing triggers for systemd (241-7~deb10u4rcnee0~buster+20200509) ...
Processing triggers for libc-bin (2.28-10) ...
root@npi:~#
root@npi:~#
root@npi:~# dpkg -l|grep samba
ii  python-samba                   2:4.9.5+dfsg-5                      armhf                                   Python bindings for Samba
ii  samba                          2:4.9.5+dfsg-5                      armhf                                   SMB/CIFS file, print, and login server for Unix
ii  samba-common                   2:4.9.5+dfsg-5                      all                                     common files used by both the Samba server and client
ii  samba-common-bin               2:4.9.5+dfsg-5                      armhf                                   Samba common files used by both the server and the client
ii  samba-dsdb-modules:armhf       2:4.9.5+dfsg-5                      armhf                                   Samba Directory Services Database
ii  samba-libs:armhf               2:4.9.5+dfsg-5                      armhf                                   Samba core libraries
ii  samba-vfs-modules:armhf        2:4.9.5+dfsg-5                      armhf                                   Samba Virtual FileSystem plugins
root@npi:~#
root@npi:~#
root@npi:~#
root@npi:~# ls
root@npi:~# cat /etc/hosts
127.0.0.1       localhost
127.0.1.1       npi

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters

192.168.0.218   npi_jason
192.168.0.95    npi
root@npi:~# cat /etc/hostname
npi
root@npi:~# ^C
root@npi:~#

安装完毕后,我再用ssh以主机名npi的方式登陆我的imx6ull开发板,就可以成功登陆啦!如下图所示,惊喜!

关于imx6ull开发板无法通过局域网中的主机名登陆ssh,ping主机名也ping不通的问题_第1张图片
其他图片参考如下:

关于imx6ull开发板无法通过局域网中的主机名登陆ssh,ping主机名也ping不通的问题_第2张图片
关于imx6ull开发板无法通过局域网中的主机名登陆ssh,ping主机名也ping不通的问题_第3张图片
关于imx6ull开发板无法通过局域网中的主机名登陆ssh,ping主机名也ping不通的问题_第4张图片
关于imx6ull开发板无法通过局域网中的主机名登陆ssh,ping主机名也ping不通的问题_第5张图片

你可能感兴趣的:(imx6ull)