Skip to content

Commit baced2e

Browse files
committed
Avahi extras.
1 parent 24ec044 commit baced2e

File tree

3 files changed

+83
-1
lines changed

3 files changed

+83
-1
lines changed

installer/stock_raspbian/scripts/01_headless_basics.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ apt-get -y install vim
1010
echo ""
1111

1212
echo "### Install avahi daemon (enables mDNS/DNS-SD so you can connect to coder.local)."
13-
apt-get -y install avahi-daemon
13+
apt-get -y install avahi-daemon avahi-utils
14+
cp ../../../raspbian-addons/etc/avahi/avahi-daemon.conf /etc/avahi/avahi-daemon.conf
15+
cp ../../../raspbian-addons/etc/avahi/services/coder.service /etc/avahi/services/
1416
echo ""
1517

1618
echo "### Install dhcpd daemon (will be used to give addresses when in ad-hoc hotspot mode)."
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# This file is part of avahi.
2+
#
3+
# avahi is free software; you can redistribute it and/or modify it
4+
# under the terms of the GNU Lesser General Public License as
5+
# published by the Free Software Foundation; either version 2 of the
6+
# License, or (at your option) any later version.
7+
#
8+
# avahi is distributed in the hope that it will be useful, but WITHOUT
9+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10+
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
11+
# License for more details.
12+
#
13+
# You should have received a copy of the GNU Lesser General Public
14+
# License along with avahi; if not, write to the Free Software
15+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
16+
# USA.
17+
18+
# See avahi-daemon.conf(5) for more information on this configuration
19+
# file!
20+
21+
[server]
22+
#host-name=foo
23+
#domain-name=local
24+
#browse-domains=0pointer.de, zeroconf.org
25+
use-ipv4=yes
26+
use-ipv6=no
27+
allow-interfaces=eth0,eth1,wlan0
28+
#deny-interfaces=eth1
29+
#check-response-ttl=no
30+
#use-iff-running=no
31+
#enable-dbus=yes
32+
#disallow-other-stacks=no
33+
#allow-point-to-point=no
34+
#cache-entries-max=4096
35+
#clients-max=4096
36+
#objects-per-client-max=1024
37+
#entries-per-entry-group-max=32
38+
ratelimit-interval-usec=1000000
39+
ratelimit-burst=1000
40+
41+
[wide-area]
42+
enable-wide-area=yes
43+
44+
[publish]
45+
#disable-publishing=no
46+
#disable-user-service-publishing=no
47+
#add-service-cookie=no
48+
#publish-addresses=yes
49+
#publish-hinfo=yes
50+
#publish-workstation=yes
51+
#publish-domain=yes
52+
#publish-dns-servers=192.168.50.1, 192.168.50.2
53+
#publish-resolv-conf-dns-servers=yes
54+
#publish-aaaa-on-ipv4=yes
55+
#publish-a-on-ipv6=no
56+
57+
[reflector]
58+
#enable-reflector=no
59+
#reflect-ipv=no
60+
61+
[rlimits]
62+
#rlimit-as=
63+
rlimit-core=0
64+
rlimit-data=4194304
65+
rlimit-fsize=0
66+
rlimit-nofile=768
67+
rlimit-stack=4194304
68+
rlimit-nproc=3
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?xml version="1.0" standalone='no'?><!--*-nxml-*-->
2+
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
3+
4+
5+
<service-group>
6+
<name replace-wildcards="yes">Coder Server at %h.local</name>
7+
8+
<service>
9+
<type>_http._tcp</type>
10+
<port>80</port>
11+
</service>
12+
</service-group>

0 commit comments

Comments
 (0)