Discussion:
Can't "mk CONF=9pcdisk" --> gives error "rc: #d/0: token '=': syntax error"
(too old to reply)
k***@gmail.com
2012-07-19 09:07:41 UTC
Permalink
I'm in /sys/src/9/pc and I type

`mk CONF=9pcdisk`

and rc gives me the error "rc: #d/0: token '=': syntax error".

Why is this? Just doing mk works fine (I think).

Thanks! Plan9 looks very cool... just finished reading through intro (all of it).
Federico Benavento
2012-07-19 09:16:16 UTC
Permalink
you're using backquotes, why? that would be `{mk CONF=9pcdisk} in rc's
syntax.

now to compile that kernel the syntax is:
% mk 'CONF=pcdisk'

now are you sure you want a pcdisk?
Post by k***@gmail.com
I'm in /sys/src/9/pc and I type
`mk CONF=9pcdisk`
and rc gives me the error "rc: #d/0: token '=': syntax error".
Why is this? Just doing mk works fine (I think).
Thanks! Plan9 looks very cool... just finished reading through intro (all of it).
---
Federico G. Benavento
***@gmail.com
Kyle Laracey
2012-07-19 14:25:42 UTC
Permalink
you're using backquotes, why? that would be `{mk CONF=9pcdisk} in rc's
syntax.
% mk 'CONF=pcdisk'
now are you sure you want a pcdisk?
> I'm in /sys/src/9/pc and I type
>
> `mk CONF=9pcdisk`
>
> and rc gives me the error "rc: #d/0: token '=': syntax error".
>
> Why is this? Just doing mk works fine (I think).
>
> Thanks! Plan9 looks very cool... just finished reading through intro (all of it).
>
---
Federico G. Benavento
Sorry; I was just using backquotes to quote it here. Literally, I just typed
mk CONF=9pcdisk.
David du Colombier
2012-07-19 09:20:56 UTC
Permalink
The = character have a special meaning for
the rc shell and should be escaped.

Type this instead:

% mk CONF'='9pcdisk
--
David du Colombier
Charles Forsyth
2012-07-19 09:17:47 UTC
Permalink
9pcdisk is the output file, not the configuration file. Also you need to
quote the = because it is special to rc (assignment).
Try
mk 'CONF=pcdisk'
Post by k***@gmail.com
`mk CONF=9pcdisk`
Kyle Laracey
2012-07-19 14:25:53 UTC
Permalink
9pcdisk is the output file, not the configuration file. Also you need to quote the = because it is special to rc (assignment).
Try</div>
    mk &#39;CONF=pcdisk&#39;
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
`mk CONF=9pcdisk`</blockquote></div>
</div>
Oh 9pcdisk is the OUTPUT file! That's odd... I'm following the instructions for compiling in this (http://lsub.org/who/nemo/9.pdf) guide to the plan 9 3ed source code, and on pg 24, it says to do exactly that, mk CONF=9pcdisk. I tried mk 'CONF=pcdisk' and it works. Thanks.
John Floren
2012-07-19 16:59:15 UTC
Permalink
Post by Kyle Laracey
9pcdisk is the output file, not the configuration file. Also you need to quote the = because it is special to rc (assignment).
Try</div>
mk &#39;CONF=pcdisk&#39;
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
`mk CONF=9pcdisk`</blockquote></div>
</div>
Oh 9pcdisk is the OUTPUT file! That's odd... I'm following the instructions for compiling in this (http://lsub.org/who/nemo/9.pdf) guide to the plan 9 3ed source code, and on pg 24, it says to do exactly that, mk CONF=9pcdisk. I tried mk 'CONF=pcdisk' and it works. Thanks.
But as Federico mentioned, you might not want pcdisk--that's for
running with a kfs root, which isn't officially supported any more. If
you were looking at the 3e guide, that might explain it. These days,
for a terminal, you probably want pcf (pc + fossil).


john
erik quanstrom
2012-07-19 17:21:04 UTC
Permalink
Post by John Floren
But as Federico mentioned, you might not want pcdisk--that's for
running with a kfs root, which isn't officially supported any more. If
you were looking at the 3e guide, that might explain it. These days,
for a terminal, you probably want pcf (pc + fossil).
for a terminal, ideally one would be booting off a file server,
and have no local storage.

but local storage can't be avoided,
as i see it, on a standalone terminal, simple, speedy, safe
would trump fs features. so kfs can't just be excluded.

your tradeoffs may vary. :-)

- erik
John Floren
2012-07-19 17:48:06 UTC
Permalink
Post by erik quanstrom
Post by John Floren
But as Federico mentioned, you might not want pcdisk--that's for
running with a kfs root, which isn't officially supported any more. If
you were looking at the 3e guide, that might explain it. These days,
for a terminal, you probably want pcf (pc + fossil).
for a terminal, ideally one would be booting off a file server,
and have no local storage.
but local storage can't be avoided,
as i see it, on a standalone terminal, simple, speedy, safe
would trump fs features. so kfs can't just be excluded.
your tradeoffs may vary. :-)
- erik
There's certainly reasons for using kfs, but for a new user I'd
probably recommend fossil simply because the documentation and most
9fans will assume you're using fossil.

But yeah, *best* option is to netboot a 9pc kernel, it's lovely to
just hit the power button when you're done working.


John
Kyle Laracey
2012-07-23 08:32:12 UTC
Permalink
&gt;&gt; But as Federico mentioned, you might not want pcdisk--that&#39;s for
&gt;&gt; running with a kfs root, which isn&#39;t officially supported any more. If
&gt;&gt; you were looking at the 3e guide, that might explain it. These days,
&gt;&gt; for a terminal, you probably want pcf (pc + fossil).
&gt;
&gt; for a terminal, ideally one would be booting off a file server,
&gt; and have no local storage.
&gt;
&gt; but local storage can&#39;t be avoided,
&gt; as i see it, on a standalone terminal, simple, speedy, safe
&gt; would trump fs features. so kfs can&#39;t just be excluded.
&gt;
&gt; your tradeoffs may vary. :-)
&gt;
&gt; - erik
&gt;
There&#39;s certainly reasons for using kfs, but for a new user I&#39;d
probably recommend fossil simply because the documentation and most
9fans will assume you&#39;re using fossil.
But yeah, *best* option is to netboot a 9pc kernel, it&#39;s lovely to
just hit the power button when you&#39;re done working.
John
Wow so do you guys actually netbook Plan9? Where's the central
server? where you work / university or something? Or do you just
have it set up at your homes? Sounds pretty cool...
hiro
2012-07-23 11:14:11 UTC
Permalink
I'm currently traveling but I simply install it on all PCs I can find.
If people ask me where their data is I start catclock and pretend I
thought plan9 was a game.
Matthew Veety
2012-07-23 12:32:13 UTC
Permalink
Post by hiro
I'm currently traveling but I simply install it on all PCs I can find.
If people ask me where their data is I start catclock and
pretend I
Post by hiro
thought plan9 was a game.
Catclock isn't a game? I always thought that catclock was the best
mmorpg/fps/rts game ever.

--
Veety
m***@gmail.com
2012-07-23 12:29:30 UTC
Permalink
On Thursday, July 19, 2012 1:48:06 PM UTC-4, John Floren
On Thu, Jul 19, 2012 at 10:21 AM, erik quanstrom
Federico mentioned,
with a kfs
root, which isn&#39;t officially supported any more. If
&gt;&gt; you were
looking at the 3e guide, that might explain it. These days,
&gt;&gt; for
a terminal, you probably want pcf (pc + fossil).
&gt;
&gt; for a terminal, ideally one would be booting off a file
server,
&gt; and have no local storage.
&gt;
&gt; but local storage can&#39;t be avoided,
&gt; as i see it, on a standalone terminal, simple, speedy,
safe
&gt; would trump fs features. so kfs can&#39;t just be
excluded.
&gt;
&gt; your tradeoffs may vary. :-)
&gt;
&gt; - erik
&gt;
There&#39;s certainly reasons for using kfs, but for a new
user I&#39;d
probably recommend fossil simply because the documentation
and most
9fans will assume you&#39;re using fossil.
But yeah, *best* option is to netboot a 9pc kernel, it&#39;s
lovely to
just hit the power button when you&#39;re done working.
John
Wow so do you guys actually netbook Plan9? Where's the central
server? where you work / university or something? Or do you
just
have it set up at your homes? Sounds pretty cool...
My fs/auth server is at my house, and I netboot 9vx off of it
when I need to get real work done. There used to be a server at
RIT that you could do the same thing at, but it doesn't seem to
be online anymore.

--
Veety
John Floren
2012-07-23 16:42:46 UTC
Permalink
Post by Kyle Laracey
&gt;&gt; But as Federico mentioned, you might not want pcdisk--that&#39;s for
&gt;&gt; running with a kfs root, which isn&#39;t officially supported any more. If
&gt;&gt; you were looking at the 3e guide, that might explain it. These days,
&gt;&gt; for a terminal, you probably want pcf (pc + fossil).
&gt;
&gt; for a terminal, ideally one would be booting off a file server,
&gt; and have no local storage.
&gt;
&gt; but local storage can&#39;t be avoided,
&gt; as i see it, on a standalone terminal, simple, speedy, safe
&gt; would trump fs features. so kfs can&#39;t just be excluded.
&gt;
&gt; your tradeoffs may vary. :-)
&gt;
&gt; - erik
&gt;
There&#39;s certainly reasons for using kfs, but for a new user I&#39;d
probably recommend fossil simply because the documentation and most
9fans will assume you&#39;re using fossil.
But yeah, *best* option is to netboot a 9pc kernel, it&#39;s lovely to
just hit the power button when you&#39;re done working.
John
Wow so do you guys actually netbook Plan9? Where's the central
server? where you work / university or something? Or do you just
have it set up at your homes? Sounds pretty cool...
Here at work, we've got a cpu/auth/file server running fossil and
venti off a Coraid storage appliance, sitting in the machine room. We
netboot some terminals and a 32-core test server from it.

At home, I've got a cpu/auth/file server running on an old Thinkpad,
but I generally just drawterm in since 1. it's a hassle to plug
yourself into the wired network and 2. I rarely have a netbootable
terminal at home.

Netbooting is great, though. You can also cheat and install Plan 9 on
the disk, but then specify that root is from a remote server, meaning
your kernel will boot from the hard drive but after bootup it's
basically idle.


John

Loading...