LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2012, 12:57 AM   #1
Speedy624
Member
 
Registered: Dec 2011
Distribution: Leap 42.1 & Windows 7
Posts: 45

Rep: Reputation: 1
HP Printer missing file/USB not working + others


Hiya, I'm new to Slackware and haven't quite got a grip on Linux so please excuse my naivety.

I have a HP Photosmart C8180 All-In-One printer and have ran "hp-setup" and tried to setup the printer. Step 1 I choose USB as the printer is not on a network, Step 2 I click my printer, next and Step 3 I add a description but do not have no PPD file. I have tried browsing for the file but there is no PPD file for photosmart. Is there another way I can setup my printer?

My USB slots work but they do not pickup anything i plug in, when I attach my Samsung GS2 and plug in my memory card I get the errors below. How do i get Slack to automatically pickup anything I connect via USB?

Samsung GS2

Code:
Rejected send message, 1 matched rules; type="method_call",      sender=":1.166" (uid=1000 pid=21587 comm="exo-mount)      interface="org.freedesktop.Hal.Device.Volume" member="Mount" error      name="(unset)" requested_reply=0 destination="org.freedesktop.Hal"      (uid=0 pid=2021 comm="/usr/sbin/hald)).
Memory Cards

Code:
Rejected send message, 1 matched rules; type="method_call",       sender=":1.168" (uid=1000 pid=21598 comm="exo-mount)       interface="org.freedesktop.Hal.Device.Volume" member="Mount" error       name="(unset)" requested_reply=0 destination="org.freedesktop.Hal"       (uid=0 pid=2021 comm="/usr/sbin/hald)).
I was told to change my fstab file so it reads "auto,owner,ro" instead of "noauto,owner,ro" so the cd/dvds I pop into my drive are read automatically, they now are being read automatically but they do not eject. Even if I try to manually eject the cds/dvds it doesn't work, I have to boot into another distro to eject the drive and reboot into Slackware. How can I fix this/what do i do to fix this?

Eject error.

Code:
Failed to eject "SlackDVD"
Rejected send message, 1 matched rules; type="method_call",    sender=":1.171" (uid=1000 pid=21670 comm="exo-eject)    interface="org.freedesktop.Hal.Device.Volume" member="Eject" error    name="(unset)" requested_reply=0 destination="org.freedesktop.Hal"    (uid=0 pid=2021 comm="/usr/sbin/hald)).
cdrom fstab

Code:
#/dev/cdrom      /mnt/cdrom       auto        auto,owner,ro  0    0
I cannot access my files on another distro I have installed on this HD but I can access my slackware files when logged into that distro. During installation I did see that partition but it's nowhere to be seem since. What can/do I change so I can access the other half of my HD?

I also have many duplicate applications or applications that I do not need/want/use. eg. I will not be playing any of the game, education programs I am very unlikely to use, I have Firefox, Konqueror and Sea Monkey browsers, 3 email clients, 2 ftp clients etc etc Is it possible to pick and choose what programs I would like to keep and uninstall the rest? If so, how do i uninstall individual programs?

Sorry I've packed a number of issues into one post. Any help would be appreciated.

Happy New Year!!
 
Old 01-03-2012, 04:11 AM   #2
rigor
Member
 
Registered: Sep 2003
Location: 19th moon ................. ................Planet Covid ................Another Galaxy;............. ................Not Yours
Posts: 705

Rep: Reputation: Disabled
As to the printer, if you follow this link:

http://www.openprinting.org/printer/...otoSmart_C8100

how does the C8180 compare to the information you find there?
 
Old 01-03-2012, 05:18 AM   #3
Speedy624
Member
 
Registered: Dec 2011
Distribution: Leap 42.1 & Windows 7
Posts: 45

Original Poster
Rep: Reputation: 1
It says to use the HPLIP driver which I do have installed, I also have CUPS installed. It does mention the PPD files being included but I definitely do not have my PPD file.
 
Old 01-03-2012, 08:11 AM   #4
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
You don't necessarily have PPD files with HPLIP; you do have, in /usr/share/hplip/data/models, the file models.dat which contains
Code:
grep 8180 /usr/share/hplip/data/models/models.dat
model2=HP Photosmart C8180 All-in-One Printer
That means it ought to work so let's think about some other things for a minute.

If that line is not present in your /usr/share/hplip/data/models/models.dat file, you're going to need to update HPLIP to the current version (see below for how to do that then come back to here).

You do need to install your printer logged in as root with X running; it may work all right if you've used su - or sudo logged in as a user but I've found that the most reliable way to get a printer going is logged in as root to do so. As always, be careful when you're logged in as root.

You may want to take a look at what groups users (including root) are members of -- you may need to add your users to lp, plugdev and scanner for this printer. The groups utility will show you what groups an individual user (including root) belong to; here are the groups my user account belongs to:
Code:
log in as somebody
groups
users lp floppy dialout audio video cdrom plugdev power usbfs netdev scanner vboxusers
Ignore vboxusers and cvs above, they're for VirtualBox and CVS.

There are two ways you can add users to groups, directly edit /etc/group with vi or use the usermod utility. If you choose to use vi, simply append account names to the group name like these examples:
Code:
lp:x:7:lp,userid01,userid02
plugdev:x:83:root,userid01,userid02
usbfs:x:85:root,userid01,userid02
scanner:x:93:root,userid01,userid02
where userid01 is your log in name, userid02 is a second user log in and so on. Obviously, if there is no userid02 you would not add one.

If you use usermod, you'd do it like this (logged in as root)
Code:
usermod -a -G lp,plugdev,usbfs,scanner userid01
Note that root is most likely already a member of these groups and don't add a user account to a group where that user is already a member. This takes a little looking and checking before you doit toit.

Once you have those added, you can most likely log in as root and re-do hp-setup.

Now, if your printer did not appear in /usr/share/hplip/data/models/models.dat, things are a little trickier but not too tricky. You're going to need to download the current version of HPLIP and use the SlackBuild for it that's in the source tree of your CD-ROM or DVD -- don't panic yet, it's pretty easy.

First, get logged in as root, startx and open a terminal (use the Terminal in the KDE Application Picker, Applications, System, Terminal). Then insert your media which should pop up the notification, click the name, choose Open with File Manager. Navigate to the source directory, then the ap directory. You want to copy the hplip tree to, oh, say, /usr/local so you can work in it. You can do that by splitting the window (at the top of the file manager window), click in the split then navigate to /usr/local. Then drag and drop the hplip directory to /usr/local.

Then cd /usrs/local/hplip and remove the HPLIP software that's there:
Code:
rm hplip*.gz hplip*.txz
Open Firefox and go to this link http://prdownloads.sourceforge.net/h...3.11.12.tar.gz. Save it in /usr/local/hplip.

Then, in /usr/local/hplip
Code:
./hplip.SlackBuild
<wait for it to compile, takes a few minutes>
The package will be in /tmp/hplip-3.11.12-x86_64-1.txz. You may want to move that to /usr/local/hplip:
Code:
cd /usr/local/hplip
mv /tmp/hplip-3.11.12-x86_64-1.txz .
Then, you upgrade the version of HPLIP installed like this:
Code:
upgradepkg hplip*.t?z
<all kinds of stuff will happen, ending with>
Executing install script for hplip-3.11.12-x86_64-1.txz.
Package hplip-3.11.12-x86_64-1.txz installed.
Now you've got users added to groups and the current version of HPLIP so go, still logged in as root, and execute
Code:
hp-setup
Hope this helps some.

Last edited by tronayne; 01-03-2012 at 08:25 AM.
 
1 members found this post helpful.
Old 01-03-2012, 12:51 PM   #5
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
I forgot to mention above that, if you have not already done so, you should download and install updates from a mirror (this is the quick-and-dirty way to get them all in one go, later you may want to use a different method):
Code:
log in as root or su - or sudo
mkdir /usr/local/patches
cd /usr/local/patches
<for Slackware 13.37 64-bit>
wget ftp://ftp.osuosl.org/pub/slackware/slackware64-13.37/patches/packages/*
<for Slackware 13.37 32-bit>
wget ftp://ftp.osuosl.org/pub/slackware/slackware-13.37/patches/packages/*
When that finishes,
Code:
upgradepkg *.t?z
Probably a good idea to reboot.

One of the patches, for Ghostscript, solves a printing problem (that you may or may not have), others include the current Firefox, Seamonkey and Thunderbird releases.

Hope this helps some.
 
1 members found this post helpful.
Old 01-03-2012, 04:25 PM   #6
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by Speedy624 View Post
I have a HP Photosmart C8180 All-In-One printer and have ran "hp-setup" and tried to setup the printer.
Never used that to install a HP printer on Slackware.

What I do do to install printers is enable cups and then go to http://localhost:631/ and click add printer and follow the prompts (most new printers are auto-detected)

With your flash media drives in the printer can you mount USB flash drives plugged into the computer directly or do they have the same problem? If you can't mount them like that then you probably need to add yourself to the plugdev group.
 
1 members found this post helpful.
Old 01-04-2012, 01:51 PM   #7
Speedy624
Member
 
Registered: Dec 2011
Distribution: Leap 42.1 & Windows 7
Posts: 45

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by tronayne View Post
You may want to take a look at what groups users (including root) are members of -- you may need to add your users to lp, plugdev and scanner for this printer. The groups utility will show you what groups an individual user (including root) belong to; here are the groups my user account belongs to:
Code:
log in as somebody groups users lp floppy dialout audio video cdrom plugdev power usbfs netdev scanner vboxusers
Ignore vboxusers and cvs above, they're for VirtualBox and CVS.

There are two ways you can add users to groups, directly edit /etc/group with vi or use the usermod utility. If you choose to use vi, simply append account names to the group name like these examples:
Code:
lp:x:7:lp,userid01,userid02 plugdev:x:83:root,userid01,userid02 usbfs:x:85:root,userid01,userid02 scanner:x:93:root,userid01,userid02
where userid01 is your log in name, userid02 is a second user log in and so on. Obviously, if there is no userid02 you would not add one.
I've followed everything you said but a PPD File is still required, I have tried selecting the "/usr/share/hplip/data/models/models.dat" file instead but get the following error:

p, li { white-space: pre-wrap; }
Code:
Printer queue setup failed. Could not connect to CUPS Server
 Is user added to "sys" group(s)
Terminal reads.
Code:
/warning: No PPD found for model photosmart_c8100_series using new algorithm. Trying old algorithm...
error: No PPD found for model photosmart_c8100 using old algorithm.
error: No appropriate print PPD file found for model photosmart_c8100_series
error:  Printer queue setup failed. Could not connect to CUPS Server  Is user added to "sys" group(s)
Root and my username are both added to

Code:
sys  lp  floppy  audio  video  plugdev  power  netdev  scanner  users
I've tried "grep 8180 /usr/share/hplip/data/models/models.dat" and the output was

Code:
model2=HP Photosmart C8180 All-in-One Printer


How do I continue with the setup if I do not have a PDD File?
 
Old 01-04-2012, 02:37 PM   #8
ponce
LQ Guru
 
Registered: Aug 2004
Location: Pisa, Italy
Distribution: Slackware
Posts: 7,097

Rep: Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174Reputation: 4174
for some reason the ppd is not there.
you can get it extracting hplip tarball, then look in the ppd/hpcups folder, you will find hp-photosmart_c8100_series.ppd.gz: copy it to /usr/share/cups/model/HP/ and restart CUPS.

Last edited by ponce; 01-04-2012 at 02:45 PM.
 
1 members found this post helpful.
Old 01-04-2012, 04:19 PM   #9
Speedy624
Member
 
Registered: Dec 2011
Distribution: Leap 42.1 & Windows 7
Posts: 45

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by ponce View Post
for some reason the ppd is not there.
you can get it extracting hplip tarball, then look in the ppd/hpcups folder, you will find hp-photosmart_c8100_series.ppd.gz: copy it to /usr/share/cups/model/HP/ and restart CUPS.
That did the trick, printed a test page and a document, worked perfectly.
 
Old 01-04-2012, 05:39 PM   #10
Speedy624
Member
 
Registered: Dec 2011
Distribution: Leap 42.1 & Windows 7
Posts: 45

Original Poster
Rep: Reputation: 1
Does CUPS start automatically on boot?
 
Old 01-05-2012, 12:59 AM   #11
wildwizard
Member
 
Registered: Apr 2009
Location: Oz
Distribution: slackware64-14.0
Posts: 875

Rep: Reputation: 282Reputation: 282Reputation: 282
Quote:
Originally Posted by Speedy624 View Post
Does CUPS start automatically on boot?
It does if the script in /etc/rc.d has the execute bit set, does yours?
 
1 members found this post helpful.
Old 01-05-2012, 06:44 AM   #12
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
I think part of your problem has been that CUPS was not running when you did the set up (glad to know you got it working, though).

If you look in /etc/rc.d, those are the start-ups for daemons and you enable them by making them executable with, e.g.,
Code:
su -
chmod 755 /etc/rc.d/rc.cups
so, when the system boots, CUPS will be started along with other daemons (and you need to have CUPS running to set up a printer). If you open a terminal and
Code:
ls /etc/rc.d
the ones that are executable are displayed in green and the ones that are not are black (the is most likely a directory, init.d that displays in blue).

Now, you do not need to enable everything in there (in fact, you don't want to); you only enable what you're going to be using. Say you are going to be using MySQL, that daemon is not "turned on" by default, like the CUPS daemon, you need to enable it (and you must initialize MySQL by executing /usr/bin/mysql_install_db; don't forget to do that).

You can manually stop, start or restart the daemons (and you don't want to do this as a common practice, only when you're setting thing up) with
Code:
/etc/rc.d/rc.cups stop
<fiddle with something>
/etc/rc.d/rc.cups start
I'm surprised that hp-setup, executed as root with CUPS running would not set up your printer. Never had that problem with hp-setup, never needed a PPD file (with either a couple of Photosmart USB printers or a couple of Deskjet PostScript Ethernet printers). hp-setup just did its thing and configured CUPS as it went.

Anyway, all is well that ends.

Hope this helps some.
 
1 members found this post helpful.
Old 01-05-2012, 05:19 PM   #13
Speedy624
Member
 
Registered: Dec 2011
Distribution: Leap 42.1 & Windows 7
Posts: 45

Original Poster
Rep: Reputation: 1
/etc/rc.d is green and does start automatically, thank you.

Any help with the other issues?
 
  


Reply



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
USB printer was working but after cancelling a job, 'usb' does not appear in CUPS VeggyDawson Linux - Hardware 2 06-08-2009 08:37 AM
USB printer not working jjonas Linux - Hardware 8 03-05-2009 07:08 AM
USB Printer Not Working Baryonic Being Linux - Hardware 5 07-10-2004 06:31 AM
USB Lexmark Printer Not Working vi0lat0r Slackware 8 04-03-2004 06:00 AM
Can't install Lexmark Z25 Printer driver because of missing shared file jayelitumbiolo Linux - General 6 11-04-2003 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:15 PM.

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
Open Source Consulting | Domain Registration