9 /

9p

Server

Unix

There are currently two 9p servers for unix, u9fs and 9pex

9pex

$ git clone git://shithub.us/sigrid/9pro
$ cd 9pro
$ doas make install

in /etc/inetd.conf, replace user and path

564 stream tcp nowait  user /usr/local/bin/9pex -e /path/to/export

finally, enable and start inetd

$ doas rcctl enable inetd
$ doas rcctl start inetd

Plan 9

There are several ways to do so, see exportfs(1)

% aux/listen1 tcp!*!900 exportfs -R /path/to/export

Client

Linux

# mount -t 9p -o port=900 127.0.0.1 /mnt

note: linux doesn't do gethostbyname(2)/dns for mounting 9p file servers.

Plan 9

% 9fs tcp!somewhere!900

Inferno

; mount -a -A tcp!somewhere!900 /mnt

libixp/ixpc

$ export IXP_ADDRESS=tcp!somewhere!900
$ ixpc ls /