LinuxQuestions.org
Review your favorite Linux distribution.
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 06-19-2008, 06:26 PM   #1
silentray
LQ Newbie
 
Registered: Oct 2006
Location: London
Distribution: Gentoo 2008.0
Posts: 23

Rep: Reputation: 15
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
 
Old 06-19-2008, 06:42 PM   #2
anket
LQ Newbie
 
Registered: Feb 2008
Posts: 29

Rep: Reputation: 16
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.
 
Old 06-19-2008, 07:29 PM   #3
silentray
LQ Newbie
 
Registered: Oct 2006
Location: London
Distribution: Gentoo 2008.0
Posts: 23

Original Poster
Rep: Reputation: 15
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?
 
Old 06-19-2008, 07:53 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Printer setup problem in SuSE 9.1 xcalibra SUSE / openSUSE 1 09-29-2005 12:31 PM
printer setup Slackware 10 need help Ed_999 Slackware 3 11-08-2004 06:40 AM
printer setup problem d_kilshtein Linux - Networking 0 10-27-2004 02:33 PM
Network Printer Setup on Slackware 9.1 seagoj Linux - Networking 1 04-03-2004 06:18 PM
setup printer on client machine(slackware 8) to server (slackware7) network printer changwoo Slackware 9 05-02-2003 06:37 PM


All times are GMT -5. The time now is 01:37 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration