LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Slackware printer setup problem (https://www.linuxquestions.org/questions/linux-newbie-8/slackware-printer-setup-problem-650407/)

silentray 06-19-2008 05:26 PM

Slackware printer setup problem
 
Hi,

I was trying to setup my HP Laserjet 1020 printer on my slackware machine. Unfortunately, after 2 hours, it still doesn't work.

I have installed the foozjs driver. The cups works file:

#ps -ef | grep cups
root 2910 1 0 22:25 ? 00:00:02 /usr/sbin/cupsd

I can add the printer in KDE in the control centre. However, the printer did not respond when I tried to print a test page.

Can anyone let me know what I might miss?

Many thanks

anket 06-19-2008 05:42 PM

Have you configured the printer using the CUPS web interface? If you have not done so already, point your web browser to http://localhost:631/ and add the printer.

This process might require super user (i.e. root) access.

silentray 06-19-2008 06:29 PM

Hi anket,

Thanks for your reply. Yes, I have added the printer using the CUPS web configuration tool.

Unfortunately, the "print test page" button of the web tool does not work either. I can, however, see the job is queued and listed in the job queue. This job is removed after 3-4 seconds.

Any one help me?

Bruce Hill 06-19-2008 06:53 PM

NB: I realize your 1020 is not included in the list of HP printers in CUPS, but maybe the hp-laserjet_1022-hpijs-pcl.ppd.gz driver will work. Give it a try, and if not, just remove the printer with "Remove Device" in the hp-toolbox menu.

Even better than the CUPS web interface, IMO, is "hp-toolbox". From Slackware-12.1/CHANGES_AND_HINTS.TXT:
Code:

There is a minor problem with the HPLIP and CUPS versions in Slackware 12.1;
  hp-toolbox will not work unless LC_ALL is set to a UTF8 locale.
  An easy workaround is to start it with "LC_ALL=$LANG.UTF8 hp-toolbox" if
  you're not using a UTF8 locale.  Also, your user account must be a member
  of the "lp" group for hp-toolbox to work properly, and to use the scanner
  portion of some (all?) HP print/scan/copy units, you'll need to be a member
  of the "lp" group.  This is due to the fact that hplip's udev rules set
  the device with group "lp" ownership.

My results with hp-toolbox on several computers running Slack-12.1 has been better than CUPS web interface on all previous versions.

First, as a normal user (not root) on your box, check if you're in the lp group by issuing "id":
Code:

mingdao@silas:~$ id
uid=1000(mingdao) gid=100(users) groups=7(lp),10(wheel),11(floppy),17(audio),18(video),19(cdrom),83(plugdev),93(scanner),100(users)

If not, then su to root and issue "vigr" and add your normal user to the lp group.

Second, check to see if you are using a UTF-8 locale (you should know this) by issuing "echo $LANG":
Code:

mingdao@silas:~$ echo $LANG
en_US.UTF-8

If not, the easiest thing to do is to create the file .profile in your home directory with these settings:
Code:

mingdao@silas:~$ cat .profile
export LANG=en_US.UTF-8

Or, if you don't want a UTF-8 locale, as the guide says, start hp-toolbox with "LC_ALL=$LANG.UTF8 hp-toolbox".

Third, when you start hp-toolbox, if your printer is not found, you will need to scroll down in that dialog box and start it per the instructions.

There are quite a few command line tools for HP printers:
Code:

mingdao@silas:~$ hp-
hp-align      hp-clean      hp-fab        hp-info        hp-makecopies  hp-print      hp-scan        hp-setup      hp-testpage    hp-toolbox
hp-check      hp-colorcal    hp-firmware    hp-levels      hp-makeuri    hp-probe      hp-sendfax    hp-systray    hp-timedate    hp-unload

From the hp-toolbox dialog, you can also print, scan, fax, and adjust all the settings for your printer. IMO it is much better than the CUPS web interface.


All times are GMT -5. The time now is 11:46 PM.