Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
<<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.
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.
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".
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.