* [9fans] mount plan9 fossil on linux system?
@ 2006-11-16 5:31 Adrian Tritschler
2006-11-16 7:07 ` Sergey Zhilkin
2006-11-17 1:08 ` Georg Lehner
0 siblings, 2 replies; 10+ messages in thread
From: Adrian Tritschler @ 2006-11-16 5:31 UTC (permalink / raw)
To: 9fans
Having successfully (I think) turned a plan9 terminal into an auth/cpu
system at home, I'm trying to export its fossil file system and then
mount this on a linux (Ubuntu) system. Reading back through various
mails here suggest it should be simple.
Something isn't quite right (yet). I'm trying to mount the fossil
filesystem on the linux system, run:
fafnir:/tmp$ sudo mount -t 9p -o user=ajft 10.0.0.123 /mnt
mount: permission denied
/var/log/syslog contains:
Nov 15 22:17:27 localhost kernel: [18670662.760000] v9fs_errstr2errno:
errstr :cannot attach as none before authentication\ufffd\377\ufffd: not
found
any ideas or suggestions?
--
Adrian Tritschler <ajft@ajft.org>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] mount plan9 fossil on linux system?
2006-11-16 5:31 [9fans] mount plan9 fossil on linux system? Adrian Tritschler
@ 2006-11-16 7:07 ` Sergey Zhilkin
2006-11-16 7:25 ` Adrian Tritschler
2006-11-17 1:08 ` Georg Lehner
1 sibling, 1 reply; 10+ messages in thread
From: Sergey Zhilkin @ 2006-11-16 7:07 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 905 bytes --]
Hi! Try mount under root.
Check /etc/sudoers for correct permissions.
I'm using it, and 9P works fine.
2006/11/16, Adrian Tritschler <ajft@ajft.org>:
>
> Having successfully (I think) turned a plan9 terminal into an auth/cpu
> system at home, I'm trying to export its fossil file system and then
> mount this on a linux (Ubuntu) system. Reading back through various
> mails here suggest it should be simple.
>
> Something isn't quite right (yet). I'm trying to mount the fossil
> filesystem on the linux system, run:
>
> fafnir:/tmp$ sudo mount -t 9p -o user=ajft 10.0.0.123 /mnt
> mount: permission denied
>
> /var/log/syslog contains:
>
> Nov 15 22:17:27 localhost kernel: [18670662.760000] v9fs_errstr2errno:
> errstr :cannot attach as none before authentication\ufffd\377\ufffd: not
> found
>
> any ideas or suggestions?
>
> --
> Adrian Tritschler <ajft@ajft.org>
>
>
[-- Attachment #2: Type: text/html, Size: 1245 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] mount plan9 fossil on linux system?
2006-11-16 7:07 ` Sergey Zhilkin
@ 2006-11-16 7:25 ` Adrian Tritschler
2006-11-16 7:36 ` Sergey Zhilkin
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Adrian Tritschler @ 2006-11-16 7:25 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Sergey Zhilkin wrote:
> Hi! Try mount under root.
> Check /etc/sudoers for correct permissions.
sudoers lets my account do anything :-)
However, just to keep you happy:
fafnir:/tmp# mount -t 9p -o user=ajft 10.0.0.123 /mnt
mount: permission denied
fafnir:/tmp# tail /var/log/syslog
:
Nov 16 18:23:06 localhost kernel: [17212825.952000] v9fs_errstr2errno:
errstr :cannot attach as none before authentication^E: not found
> I'm using it, and 9P works fine.
Adrian
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] mount plan9 fossil on linux system?
2006-11-16 7:25 ` Adrian Tritschler
@ 2006-11-16 7:36 ` Sergey Zhilkin
2006-11-16 7:37 ` Skip Tavakkolian
2006-11-16 7:38 ` Sergey Zhilkin
2 siblings, 0 replies; 10+ messages in thread
From: Sergey Zhilkin @ 2006-11-16 7:36 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 653 bytes --]
Can you drawterm to your cpu/fs host ?
Try mount 9P with debug=0x01
2006/11/16, Adrian Tritschler <ajft@ajft.org>:
>
> Sergey Zhilkin wrote:
> > Hi! Try mount under root.
> > Check /etc/sudoers for correct permissions.
>
> sudoers lets my account do anything :-)
>
> However, just to keep you happy:
>
> fafnir:/tmp# mount -t 9p -o user=ajft 10.0.0.123 /mnt
> mount: permission denied
> fafnir:/tmp# tail /var/log/syslog
> :
> Nov 16 18:23:06 localhost kernel: [17212825.952000] v9fs_errstr2errno:
> errstr :cannot attach as none before authentication^E: not found
>
> > I'm using it, and 9P works fine.
>
> Adrian
>
>
[-- Attachment #2: Type: text/html, Size: 980 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] mount plan9 fossil on linux system?
2006-11-16 7:25 ` Adrian Tritschler
2006-11-16 7:36 ` Sergey Zhilkin
@ 2006-11-16 7:37 ` Skip Tavakkolian
2006-11-16 8:09 ` Adrian Tritschler
2006-11-16 7:38 ` Sergey Zhilkin
2 siblings, 1 reply; 10+ messages in thread
From: Skip Tavakkolian @ 2006-11-16 7:37 UTC (permalink / raw)
To: 9fans
v9fs does not do authentication - which is not part of 9p at any rate.
so you probably need to do auth some other way and then
pass the authenticated fd to v9fs (mount options).
have you read this thread? it seems to be what you want
http://groups.google.com/group/comp.os.plan9/browse_thread/thread/28c09901ba9f962c/edd716a1315b0a1a?lnk=gst&q=v9fs+auth&rnum=2#edd716a1315b0a1a
> Sergey Zhilkin wrote:
>> Hi! Try mount under root.
>> Check /etc/sudoers for correct permissions.
>
> sudoers lets my account do anything :-)
>
> However, just to keep you happy:
>
> fafnir:/tmp# mount -t 9p -o user=ajft 10.0.0.123 /mnt
> mount: permission denied
> fafnir:/tmp# tail /var/log/syslog
> :
> Nov 16 18:23:06 localhost kernel: [17212825.952000] v9fs_errstr2errno:
> errstr :cannot attach as none before authentication^E: not found
>
>> I'm using it, and 9P works fine.
>
> Adrian
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] mount plan9 fossil on linux system?
2006-11-16 7:25 ` Adrian Tritschler
2006-11-16 7:36 ` Sergey Zhilkin
2006-11-16 7:37 ` Skip Tavakkolian
@ 2006-11-16 7:38 ` Sergey Zhilkin
2 siblings, 0 replies; 10+ messages in thread
From: Sergey Zhilkin @ 2006-11-16 7:38 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
[-- Attachment #1: Type: text/plain, Size: 601 bytes --]
Is you fossil listening от tcp!*!564 ???
2006/11/16, Adrian Tritschler <ajft@ajft.org>:
>
> Sergey Zhilkin wrote:
> > Hi! Try mount under root.
> > Check /etc/sudoers for correct permissions.
>
> sudoers lets my account do anything :-)
>
> However, just to keep you happy:
>
> fafnir:/tmp# mount -t 9p -o user=ajft 10.0.0.123 /mnt
> mount: permission denied
> fafnir:/tmp# tail /var/log/syslog
> :
> Nov 16 18:23:06 localhost kernel: [17212825.952000] v9fs_errstr2errno:
> errstr :cannot attach as none before authentication^E: not found
>
> > I'm using it, and 9P works fine.
>
> Adrian
>
>
[-- Attachment #2: Type: text/html, Size: 944 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] mount plan9 fossil on linux system?
2006-11-16 7:37 ` Skip Tavakkolian
@ 2006-11-16 8:09 ` Adrian Tritschler
0 siblings, 0 replies; 10+ messages in thread
From: Adrian Tritschler @ 2006-11-16 8:09 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Skip Tavakkolian wrote:
> v9fs does not do authentication - which is not part of 9p at any rate.
> so you probably need to do auth some other way and then
> pass the authenticated fd to v9fs (mount options).
> have you read this thread? it seems to be what you want
> http://groups.google.com/group/comp.os.plan9/browse_thread/thread/28c09901ba9f962c/edd716a1315b0a1a?lnk=gst&q=v9fs+auth&rnum=2#edd716a1315b0a1a
Ah, many thanks. Working my way through that and I can mount sources, I
think I need work on my Linux $PLAN9/ndb files for mounting my local
stuff...
ajft@fafnir:~$ namespace
/tmp/ns.ajft.:0
ajft@fafnir:~$ ls `namespace`
factotum= sources=
ajft@fafnir:~$ sudo mount -t 9P -o user=$USER,uid=`id -u`,gid=`id
-g`,proto=unix `namespace`/sources /mnt
mount: unknown filesystem type '9P'
ajft@fafnir:~$ sudo mount -t 9p -o user=$USER,uid=`id -u`,gid=`id
-g`,proto=unix `namespace`/sources /mnt
ajft@fafnir:~$ ls /mnt
9grid/ adm/ contrib/ extra/ fastos/ lsr patch/ plan9/ wiki/ xen/
</pre>
Running late for dinner now, I'll have to try later!
Adrian
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] mount plan9 fossil on linux system?
2006-11-16 5:31 [9fans] mount plan9 fossil on linux system? Adrian Tritschler
2006-11-16 7:07 ` Sergey Zhilkin
@ 2006-11-17 1:08 ` Georg Lehner
2006-11-17 1:41 ` Latchesar Ionkov
2006-11-17 1:46 ` Adrian Tritschler
1 sibling, 2 replies; 10+ messages in thread
From: Georg Lehner @ 2006-11-17 1:08 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Hello!
Try to configure fossil to
listen -N tcp!*!564
This will allow the "none" user to connect.
You would have to authenticate first (as user ajft) and then mount
from Linux, this I have not found out how to do yet.
Regards
Jorge-León
Adrian Tritschler <ajft@ajft.org> writes:
> Having successfully (I think) turned a plan9 terminal into an auth/cpu
> system at home, I'm trying to export its fossil file system and then
> mount this on a linux (Ubuntu) system. Reading back through various
> mails here suggest it should be simple.
>
> Something isn't quite right (yet). I'm trying to mount the fossil
> filesystem on the linux system, run:
>
> fafnir:/tmp$ sudo mount -t 9p -o user=ajft 10.0.0.123 /mnt
> mount: permission denied
>
> /var/log/syslog contains:
>
> Nov 15 22:17:27 localhost kernel: [18670662.760000] v9fs_errstr2errno:
> errstr :cannot attach as none before authentication\ufffd\377\ufffd: not
> found
>
> any ideas or suggestions?
>
> --
> Adrian Tritschler <ajft@ajft.org>
>
--
Jorge-León
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] mount plan9 fossil on linux system?
2006-11-17 1:08 ` Georg Lehner
@ 2006-11-17 1:41 ` Latchesar Ionkov
2006-11-17 1:46 ` Adrian Tritschler
1 sibling, 0 replies; 10+ messages in thread
From: Latchesar Ionkov @ 2006-11-17 1:41 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
You can try mounting as yourself using mount.9P. You can get it from
v9fs CVS repository (v9fs.sourceforge.net:/app/mount.9P). It needs
p9p installed and factotum running on the Linux box. I didn't test it
with the latest v9fs code, let me know if it doesn't work for you.
Thanks,
Lucho
On Nov 16, 2006, at 8:08 PM, Georg Lehner wrote:
> Hello!
>
> Try to configure fossil to
>
> listen -N tcp!*!564
>
> This will allow the "none" user to connect.
>
> You would have to authenticate first (as user ajft) and then mount
> from Linux, this I have not found out how to do yet.
>
> Regards
>
> Jorge-León
>
> Adrian Tritschler <ajft@ajft.org> writes:
>
>> Having successfully (I think) turned a plan9 terminal into an auth/
>> cpu
>> system at home, I'm trying to export its fossil file system and then
>> mount this on a linux (Ubuntu) system. Reading back through various
>> mails here suggest it should be simple.
>>
>> Something isn't quite right (yet). I'm trying to mount the fossil
>> filesystem on the linux system, run:
>>
>> fafnir:/tmp$ sudo mount -t 9p -o user=ajft 10.0.0.123 /mnt
>> mount: permission denied
>>
>> /var/log/syslog contains:
>>
>> Nov 15 22:17:27 localhost kernel: [18670662.760000]
>> v9fs_errstr2errno:
>> errstr :cannot attach as none before authentication\ufffd\377
>> \ufffd: not
>> found
>>
>> any ideas or suggestions?
>>
>> --
>> Adrian Tritschler <ajft@ajft.org>
>>
>
> --
> Jorge-León
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [9fans] mount plan9 fossil on linux system?
2006-11-17 1:08 ` Georg Lehner
2006-11-17 1:41 ` Latchesar Ionkov
@ 2006-11-17 1:46 ` Adrian Tritschler
1 sibling, 0 replies; 10+ messages in thread
From: Adrian Tritschler @ 2006-11-17 1:46 UTC (permalink / raw)
To: Fans of the OS Plan 9 from Bell Labs
Georg Lehner <jorge-plan9@magma.com.ni> writes:
> Hello!
>
> Try to configure fossil to
>
> listen -N tcp!*!564
>
> This will allow the "none" user to connect.
I'm not really sure I want that though...
> You would have to authenticate first (as user ajft) and then mount
> from Linux, this I have not found out how to do yet.
The following is now working for me.
ajft@fafnir:~$ factotum
ajft@fafnir:~$ srv -a wyvern wyvern
!adding key: role=client proto=p9sk1 dom=home
user[ajft]:
password:
!
ajft@fafnir:~$ sudo mount -t 9p -o user=$USER,uid=`id -u`,gid=`id -g`,proto=unix `namespace`/wyvern /mnt
ajft@fafnir:~$ ls /mnt/
386/ acme/ amd64/ dist/ lib/ LICENSE.gpl mips/ NOTICE sparc/ tmp/
68000/ adm/ arm/ env/ LICENSE lp/ mnt/ power/ sparc64/ usr/
68020/ alpha/ cron/ fd/ LICENSE.afpl mail/ n/ rc/ sys/
Somewhere along the line the filesystem type seems to have changed
from "9P" to "9p".
Now I get to see how useful it may be. Copying, editing, viewing
files seems to behave as I expected. Trying rsync or unison to copy
files from the linux filesystem to the mounted fossil failed
> Regards
>
> Jorge-León
ADrian
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2006-11-17 1:46 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-16 5:31 [9fans] mount plan9 fossil on linux system? Adrian Tritschler
2006-11-16 7:07 ` Sergey Zhilkin
2006-11-16 7:25 ` Adrian Tritschler
2006-11-16 7:36 ` Sergey Zhilkin
2006-11-16 7:37 ` Skip Tavakkolian
2006-11-16 8:09 ` Adrian Tritschler
2006-11-16 7:38 ` Sergey Zhilkin
2006-11-17 1:08 ` Georg Lehner
2006-11-17 1:41 ` Latchesar Ionkov
2006-11-17 1:46 ` Adrian Tritschler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).