Browse Source

avahi setup on Arch

Bob Mottram 8 years ago
parent
commit
ddd7bbd7ef
3 changed files with 7 additions and 1 deletions
  1. 5
    0
      README.md
  2. BIN
      man/freedombone-image.1.gz
  3. 2
    1
      src/freedombone-client

+ 5
- 0
README.md View File

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

BIN
man/freedombone-image.1.gz View File


+ 2
- 1
src/freedombone-client View File

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