Discussion:
[9fans] Octopus viewer?
(too old to reply)
k***@hera.eonet.ne.jp
2012-04-22 07:45:30 UTC
Permalink
I'm now learning o/mero and o/live, and found very interesting!
I feel this is a direct descent of Plan 9 concepts. The idea to
separate o/mero and o/live is your original, and sounds very good
idea to me. Congraturations! Nemo and friends.

A few questions:

1) In a directory panel, is it difficult to make distinguish directory
and files like acme?
2) Is it difficult to reflect the change, say create a file etc, the
content of directory oanel?
3) Where is viewer application for sau, pdf files?
(I've not try distributed system, say the PC and terminal, so far.
I'm trying only the PC)

Kenji
k***@hera.eonet.ne.jp
2012-04-22 07:55:55 UTC
Permalink
4) Why I cannot run inferno applications, such as charon
during o/mero and o/live is running. I got
wmlib: no draw context error.

Kenji
Francisco J Ballesteros
2012-04-22 13:11:38 UTC
Permalink
Post by k***@hera.eonet.ne.jp
4) Why I cannot run inferno applications, such as charon
during o/mero and o/live is running. I got
wmlib: no draw context error.
Kenji
You can run emu apps, but there is no graphics context.
So you can't run inferno graphic apps.
Apps should use /mnt/ui instead.
k***@hera.eonet.ne.jp
2012-04-26 13:28:41 UTC
Permalink
Just a report:

I just got success to make Octopus system here.

Octopus server (the PC): running on Ubuntu 11.10
Octopus terminal: running on plan9front

well, Octopus is somewhat difficult to setup the system above.
I still have some problem, such as:
idle: can't get Plan9 idle.
However, it now start to work, and I can learn more from now.

Thanks nemo and others.

Kenji
Francisco J Ballesteros
2012-04-26 13:38:05 UTC
Permalink
Yes, I think this requires a modified mouse driver that reports if
the user is idle according to mouse usage or not.

Not a big deal if you are not running a context hierarchy in /who /what ...

You just just comment out that service.
Post by k***@hera.eonet.ne.jp
idle: can't get Plan9 idle.
k***@hera.eonet.ne.jp
2012-04-28 02:02:53 UTC
Permalink
One more probably more serious problem I have the following
error message:
Can't establish /chan/plumb.input: directory not a srv device.

ls -ld /chan shows no write permission for anyone.
Then, how the inferno plumber can create /chan/plumb.input
under the mounted directory?

Sorry my lack of knowledge of inferno.
I tried to look the sources, however it's too big.

Kenji
k***@hera.eonet.ne.jp
2012-04-28 08:23:08 UTC
Permalink
Post by k***@hera.eonet.ne.jp
ls -ld /chan shows no write permission for anyone.
Then, how the inferno plumber can create /chan/plumb.input
under the mounted directory?
Strangely, when I do ls -ld from the Inferno's shell window,
it shows:
d-r-xr-xr-x s 0 okamoto okamoto 0 Apr 26 04:32 /chan
and from olive's window:
d-r-xr-xr-x M 16 okamoto okamoto 0 Jan 01 1970 /chan.

Why Inferno shows 's', and olive does 'M'?

Kenji
Nemo
2012-04-28 12:39:44 UTC
Permalink
Post by k***@hera.eonet.ne.jp
Why Inferno shows 's', and olive does 'M'?
Kenji
olive is using the namespace where o/x runs, so it's not
directly the underlying name space, but it's re-exported.
I think that's why.
k***@hera.eonet.ne.jp
2012-04-28 14:06:30 UTC
Permalink
Post by Nemo
olive is using the namespace where o/x runs, so it's not
directly the underlying name space, but it's re-exported.
I think that's why.
Thanks nemo.
Yes, inferno shows the namespace of the localmachine.
Ok, I'll dig more.

Kenji
k***@hera.eonet.ne.jp
2012-04-30 01:19:50 UTC
Permalink
Post by Nemo
Post by k***@hera.eonet.ne.jp
Why Inferno shows 's', and olive does 'M'?
Kenji
olive is using the namespace where o/x runs, so it's not
directly the underlying name space, but it's re-exported.
I think that's why.
I checked the inferno source of plumber.b, and found it's
from emu's source of devsrv.c.
In the function of srv2c() in the file, it shows error of
"directory not a srv device" which I met, if the /chan directory
is mounted directory. This indicates plumber on octopus
will not work if it comes from the PC, will it?

Kenji
Nemo
2012-04-30 08:01:01 UTC
Permalink
/mnt/view is used for that.
open in olive will use it when in a
terminal.

--
iphone kbd. excuse typos :)
Post by k***@hera.eonet.ne.jp
Post by Nemo
Post by k***@hera.eonet.ne.jp
Why Inferno shows 's', and olive does 'M'?
Kenji
olive is using the namespace where o/x runs, so it's not
directly the underlying name space, but it's re-exported.
I think that's why.
I checked the inferno source of plumber.b, and found it's
from emu's source of devsrv.c.
In the function of srv2c() in the file, it shows error of
"directory not a srv device" which I met, if the /chan directory
is mounted directory. This indicates plumber on octopus
will not work if it comes from the PC, will it?
Kenji
k***@hera.eonet.ne.jp
2012-05-06 01:09:33 UTC
Permalink
Post by Nemo
/mnt/view is used for that.
open in olive will use it when in a
terminal.
I tried this, but fails.

In /usr/octopus/port/lib/view.b, it issues plumb command
on Plan 9 terminal or gnome-open on Linux terminal.
It also says it cooperate with spooler of /usr/octopus/port/spooler.b
where it says "there is a bug...".

In the Octopus system, there are three namespaces, native OS,
inferno and octopus, which make me confusing. How we can
switch those? In the view.b it seems to use native OS's namespace?

Kenji

PS. I've been in elsewhere for a while, sorry delay of response.
k***@hera.eonet.ne.jp
2012-05-08 06:23:30 UTC
Permalink
I might have been not so specific.
I'll try once more.

I dispatched the command on the terminal's olive window:
!cp DSCN1549.jpg /mnt/view
Nothing happens.
Hoever, on the terminal's local window where octopus command
was dispatched, I see tow lines of messages of:
sh: plumbing write error: no matching plumb rule
view: cmd plumb /usr/octopus/tmp/view.2.DSCN1549.jpg <<<<

Then, I hided the olive window, and inferno's shell window raised,
and examined ls -l /tmp on the inferno's sh window.
Here, I can find the file of view.2.DSCN1549.jpg.

However, lc /usr/octopus/tmp shows nothing but error.
/usr/okamoto/tmp, neither.
Then I think the arrorwd line above shows that the program tryed
to do plumb the file on a wrong place, because of confusion of
namespaces.

Kenji
Post by k***@hera.eonet.ne.jp
Post by Nemo
/mnt/view is used for that.
open in olive will use it when in a
terminal.
I tried this, but fails.
Francisco J Ballesteros
2012-05-08 08:27:48 UTC
Permalink
Sorry, I missed the previous mail.
To avoid noise for 9fans, can you let me know off-list which OS are you using on the PC
and on the terminal and I'll try to help?

For what you say I think that your plumber might not be configured or
that something happen with the configuration file after view tried to plumb it.

In the worst case I can just send you my configuration files :)
Post by k***@hera.eonet.ne.jp
I might have been not so specific.
I'll try once more.
!cp DSCN1549.jpg /mnt/view
Nothing happens.
Hoever, on the terminal's local window where octopus command
sh: plumbing write error: no matching plumb rule
view: cmd plumb /usr/octopus/tmp/view.2.DSCN1549.jpg <<<<
Then, I hided the olive window, and inferno's shell window raised,
and examined ls -l /tmp on the inferno's sh window.
Here, I can find the file of view.2.DSCN1549.jpg.
However, lc /usr/octopus/tmp shows nothing but error.
/usr/okamoto/tmp, neither.
Then I think the arrorwd line above shows that the program tryed
to do plumb the file on a wrong place, because of confusion of
namespaces.
Kenji
Post by k***@hera.eonet.ne.jp
Post by Nemo
/mnt/view is used for that.
open in olive will use it when in a
terminal.
I tried this, but fails.
k***@hera.eonet.ne.jp
2012-05-10 07:58:03 UTC
Permalink
Post by Francisco J Ballesteros
For what you say I think that your plumber might not be configured or
that something happen with the configuration file after view tried to plumb it.
In the worst case I can just send you my configuration files :)
It's not configuration problem, but, maybe, different version of
inferno. I versioned up my inferno to run it on my Ubuntu 11.10.

In the funtion of viewcmd() of /usr/octopus/port/lib/view.b, the line
r := os->filename(file);
gives the r="/usr/octopus/tmp/view.2.DSCN1549.jpg",
even the file="/tmp/view.2.DSCN1549.jpg is given".
Then, I changed the lines:
"Plan9" or "PlanB" =>
cmd=sprint("plumb %s", r);
to
"Plan9" or "PlanB" =>
cmd=sprint("plumb %s", file);

That's all.
Now I'm viewing the jpg image by !cp DSCN1549.jpg /mnt/view

Kenji
Francisco J Ballesteros
2012-05-10 08:02:52 UTC
Permalink
Oh! Good catch!

Sorry I couldn't be of more help.
Post by k***@hera.eonet.ne.jp
Post by Francisco J Ballesteros
For what you say I think that your plumber might not be configured or
that something happen with the configuration file after view tried to plumb it.
In the worst case I can just send you my configuration files :)
It's not configuration problem, but, maybe, different version of
inferno. I versioned up my inferno to run it on my Ubuntu 11.10.
In the funtion of viewcmd() of /usr/octopus/port/lib/view.b, the line
r := os->filename(file);
gives the r="/usr/octopus/tmp/view.2.DSCN1549.jpg",
even the file="/tmp/view.2.DSCN1549.jpg is given".
"Plan9" or "PlanB" =>
cmd=sprint("plumb %s", r);
to
"Plan9" or "PlanB" =>
cmd=sprint("plumb %s", file);
That's all.
Now I'm viewing the jpg image by !cp DSCN1549.jpg /mnt/view
Kenji
k***@hera.eonet.ne.jp
2012-05-11 01:50:17 UTC
Permalink
Post by Francisco J Ballesteros
Sorry I couldn't be of more help.
Don't worry about that.
It was your several years ago works, and you are
doing another work now.

I'll walking around it for a more, because it is very
difficult to understand why it works. Conceptually,
yes, it looks beautifull and easy to understand.
My problem is to understand what is inferno anyway...
You chose Inferno to build octopus on it, why? etc.

Kenji
Nemo
2012-05-11 06:33:26 UTC
Permalink
for portability.

--
iphone kbd. excuse typos :)
Post by k***@hera.eonet.ne.jp
Post by Francisco J Ballesteros
Sorry I couldn't be of more help.
Don't worry about that.
It was your several years ago works, and you are
doing another work now.
I'll walking around it for a more, because it is very
difficult to understand why it works. Conceptually,
yes, it looks beautifull and easy to understand.
My problem is to understand what is inferno anyway...
You chose Inferno to build octopus on it, why? etc.
Kenji
Charles Forsyth
2012-05-11 09:18:42 UTC
Permalink
also you get to write in a concurrent language that looks nice.

Inferno's hosting ability matters more, though, because it allows you to
convert any existing
system, running some other OS, into part of an Octopus system, and make
that host system's
resources available in the name space, accessible there (to applications)
and elsewhere on the net
(using 9P or Op).
Post by Nemo
for portability.
--
iphone kbd. excuse typos :)
k***@hera.eonet.ne.jp
2012-05-11 13:08:46 UTC
Permalink
Hey, I got the solution to my annoying problem:
why it works anyway?

The plumber to plumb DSCN1549.jpg to page is not
the plumber to be run from $OCTOPUS/dis/o/termrc, but
the plumber done by wm/sh of inferno of the same file .
That's the reason why I have to change
$OCTOPUS/usr/octopus/port/lib/view.b.

Now I deleted the lines of
plumber
ftest -e /dis/o/idle.dis && o/idle
from the termrc in $OCTOPUS/dis/o.

Yeash, I'm happy now, and going to next step

Kenji

Francisco J Ballesteros
2012-04-22 13:10:25 UTC
Permalink
Post by k***@hera.eonet.ne.jp
1) In a directory panel, is it difficult to make distinguish directory
and files like acme?
yes, names are listed. that's all
Post by k***@hera.eonet.ne.jp
2) Is it difficult to reflect the change, say create a file etc, the
content of directory panel?
You have to reopen the dir.
Button 3 click on the name, then move right.
Post by k***@hera.eonet.ne.jp
3) Where is viewer application for sau, pdf files?
(I've not try distributed system, say the PC and terminal, so far.
I'm trying only the PC)
that's /mnt/view
it's a fs that wraps the viewer at your terminal.
if the terminal is plan9, you could plumb what you copy there.
Post by k***@hera.eonet.ne.jp
Kenji
Continue reading on narkive:
Loading...