From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <140e7ec30801141053x6725cc2bwb75f80d8384c04db@mail.gmail.com> Date: Tue, 15 Jan 2008 03:53:06 +0900 From: sqweek To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] 9P on linux In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Topicbox-Message-UUID: 2e193c1e-ead3-11e9-9d60-3106f5b1d025 On Jan 14, 2008 6:56 PM, wrote: > I am having trouble getting 9P working on my linux box. Firstly u9fs: > I have followed the directions on http://www.t3x.org/bits/plan9_on_u9fs.html > and put put this line in /etc/inetd.conf > > u9fs stream tcp nowait root /root/bin/u9fs u9fs -Dz -a > p9any /scratch/p9root > > the only client I have even been able to run is this one: > http://www.lava.net/~newsham/plan9/ I'd recommend running with p9p[1] for testing. Here's my setup (wren is the server, nightingale the client): wren:/etc/inetd.conf:31:564 stream tcp nowait root /usr/local/bin/u9fs u9fs -a p9any nightingale$ 9 factotum nightingale$ srv -a wren Adding key for proto=p9sk1 authdom=sqweek.dnsdojo.org ... User [sqweek]: Password: ********* nightingale$ 9p ls wren/home d-rwxr-xr-x M 0 sqweek users 1024 Jan 10 16:43 sqweek Brief explanation - "9 factotum" starts up the password manager (for lack of a better term), and "srv -a wren" starts an authenticated connection to my server (via tcp on port 564, since I didn't specify). Both of these commands place a socket in my 'namespace' directory, /tmp/ns.sqweek.:0, for further communication. srv then communicates with factotum to achieve authentication, and finally the 9p command uses the "wren" socket that srv created. I also mount it with 9p2000.ko using "mount -t 9p -o proto=unix,noextend /tmp/ns.sqweek.:0/wren /home/sqweek/n/wren". [1] http://swtch.com/plan9port/