Printers: the case of brother hl2170w
- francois
- Contributor
- Posts: 6497
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Printers: the case of brother hl2170w
Non satisfied to have my HP laserjet 3030 working on Porteus v 1.0 32-bit with Wread's strategy (many thanks to him):
http://porteus.org/forum/viewtopic.php?f=51&t=457
I am working on the case of the printer brother hl2170w. Essentially, I am following the same path as I did under slax:
http://www.slax.org/forum.php?action=vi ... ntID=33379
However following Guest instructions from post 2, after downloading the two necessary printer drivers from:
http://welcome.solutions.brother.com/bs ... l#HL-2170W
- LPR: brhl2170wlpr-2.0.2-1.i386.rpm
- cupswrapper:cupswrapperHL2170W-2.0.2-1.i386.rpm
1) I could not get them to be converted in proper xzm (lzma2) modules using the right click rpm2xzm command: 'Some error occured while activating the module' message appears.
2) Downloading slax module rpm2lzm and converting it to xzm module, I get:
bash-4.1# rpm2lzm brhl2170wlpr-2.0.2-1.i386.rpm brhl2170wlpr-2.0.2-1.i386.lzm
Extracting brhl2170wlpr-2.0.2-1.i386.rpm to temp folder...
Creating module: brhl2170wlpr-2.0.2-1.i386.lzm
/usr/bin/rpm2lzm: line 29: dir2lzm: command not found
Cleaning up...
bash-4.1#
Someone has a cue to what is going on?
If this first strategy does not work for me I will try to rebuild Gusterrapolis' print solution:
http://www.slax.org/modules.php?action=detail&id=26
http://porteus.org/forum/viewtopic.php?f=51&t=457
I am working on the case of the printer brother hl2170w. Essentially, I am following the same path as I did under slax:
http://www.slax.org/forum.php?action=vi ... ntID=33379
However following Guest instructions from post 2, after downloading the two necessary printer drivers from:
http://welcome.solutions.brother.com/bs ... l#HL-2170W
- LPR: brhl2170wlpr-2.0.2-1.i386.rpm
- cupswrapper:cupswrapperHL2170W-2.0.2-1.i386.rpm
1) I could not get them to be converted in proper xzm (lzma2) modules using the right click rpm2xzm command: 'Some error occured while activating the module' message appears.
2) Downloading slax module rpm2lzm and converting it to xzm module, I get:
bash-4.1# rpm2lzm brhl2170wlpr-2.0.2-1.i386.rpm brhl2170wlpr-2.0.2-1.i386.lzm
Extracting brhl2170wlpr-2.0.2-1.i386.rpm to temp folder...
Creating module: brhl2170wlpr-2.0.2-1.i386.lzm
/usr/bin/rpm2lzm: line 29: dir2lzm: command not found
Cleaning up...
bash-4.1#
Someone has a cue to what is going on?
If this first strategy does not work for me I will try to rebuild Gusterrapolis' print solution:
http://www.slax.org/modules.php?action=detail&id=26
Last edited by francois on 24 Jul 2011, 19:58, edited 2 times in total.
Prendre son temps, profiter de celui qui passe.
Re: Printers: the case of brother hl2170w
Easy,
1)
Open the script /usr/bin/rpm2lzm with Kwrite
2)
Remplace every dir2lzm by dir2xzm
3)
Re-execute the script.
Enjoy!
1)
Open the script /usr/bin/rpm2lzm with Kwrite
2)
Remplace every dir2lzm by dir2xzm
3)
Re-execute the script.
Enjoy!
NjVFQzY2Rg==
- francois
- Contributor
- Posts: 6497
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Printers: the case of brother hl2170w
@Hamza:
Your tip is great. And I did not express myself right. I want rpm2lzm to yield a lzm in a first step, then convert it to xzm. Why do I get the error message:
'/usr/bin/rpm2lzm: line 29: dir2lzm: command not found'
I will try your trick anyway as I understand that you want me to create a rpm2xzm script.
Posted after 5 minutes 31 second:
In the rpm2lzm script, there is only one occurence of rpm2lzm and it is on the second line of the script:
# rpm2xzm by Bryan Elliott
Your tip is great. And I did not express myself right. I want rpm2lzm to yield a lzm in a first step, then convert it to xzm. Why do I get the error message:
'/usr/bin/rpm2lzm: line 29: dir2lzm: command not found'
I will try your trick anyway as I understand that you want me to create a rpm2xzm script.
Posted after 5 minutes 31 second:
In the rpm2lzm script, there is only one occurence of rpm2lzm and it is on the second line of the script:
# rpm2xzm by Bryan Elliott
Prendre son temps, profiter de celui qui passe.
Re: Printers: the case of brother hl2170w
There is a problem.
I did not found any "rpm2lzm" in the both versions.
Is it possible to post it with "code" TAG ?
I did not found any "rpm2lzm" in the both versions.
Is it possible to post it with "code" TAG ?
NjVFQzY2Rg==
- francois
- Contributor
- Posts: 6497
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Printers: the case of brother hl2170w
However, from your comment I understand that all I should do is replacing dir2lzm by dir2xzm and save the script as rpm2xzm. Thus I think I have found a small bug. Maybe we should check deb2lzm too.
Prendre son temps, profiter de celui qui passe.
Re: Printers: the case of brother hl2170w
Yes, because, every other changes have been done in liblinuxlive and dir2xzm by the devs.
NjVFQzY2Rg==
- francois
- Contributor
- Posts: 6497
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Printers: the case of brother hl2170w
All there is left is trying rpm2xzm to see if it works right.
Posted after 17 minutes 2 seconds:
No luck:I get the same error: 'Some error occured while activating the module' message appears.
On the brother site, I will try the .deb files instead.
Posted after 4 minutes 42 seconds:
Trying to convert the same deb drivers with a right click of the mouse yields the same error:
'Some error occured while activating the module'
What could be the next step?
Posted after 17 minutes 2 seconds:
No luck:
Code: Select all
bash-4.1# rpm2xzm cupswrapperHL2170W-2.0.2-1.i386.rpm cupswrapperHL2170W-2.0.2-1.i386.xzm
Extracting cupswrapperHL2170W-2.0.2-1.i386.rpm to temp folder...
Creating module: cupswrapperHL2170W-2.0.2-1.i386.xzm
Parallel mksquashfs: Using 1 processor
Creating 4.0 filesystem on cupswrapperHL2170W-2.0.2-1.i386.xzm, block size 262144.
[===================================================================|] 2/2 100%
Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
compressed data, compressed metadata, compressed fragments, compressed xattrs
duplicates are removed
Filesystem size 9.85 Kbytes (0.01 Mbytes)
27.91% of uncompressed filesystem size (35.28 Kbytes)
Inode table size 142 bytes (0.14 Kbytes)
62.83% of uncompressed inode table size (226 bytes)
Directory table size 166 bytes (0.16 Kbytes)
95.95% of uncompressed directory table size (173 bytes)
Number of duplicate files found 0
Number of inodes 7
Number of files 2
Number of fragments 1
Number of symbolic links 0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 5
Number of ids (unique uids + gids) 1
Number of uids 1
root (0)
Number of gids 1
root (0)
Cleaning up...
bash-4.1#
On the brother site, I will try the .deb files instead.
Posted after 4 minutes 42 seconds:
Trying to convert the same deb drivers with a right click of the mouse yields the same error:
'Some error occured while activating the module'
What could be the next step?
Prendre son temps, profiter de celui qui passe.
Re: Printers: the case of brother hl2170w
Is it possible to post an archive with all files and post it somewhere ?
NjVFQzY2Rg==
- francois
- Contributor
- Posts: 6497
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Printers: the case of brother hl2170w
In fact, as mentioned above, the files are at brother.com link:
http://welcome.solutions.brother.com/bs ... l#HL-2170W
There you can find the four LPR and CUPSWARAPPER files for the hl 2170w printer. Remember that I am working on Porteus v 1.0 32-bit.
Unless you are talking about some other files.
http://welcome.solutions.brother.com/bs ... l#HL-2170W
There you can find the four LPR and CUPSWARAPPER files for the hl 2170w printer. Remember that I am working on Porteus v 1.0 32-bit.
Unless you are talking about some other files.
Prendre son temps, profiter de celui qui passe.
- francois
- Contributor
- Posts: 6497
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Printers: the case of brother hl2170w
Yes. But maybe you missed the information. Just climb three post before:
Posted after 4 minutes 42 seconds:
Trying to convert the same deb drivers with a right click of the mouse yields the same error:
'Some error occured while activating the module'
Prendre son temps, profiter de celui qui passe.
Re: Printers: the case of brother hl2170w
Sorry.
Did you checked if there is a kernel module in your final module ?
Did you checked if there is a kernel module in your final module ?
NjVFQzY2Rg==
- francois
- Contributor
- Posts: 6497
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Printers: the case of brother hl2170w
Excuse my ignorance, but how would it make a difference? And how do I do that? Has this to do with crippled sources?
Prendre son temps, profiter de celui qui passe.
Re: Printers: the case of brother hl2170w
It is a device and it need a driver and the driver are stored inside kernel module folder.
NjVFQzY2Rg==
- francois
- Contributor
- Posts: 6497
- Joined: 28 Dec 2010, 14:25
- Distribution: xfce plank porteus nemesis
- Location: Le printemps, le printemps, le printemps... ... l'hiver s'essoufle.
Re: Printers: the case of brother hl2170w
How do I do that? Has this to do with crippled sources?
Prendre son temps, profiter de celui qui passe.