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.
the question was how i can test my printer (whatever it prints or not) not using CUPS, not using KDE, in text-only mode!!
that why i started new thread!!!!
Originally posted by chstani it is newbie forum, what is that "some-text" and "your_printers_devicenode" ??
Any text file, use your /etc/fstab for all I care.
The device node depends on how the printer is hooked up
to the computer. For me it would be /dev/lp0 for my locally
attached parallel printer.
Quote:
Originally posted by chstani p.s. i thought "without X" means no desktop environment and no CUPS. i`m newbie...
CUPS is a daemon that is run way before X comes into the
picture. The fact that there are GUI tools to set it up doesn't
mean that X is required to run CUPS.
i tried "cat /etc/fstab > /dev/lp0" in terminal from "lp0" to "lp10" and NOTHING!
for some "lp" devices i get "no such device" and for other just nothing. So, still nothing prints!!
i`ve got USB connected printer, so maybe i need something else instead of "lp0"??
But before you do that - what do you get from an
lsmod
and are there any messages related to your printer
in the output of
dmesg
? Try dmesg | less to page through it.
If that was the entire output from dmesg there's no reference to
a USB printer, only to a parallel port which you aren't using.
Was the printer plugged in and turned on at that boot? If not,
turn it on and run dmesg again, you should then see printer
related messages at the end.
OK, so it WAS picked up. Now (having seen lsusbs output)
we can also locate the printer in dmesgs output.
Quote:
i tried that already, from lp0 to lp15.
You hadn't mentioned that.
Next thing to look at would be cups' logfiles, I suppose.
Stop cups.
Delete the logs.
Edit /etc/cups/cupsd.conf, increase the debug level to
debug2
Start cups. Try to print something using the lpr command
from previous posts, look at cups' webinterface (does it
know about your printer?).
Stop cups.
Copy the newly created logs to some other place.
Undo the debuig-level in cupsd.conf and start cups
again.
Look at the saved logs to find out whether there's any
errors.
i`m newbie, i don`t know how to stop CUPS. so i deleted 2 log files from /var/log/cups.
then in /etc/cups/cupsd.conf i didn`t find line "debug level", but i find "LogLevel info", so i changed it to "LogLevel debug2".
then i tried to use command lpr, and i got this:
and at the same time in /var/log/cups file error_log is creted. (should i post it, it is huge?!)
using CUPS control center (at KDE controls or in Firefox) - CUPS finds my printer, it`s running, i`m trying to print test page in CUPS control center, is says that "Test page successfully send to printer" and that all, i`m waited a lot, but printer does not print!!
is there a way i can test my printer with this computer, because it will be hard to get Windows CD and resize harddisk and than install it??
You're using vector, right? Since it's a slackware-spawn
chances are that starting/stopping cups can be done using
this:
/etc/rc.d/rc.cups stop
/etc/rc.d/rc.cups start
Posting the entire Log probably wouldn't make sense, look for
lines that begin with an e
egrep -C 3 -i "^e " /var/log/cups/error_log
You can probably post the result of that quite safely.
i`m using Pocketlinux (Slackware based too) with KDE light.
this is part of log (from /var/log/cups/error_log), lines that start with e,
in /etc/cups/cupsd.conf i`ve got "LogLevel debug2"
and after i tried to print text file with command lpr
Quote:
E [28/Sep/2005:01:33:59 +0000] print_job: resource name '/printers/1' no good!
this is part of log (from /var/log/cups/error_log), lines that start with e,
in /etc/cups/cupsd.conf i`ve got "LogLevel info"
and after i tried to print text file with command lpr
Quote:
E [28/Sep/2005:01:36:44 +0000] print_job: resource name '/printers/1' no good!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.