LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-22-2011, 09:11 PM   #1
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Rep: Reputation: 3
installation of a brother hl2170w from brother


I have tried to install a brother hl2170w without success under Porteus a derivative of slax.

Here is the procedure that I have followed:

1) downloaded and converted them into slackware packages with rpm2txzthe two necessary printer drivers:
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

2) downloaded and installed additional packages:
ghostscript-9.00-i486-2
ghostscript-fonts-std-8.11-noarch-1
gutenprint-5.2.6-i486-1

3) edited file:
/usr/local/Brother/cupswrapper/cupswrapperHL2170W-2.0.2

changed this line:
port=usb:/dev/usb/lp0

for usb :
port=usb://Brother/HL-2170W%20series

Within kword HL-2170W is idle. Trying to print a job a message box opens and closes fast, but no printing. From http://localhost:631/printers/HL2170W, using the maintenance dialog box to get a print test page, there is no printing neither.

However, I get the following error message:
The page your are trying to view is the result of posted form data. If you resend the data, any action the form carried out (such as search or online purchase) will be repeated.

What do you suggest?
 
Old 07-22-2011, 10:10 PM   #2
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
You must convert the rpms with alien. See http://welcome.solutions.brother.com...faq_prn.html#1. (The -c and -t options are critical.)

Brian
 
Old 07-23-2011, 05:04 AM   #3
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
@Brian:
Thanks for your fast reply.

I did installed alien, I get the following error message:
bash-4.1# alien -t -c brhl2170wlpr-2.0.2-1.i386.rpm
error: brhl2170wlpr-2.0.2-1.i386.rpm: Header SHA1 digest: BAD
error: brhl2170wlpr-2.0.2-1.i386.rpm: not an rpm package (or package manifest)
Error executing "LANG=C rpm -qp --queryformat %{NAME} brhl2170wlpr-2.0.2-1.i386.rpm": at /usr/lib/perl5/site_perl/5.10.0/Alien/Package.pm line 482.
bash-4.1#
 
Old 07-23-2011, 09:15 AM   #4
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
It looks like the rpm file is corrupted. Try downloading it again.

Brian
 
Old 07-23-2011, 11:55 AM   #5
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 996

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
Try printing directly to the device.

su -c 'chmod gou+rwx /dev/usb/lp0'

gs -dNOPAUSE -dSAFER -sDEVICE=hl1250 -sOutputFile=/dev/usb/lp0 \
-dDOINTERPOLATE -dGraphicsAlphaBits=4 -r600 file.ps -c quit

My Brother HL2140 works fine with the above command. Writing to the device has fewer things that can go wrong than using Brother's software and CUPS.
Ed
 
1 members found this post helpful.
Old 07-24-2011, 02:09 AM   #6
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
@Ed:
Thanks a lot for giving some help. Here is what I get using your strategy:

bash-4.1# su -c 'chmod gou+rwx /dev/usb/lp0'
bash-4.1# gs -dNOPAUSE -dSAFER -sDEVICE=hl1250 -sOutputFile=/dev/usb/lp0 \
> -dDOINTERPOLATE -dGraphicsAlphaBits=4 -r600 file.ps -c quit
GPL Ghostscript 9.01 (2011-02-07)
Copyright (C) 2010 Artifex Software, Inc. All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Error: /undefinedfilename in (file.ps)
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push
Dictionary stack:
--dict:1159/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 9.01: Unrecoverable error, exit code 1
bash-4.1#
 
Old 07-24-2011, 08:07 AM   #7
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by BCarey View Post
It looks like the rpm file is corrupted. Try downloading it again.

Brian
Meanwhile, I have installed gutenprint-5.2.7 along cups. I was able to install the brhl2170w thru cups. Do I persevere trying to convert rpm's?

I still get the error message:
The page your are trying to view is the result of posted form data. If you resend the data, any action the form carried out (such as search or online purchase) will be repeated.

Last edited by francois.e; 07-24-2011 at 02:54 PM. Reason: not solved
 
Old 07-24-2011, 09:02 AM   #8
bnguyen
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 125

Rep: Reputation: 33
Here's what I did to make my HL2140 works on Slackware 13.0:

1- Convert brhl2140lpr and cupswrapperHL2140 to .tgz using rpm2tgz, then install them using installpkg.

2- Create a symlink for cups in /etc/init.d
ln -s /etc/rc.d/rc.cups /etc/init.d/cups

3- Run the following script (as root):
sh /usr/local/Brother/cupswrapper/cupswrapperHL2140-2.0.2

Maybe similar steps would be applicable for yours.
 
Old 07-24-2011, 09:05 AM   #9
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 996

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
The Ghostscript error looks like the input file was not valid Postscript. You first need to save the printout file as Postscript.

Since the printer is now working, you're done!

Ghostscript can already drive the HL-21xx printers without the use of Brother's software (which I suspect amounts to configuration files for a few Linux distributions).
Ed
 
Old 07-24-2011, 09:21 PM   #10
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by bnguyen View Post

...
3- Run the following script (as root):
sh /usr/local/Brother/cupswrapper/cupswrapperHL2140-2.0.2

Maybe similar steps would be applicable for yours.
I imagine that you meant:
/usr/local/Brother/cupswrapper/cupswrapperHL2170W-2.0.2 -i

Alas it did not worked.

Thanks.
 
Old 07-24-2011, 09:29 PM   #11
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by EdGr View Post
1) The Ghostscript error looks like the input file was not valid Postscript. You first need to save the printout file as Postscript.

2) Since the printer is now working, you're done!

3) Ghostscript can already drive the HL-21xx printers without the use of Brother's software (which I suspect amounts to configuration files for a few Linux distributions).
Ed
1) What was missing in the syntax so that the file printout could be saved as Postscript. I just copy/paste your suggestion without reference to any concrete file that I had on my computer.

2) The printer still does not print. Maybe, I did not express myself well. There is no printing at all. I wonder if cups was well installed in the first place on that distribution of mine. Is there any command to verify that?

3) With Gutenprint installed at least the brother manufacturer is offered as a choice to install the printer. This is an improvement over my former situation within cups. However, the printer does not print.

Any other suggestion. Maybe I should remove and reinstall cups a new. What do you think^
 
Old 07-24-2011, 11:25 PM   #12
bnguyen
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 125

Rep: Reputation: 33
Just to be sure: Did you start cups (sh /etc/rc.d/rc.cups start) before you do printing?
 
Old 07-25-2011, 07:39 AM   #13
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 996

Rep: Reputation: 469Reputation: 469Reputation: 469Reputation: 469Reputation: 469
In the app that you're printing from, select "Print to file", set the format to Postscript, and save "file.ps". Then, use the Ghostscript command above.
Ed
 
Old 07-25-2011, 08:05 AM   #14
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
Francois
I have the same printer and I ended up using one of the other printer drivers (I think it was the HL1270, can't remember and it my laptop in front of me) and everything worked out fine.

Try one of the other brother CUPS drivers first since it worked exactly the same for me.
 
Old 07-26-2011, 06:21 PM   #15
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
Quote:
Originally Posted by francois.e View Post
Meanwhile, I have installed gutenprint-5.2.7 along cups. I was able to install the brhl2170w thru cups. Do I persevere trying to convert rpm's?

I still get the error message:
The page your are trying to view is the result of posted form data. If you resend the data, any action the form carried out (such as search or online purchase) will be repeated.
You should try again to convert. I just tested it and it worked fine, you probably just have a corrupted file. You will also need the cupswrapper.

Brian
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] CUPS no longer printing with Brother HL2170W laser printer lpallard Linux - Software 8 06-26-2011 04:45 AM
Brother HL2140 - installation Rud Linux - Hardware 13 12-16-2009 04:03 AM
Brother MFC-5100c Installation General Linux - Hardware 4 01-29-2008 08:59 AM
Brother DCP-110C Printer/Scanner Installation Issues Maxwell Rain Mandriva 4 08-08-2005 03:09 PM
Brother Printer/Scanner DCP-110C Installation Issues Maxwell Rain Linux - Hardware 1 10-31-2004 05:17 AM

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

All times are GMT -5. The time now is 05:53 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