From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 From: Brian Vito Date: Fri, 21 Feb 2014 22:23:52 -0600 Message-ID: To: 9fans@9fans.net Content-Type: multipart/alternative; boundary=001a11c3fc6e5fa08404f2f71c01 Subject: Re: [9fans] Setting 9pi Start State / Drawterm to 9pi Topicbox-Message-UUID: bd1f34ea-ead8-11e9-9d60-3106f5b1d025 --001a11c3fc6e5fa08404f2f71c01 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable So if I were to want to connect to my 9pi at home from my office, would I have to make the 9pi into a cpu server? I'm looking for the simplest way to be able to have access to my 9pi files/system from another computer (and use the Plan 9 environment while doing so). Also, I was wondering if Plan 9 uses the Raspberry Pi's GPU. In other words, should I allocate the smallest amount of memory to the GPU (I think 16 is the minimum) rather than the default of 64? And in that case, I would also assume that overclocking the GPU wouldn't be of any benefit. Thanks again. =F0=9D=94=B9 On Fri, Feb 21, 2014 at 6:00 AM, <9fans-request@9fans.net> wrote: > > > Date: Fri, 21 Feb 2014 10:28:23 +0000 > From: Richard Miller <9fans@hamnavoe.com> > To: 9fans@9fans.net > Subject: Re: [9fans] Setting 9pi Start State / Drawterm to 9pi > Message-ID: > Content-Type: text/plain; charset=3D"US-ASCII" > > > i'm not sure what type of kernel is on the stock 9Pi image. > > The 9pi.img has both types of kernel in the dos partition. To boot > the pi as a cpu server instead of a terminal, change 'kernel=3D9pi' to > 'kernel=3D9picpu' in config.txt, and copy cmdline-cpu.txt to cmdline.txt > > But I think the query was about a simple way to connect to your own > plan 9 terminal with drawterm, without making it into a cpu server. > > > if it's a term > > kernel, you can't drawterm to it; > > Actually that's not so. For example, a quick-and-dirty method posted > to 9fans by Luke Evans on 10 Dec 2012 (which applies to any Plan 9 > terminal, not just the pi): > > echo 'key proto=3Dp9sk1 dom=3Dplan9 user=3Dglenda !password=3DMYP= ASS' > >/mnt/factotum/ctl > aux/listen -t tcp!*!ncpu /bin/cpu -R & > > This will only allow the terminal owner to connect. For more general > cpu-like service on a terminal, I use this script (which requires some > prior setup with auth/changeuser to create the lib/keys file): > > #!/bin/rc > auth/factotum -g 'user=3Dmiller dom=3Dhamnavoe.com proto=3Dp9sk1 > !password?' > rfork ne > echo auth server password: > auth/keyfs -p $home/lib/keys > aux/listen1 -t tcp!*!ticket /bin/rc -c '/bin/auth/authsrv -d $net= ' > & > service=3Dcpu aux/listen1 tcp!*!17007 /bin/exportfs -a& > service=3Dcpu aux/listen1 tcp!*!cpu /bin/cpu -O & > service=3Dcpu aux/listen1 tcp!*!ncpu /bin/cpu -R & > > Nowadays there's hardly any difference between cpu and terminal > kernels, and in fact I would advocate combining the two. Only a few > lines of kernel source code need to be changed to allow it to decide > at boot time whether to behave as a cpu server or terminal, depending > on the setting of service=3D in plan9.ini. > > > > > End of 9fans Digest, Vol 118, Issue 29 > ************************************** > --001a11c3fc6e5fa08404f2f71c01 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
So if I were to want to connect= to my 9pi at home from my office, would I have to make the 9pi into a cpu = server? I'm looking for the simplest way to be able to have access to m= y 9pi files/system from another computer (and use the Plan 9 environment wh= ile doing so).

Also= , I was wondering if=C2=A0Plan 9 uses the Ra= spberry Pi's GPU. In other words, should I allocate the smallest amount= of memory to the GPU (I think 16 is the minimum) rather than the default o= f 64? And in that case, I would also assume that overclocking the GPU would= n't be of any benefit.=C2=A0

Thanks again. =F0=9D=94=B9


On Fri, Feb 2= 1, 2014 at 6:00 AM, <9fans-request@9fans.net> wrote:<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;pa= dding-left:1ex">
Date: Fri, 21 Feb 2014 10:28:23 +0000
From: Richard Miller <9fans@hamnav= oe.com>
To: 9fans@9fans.net
Subject: Re: [9fans] Setting 9pi Start State / Drawterm to 9pi
Message-ID: <e00c3dd558dedeb67f80b0a110799636@hamnavoe.com>
Content-Type: text/plain; charset=3D"US-ASCII"

> i'm not sure what type of kernel is on the stock 9Pi image.

The 9pi.img has both types of kernel in the dos partition. =C2=A0To boot the pi as a cpu server instead of a terminal, change 'kernel=3D9pi'= to
'kernel=3D9picpu' in config.txt, and copy cmdline-cpu.txt to cmdlin= e.txt

But I think the query was about a simple way to connect to your own
plan 9 terminal with drawterm, without making it into a cpu server.

> if it's a term
> kernel, you can't drawterm to it;

Actually that's not so. =C2=A0For example, a quick-and-dirty method pos= ted
to 9fans by Luke Evans on 10 Dec 2012 (which applies to any Plan 9
terminal, not just the pi):

=C2=A0 =C2=A0 =C2=A0 =C2=A0 echo 'key proto=3Dp9sk1 dom=3Dplan9 user=3D= glenda !password=3DMYPASS' >/mnt/factotum/ctl
=C2=A0 =C2=A0 =C2=A0 =C2=A0 aux/listen -t tcp!*!ncpu /bin/cpu -R &

This will only allow the terminal owner to connect. =C2=A0For more general<= br> cpu-like service on a terminal, I use this script (which requires some
prior setup with auth/changeuser to create the lib/keys file):

=C2=A0 =C2=A0 =C2=A0 =C2=A0 #!/bin/rc
=C2=A0 =C2=A0 =C2=A0 =C2=A0 auth/factotum -g 'user=3Dmiller dom=3Dhamnavoe.com proto=3Dp9sk1= !password?'
=C2=A0 =C2=A0 =C2=A0 =C2=A0 rfork ne
=C2=A0 =C2=A0 =C2=A0 =C2=A0 echo auth server password:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 auth/keyfs -p $home/lib/keys
=C2=A0 =C2=A0 =C2=A0 =C2=A0 aux/listen1 -t tcp!*!ticket /bin/rc -c '/bi= n/auth/authsrv -d $net' &
=C2=A0 =C2=A0 =C2=A0 =C2=A0 service=3Dcpu aux/listen1 tcp!*!17007 /bin/expo= rtfs -a&
=C2=A0 =C2=A0 =C2=A0 =C2=A0 service=3Dcpu aux/listen1 tcp!*!cpu /bin/cpu -O= &
=C2=A0 =C2=A0 =C2=A0 =C2=A0 service=3Dcpu aux/listen1 tcp!*!ncpu /bin/cpu -= R &

Nowadays there's hardly any difference between cpu and terminal
kernels, and in fact I would advocate combining the two. =C2=A0Only a few lines of kernel source code need to be changed to allow it to decide
at boot time whether to behave as a cpu server or terminal, depending
on the setting of service=3D in plan9.ini.




End of 9fans Digest, Vol 118, Issue 29
**************************************

--001a11c3fc6e5fa08404f2f71c01--