瀏覽代碼

avahi setup on Arch

Bob Mottram 8 年之前
父節點
當前提交
ddd7bbd7ef
共有 3 個檔案被更改,包括 7 行新增1 行删除
  1. 5
    0
      README.md
  2. 二進制
      man/freedombone-image.1.gz
  3. 2
    1
      src/freedombone-client

+ 5
- 0
README.md 查看文件

118
 
118
 
119
 With the drive removed and inserted. Copying to the microSD will take a while, so go and do something less boring instead. When it's complete remove it from your system and insert it into the SBC. Connect an ethernet cable between the SBC and your internet router, then connect the power cable. On the Beaglebone Black you will see some flashing LEDs, but on other SBCs there may not be any visual indication that anything is booting.
119
 With the drive removed and inserted. Copying to the microSD will take a while, so go and do something less boring instead. When it's complete remove it from your system and insert it into the SBC. Connect an ethernet cable between the SBC and your internet router, then connect the power cable. On the Beaglebone Black you will see some flashing LEDs, but on other SBCs there may not be any visual indication that anything is booting.
120
 
120
 
121
+On Arch/Parabola set up avahi so that you can access the system on its local address.
122
+
123
+    sudo sed -i 's|hosts:.*|hosts: files mdns_minimal [NOTFOUND=return] dns myhostname|g' /etc/nsswitch.conf
124
+    sudo pacman -S avahi nss-mdns
125
+
121
 With the board connected and running you can ssh into the system with:
126
 With the board connected and running you can ssh into the system with:
122
 
127
 
123
     ssh fbone@freedombone.local -p 2222
128
     ssh fbone@freedombone.local -p 2222

二進制
man/freedombone-image.1.gz 查看文件


+ 2
- 1
src/freedombone-client 查看文件

237
     if [ ! -f /usr/bin/pacman ]; then
237
     if [ ! -f /usr/bin/pacman ]; then
238
         sudo apt-get -y install avahi-utils avahi-autoipd avahi-dnsconfd
238
         sudo apt-get -y install avahi-utils avahi-autoipd avahi-dnsconfd
239
     else
239
     else
240
-        sudo pacman -S --noconfirm avahi
240
+        sudo pacman -S --noconfirm avahi nss-mdns
241
+        sudo sed -i 's|hosts:.*|hosts: files mdns_minimal [NOTFOUND=return] dns myhostname|g' /etc/nsswitch.conf
241
     fi
242
     fi
242
     sudo ${PROJECT_NAME}-mesh-install -f tox_node
243
     sudo ${PROJECT_NAME}-mesh-install -f tox_node
243
     sudo ${PROJECT_NAME}-mesh-install -f toxic
244
     sudo ${PROJECT_NAME}-mesh-install -f toxic