LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-14-2012, 01:00 AM   #1
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Rep: Reputation: 145Reputation: 145
slackpkg


I had packages firefox, google and a few others such as cssed installed,hplip, and printer H.P working after running hp-setup .

I then ran slackpkg upgrade-all.

Google web browser working and just about everything else.However
firefox web browser icon disappeared from menu, printer now doesn't work..

"firefox" typed at cli gives "couldn't load XRE function" and hp-setup command gives "unable to load qt4 support". I suspect it may have been the affect of google in the update. tried doing a build of qt4 from slackbuilds and it failed.

Since most of my box is working, i can get by and don;'t want to do a fresh install. lets take it as a learning curve.


It looks like libraries have been displaced.var/log/removed scripts show a lot of changes where do I start?


I guess the critical thing to fix is my printer.went to hp dot com, there doesn't seem to be a hplip for slackware. the one I had was from a configure, make,make install of hplip-3.9.10-i486-1
 
Old 05-14-2012, 04:02 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
My guess is you ran into those problems because mixing Slackware packages and manually installed applications.

I suppose that you are using Slackware 13.37.

There *is* a Slackware package for hplip: hplip-3.11.3a-i486-1, available in the ap/ series of packages.
If you did a full install (which is recommended) it should be already installed.

Firefox is included as well (last version is mozilla-firefox-12.0-i486-1_slack13.37 in patches/).

Google Chrome is not, but you can make yourself a package with a Slakbuild you will find @ slackbuilds.org (it is called chromium).

Rule of thumb:
- never install manually (ie, configure, make, make install) an application
- preferably, use a Slackware package
- if none is available, either install one from a trusted repository, as Robby Workman's or Alien Bob's repository, or make yourself a package with a Slackbuild found @ slackbuilds.org
- last resort, learn to make yourself a Slackware package that you will be able to manage using the standard Slackware tools (installpkg, upgradepkg, removepkg).

Remember that slackpkg is intended to work with official Slackware packages only.

To ease building and installing packages from slackbuild.org repository, you may give a try to the unofficial, but often useful sbopkg tool as well, available @ sbopkg.org. Read the manual carefully first.

I suggest you first "make uninstall" your manually installed hplip then "slackpkg reinstall hplip" ; or "slackpkg remove hplip" followed by "slackpkg install hplip".

EDIT In some cases, you could want to try a newer version of on application than the one included in Slackware.
Then you can try to run the Slackbuild provided with Slackware against a newer source tarball than the one provided.
YMMV though, IOW there is no guarantee that this will work: there can have been be changes in the libraries required as well as in the Configure options.

Last edited by Didier Spaier; 05-14-2012 at 04:34 AM.
 
1 members found this post helpful.
Old 05-15-2012, 03:33 PM   #3
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
hi Didier

I didn’t know you could actually do a “ make uninstall” anyway did this and got rid of old hplip

then I decided to get rid of google chrome from my system
( google-chrome-16.0.912.77-i386-1.txz )

then I tried “slackpkg upgrade-all” again firefox came back to life and worked, also thunderbird which was also down following previous.

This goes to show that google-chrome can become uncomptatable with slackware 13.37 and other packages ,following certain operations like upgrade-all.





Basically the only problem I know have now is getting hplip to work, after installing
hplip-3.11.3a-i486-1.txz , # hp-setup gives output ..no qt4 support. can’t even see qt4 in log ,packages so downloading from connie -alien
 
Old 05-15-2012, 04:08 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Qt4 is part of a standard install, since some applications and especially KDE rely on it. Do you have the recommended full install?
 
Old 05-15-2012, 06:22 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
As TobiSGD said, qt4 should be installed if you made a full install.

If not you'll find qt-4.7.0_7abde40-i486-3.txz in the l/ series of packages.

And you don't really need to use hp-setup, you can open firefox, go to localhost:631 and set up your printer, provided cups be launched (make sure /etc/rc.d/rc.cups be executable, then type as root /etc/rc.d/rc.cups restart).
 
Old 05-16-2012, 02:31 PM   #6
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
Ok Yep I did a full install of slackware 13.37 then did a couple of builds including tomcat, and google-chrome, libreoffice-3.4.0-i486-1alien.txz Both firefox and chrome browser app worked

also used scr2pkg for cssed since its a nice css editor.

I bought a HP Deskjet 1050a and had this WAS working for several weeks. Yes I used http://localhost:631 a few times to cancel print jobs etc

The problem started when I used “slackpkg search” for something I don’t even remember now; then I noticed “slackpkg upgrade -all” in slackpkg menu and thought it a positive move/ curiosity to try it . That’s when I lost thunderbird, firefox and printer stopped working properly.

Removing google-chrome and repeating upgrade-all brought back to life firefox, and thunder bird

I just installed hplip-3.11.3a-i486-1.txz and qt4-4.4.1-i486-1alien.tgz , on the http://localhost:631

page there is a link for drivers, clicking on it gives a list of 1249 printer drivers ,but I noticed dates are from 2005. I guess something is out of date ? Looking at Didier post it looks like maybe qt4 is out of date

When I open a doc file, with libreoffice, and click print,the printer responds but churns out a blank page
 
Old 05-16-2012, 04:48 PM   #7
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
1) You don't need qt4-4.4.1-i486-1alien.tgz. Please uninstall it.
TobiSGD and I already told you that qt-4.7.0_7abde40-i486-3.txz is part of Slackware. Please (re)install it.
I just checked again that hp-toolbox (run as a regular user) launches fine, provided that qt-4.7.0_7abde40-i486-3.txz be installed
So I suggest you try again hp-toolbox
2) Anyhow qt is not necessary at all to run cups through the net interface (http://localhost:631).
3) Here with hplip-3.11.3a-i486-1.txz installed, in http://localhost:631 I am presented (among many others) with HP Deskjet 1050 j410 Series. You could try that one, if you prefer not to use hp-toolbox.

PS If really you did a full install, qt-4.7.0_7abde40-i486-3.txz should be installed. You can have a look at /var/log/packages to check.

Last edited by Didier Spaier; 05-17-2012 at 02:05 AM. Reason: wrong printer model, sorry
 
Old 05-21-2012, 05:15 AM   #8
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
ok done new full install..printer working ..thanks for above..can see what you mean ,I don't need any other HPLIP package hplip-3.11.3a-i486-1 is already there and can be seen in /var/log/packages


just one last question to clear up if you would

I know there is a daemon /etc/rc.d/rc.cups which starts at boot or can be launched by

etc/rc.d/rc.cups start and as far as i understand it the printer can be controlled via at gui
web page at http://localhost:631

now then from the menu system>printing a smal gui comes up including a tab server>connect

there is a choice on mine /var/run/cups/cups.sock or localhost -whats the difference

I thought http://localhost:631 is THE local host. My question is is the system allowing me to connect to my printer via two sockets and two daemons
 
Old 05-21-2012, 06:16 AM   #9
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

Rep: Reputation: Disabled
In the file /etc/cups/cupsd.conf you'll see those two lines (you have to be root to look at it) :
Code:
Listen localhost:631
Listen /var/run/cups/cups.sock
If I understand well a cups client can thus access the server either through an internet connection (e.g. firefox) or through a unix socket (e.g. the "lp" and "lpd" commands) for more flexibility. But AFAIK there is only one daemon running as "ps -AF|grep cups" will show you.
To know more : "man cupsd" and related man pages.


PS The GUI you speak about should be DE specific. Which one do you use ? (KDE, XFCE,...)

Last edited by Didier Spaier; 05-21-2012 at 06:17 AM.
 
Old 05-22-2012, 07:26 AM   #10
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
ok thanks first few lines of /etc/cups/cupsd.conf

LogLevel warn
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.

Found another printer related issue
i'm using xfce and XSane is in sub menu of graphics
As normal logged in user using xfce menu, Xsane gives scanning for devices ..none found
However from konsole
# xsane launches gui no problem

My user name is andrew, in /etc/group there was an entry for scanner which was:
scanner:x:93:

tried usermod -a -G scanner andrew
and entry then became:
scanner:x:93:andrew
however xsane will still not launch from xfce as normal user
did more reading and permission of device file mentioned and something about
/etc/rc.d/rc.udev force-restart to update.
i don't know the device file to change permission off?

Last edited by captain_sensible; 05-22-2012 at 07:27 AM. Reason: to make post clearer
 
Old 05-22-2012, 09:56 AM   #11
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
You will need to log out and log in for the change in group assignment to take effect.

Brian
 
Old 05-22-2012, 01:34 PM   #12
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
logged out, rebooted, shutdown and started still doesn't work from xfce menu, also $xsane
fails, but works for #xsane
 
Old 05-22-2012, 06:29 PM   #13
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by captain_sensible View Post
ok thanks first few lines of /etc/cups/cupsd.conf


i don't know the device file to change permission off?
Assuming that it is a usb-attached printer/scanner, the "lsusb" command should show the bus and device. Say it is device 2 on bus 2, then "ls -l /dev/usbdev2.2" should show you ownership and permission information. This gets set by udev based on the information in the file /lib/udev/rules.d/80-libsane.rules, so any manual change to permissions would get reset every time the device is reconnected or switched off and on (or after a reboot). If your scanner is not there, you can add it using the vendorid and productid displayed by lsusb.

Brian
 
Old 05-23-2012, 03:14 PM   #14
captain_sensible
Member
 
Registered: Apr 2010
Posts: 352

Original Poster
Rep: Reputation: 145Reputation: 145
BCarey thanks worked great.. i was about to post that my scanner ,and printer are one and the same i.e the same all in one unit. Also that printing from this all-in-one usb coonected unit say from libreoffice3 is no problem,so why should scanning be an issue.

Anyway followed your suggestion.
lsusb gave :
Bus 001 Device 002: ID 03f0:8911 Hewlett-Packard
Bus 003 Device 002: ID 15d9:0a4c Trust International B.V. USB+PS/2 Optical Mouse

I opened up the rules using
vim /lib/udev/rules.d/80-libsane.rules
and added an entry basically copying format of other rules but adding 03f0:8911 thus:

#I put in next few lines for deskjet 1050a
ATTRS{idVendor}=="03f0",ATTRS{idProduct}=="8911"MODE="0664",GROUP="scanner",ENV{libsane_matched}="ye s"

shutdown and restarted, xsane now works from xfce menu logged in as normal user!

cheers
 
  


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
slackpkg help justwantin Slackware 4 05-31-2014 05:05 AM
13.0 to 13.1 via Slackpkg - is it possible? BobNutfield Slackware 17 07-19-2010 10:22 PM
slackpkg bookie Linux - Newbie 22 05-31-2007 09:49 AM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM
Slackpkg? vharishankar Slackware 13 08-04-2006 09:10 PM

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

All times are GMT -5. The time now is 09:42 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
Open Source Consulting | Domain Registration