9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Octopus viewer?
@ 2012-04-22  7:45 kokamoto
  2012-04-22  7:55 ` kokamoto
  2012-04-22 13:10 ` Francisco J Ballesteros
  0 siblings, 2 replies; 21+ messages in thread
From: kokamoto @ 2012-04-22  7:45 UTC (permalink / raw)
  To: 9fans

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




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-22  7:45 [9fans] Octopus viewer? kokamoto
@ 2012-04-22  7:55 ` kokamoto
  2012-04-22 13:11   ` Francisco J Ballesteros
  2012-04-26 13:28   ` kokamoto
  2012-04-22 13:10 ` Francisco J Ballesteros
  1 sibling, 2 replies; 21+ messages in thread
From: kokamoto @ 2012-04-22  7:55 UTC (permalink / raw)
  To: 9fans

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




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-22  7:45 [9fans] Octopus viewer? kokamoto
  2012-04-22  7:55 ` kokamoto
@ 2012-04-22 13:10 ` Francisco J Ballesteros
  1 sibling, 0 replies; 21+ messages in thread
From: Francisco J Ballesteros @ 2012-04-22 13:10 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

>
> 1) In a directory panel, is it difficult to make distinguish directory
> and files like acme?

yes, names are listed. that's all

> 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.

> 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.


> Kenji
>




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-22  7:55 ` kokamoto
@ 2012-04-22 13:11   ` Francisco J Ballesteros
  2012-04-26 13:28   ` kokamoto
  1 sibling, 0 replies; 21+ messages in thread
From: Francisco J Ballesteros @ 2012-04-22 13:11 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On Apr 22, 2012, at 9:55 AM, kokamoto@hera.eonet.ne.jp wrote:

> 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.



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-22  7:55 ` kokamoto
  2012-04-22 13:11   ` Francisco J Ballesteros
@ 2012-04-26 13:28   ` kokamoto
  2012-04-26 13:38     ` Francisco J Ballesteros
  1 sibling, 1 reply; 21+ messages in thread
From: kokamoto @ 2012-04-26 13:28 UTC (permalink / raw)
  To: 9fans

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




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-26 13:28   ` kokamoto
@ 2012-04-26 13:38     ` Francisco J Ballesteros
  2012-04-28  2:02       ` kokamoto
  0 siblings, 1 reply; 21+ messages in thread
From: Francisco J Ballesteros @ 2012-04-26 13:38 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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.

On Apr 26, 2012, at 3:28 PM, kokamoto@hera.eonet.ne.jp wrote:

> idle: can't get Plan9 idle.




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-26 13:38     ` Francisco J Ballesteros
@ 2012-04-28  2:02       ` kokamoto
  2012-04-28  8:23         ` kokamoto
  0 siblings, 1 reply; 21+ messages in thread
From: kokamoto @ 2012-04-28  2:02 UTC (permalink / raw)
  To: 9fans

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




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-28  2:02       ` kokamoto
@ 2012-04-28  8:23         ` kokamoto
  2012-04-28 12:39           ` Nemo
  0 siblings, 1 reply; 21+ messages in thread
From: kokamoto @ 2012-04-28  8:23 UTC (permalink / raw)
  To: 9fans

> 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




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-28  8:23         ` kokamoto
@ 2012-04-28 12:39           ` Nemo
  2012-04-28 14:06             ` kokamoto
  2012-04-30  1:19             ` kokamoto
  0 siblings, 2 replies; 21+ messages in thread
From: Nemo @ 2012-04-28 12:39 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


On Apr 28, 2012, at 10:23 AM, kokamoto@hera.eonet.ne.jp wrote:
>
> 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.




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-28 12:39           ` Nemo
@ 2012-04-28 14:06             ` kokamoto
  2012-04-30  1:19             ` kokamoto
  1 sibling, 0 replies; 21+ messages in thread
From: kokamoto @ 2012-04-28 14:06 UTC (permalink / raw)
  To: 9fans

> 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




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-28 12:39           ` Nemo
  2012-04-28 14:06             ` kokamoto
@ 2012-04-30  1:19             ` kokamoto
  2012-04-30  8:01               ` Nemo
  1 sibling, 1 reply; 21+ messages in thread
From: kokamoto @ 2012-04-30  1:19 UTC (permalink / raw)
  To: 9fans

> On Apr 28, 2012, at 10:23 AM, kokamoto@hera.eonet.ne.jp wrote:
>>
>> 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




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-30  1:19             ` kokamoto
@ 2012-04-30  8:01               ` Nemo
  2012-05-06  1:09                 ` kokamoto
  0 siblings, 1 reply; 21+ messages in thread
From: Nemo @ 2012-04-30  8:01 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

/mnt/view is used for that.
open in olive will use it when in a
terminal.

--
iphone kbd. excuse typos :)


On Apr 30, 2012, at 3:19 AM, kokamoto@hera.eonet.ne.jp wrote:

>> On Apr 28, 2012, at 10:23 AM, kokamoto@hera.eonet.ne.jp wrote:
>>>
>>> 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
>



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-04-30  8:01               ` Nemo
@ 2012-05-06  1:09                 ` kokamoto
  2012-05-08  6:23                   ` kokamoto
  0 siblings, 1 reply; 21+ messages in thread
From: kokamoto @ 2012-05-06  1:09 UTC (permalink / raw)
  To: 9fans

> /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.




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-05-06  1:09                 ` kokamoto
@ 2012-05-08  6:23                   ` kokamoto
  2012-05-08  8:27                     ` Francisco J Ballesteros
  0 siblings, 1 reply; 21+ messages in thread
From: kokamoto @ 2012-05-08  6:23 UTC (permalink / raw)
  To: 9fans

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

>> /mnt/view is used for that.
>> open in olive will use it when in a
>> terminal.
>
> I tried this, but fails.




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-05-08  6:23                   ` kokamoto
@ 2012-05-08  8:27                     ` Francisco J Ballesteros
  2012-05-10  7:58                       ` kokamoto
  0 siblings, 1 reply; 21+ messages in thread
From: Francisco J Ballesteros @ 2012-05-08  8:27 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs


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 :)

On May 8, 2012, at 8:23 AM, kokamoto@hera.eonet.ne.jp wrote:

> 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
> 
>>> /mnt/view is used for that. 
>>> open in olive will use it when in a
>>> terminal. 
>> 
>> I tried this, but fails.
> 




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-05-08  8:27                     ` Francisco J Ballesteros
@ 2012-05-10  7:58                       ` kokamoto
  2012-05-10  8:02                         ` Francisco J Ballesteros
  0 siblings, 1 reply; 21+ messages in thread
From: kokamoto @ 2012-05-10  7:58 UTC (permalink / raw)
  To: 9fans

> 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




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-05-10  7:58                       ` kokamoto
@ 2012-05-10  8:02                         ` Francisco J Ballesteros
  2012-05-11  1:50                           ` kokamoto
  0 siblings, 1 reply; 21+ messages in thread
From: Francisco J Ballesteros @ 2012-05-10  8:02 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

Oh! Good catch!

Sorry I couldn't be of more help.

On May 10, 2012, at 9:58 AM, kokamoto@hera.eonet.ne.jp wrote:

>> 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
> 




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-05-10  8:02                         ` Francisco J Ballesteros
@ 2012-05-11  1:50                           ` kokamoto
  2012-05-11  6:33                             ` Nemo
  0 siblings, 1 reply; 21+ messages in thread
From: kokamoto @ 2012-05-11  1:50 UTC (permalink / raw)
  To: 9fans

> 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




^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-05-11  1:50                           ` kokamoto
@ 2012-05-11  6:33                             ` Nemo
  2012-05-11  9:18                               ` Charles Forsyth
  2012-05-11 13:08                               ` kokamoto
  0 siblings, 2 replies; 21+ messages in thread
From: Nemo @ 2012-05-11  6:33 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

for portability.

--
iphone kbd. excuse typos :)


On May 11, 2012, at 3:50 AM, kokamoto@hera.eonet.ne.jp wrote:

>> 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
>



^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-05-11  6:33                             ` Nemo
@ 2012-05-11  9:18                               ` Charles Forsyth
  2012-05-11 13:08                               ` kokamoto
  1 sibling, 0 replies; 21+ messages in thread
From: Charles Forsyth @ 2012-05-11  9:18 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 494 bytes --]

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).

On 11 May 2012 07:33, Nemo <nemo@lsub.org> wrote:

> for portability.
>
> --
> iphone kbd. excuse typos :)
>

[-- Attachment #2: Type: text/html, Size: 828 bytes --]

^ permalink raw reply	[flat|nested] 21+ messages in thread

* Re: [9fans] Octopus viewer?
  2012-05-11  6:33                             ` Nemo
  2012-05-11  9:18                               ` Charles Forsyth
@ 2012-05-11 13:08                               ` kokamoto
  1 sibling, 0 replies; 21+ messages in thread
From: kokamoto @ 2012-05-11 13:08 UTC (permalink / raw)
  To: 9fans

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




^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-05-11 13:08 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-22  7:45 [9fans] Octopus viewer? kokamoto
2012-04-22  7:55 ` kokamoto
2012-04-22 13:11   ` Francisco J Ballesteros
2012-04-26 13:28   ` kokamoto
2012-04-26 13:38     ` Francisco J Ballesteros
2012-04-28  2:02       ` kokamoto
2012-04-28  8:23         ` kokamoto
2012-04-28 12:39           ` Nemo
2012-04-28 14:06             ` kokamoto
2012-04-30  1:19             ` kokamoto
2012-04-30  8:01               ` Nemo
2012-05-06  1:09                 ` kokamoto
2012-05-08  6:23                   ` kokamoto
2012-05-08  8:27                     ` Francisco J Ballesteros
2012-05-10  7:58                       ` kokamoto
2012-05-10  8:02                         ` Francisco J Ballesteros
2012-05-11  1:50                           ` kokamoto
2012-05-11  6:33                             ` Nemo
2012-05-11  9:18                               ` Charles Forsyth
2012-05-11 13:08                               ` kokamoto
2012-04-22 13:10 ` Francisco J Ballesteros

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).