Re: [9fans] Persistent font in Acme.

2014-11-08 Thread Mats Olsson
Hi Richard!

Talking about digital archaeology I tried to install Plan 9 from a cd
on my Dell 500H (something). That laptop came with an attachable
floppy drive, cd rom and a cdrw but it was as I remembered the drives
are all dead but the machine is loaded with Watt OS 5. A linux distro
that has a pretty small footprint as regards to memory. Originally it
had a whooping 128 MB of RAM and I installed another 128 MB RAM module
so it has now 256 MB of ram. It would be nice to install Plan 9 on it
but the only way into the machine now it ethernet. Would that be
possible? (I guess so but I haven't found any docs on it) So, then
how? If you have any ideas I would be delighted to hear since it's a
shame that a so wellbuilt laptop should just be lying there unused.

Yours Truly,
Mats

2014-11-08 10:42 GMT+01:00, Richard Miller 9f...@hamnavoe.com:
 curious choise.  not that you'd want to use this anymore, but ...
 ...
 flop=/dev/fd0disk

 Actually a couple of weeks ago I had occasion to use not only /rc/bin/a:
 but /rc/bin/b: to do a bit of digital archaeology (current plan 9 kernel
 still supports the 5¼ floppy drive on my old pentium pro machine).






Re: [9fans] Persistent font in Acme.

2014-11-08 Thread cinap_lenrek
i miss that noise :)

--
cinap



[9fans] rc shell script run by cron on linux

2014-11-08 Thread Rudolf Sykora
Hello,

I tried to run a cron job on linux using an rc script
and bumped into a problem.
When the job tries to be run I get something like

/usr/local/plan9/rcmain: rc (/home/sykora/plan9port/bin/
rc): .: can't open: No such file or directory

(I don't know why it starts with /usr/local...; but it is
probably not really relevant here.)

In my crontab I have specified a PATH containing
/home/sykora/plan9port/bin
(where rc itself is located)
but that seems to no be enough...
(If I hadn't I wouldn't have got to rcmain ever; so rc
calls for some reason rcmain [why? must it?])

Have anybody ever solved a problem like this?
(What is the minimum I have to have in order to
run rc script on linux?)

Thanks
Ruda



Re: [9fans] rc shell script run by cron on linux

2014-11-08 Thread Charles Forsyth
On 8 November 2014 12:44, Rudolf Sykora rudolf.syk...@gmail.com wrote:

 Have anybody ever solved a problem like this?
 (What is the minimum I have to have in order to
 run rc script on linux?)


Just a guess but rc needs the bootstrap rcmain file, which it is looking
for in the default
directory, which is in /usr/local. I think if you set/export
PLAN9=/home/sykora/plan9port
as well as PATH, it might work.


Re: [9fans] Persistent font in Acme.

2014-11-08 Thread Richard Miller
 It would be nice to install Plan 9 on it
 but the only way into the machine now it ethernet.

You just need to be able to boot it as a plan 9 terminal connected
to a plan 9 file server - then install from that.  Can you boot from
ethernet (pxe)?  Or is there a dos partition on the HDD with room
for a plan 9 kernel and plan9.ini?

The other possibility is an HDD transplant after using another machine
to install onto the  drive.




Re: [9fans] Persistent font in Acme.

2014-11-08 Thread Mats Olsson
The last HD I installed is 100 GB in size but it's all linux
partitions. Would it be possible to ssh into the machine to reformat
and install Plan 9. Then it would come to use at least.

Kind Regards,
Mats

2014-11-08 14:47 GMT+01:00, Richard Miller 9f...@hamnavoe.com:
 It would be nice to install Plan 9 on it
 but the only way into the machine now it ethernet.

 You just need to be able to boot it as a plan 9 terminal connected
 to a plan 9 file server - then install from that.  Can you boot from
 ethernet (pxe)?  Or is there a dos partition on the HDD with room
 for a plan 9 kernel and plan9.ini?

 The other possibility is an HDD transplant after using another machine
 to install onto the  drive.






Re: [9fans] Persistent font in Acme.

2014-11-08 Thread Anthony Sorace
 So, you could make a script $home/bin/rc/a:
 
 curious choise.  not that you'd want to use this anymore, but ...

He meant the : as punctuation in the english sense, not part of the command 
name. See later where he says ..just typing a..

Clearly we should all be sending properly marked-up html messages to 9fans... 
;-)




Re: [9fans] rc shell script run by cron on linux

2014-11-08 Thread Rudolf Sykora
On 8 November 2014 14:27, Charles Forsyth charles.fors...@gmail.com wrote:

 On 8 November 2014 12:44, Rudolf Sykora rudolf.syk...@gmail.com wrote:

 Have anybody ever solved a problem like this?
 (What is the minimum I have to have in order to
 run rc script on linux?)


 Just a guess but rc needs the bootstrap rcmain file, which it is looking for
 in the default
 directory, which is in /usr/local. I think if you set/export
 PLAN9=/home/sykora/plan9port
 as well as PATH, it might work.

Thanks, exporting PLAN9 at a suitable place seems to have helped.

Still, only if you can tell (I will test it at some point anyhow), is
1) rc binary
2) rcmain
3) suitable setting of PLAN9 variable
enough if you want to pass your rc script to somebody
who does not have p9p installed?
(Say, I wrote some rc scripts and now other people want
to use it...)

Thanks
Ruda



[9fans] Print Screen?

2014-11-08 Thread Mats Olsson
Hi Y'all!

Just a simple question: Is it possible to print the screen in Plan 9?
The question just popped up and I'm not able to make some tests right
now. Haven't found any info about it.

Kind greetings,
Mats



Re: [9fans] Print Screen?

2014-11-08 Thread sl
 Is it possible to print the screen in Plan 9?

topng /dev/screen screen.png

sl



Re: [9fans] Print Screen?

2014-11-08 Thread andrey mirtchovski
topng  /dev/screen  /tmp/screenshot.png

On Sat, Nov 8, 2014 at 12:20 PM, Mats Olsson plan9@gmail.com wrote:
 Hi Y'all!

 Just a simple question: Is it possible to print the screen in Plan 9?
 The question just popped up and I'm not able to make some tests right
 now. Haven't found any info about it.

 Kind greetings,
 Mats




Re: [9fans] Print Screen?

2014-11-08 Thread Quintile
your job, add this to 

http://www.plan9.bell-labs.com/wiki/plan9/Tip_o'_the_day/index.html

I thought it was there.

-Steve



 On 8 Nov 2014, at 19:23, andrey mirtchovski mirtchov...@gmail.com wrote:
 
 topng  /dev/screen  /tmp/screenshot.png
 
 On Sat, Nov 8, 2014 at 12:20 PM, Mats Olsson plan9@gmail.com wrote:
 Hi Y'all!
 
 Just a simple question: Is it possible to print the screen in Plan 9?
 The question just popped up and I'm not able to make some tests right
 now. Haven't found any info about it.
 
 Kind greetings,
 Mats
 



Re: [9fans] Print Screen?

2014-11-08 Thread andrey mirtchovski
how do i take a screenshot has always been in the FAQ:

http://www.faqs.org/faqs/comp-os/plan9-faq/

On Sat, Nov 8, 2014 at 12:27 PM, Quintile st...@quintile.net wrote:
 your job, add this to

 http://www.plan9.bell-labs.com/wiki/plan9/Tip_o'_the_day/index.html

 I thought it was there.

 -Steve



 On 8 Nov 2014, at 19:23, andrey mirtchovski mirtchov...@gmail.com wrote:

 topng  /dev/screen  /tmp/screenshot.png

 On Sat, Nov 8, 2014 at 12:20 PM, Mats Olsson plan9@gmail.com wrote:
 Hi Y'all!

 Just a simple question: Is it possible to print the screen in Plan 9?
 The question just popped up and I'm not able to make some tests right
 now. Haven't found any info about it.

 Kind greetings,
 Mats





Re: [9fans] Print Screen?

2014-11-08 Thread Mats Olsson
Thanks for your help! I'll se if I improve on getting the answers
myself. But my situation makes it hard to focus at the moment (e.g. my
girls). Thanks again!!!
Kind greetings,
Mats

2014-11-08 20:32 GMT+01:00, andrey mirtchovski mirtchov...@gmail.com:
 how do i take a screenshot has always been in the FAQ:

 http://www.faqs.org/faqs/comp-os/plan9-faq/

 On Sat, Nov 8, 2014 at 12:27 PM, Quintile st...@quintile.net wrote:
 your job, add this to

 http://www.plan9.bell-labs.com/wiki/plan9/Tip_o'_the_day/index.html

 I thought it was there.

 -Steve



 On 8 Nov 2014, at 19:23, andrey mirtchovski mirtchov...@gmail.com
 wrote:

 topng  /dev/screen  /tmp/screenshot.png

 On Sat, Nov 8, 2014 at 12:20 PM, Mats Olsson plan9@gmail.com
 wrote:
 Hi Y'all!

 Just a simple question: Is it possible to print the screen in Plan 9?
 The question just popped up and I'm not able to make some tests right
 now. Haven't found any info about it.

 Kind greetings,
 Mats







[9fans] Change font in Abaco

2014-11-08 Thread Mats Olsson
Hi guys!

I've tried multiple ways to change the font in Abaco but failed. It
seems to be compiled in. Is there a way to change the font in Abaco.
Would really appreciate some help.

Greetings,
Mats



Re: [9fans] Change font in Abaco

2014-11-08 Thread Lee Fallat
On Sat, Nov 8, 2014 at 4:46 PM, Mats Olsson plan9@gmail.com wrote:
 Hi guys!

 I've tried multiple ways to change the font in Abaco but failed. It
 seems to be compiled in. Is there a way to change the font in Abaco.
 Would really appreciate some help.

 Greetings,
 Mats


Yeah, they're compiled in. The font paths are located at the start of
abaco's main.c.

Maybe your emails will prompt someone to take action and integrate
$font/$font2 environment variables into a bunch of Plan 9 programs.

Good luck,

Lee



Re: [9fans] Change font in Abaco

2014-11-08 Thread Mats Olsson
Thanks for confirming Lee I appreciate that! And who knows, things happen.

2014-11-08 22:57 GMT+01:00, Lee Fallat ircsurfe...@gmail.com:
 On Sat, Nov 8, 2014 at 4:46 PM, Mats Olsson plan9@gmail.com wrote:
 Hi guys!

 I've tried multiple ways to change the font in Abaco but failed. It
 seems to be compiled in. Is there a way to change the font in Abaco.
 Would really appreciate some help.

 Greetings,
 Mats


 Yeah, they're compiled in. The font paths are located at the start of
 abaco's main.c.

 Maybe your emails will prompt someone to take action and integrate
 $font/$font2 environment variables into a bunch of Plan 9 programs.

 Good luck,

 Lee





Re: [9fans] Change font in Abaco

2014-11-08 Thread sl
 I've tried multiple ways to change the font in Abaco but failed.

Check out the example file /sys/src/cmd/abaco/abaco.fonts. Copy this to
$home/lib and edit it to suit.

sl



Re: [9fans] Change font in Abaco

2014-11-08 Thread erik quanstrom
On Sat Nov  8 16:45:57 EST 2014, plan9@gmail.com wrote:
 Hi guys!
 
 I've tried multiple ways to change the font in Abaco but failed. It
 seems to be compiled in. Is there a way to change the font in Abaco.
 Would really appreciate some help.

i have taken a little different direction on fonts in abaco.
i think what one wishes to specify is the typeface.  so we need
to specify twenty fonts in the product of five point sizes and
four weight/styles (roman, italic, bold, and typewriter).

i put these in an external file in /lib/font/bit/htmlfont (sic).
there are twenty entries, for example for the tiny roman
entry for lucida, 

tr  /lib/font/bit/lucidasans/unicode.6.font

to switch fonts just set htmlfont=/lib/font/bit/htmlfont/vera
before running readweb.  easy peasy.

the face files, version of abaco supporting them, and the
version of readweb that has been modified to support this

- erik



Re: [9fans] Persistent font in Acme.

2014-11-08 Thread erik quanstrom
On Sat Nov  8 10:10:32 EST 2014, a...@9srv.net wrote:
  So, you could make a script $home/bin/rc/a:
  
  curious choise.  not that you'd want to use this anymore, but ...
 
 He meant the : as punctuation in the english sense, not part of the command 
 name. See later where he says ..just typing a..
 
 Clearly we should all be sending properly marked-up html messages to 9fans... 
 ;-)

clearly, as you demonstrate here, ironicly, the quotation markes (or spaces, 
apostrophies, etc.)
are already available in plan text.  ☺

- erik



Re: [9fans] Persistent font in Acme.

2014-11-08 Thread erik quanstrom
On Sat Nov  8 04:43:12 EST 2014, 9f...@hamnavoe.com wrote:
  curious choise.  not that you'd want to use this anymore, but ...
  ...
  flop=/dev/fd0disk
 
 Actually a couple of weeks ago I had occasion to use not only /rc/bin/a:
 but /rc/bin/b: to do a bit of digital archaeology (current plan 9 kernel
 still supports the 5¼ floppy drive on my old pentium pro machine).

ppro 166Mhz?  that's quite the historic artifact!

the last 3½ floppy i used was in an out-of-the-box 4th edition ken's
file server.  that was a great system, but i always feared it wouldn't boot
due to floppy  bit rot.  (the old 5¼ system was more reliable for me.)
there was no doubt when it updated it's configuration.

sadly it was finally retired when it ran out of space.  by that time, a new
machine was a better idea, and DOM modules were cheep and reliable.

- erik



Re: [9fans] Change font in Abaco

2014-11-08 Thread erik quanstrom
 the face files, version of abaco supporting them, and the
 version of readweb that has been modified to support this

are in 9atom.

- erik