LinuxQuestions.org
Review your favorite Linux distribution.
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 07-27-2011, 09:01 AM   #16
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3

Your replies are appreciated. As soon as I get time, I will try your suggestions.

Thanks.
 
Old 09-16-2011, 08:34 PM   #17
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
I appreciate the contribution of you all. I did not solve that printer issue yet. Without enough time I just put it aside. I will try your solutions thoroughly one at a time.

I work in root mode. I have a print.ps file. This file is in the /root folder. I am working from the /root folder to issue the commands.

I am working porteus (slax derivative). Here is the output I get with Ed solution :

Quote:
Originally Posted by EdGr View Post
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
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.00 (2010-09-14)
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:1158/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 9.00: Unrecoverable error, exit code 1
bash-4.1#

Last edited by francois.e; 09-16-2011 at 10:11 PM. Reason: rephrasing and making it more accurate
 
Old 09-17-2011, 02:03 AM   #18
kikinovak
MLED Founder
 
Registered: Jun 2011
Location: Montpezat (South France)
Distribution: CentOS, OpenSUSE
Posts: 3,453

Rep: Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154Reputation: 2154
Hi,

IIRC, Porteus is a x86_64 derivative of Slackware. To get the Brother printer drivers to work, you have to install Eric Hameleers' multilib packages. The base multilib packages (glibc, ...) are sufficient.

I have a Brother HL-2030 laser printer connected to a Slackware64 server. I downloaded the two RPMs from the Brother website, converted them with rpm2tgz and installed them using installpkg. I took a peek at the cupswrapper script in /usr/local/Brother/cupswrapper and created a symlink for the right CUPS location.

Code:
# ln -s /etc/rc.d/rc.cups /etc/init.d/cups
Then I ran the cupswrapper script

Code:
# ./cupswrapper
After this operation, the printer must show :

Code:
# lpstat -t
Forget the Gutenprint drivers. They don't work with this printer.
 
Old 09-17-2011, 03:55 PM   #19
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 999

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Hi Francois,
You need to change 'file.ps' to 'print.ps' in the above command line. Ghostscript's rather cryptic error message is saying that it can't open the file.

The Ghostscript command should work. Ghostscript must work in order for any of the other solutions to work.
Ed
 
Old 09-17-2011, 05:17 PM   #20
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
I agree with kikinovak http://www.linuxquestions.org/questi...ml#post4474216

I have two Brother printers installed using the Brother packages and they did not work until I installed multilib.
 
Old 09-18-2011, 06:23 PM   #21
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
@EdGr:

The procedure you proposed did work. As you wrote, all I had to do was to change file.ps for print.ps. From here, do you have some suggestions to refine the process?

1) I imagine I could build some kind of script to make the process more efficient.
2) I used to work with openoffice (ver. 3.2.1). I do not see .ps in the file format. Which word processor do you use?
3) Any other suggestion?

@kikinovak and arubin:
There are two versions of Porteus. I am working on Porteus v 1.0 32-bit that has KDE-3.5.12 Trinity. Thus multilib should not be missing. But your procedure introduce something I did not try yet. So I will try it soon.

Thanks.

Last edited by francois.e; 09-18-2011 at 07:22 PM. Reason: missing word
 
Old 09-18-2011, 08:29 PM   #22
EdGr
Member
 
Registered: Dec 2010
Location: California, USA
Distribution: I run my own OS
Posts: 999

Rep: Reputation: 471Reputation: 471Reputation: 471Reputation: 471Reputation: 471
Quote:
Originally Posted by francois.e View Post
@EdGr:

The procedure you proposed did work. As you wrote, all I had to do was to change file.ps for print.ps. From here, do you have some suggestions to refine the process?

1) I imagine I could build some kind of script to make the process more efficient.
2) I used to work with openoffice (ver. 3.2.1). I do not see .ps in the file format. Which word processor do you use?
3) Any other suggestion?
That's good. I use a script for the Ghostscript command. Ghostscript doesn't need run as root as long as /dev/usb/lp0 is world writable.

I use Kword, but pretty much all Unix applications have an option to "Print to Postscript file".

Now that the printer works, you may want to set up CUPS to have a print spooler. That may require Brother's drivers. I didn't do that because I print so infrequently that writing a script was less work.
Ed
 
Old 09-20-2011, 09:09 PM   #23
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
@kikinovak:

Finally, I did install porteus 64 bit on a second machine. I also installed from the brother site the following drivers transformed with rpm2xzm into slackware equivalents:
-brhl2170wlpr-2.0.2-1.i386.rpm
-cupswrapperHL2170W-2.0.2-1.i386.rpm

I also installed the multilib equivalent of porteus called compat.xzm permitting 32 bit packages to be run under 64 bit.


A) Following your instructions:
4.1# ln -s /etc/rc.d/rc.cups /etc/init.d/cups
bash-4.1# ./cupswrapper
bash: ./cupswrapper: No such file or directory
bash-4.1# lpstat -t
scheduler is not running
no system default destination
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused
lpstat: Connection refused

B) According to another thread, see:
http://www.slax.org/forum.php?action...parentID=33379

I did edit file: /usr/local/Brother/cupswrapper/cupswrapperHL2170W-2.0.2
changing: port=usb:/dev/usb/lp0
for port=usb://Brother/HL-2170W%20series

Then I got the following output:
4.1# /usr/local/Brother/cupswrapper/cupswrapperHL2170W-2.0.2 -i
cups: restarted scheduler. [ OK ]
lpinfo: Connection refused
lpinfo: Connection refused
lpadmin: Unable to connect to server: Connection refused

What do you think?

Last edited by francois.e; 09-20-2011 at 09:11 PM. Reason: orthograph
 
Old 09-21-2011, 12:57 PM   #24
Alphalutra1
LQ Newbie
 
Registered: Aug 2006
Distribution: FreeBSD 8-Stable
Posts: 9

Rep: Reputation: 2
I have this model, and though it is not using brother's official drivers, you can just use the PCL6 driver that cups already has built in (just go through the add printer dialog at localhost:631 )and it prints perfectly fine.
 
Old 10-17-2011, 09:44 PM   #25
francois.e
Member
 
Registered: Sep 2008
Posts: 72

Original Poster
Rep: Reputation: 3
Quote:
Originally Posted by francois.e View Post
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?
Finally, the solution was simpler than I thought. Only step 2 was necessary, that is installing only the gutenprint and ghostscript (both) packages.

In addition, with gutenprint installed as hl2170w does not show on as a possible printer, using the hl1040 did the job.

The addition of brhl2170wlpr-2.0.2-1.i386.xzm
and cupswrapperHL2170W-2.0.2-1.i386.xzm (converted with rpm2lzm and then with lzm2xzm) would bug the CUPS system, yielding the 500 internal server error.

I still have to resolve the way to add other printer drivers not included in the available list. It seems that ppd from the linux foundation could be a strategy. However, their server has been down for days.
 
  


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
[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 10:49 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