This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo make search name=avahi | |
Port: avahi-0.6.31p15 | |
Path: net/avahi,-main | |
Info: framework for Multicast DNS Service Discovery | |
Maint: Antoine Jacoutot <ajacoutot@openbsd.org> | |
Index: net devel lang/mono lang/python | |
L-deps: STEM->=0.10.38:devel/gettext converters/libiconv databases/gdbm devel/glib2 devel/libdaemon x11/dbus | |
B-deps: STEM->=0.10.38:devel/gettext STEM->=0.41.1p0:textproc/intltool converters/xmltoman devel/gmake devel/gobject-introspection lang/mono lang/python/2.7 lang/python/2.7,-gdbm x11/dbus-python x11/mono-gtk2 x11/py-gtk2 | |
R-deps: STEM->=0.10.38:devel/gettext | |
Archs: any |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd net/avahi | |
$ sudo make install BULK=yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ sudo echo multicast_host=YES >> /etc/rc.conf.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ -x /usr/local/bin/dbus-daemon ]; then | |
install -d -o _dbus -g _dbus /var/run/dbus | |
echo -n " dbus"; /usr/local/bin/dbus-daemon --system | |
fi | |
if [ -x /usr/local/sbin/avahi-daemon ]; then | |
echo -n ' avahi-daemon'; /usr/local/sbin/avahi-daemon -D | |
fi | |
if [ -x /usr/local/sbin/avahi-dnsconfd ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[server] | |
host-name=pyongyang | |
domain-name=local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ping -c 3 pyongyang.local | |
PING pyongyang.local (192.168.0.103) 56(84) bytes of data. | |
64 bytes from pyongyang.local (192.168.0.103): icmp_req=1 ttl=255 time=0.942 ms | |
64 bytes from pyongyang.local (192.168.0.103): icmp_req=2 ttl=255 time=0.958 ms | |
64 bytes from pyongyang.local (192.168.0.103): icmp_req=3 ttl=255 time=0.900 ms | |
--- pyongyang.local ping statistics --- | |
3 packets transmitted, 3 received, 0% packet loss, time 2003ms | |
rtt min/avg/max/mdev = 0.900/0.933/0.958/0.034 ms | |
$ ssh pyongyang.local |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mount | grep tmp | |
/dev/sd0d on /tmp type ffs (local, nodev, nosuid) | |
$ mount | grep var | |
/dev/sd0e on /var type ffs (local, nodev, nosuid) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat /etc/fstab | |
bb5e5c361e094061.b none swap sw | |
bb5e5c361e094061.a / ffs rw 1 1 | |
bb5e5c361e094061.l /home ffs rw,nodev,nosuid 1 2 | |
#bb5e5c361e094061.d /tmp ffs rw,nodev,nosuid 1 2 | |
bb5e5c361e094061.f /usr ffs rw,nodev 1 2 | |
bb5e5c361e094061.g /usr/X11R6 ffs rw,nodev 1 2 | |
bb5e5c361e094061.h /usr/local ffs rw,nodev 1 2 | |
bb5e5c361e094061.k /usr/obj ffs rw,nodev,nosuid 1 2 | |
bb5e5c361e094061.j /usr/src ffs rw,nodev,nosuid 1 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/io.h> | |
#include <util/delay.h> | |
#define LED_ON _BV(PORTB5) | |
#define LED_OFF ~_BV(PORTB5); | |
int main () { | |
DDRB |= _BV(DDB5); | |
while(1) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
avr-gcc -Os -DF_CPU=16000000UL -mmcu=atmega328p -o blink blink.c |