Slackware This Forum is for the discussion of Slackware Linux.
|
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-25-2013, 04:41 PM
|
#16
|
|
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,756
|
I initially tried using wireless with my Brother, and it worked, but I had problems with getting the connection re-established after the router had been power cycled. I suspect that this is my hardware. I have found that if my router (set to use WPA2 only) receives an initial attempted connection using WPA, it then refuses to accept a subsequent WPA2 connection. YMMV.
People who persecute forests need to be taught/forced to use virtual pdf printers.
|
|
|
|
02-25-2013, 04:55 PM
|
#17
|
|
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,756
|
Quote:
The only thing left I want to try is this:
#brsaneconfig4 -a name=SCANNER model=HL-2280DW ip=
|
If you are using USB, you do not want the network scanning entry
On scanning, a few things to check.
Is your user a member of the lp group? (Your user also used to need to be a member of the scanner group, but I believe that is obseleted.) Perhaps try as root, in case there is a permissions isssue.
Does 'scanimage -L" show the scanner?
Is there an entry at the end of /etc/sane.d/dll.conf for your device? (e.g. brother2, brother3, brother4)
How did you actually install the drivers?
|
|
|
|
02-25-2013, 05:10 PM
|
#18
|
|
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,756
|
Just had another thought. With my device the scanning software (xsane, skanlite) defaulted to using '24bit Color[Fast]' as the scan mode. This did not work for me. Use '24bit Color' instead.
Last edited by allend; 02-25-2013 at 05:13 PM.
|
|
|
|
02-25-2013, 08:50 PM
|
#19
|
|
Member
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. What else is there?
Posts: 135
Original Poster
Rep:
|
Quote:
Originally Posted by allend
If you are using USB, you do not want the network scanning entry
On scanning, a few things to check.
Is your user a member of the lp group? (Your user also used to need to be a member of the scanner group, but I believe that is obseleted.) Perhaps try as root, in case there is a permissions isssue.
Does 'scanimage -L" show the scanner?
Is there an entry at the end of /etc/sane.d/dll.conf for your device? (e.g. brother2, brother3, brother4)
How did you actually install the drivers?
|
Yes, I'm a member of lp and scanner.
#scanimage -L shows:
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate).
Nothing in /etc/sane.d/dll.conf for brother anything.
I downloaded the brscan-skey-0.2.4 and brscan4-o.4.1 rpm's, did src2pkg on each one then did installpkg on each one.
Okay, your last question made me go back and look at what I'd done. Apparently changing them to slackware packages screws something up, so, I installed them like plain ol' rpm's with #rpm -ivh --nodeps blah.rpm and now I have a scanner, although xsane froze up on me when I clicked 'preview'. Skanlite seemd to work okay though, so I'll mess with it some more and see what's going on.
Thanks a million allend and everyone else!
|
|
|
|
02-25-2013, 09:00 PM
|
#20
|
|
Member
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. What else is there?
Posts: 135
Original Poster
Rep:
|
Allright, I don't know why xsane froze a little bit ago, but it worked this time. Looks like I've got a nice printer/scanner going for me now. Y'all are the best and I sure do appreciate the time you spent helping me. Thanks again.
|
|
|
|
02-25-2013, 11:57 PM
|
#21
|
|
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,756
|
Quote:
|
I installed them like plain ol' rpm's with #rpm -ivh --nodeps blah.rpm
|
I had hoped you would have used the technique from the SlackDocs page. I have been wanting a guinea pig for that!
Just goes to show there is more than one way to skin a cat. Glad you got it working!
|
|
|
|
02-26-2013, 06:45 AM
|
#22
|
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,199
|
Quote:
Originally Posted by knudfl
Debian package to tgz :
Code:
$ ar -x <package.deb> && mv data.tar.gz <name>.tgz
|
You could do it in one step with either:
Code:
$ ar p packagename.deb data.tar.gz > packagename.tar.gz
or:
Code:
$ bsdtar xOf packagename.deb data.tar.gz > packagename.tar.gz
(Note: All three of the above have the issue that data.tar could and often is, compressed with different methods however!)
It is no harder with rpms, just use bsdtar (provided by libarchive, which many apps depend on) to convert the internal cpio into a gzip compressed tar:
Code:
$ bsdtar czf packagename.tgz @packagename.rpm
Whilst these types of tricks are kinda neat and fun they are not particularly good because the internal formatting of the tar package with regards to directory naming will be wrong, i.e. './' is found in front of all subdirectories. Slackware uses GNU Tar 1.13 in its package tools, hence the difference in formating. A further issue is that tar 'packages' made with methods other than makepkg may contain symlinks, which is not allowed within Slackware packages.
So really you shouldn't do these kinds of tricks at all but rather open the packages and then recreate the out tar contained again with makepkg. By the time you have gone to this level of effort you might as well write a simple SlackBuild or just use a dedicated tool like src2pkg.
Quote:
Originally Posted by dugan
RPMs can be installed directly. Just use Slackware's include RPM with --nodeps.
|
I have done this occasionally but it is pretty ugly and generally not recommended. At the very least the user should inspect the rpm post install/uninstall scripts first to make sure they don't do anything nasty!
Last edited by ruario; 02-26-2013 at 06:47 AM.
Reason: added a missing not
|
|
|
|
02-26-2013, 06:54 AM
|
#23
|
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,199
|
Quote:
Originally Posted by ruario
At the very least the user should inspect the rpm post install/uninstall scripts first to make sure they don't do anything nasty!
|
You can do this as follows:
Code:
rpm -q --scripts -p packagename.rpm
Actually I would also look at files that would be installed as well to make sure the rpm doesn't overwrite anything it shouldn't!
Code:
rpm -qlp packagename.rpm
Of course, by the time you have done a proper inspection and satisfied yourself that this won't blow up in your face you could have created a real Slackware package, so I'll again stress that this is generally a bad idea in any case.
|
|
|
|
02-26-2013, 06:56 AM
|
#24
|
|
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,756
|
Quote:
|
So really you shouldn't do these kinds of tricks at all but rather open the packages and then recreate the out tar contained again with makepkg. By the time you have gone to this level of effort you might as well write a simple SlackBuild or just use a dedicated tool like src2pkg.
|
Which is why I suggest using 'rpm2txz', an existing tool in Slackware.
I also agree that installing rpm's directly is not good practice. Far better to convert to a native Slackware package and install that. Then it is easy to uninstall if required.
Quote:
|
At the very least the user should inspect the rpm post install/uninstall scripts first to make sure they don't do anything nasty!
|
A point made in the 'rpm2txz' script and emphasised on the SlackDocs page.
|
|
|
|
02-26-2013, 07:37 AM
|
#25
|
|
Senior Member
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,199
|
Quote:
Originally Posted by allend
Which is why I suggest using 'rpm2txz', an existing tool in Slackware.
|
Sure, I just picked src2pkg because it is a bit for powerful, e.g. also handling debs and because it has so many fans here at LQ but I'm not disagreeing with you and rpm2txz is certainly far better than installing a random tar that was not designed for Slackware.
Quote:
Originally Posted by allend
I also agree that installing rpm's directly is not good practice. Far better to convert to a native Slackware package and install that. Then it is easy to uninstall if required.
|
Indeed, for my own part I generally don't bother with rpm2txz or src2pkg but rather knock up a quick dedicated SlackBuild for that application I want to convert. This ensures the internal layout is exactly as it should be (e.g. usr/{man,doc} rather than /usr/share/{doc,man}) and the slack-desc is informative and useful to me later. SlackBuilds for deb/rpm package conversion are generally pretty easy to knock out quickly. On the other hand I certainly understand the convenience of tools like rpm2txz and src2pkg for quick conversion and get why they are so popular.
|
|
|
|
02-26-2013, 11:48 AM
|
#26
|
|
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,592
|
Uh, src2pkg does a lot of checks and corrections on the content before creating the archive. None of the other tools mentioned here do that. I'm just now working on a new tool which duplicates the content-checking steps of src2pkg -but without actually making any corrections.
|
|
|
|
02-26-2013, 03:10 PM
|
#27
|
|
Member
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. What else is there?
Posts: 135
Original Poster
Rep:
|
I tried src2pkg with the rpm's and installed those packages and they didn't work.
@allend - I *thought* I'd done that on the slackdocs site, but could have missed it trying all the other suggestions. I'd *much* rather have prefered that a slackware package been installed than have done the rpm thing. Maybe there's a way to 'uninstall' that rpm and try the pkg2txz thing?
<later>...I just tried rpm -e brscan4xxx.rpm and I got back that it's not installed. Didn't think to try a scan right then and instead did the rpm2txz on the rpm and installed that and my scanner is still(?) working, but I can't say if it's from the installed rpm or from the installed txz. 
Last edited by irgunII; 02-26-2013 at 03:22 PM.
|
|
|
|
02-26-2013, 04:14 PM
|
#28
|
|
Member
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. What else is there?
Posts: 135
Original Poster
Rep:
|
@w1k0 - Which GNU Freefont should I download and install, the ttf, otf, sfd?
Next, how should I use these in your test? Would using kate be okay by just changing the font it uses to the Freefont and printing your test?
Let me know and send the test too.
|
|
|
|
02-26-2013, 04:45 PM
|
#29
|
|
Senior Member
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,756
|
Quote:
|
Uh, src2pkg does a lot of checks and corrections on the content before creating the archive. None of the other tools mentioned here do that.
|
For the specific task at hand, i.e. installing driver packages from Brother, then rpm2txz is OK for use when called with:
Code:
-S extracts the install scripts to be executed on package installation
(only pre-install and post-install scripts used)
USE WITH CAUTION!
-n name the output package using the rpm's metadata
-d attempt a wellformed slack-desc from the rpm meta data
-c reset all directory permissions to 755 and ownership to root:root.
The Brother rpm packages can be successfully converted using this technique, but the user should check the resulting doinst scripts in the packages.
Another thing that none of these techniques will do is create a symlink (ln -s /etc/rc.d/rc.cups /etc/init.d/cups). This allows the Brother install scripts to stop and start the CUPS daemon during the package install.
Quote:
|
instead did the rpm2txz on the rpm and installed that and my scanner is still(?) working, but I can't say if it's from the installed rpm or from the installed txz.
|
Installing the package will have overwritten what was already installed.
|
|
|
|
02-26-2013, 07:08 PM
|
#30
|
|
Senior Member
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,232
Rep: 
|
irgunII,
the problem that I encountered is complicated so I described it in the separate thread: Brother laser printer and GNU FreeFont.
Your printer isn’t PostScript one but I think it’s good idea to test GNU FreeFont using some non-PostScript laser printer made by Brother as well. So if you’re still willing to perform the test I’m inviting you to the mentioned thread.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:13 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|