Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-07-2002, 10:57 PM   #1
LQ Newbie
Registered: Apr 2002
Posts: 6

Rep: Reputation: 0
Unhappy need ghostscript help!!!

hi all~
i have installed ghostscript 6.51 on my RH 7.2 . now i'm trying to print my .ps file........but i don't know how to make ghostscript work? what's the print command for ghostscript?

thanks for help~
Old 05-08-2002, 12:48 AM   #2
LQ Newbie
Registered: May 2002
Location: oregon
Distribution: Slackware (normally)
Posts: 21

Rep: Reputation: 15
open a console and type "man ghostscript" this will bring up the man page and you can read it their.
Old 05-08-2002, 03:57 AM   #3
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
What are you using to print? CUPS?

Well, I am no CUPS nor Ghostscript expert, but I have done a RH 7.2 install before and it was straight forward. RH configured it all for me, then when I clicked print in my file, it went straight there.

What I am trying to say is, don't try to make it brain surgery. RH is user friendly enough.

How did you install Ghostscript? I think you can actually go into your cups config and enable Ghostscript printing.

In KDE that is in K--Config---Printing
Old 05-08-2002, 09:49 AM   #4
Registered: Feb 2002
Location: Turkiye
Distribution: Pardus
Posts: 147

Rep: Reputation: 15
Ok these links may help you :
Old 05-08-2002, 04:02 PM   #5
Registered: May 2002
Distribution: Slackware
Posts: 125

Rep: Reputation: 15

Ghostscript does not have a print command per say. GhostScrip is used to process and convert PostScript files to other formats. Most often, it is used as a print filter, which is a shell script that your printing system parses print jobs to before sending them to your printer. RedHat should have a decent print tool configuration program that would allow you to select your printer from a list and go...

But if you wan to fiddle with Ghostscrip yourself (Certainly a fine way to spend an afternoon).. find the ghostscript documentation (should have been included with your download). and look at usage.. That should tell you what options you need to select an output device (for yoru specificy printer) and other options (like resolution, etc.)

Then you could some something like (as root):

cat | gs -device (device) -q -r 800x600 - - > /dev/lp0

I don't remember all the switches exactly, but in this example, we use -q for quiet (important, otherwise junk will be send to the printer) and we specify - - as the input and output (standard in, standard out).. Cat is used to pipe the PS file to ghostscript. (Some people will say this is a redundant use of cat, but just ignore them for the time being ). And the output is being re-directed to /dev/lp0 (Your first Parallel port, this might need to be adjusted if your printer is somewhere else. Drasticly different steps need to be taken if your trying this for a network printer.. Once you have all this figured out for your printer, you can start creating your very own printfilters (which I think is way cool. I never could stomach the prepackaged ones.)

Please note however, only masochistic maniacs seem to actually do this. Most other people go to and follow through the howtos for their system.
Old 05-08-2002, 09:20 PM   #6
LQ Newbie
Registered: Apr 2002
Posts: 6

Original Poster
Rep: Reputation: 0
Wink RH 7.2 network printing problem

sorry~ i forgot to tell you that my printer is on NT. ... i'm not trying to print on my linux i need to print my file throuth LAN on NT's hard for me to figure out the steps in printcap. and i need a solution to print my .ps file on my NT printer throuth samba networking . is this possible? actually our company is trying to set up a totally linux that we can do anything on linux just like on windows............but still try to work on printing and networking communication problem !!!!

Last edited by sarah_777; 05-08-2002 at 09:43 PM.
Old 05-09-2002, 10:13 AM   #7
Registered: May 2002
Distribution: Slackware
Posts: 125

Rep: Reputation: 15
Configuring Printer on RedHat

It's probably best to just run the printtool that comes with RedHat. That's RedHats printer configuration tool, that will setup all the details for you. (you never did tell us what kind of printer you are tyring to use or why you had to download Ghostscript, should have all been included with your distro).

The process to do it the manual hard way is much the same as I already detailed. Only, instead of redirecting output to /dev/lp0, you pipe it to smbprint (part of Samba, please see Samba documentation.) Then you have to configure printcap. If I remember right (and I might not). you just leave lp= blank so the lpd doesn't send the print job anywhere, and you leave the work of piping the output to smbprint to you input filter (if =) Please do a search for recent posts by me for details of the pritncap file.

Again, unless for some reason it doesn't work, I suggest starting out with RedHat Printtool. Will make your life much simpler.
Old 05-09-2002, 10:40 AM   #8
Registered: Apr 2002
Distribution: SuSe/Redhat
Posts: 94

Rep: Reputation: 15
Redhat documentation suggests the widget printtool should be able to sort you out.

I have just connected my SuSe laptop to an HP printer on a LAN served by an NT server. Suse uses YAST2, but from the screenshots it looks almost identical to printtool.

All that I needed to do was:

1) Select the type of printer (ie samba/NT/LAN)
2) Add the server details to /etc/hosts (too lazy to use IP address)
3) insert the printer share name and server name into the fields provided
4) Select a fortunately included print driver

That was it


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Where is Ghostscript for Slackware 9.1? rsamurti Slackware - Installation 1 01-16-2004 05:22 AM
Where is ghostscript Kocil Slackware 2 10-18-2003 10:56 PM
Ghostscript and Preview JonnyL Linux - Newbie 0 03-08-2003 06:02 AM
GhostScript 7.05 polarcat Slackware 1 01-14-2003 06:44 PM
Ghostscript Bill Moehring Linux - Newbie 0 08-23-2001 07:59 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration