9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* RE: [9fans] troff problem
@ 2003-11-21  8:33 cej
  2003-11-21  8:41 ` Geoff Collyer
  0 siblings, 1 reply; 18+ messages in thread
From: cej @ 2003-11-21  8:33 UTC (permalink / raw)
  To: 9fans

sorry, i forgot to write this:

-Tdest   Prepare output for typesetter dest:

-Tutf     (The default.) PostScript printers with preprocessing to handle Unicode characters encoded in UTF
-Tpost    Regular PostScript printers
-T202     Mergenthaler Linotron 202

++pac.

-----Original Message-----
From: Geoff Collyer [mailto:geoff@collyer.net] 
Sent: Friday, November 21, 2003 9:28 AM
To: 9fans@cse.psu.edu
Subject: RE: [9fans] troff problem


No, troff's output is not postscript.

See /sys/lib/lp/bin/lpscratch; apparently it's not mounting your spool subtree correctly.


---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.541 / Virová báze: 335 - datum vydání: 14. 11. 2003
 


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

* RE: [9fans] troff problem
  2003-11-21  8:33 [9fans] troff problem cej
@ 2003-11-21  8:41 ` Geoff Collyer
  0 siblings, 0 replies; 18+ messages in thread
From: Geoff Collyer @ 2003-11-21  8:41 UTC (permalink / raw)
  To: 9fans

-T doesn't cause troff to generate postscript either:

	; date | troff -Tpost
	x T post
	x res 720 1 1
	x init
	V0
	p1
	x font 1 R
	x font 2 I
	x font 3 B
	[...]

Look into why lpscratch isn't mounting your /lp or /n/other/lp or
whatever.



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

* Re: [9fans] troff problem
  2003-11-21 17:34         ` Matthias Teege
@ 2003-11-21 18:25           ` Sape Mullender
  0 siblings, 0 replies; 18+ messages in thread
From: Sape Mullender @ 2003-11-21 18:25 UTC (permalink / raw)
  To: 9fans

> Sape Mullender <sape@plan9.bell-labs.com> writes:
>
>> nearly every machine has enough ram to use ramfs for temporaries.
>> I advice replacing mounting other by starting ramfs (If it's not already
>> running).
>
> Somthing like "ramfs && mkdir /tmp/lp"? Or should I use another
> location?

The simplest thing is to mkdir /sys/lib/lp/tmp
end edit /sys/lib/lp/bin/lpscratch, leaving only the first line #!/bin/rc.



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

* Re: [9fans] troff problem
  2003-11-21 14:04       ` Sape Mullender
  2003-11-21 15:40         ` mirtchov
@ 2003-11-21 17:34         ` Matthias Teege
  2003-11-21 18:25           ` Sape Mullender
  1 sibling, 1 reply; 18+ messages in thread
From: Matthias Teege @ 2003-11-21 17:34 UTC (permalink / raw)
  To: 9fans

Sape Mullender <sape@plan9.bell-labs.com> writes:

> nearly every machine has enough ram to use ramfs for temporaries.
> I advice replacing mounting other by starting ramfs (If it's not already
> running).

Somthing like "ramfs && mkdir /tmp/lp"? Or should I use another
location?

Matthias


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

* Re: [9fans] troff problem
  2003-11-21 14:04       ` Sape Mullender
@ 2003-11-21 15:40         ` mirtchov
  2003-11-21 17:34         ` Matthias Teege
  1 sibling, 0 replies; 18+ messages in thread
From: mirtchov @ 2003-11-21 15:40 UTC (permalink / raw)
  To: 9fans

>> This shows that lp expects a filesystem named ``other'' on the file server;
>> see /sys/lib/lp/bin/lpscratch and look for other.
>>
>> Probably a fix would be to hack /sys/lib/lp/bin/lpscratch
>
> Indeed.  This is a leftover from the days when we used another file system
> to avoid getting leftover temporary files in the daily dump.  These days,
> nearly every machine has enough ram to use ramfs for temporaries.
> I advice replacing mounting other by starting ramfs (If it's not already
> running).
>
> 	Sape

we went through this once already:

	http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&threadm=Pine.LNX.4.44.0306271304260.32274-100000%40fbsd.cpsc.ucalgary.ca&rnum=3&prev=/groups%3Fq%3Dlp%2Bmirtchov%2Bgroup:comp.os.plan9%26hl%3Den%26lr%3D%26ie%3DUTF-8%26oe%3DUTF-8%26safe%3Doff%26scoring%3Dd%26selm%3DPine.LNX.4.44.0306271304260.32274-100000%2540fbsd.cpsc.ucalgary.ca%26rnum%3D3

here's my fix:

	plan9% diff /sys/lib/lp/bin/lpscratch /n/sources/plan9/sys/lib/lp/bin/lpscratch
	20,21c20
	< 	SCRATCHFILESYSTEM=''
	<
	---
	> 	SCRATCHFILESYSTEM=other
	plan9% echo $fileserver
	plan9
	plan9%

cheers, andrey



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

* Re: [9fans] troff problem
  2003-11-21 13:43     ` Axel Belinfante
@ 2003-11-21 14:04       ` Sape Mullender
  2003-11-21 15:40         ` mirtchov
  2003-11-21 17:34         ` Matthias Teege
  0 siblings, 2 replies; 18+ messages in thread
From: Sape Mullender @ 2003-11-21 14:04 UTC (permalink / raw)
  To: 9fans

> This shows that lp expects a filesystem named ``other'' on the file server;
> see /sys/lib/lp/bin/lpscratch and look for other.
>
> Probably a fix would be to hack /sys/lib/lp/bin/lpscratch

Indeed.  This is a leftover from the days when we used another file system
to avoid getting leftover temporary files in the daily dump.  These days,
nearly every machine has enough ram to use ramfs for temporaries.
I advice replacing mounting other by starting ramfs (If it's not already
running).

	Sape



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

* Re: [9fans] troff problem
  2003-11-21 12:55   ` Matthias Teege
  2003-11-21 13:43     ` Axel Belinfante
@ 2003-11-21 13:49     ` Fco.J.Ballesteros
  1 sibling, 0 replies; 18+ messages in thread
From: Fco.J.Ballesteros @ 2003-11-21 13:49 UTC (permalink / raw)
  To: 9fans

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

Yep. You'd better edit /sys/lib/bin/lpscratch to avoid mounting other.

[-- Attachment #2: Type: message/rfc822, Size: 2887 bytes --]

From: Matthias Teege <matthias-9fans@mteege.de>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] troff problem
Date: Fri, 21 Nov 2003 13:55:39 +0100
Message-ID: <868ym9519a.fsf@gic.mteege.de>

Fco.J.Ballesteros <nemo@plan9.escet.urjc.es> writes:

> setup your fileserver environment variable
> so that 9fs $fileserver could mount it.
> lp will try to mount it and it seems that
> 9fs kfs does not work for you (using fossil?)

I use a old style fileserver. I set $fileserver to the name of my
fileserver and try the following:

term% mntgen
term% 9fs $fileserver
term% troff -ms hello.ms | lp -dstdout > hello.ps
mount: mount /n/batidaother: attach -- unknown user or failed authentication
cannot mount /n/batidaother filesystem
term%

Hmm, there must be another problem to.

Thanks
Matthias

--
Matthias Teege -- http://www.mteege.de
make world not war

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

* Re: [9fans] troff problem
  2003-11-21 12:55   ` Matthias Teege
@ 2003-11-21 13:43     ` Axel Belinfante
  2003-11-21 14:04       ` Sape Mullender
  2003-11-21 13:49     ` Fco.J.Ballesteros
  1 sibling, 1 reply; 18+ messages in thread
From: Axel Belinfante @ 2003-11-21 13:43 UTC (permalink / raw)
  To: 9fans

> term% mntgen
> term% 9fs $fileserver
> term% troff -ms hello.ms | lp -dstdout > hello.ps
> mount: mount /n/batidaother: attach -- unknown user or failed authentication
> cannot mount /n/batidaother filesystem

This shows that lp expects a filesystem named ``other'' on the file server;
see /sys/lib/lp/bin/lpscratch and look for other.

Could the problem be that you use a real (non-kfs) file server
that does not have a filsys other?

Probably a fix would be to hack /sys/lib/lp/bin/lpscratch .


Axel. (who seems to remember encountering this problem too)




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

* Re: [9fans] troff problem
  2003-11-21  9:44   ` Skip Tavakkolian
  2003-11-21  8:48     ` Geoff Collyer
@ 2003-11-21 12:56     ` Matthias Teege
  1 sibling, 0 replies; 18+ messages in thread
From: Matthias Teege @ 2003-11-21 12:56 UTC (permalink / raw)
  To: 9fans

"Skip Tavakkolian" <fst@centurytel.net> writes:

> troff -ms /sys/doc/utf.ms | aux/tr2post > /tmp/utf.ps

Ok, that works for me to.
Matthias


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

* Re: [9fans] troff problem
  2003-11-21  9:59 ` Fco.J.Ballesteros
@ 2003-11-21 12:55   ` Matthias Teege
  2003-11-21 13:43     ` Axel Belinfante
  2003-11-21 13:49     ` Fco.J.Ballesteros
  0 siblings, 2 replies; 18+ messages in thread
From: Matthias Teege @ 2003-11-21 12:55 UTC (permalink / raw)
  To: 9fans

Fco.J.Ballesteros <nemo@plan9.escet.urjc.es> writes:

> setup your fileserver environment variable
> so that 9fs $fileserver could mount it.
> lp will try to mount it and it seems that
> 9fs kfs does not work for you (using fossil?)

I use a old style fileserver. I set $fileserver to the name of my
fileserver and try the following:

term% mntgen
term% 9fs $fileserver
term% troff -ms hello.ms | lp -dstdout > hello.ps
mount: mount /n/batidaother: attach -- unknown user or failed authentication
cannot mount /n/batidaother filesystem
term%

Hmm, there must be another problem to.

Thanks
Matthias

--
Matthias Teege -- http://www.mteege.de
make world not war


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

* Re: [9fans] troff problem
  2003-11-21  8:17 Matthias Teege
@ 2003-11-21  9:59 ` Fco.J.Ballesteros
  2003-11-21 12:55   ` Matthias Teege
  0 siblings, 1 reply; 18+ messages in thread
From: Fco.J.Ballesteros @ 2003-11-21  9:59 UTC (permalink / raw)
  To: 9fans

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

setup your fileserver environment variable
so that 9fs $fileserver could mount it.
lp will try to mount it and it seems that
9fs kfs does not work for you (using fossil?)

[-- Attachment #2: Type: message/rfc822, Size: 2321 bytes --]

From: Matthias Teege <matthias-9fans@mteege.de>
To: 9fans@cse.psu.edu
Subject: [9fans] troff problem
Date: Fri, 21 Nov 2003 09:17:17 +0100
Message-ID: <86k75ujfto.fsf@gic.mteege.de>

Moin,

I've tried to "compile" a troff document with
term% troff -ms hello.ms | lp -dstdout > hello.ps

but I get:

srv: dial net!kfs!9fs: cs: can't translate address: dns: resource does not exist
mount: can't open /srv/kfs: '/srv/kfs' file does not exist
cannot mount /n/kfs filesystem

What do I missing?
Matthias

--
Matthias Teege -- http://www.mteege.de
make world not war

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

* RE: [9fans] troff problem
  2003-11-21  8:28 ` Geoff Collyer
@ 2003-11-21  9:44   ` Skip Tavakkolian
  2003-11-21  8:48     ` Geoff Collyer
  2003-11-21 12:56     ` Matthias Teege
  0 siblings, 2 replies; 18+ messages in thread
From: Skip Tavakkolian @ 2003-11-21  9:44 UTC (permalink / raw)
  To: 9fans

> See /sys/lib/lp/bin/lpscratch; apparently it's not mounting your spool
> subtree correctly.

Is there a reason not to bypass lp altogether in this case?  I've been happy
doing this:

troff -ms /sys/doc/utf.ms | aux/tr2post > /tmp/utf.ps

Lp seems to assume a lot.



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

* RE: [9fans] troff problem
@ 2003-11-21  9:02 cej
  0 siblings, 0 replies; 18+ messages in thread
From: cej @ 2003-11-21  9:02 UTC (permalink / raw)
  To: 9fans



really,troff -ms -Tpost complains about not finding the file
/sys/lib/troff/font/devpost/DESC
actually, whole 'devpost' dir is missing (on my box, at least)

++pac.


---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.541 / Virová báze: 335 - datum vydání: 14. 11. 2003
 


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

* RE: [9fans] troff problem
  2003-11-21  8:48     ` Geoff Collyer
@ 2003-11-21  8:59       ` Charles Forsyth
  0 siblings, 0 replies; 18+ messages in thread
From: Charles Forsyth @ 2003-11-21  8:59 UTC (permalink / raw)
  To: 9fans

>>absolutely not; if you can get away without using lp, so much the
>>better.

perhaps lp ought to be on the public projects list



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

* RE: [9fans] troff problem
  2003-11-21  9:44   ` Skip Tavakkolian
@ 2003-11-21  8:48     ` Geoff Collyer
  2003-11-21  8:59       ` Charles Forsyth
  2003-11-21 12:56     ` Matthias Teege
  1 sibling, 1 reply; 18+ messages in thread
From: Geoff Collyer @ 2003-11-21  8:48 UTC (permalink / raw)
  To: 9fans

absolutely not; if you can get away without using lp, so much the
better.



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

* RE: [9fans] troff problem
  2003-11-21  8:23 cej
@ 2003-11-21  8:28 ` Geoff Collyer
  2003-11-21  9:44   ` Skip Tavakkolian
  0 siblings, 1 reply; 18+ messages in thread
From: Geoff Collyer @ 2003-11-21  8:28 UTC (permalink / raw)
  To: 9fans

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

No, troff's output is not postscript.

See /sys/lib/lp/bin/lpscratch; apparently it's not mounting your spool
subtree correctly.

[-- Attachment #2: Type: message/rfc822, Size: 3288 bytes --]

From: <cej@gli.cas.cz>
To: <9fans@cse.psu.edu>
Subject: RE: [9fans] troff problem
Date: Fri, 21 Nov 2003 09:23:28 +0100
Message-ID: <ACCF003CBA3D09458207DB0CB86AD17D124C3F@XMAIL.asuch.cas.cz>


think that this would suffice:
term% troff -ms hello.ms  > hello.ps


-----Original Message-----
From: Matthias Teege [mailto:matthias-9fans@mteege.de] 
Sent: Friday, November 21, 2003 9:17 AM
To: 9fans@cse.psu.edu
Subject: [9fans] troff problem


Moin,

I've tried to "compile" a troff document with
term% troff -ms hello.ms | lp -dstdout > hello.ps

but I get:

srv: dial net!kfs!9fs: cs: can't translate address: dns: resource does not exist
mount: can't open /srv/kfs: '/srv/kfs' file does not exist cannot mount /n/kfs filesystem

What do I missing?
Matthias

-- 
Matthias Teege -- http://www.mteege.de
make world not war

---
Pøíchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.541 / Virová báze: 335 - datum vydání: 14. 11. 2003
 

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.541 / Virová báze: 335 - datum vydání: 14. 11. 2003
 

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

* RE: [9fans] troff problem
@ 2003-11-21  8:23 cej
  2003-11-21  8:28 ` Geoff Collyer
  0 siblings, 1 reply; 18+ messages in thread
From: cej @ 2003-11-21  8:23 UTC (permalink / raw)
  To: 9fans


think that this would suffice:
term% troff -ms hello.ms  > hello.ps


-----Original Message-----
From: Matthias Teege [mailto:matthias-9fans@mteege.de] 
Sent: Friday, November 21, 2003 9:17 AM
To: 9fans@cse.psu.edu
Subject: [9fans] troff problem


Moin,

I've tried to "compile" a troff document with
term% troff -ms hello.ms | lp -dstdout > hello.ps

but I get:

srv: dial net!kfs!9fs: cs: can't translate address: dns: resource does not exist
mount: can't open /srv/kfs: '/srv/kfs' file does not exist cannot mount /n/kfs filesystem

What do I missing?
Matthias

-- 
Matthias Teege -- http://www.mteege.de
make world not war

---
Pøíchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.541 / Virová báze: 335 - datum vydání: 14. 11. 2003
 

---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.541 / Virová báze: 335 - datum vydání: 14. 11. 2003
 

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

* [9fans] troff problem
@ 2003-11-21  8:17 Matthias Teege
  2003-11-21  9:59 ` Fco.J.Ballesteros
  0 siblings, 1 reply; 18+ messages in thread
From: Matthias Teege @ 2003-11-21  8:17 UTC (permalink / raw)
  To: 9fans

Moin,

I've tried to "compile" a troff document with
term% troff -ms hello.ms | lp -dstdout > hello.ps

but I get:

srv: dial net!kfs!9fs: cs: can't translate address: dns: resource does not exist
mount: can't open /srv/kfs: '/srv/kfs' file does not exist
cannot mount /n/kfs filesystem

What do I missing?
Matthias

--
Matthias Teege -- http://www.mteege.de
make world not war


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

end of thread, other threads:[~2003-11-21 18:25 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-21  8:33 [9fans] troff problem cej
2003-11-21  8:41 ` Geoff Collyer
  -- strict thread matches above, loose matches on Subject: below --
2003-11-21  9:02 cej
2003-11-21  8:23 cej
2003-11-21  8:28 ` Geoff Collyer
2003-11-21  9:44   ` Skip Tavakkolian
2003-11-21  8:48     ` Geoff Collyer
2003-11-21  8:59       ` Charles Forsyth
2003-11-21 12:56     ` Matthias Teege
2003-11-21  8:17 Matthias Teege
2003-11-21  9:59 ` Fco.J.Ballesteros
2003-11-21 12:55   ` Matthias Teege
2003-11-21 13:43     ` Axel Belinfante
2003-11-21 14:04       ` Sape Mullender
2003-11-21 15:40         ` mirtchov
2003-11-21 17:34         ` Matthias Teege
2003-11-21 18:25           ` Sape Mullender
2003-11-21 13:49     ` Fco.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).