LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-21-2006, 10:03 PM   #1
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Mint / ubuntu
Posts: 118

Rep: Reputation: 15
"lp" output missing 2mm at top & left


Using MEPIS, from bash prompt, "lp" prints to my Canon BJC4550, but the top 2mm and left hand 2mm are missing, thus showing only about 1/3 of the top line, and only half of each leftmost character on a line. Seems to print OK from X applications, and also from WinXP. I can't find any alignment adjustments anyway. Thanks in advance.
 
Old 07-22-2006, 03:42 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You could look at the cups web-interface and check whether the driver
for your printer (under modify printer) supports margins; if it does,
set them there (e.g. to be 3mm).
If it doesn't maybe use something like a2ps as a filter for your text-files.



Cheers,
Tink
 
Old 07-24-2006, 04:34 AM   #3
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Mint / ubuntu
Posts: 118

Original Poster
Rep: Reputation: 15
I don't have a cups web-interface. And since all applications except "bash" seem to work I presume I don't need one. "a2ps" looks promising, but from past experience postscript filters on text that requires non-proportional fonts/usage have not been a success. But I'll give it a go.
 
Old 07-24-2006, 04:38 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
If you have cups running, you have a web-interface; try
http://localhost:631



Cheers,
Tink
 
Old 07-24-2006, 05:17 AM   #5
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Mint / ubuntu
Posts: 118

Original Poster
Rep: Reputation: 15
<<if you have cups running, you have a web-interface; try
http://localhost:631>>
gave:
"Not found on this server".

I tried this:

cat text |a2ps --portrait --chars-per-line=80 --lines-per-page=65 --quiet --borders no --no-header --margin=0|lp -s

good:
1) printed portrait
2) font size ~ as expected
bad:
3) printed a 1 inch top margin
4) printed a 7/16 inch left margin
5) printed only 40 columns/line
But at least I could read it all, *except* (text only 3 lines long)
6) page 2 arrived reading half of "equest 20 canon mumblemumble" (can't read 1/3 of tiny font on page 2)
"ls -s" doesn't work it seems.
7) added " 2>/dev/null" but page 2 still arrived.
 
Old 07-24-2006, 01:16 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hmmm ... maybe Mepis doesn't use cups then, or has the port set
to something else?
Try that one:
lsof|grep cups |grep IP
or, if you don't have lsof installed
netstat -ape|grep cups

Sorry about the other issues, maybe someone who uses a2ps themselves
can help here. My old Optra R has always worked flawlessly :} so I
had no need to use a2ps.



Cheers,
Tink
 
Old 07-25-2006, 04:30 AM   #7
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Mint / ubuntu
Posts: 118

Original Poster
Rep: Reputation: 15
Not sure I'm reading the output of "lsof" correctly, but it lists two "cupsd" and what appears to port numbers 15321 & 15322. Neither of which can be connected to.
"ps" shows there is a root process running "cupsd".
 
Old 07-25-2006, 01:34 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
grep "^Port " /etc/cups/cupsd.conf


Cheers,
Tink
 
Old 07-26-2006, 04:40 AM   #9
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Mint / ubuntu
Posts: 118

Original Poster
Rep: Reputation: 15
Hello, thanks for persisting.
/etc/cups/cupsd.conf contains:

#Port 631
Listen *:631

and a bit later in the text

BrowsePort 631.

But http://localhost:631 (and trying the actual machine name)
yields:
Not Found.
The requested resource was not found on this server.
 
Old 07-26-2006, 04:53 AM   #10
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
You're not also running a firewall that maybe blocks 631?
What happens if you remove the *: and restart CUPS?

I don't know off the top of my head whether * is a valid
wildcard for a hostname in cups, or not ... :}


Cheers,
Tink
 
Old 07-30-2006, 03:33 AM   #11
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Mint / ubuntu
Posts: 118

Original Poster
Rep: Reputation: 15
I removed the "*:" from "Listen *:631". The daemon still runs, but
Http://localhost:631" still returns "Not Found".
 
Old 07-30-2006, 01:11 PM   #12
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Ok ... I'm running out of ideas :}
Is your CUPS enforcing encryption? Try
https://localhost:631

Is the loop-back interface defined for your box?
Check /etc/hosts for a line
127.0.0.1 localhost


Cheers,
Tink
 
Old 08-02-2006, 04:50 AM   #13
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Mint / ubuntu
Posts: 118

Original Poster
Rep: Reputation: 15
Hello, I've already tried that. I doubt encryption is the issue, because the printer does actually *print*. It just isn't aligned correctly from "lp".
 
Old 08-02-2006, 06:04 AM   #14
spirit receiver
Member
 
Registered: May 2006
Location: Frankfurt, Germany
Distribution: SUSE 10.2
Posts: 424

Rep: Reputation: 33
Quote:
Originally Posted by beckwith
#Port 631
That line seems to be commented out, here I only get "Port 631". Maybe you want to try this?
 
Old 08-03-2006, 05:07 AM   #15
beckwith
Member
 
Registered: Nov 2002
Location: Western Australia
Distribution: Mint / ubuntu
Posts: 118

Original Poster
Rep: Reputation: 15
I have uncommented the line, that makes sense from the comments in a rather *large* file consisting of mainly comments. However, what this did was move the
problem from "Not Found" to "Unable to Connect" - tried both http://localhost:631 and http://mymachinename:631 - same result for both.
 
  


Reply



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
"Xlib: extension "XFree86-DRI" missing on display ":0.0"." zaps Linux - Games 9 05-14-2007 03:07 PM
Suggestion: for "subscribed threads" & "top of page" buttons Old_Fogie LQ Suggestions & Feedback 7 07-10-2006 05:10 PM
Where to download precompiled bash binaries, such as "time" and "top"? elinuxqs Linux - Newbie 12 11-14-2005 08:36 PM
"The KDE Window Manager" box keeps poping up at the top left... HELP HOLLYW00D SUSE / openSUSE 2 04-23-2005 11:26 AM
question re output of "top" slackist Linux - Newbie 2 04-12-2004 08:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:24 PM.

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