9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Clean desktop on Raspberry Pi using Plan 9.
@ 2014-10-07 16:42 Mats Olsson
  2014-10-07 18:22 ` Skip Tavakkolian
  0 siblings, 1 reply; 7+ messages in thread
From: Mats Olsson @ 2014-10-07 16:42 UTC (permalink / raw)
  To: 9fans

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

Thanks Skip!

I get the idea but how do I save the changes in the file? Sorry for
being such a NEWBIE.

Kind Regards,
Mats



<-----Ursprungligt Meddelande----->

 	 	From: Skip Tavakkolian [skip.tavakkolian@gmail.com]
Sent: 6/10/2014 10:51:42 PM
To: 9fans@9fans.net
Subject: Re: [9fans] Clean desktop on Raspberry Pi using Plan 9.


from the shell window take a look at bin/rc/riostart (i.e.
$home/bin/rc/riostart). remove the startup windows you don't want (like
first.window, etc)

term% cat bin/rc/riostart
#!/bin/rc

scr=(`{cat /dev/draw/new >[2]/dev/null || status=''})
wid=$scr(11)
ht=$scr(12)

window 0,0,161,117 stats -lmisce
window 161,0,560,117 faces -i

if(~ `{screensize} small)
dump=acme.dump.small
if not
dump=acme.dump

a=`{echo $wid-35 | hoc }
window 60,90,$a,$ht acme -l lib/$dump
window 20,140,610,450 /usr/glenda/lib/first.window
term%

On Mon, Oct 6, 2014 at 1:19 PM, Mats Olsson < meo@spray.se
<mailto:meo@spray.se> > wrote:


	Hi guys!

	How can I get a clean desktop at bootup on the Raspberry Pi
using Plan 9? No tutorials starting etc. Would highly appreciate to know
how to know how to configure the Raspberry Pi to start clean. Thanks
beforehand!

	Kind Greetings,
	Mats




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

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

* Re: [9fans] Clean desktop on Raspberry Pi using Plan 9.
  2014-10-07 16:42 [9fans] Clean desktop on Raspberry Pi using Plan 9 Mats Olsson
@ 2014-10-07 18:22 ` Skip Tavakkolian
  0 siblings, 0 replies; 7+ messages in thread
From: Skip Tavakkolian @ 2014-10-07 18:22 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

use acme to open/save it. 'man acme' or search for youtube videos on how to
navigate in acme.


On Tue, Oct 7, 2014 at 9:42 AM, Mats Olsson <meo@spray.se> wrote:

>  Thanks Skip!
>
> I get the idea but how do I save the changes in the file? Sorry for being
> such a NEWBIE.
>
> Kind Regards,
> Mats
>
>
> <-----Ursprungligt Meddelande----->
>   *From: Skip Tavakkolian [skip.tavakkolian@gmail.com
> <skip.tavakkolian@gmail.com>]*
> Sent: 6/10/2014 10:51:42 PM
> To: 9fans@9fans.net
> Subject: Re: [9fans] Clean desktop on Raspberry Pi using Plan 9.
>
>
> from the shell window take a look at bin/rc/riostart (i.e.
> $home/bin/rc/riostart). remove the startup windows you don't want (like
> first.window, etc)
>
> term% cat bin/rc/riostart
> #!/bin/rc
>
> scr=(`{cat /dev/draw/new >[2]/dev/null || status=''})
> wid=$scr(11)
> ht=$scr(12)
>
> window 0,0,161,117 stats -lmisce
> window 161,0,560,117 faces -i
>
> if(~ `{screensize} small)
> dump=acme.dump.small
> if not
> dump=acme.dump
>
> a=`{echo $wid-35 | hoc }
> window 60,90,$a,$ht acme -l lib/$dump
> window 20,140,610,450 /usr/glenda/lib/first.window
> term%
>
> On Mon, Oct 6, 2014 at 1:19 PM, Mats Olsson <meo@spray.se> wrote:
>
>>  Hi guys!
>>
>> How can I get a clean desktop at bootup on the Raspberry Pi using Plan 9?
>> No tutorials starting etc. Would highly appreciate to know how to know how
>> to configure the Raspberry Pi to start clean. Thanks beforehand!
>>
>> Kind Greetings,
>> Mats
>>
>
>

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

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

* Re: [9fans] Clean desktop on Raspberry Pi using Plan 9.
  2014-10-07 17:09 Mats Olsson
@ 2014-10-07 19:52 ` Aram Hăvărneanu
  0 siblings, 0 replies; 7+ messages in thread
From: Aram Hăvărneanu @ 2014-10-07 19:52 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

The startup file is there exactly to teach you about these things, you
should read it.

-- 
Aram Hăvărneanu

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

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

* Re: [9fans] Clean desktop on Raspberry Pi using Plan 9.
@ 2014-10-07 17:09 Mats Olsson
  2014-10-07 19:52 ` Aram Hăvărneanu
  0 siblings, 1 reply; 7+ messages in thread
From: Mats Olsson @ 2014-10-07 17:09 UTC (permalink / raw)
  To: 9fans

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

Thanka again for your help! Now I got it. Looked for the file in Acme
and edited the file and pressed the middle button on Put.

Kind Greetings,
Mats



<-----Ursprungligt Meddelande----->

 	 	From: Skip Tavakkolian [skip.tavakkolian@gmail.com]
Sent: 6/10/2014 10:51:42 PM
To: 9fans@9fans.net
Subject: Re: [9fans] Clean desktop on Raspberry Pi using Plan 9.


from the shell window take a look at bin/rc/riostart (i.e.
$home/bin/rc/riostart). remove the startup windows you don't want (like
first.window, etc)

term% cat bin/rc/riostart
#!/bin/rc

scr=(`{cat /dev/draw/new >[2]/dev/null || status=''})
wid=$scr(11)
ht=$scr(12)

window 0,0,161,117 stats -lmisce
window 161,0,560,117 faces -i

if(~ `{screensize} small)
dump=acme.dump.small
if not
dump=acme.dump

a=`{echo $wid-35 | hoc }
window 60,90,$a,$ht acme -l lib/$dump
window 20,140,610,450 /usr/glenda/lib/first.window
term%

On Mon, Oct 6, 2014 at 1:19 PM, Mats Olsson < meo@spray.se
<mailto:meo@spray.se> > wrote:


	Hi guys!

	How can I get a clean desktop at bootup on the Raspberry Pi
using Plan 9? No tutorials starting etc. Would highly appreciate to know
how to know how to configure the Raspberry Pi to start clean. Thanks
beforehand!

	Kind Greetings,
	Mats




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

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

* Re: [9fans] Clean desktop on Raspberry Pi using Plan 9.
  2014-10-06 20:19 Mats Olsson
  2014-10-06 20:51 ` Skip Tavakkolian
@ 2014-10-06 21:04 ` Steve Simon
  1 sibling, 0 replies; 7+ messages in thread
From: Steve Simon @ 2014-10-06 21:04 UTC (permalink / raw)
  To: 9fans

I assume you are running the pi as a terminal.

at startup the script $home/lib/profile is run.

at the end of the processing in this (not necessarly the end of the file) it
does somthing like 	"exec rio -s -i startup". This starts the window manager
and runs the script called startup.

I would expect to find a script called startup, probably in $home/bin/rc/startup

This is what opens the initial windows on your terminal, if you edit it you
can put different windows on the startup screen as you wish.

-Steve



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

* Re: [9fans] Clean desktop on Raspberry Pi using Plan 9.
  2014-10-06 20:19 Mats Olsson
@ 2014-10-06 20:51 ` Skip Tavakkolian
  2014-10-06 21:04 ` Steve Simon
  1 sibling, 0 replies; 7+ messages in thread
From: Skip Tavakkolian @ 2014-10-06 20:51 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

from the shell window take a look at bin/rc/riostart (i.e.
$home/bin/rc/riostart). remove the startup windows you don't want (like
first.window, etc)

term% cat bin/rc/riostart
#!/bin/rc

scr=(`{cat /dev/draw/new >[2]/dev/null || status=''})
wid=$scr(11)
ht=$scr(12)

window 0,0,161,117 stats -lmisce
window 161,0,560,117 faces -i

if(~ `{screensize} small)
dump=acme.dump.small
if not
dump=acme.dump

a=`{echo $wid-35 | hoc }
window 60,90,$a,$ht acme -l lib/$dump
window 20,140,610,450 /usr/glenda/lib/first.window
term%

On Mon, Oct 6, 2014 at 1:19 PM, Mats Olsson <meo@spray.se> wrote:

>  Hi guys!
>
> How can I get a clean desktop at bootup on the Raspberry Pi using Plan 9?
> No tutorials starting etc. Would highly appreciate to know how to know how
> to configure the Raspberry Pi to start clean. Thanks beforehand!
>
> Kind Greetings,
> Mats
>

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

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

* [9fans] Clean desktop on Raspberry Pi using Plan 9.
@ 2014-10-06 20:19 Mats Olsson
  2014-10-06 20:51 ` Skip Tavakkolian
  2014-10-06 21:04 ` Steve Simon
  0 siblings, 2 replies; 7+ messages in thread
From: Mats Olsson @ 2014-10-06 20:19 UTC (permalink / raw)
  To: 9fans

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

Hi guys!

How can I get a clean desktop at bootup on the Raspberry Pi using Plan
9? No tutorials starting etc. Would highly appreciate to know how to
know how to configure the Raspberry Pi to start clean. Thanks
beforehand!

Kind Greetings,
Mats


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

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

end of thread, other threads:[~2014-10-07 19:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-07 16:42 [9fans] Clean desktop on Raspberry Pi using Plan 9 Mats Olsson
2014-10-07 18:22 ` Skip Tavakkolian
  -- strict thread matches above, loose matches on Subject: below --
2014-10-07 17:09 Mats Olsson
2014-10-07 19:52 ` Aram Hăvărneanu
2014-10-06 20:19 Mats Olsson
2014-10-06 20:51 ` Skip Tavakkolian
2014-10-06 21:04 ` Steve Simon

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