LinuxQuestions.org
Visit the LQ Articles and Editorials section
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
 
LinkBack Search this Thread
Old 02-25-2013, 04:41 PM   #16
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,295

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803

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.
 
Old 02-25-2013, 04:55 PM   #17
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,295

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
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?
 
Old 02-25-2013, 05:10 PM   #18
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,295

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
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.
 
Old 02-25-2013, 08:50 PM   #19
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. What else is there?
Posts: 304

Original Poster
Rep: Reputation: 40
Quote:
Originally Posted by allend View Post
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!
 
Old 02-25-2013, 09:00 PM   #20
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. What else is there?
Posts: 304

Original Poster
Rep: Reputation: 40
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.
 
Old 02-25-2013, 11:57 PM   #21
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,295

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
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!
 
Old 02-26-2013, 06:45 AM   #22
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,652

Rep: Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736
Quote:
Originally Posted by knudfl View Post
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 View Post
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
 
Old 02-26-2013, 06:54 AM   #23
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,652

Rep: Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736
Quote:
Originally Posted by ruario View Post
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.
 
Old 02-26-2013, 06:56 AM   #24
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,295

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
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.
 
Old 02-26-2013, 07:37 AM   #25
ruario
Senior Member
 
Registered: Jan 2011
Location: Oslo, Norway
Distribution: Slackware
Posts: 1,652

Rep: Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736Reputation: 736
Quote:
Originally Posted by allend View Post
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 View Post
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.
 
Old 02-26-2013, 11:48 AM   #26
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,727

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
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.
 
Old 02-26-2013, 03:10 PM   #27
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. What else is there?
Posts: 304

Original Poster
Rep: Reputation: 40
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.
 
Old 02-26-2013, 04:14 PM   #28
irgunII
Member
 
Registered: Jan 2012
Location: Directly above the center of the earth
Distribution: Slackware. What else is there?
Posts: 304

Original Poster
Rep: Reputation: 40
@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.
 
Old 02-26-2013, 04:45 PM   #29
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,295

Rep: Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803Reputation: 803
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.
 
Old 02-26-2013, 07:08 PM   #30
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

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


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
want to convert AVI to /DivX; Slackware 12.2 JosephS Linux - Software 11 04-06-2009 09:37 AM
Slackware Convert....help? barn63 Slackware 3 08-26-2007 12:06 PM
Slackware convert alienmagic Slackware 23 05-14-2006 09:51 PM
how can I convert this file to slackware Paxmaster Linux - Software 6 07-05-2004 01:53 AM
Help me convert fully to slackware ;-) rock_ya_baby Slackware 1 05-22-2004 02:36 PM


All times are GMT -5. The time now is 03:07 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration