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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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
"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
1) printed portrait
2) font size ~ as expected
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.
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.