LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-29-2005, 11:27 AM   #1
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Rep: Reputation: 15
Question How to set up Brother HL 2030 printer in Debian?


I would like to use my Brohter HL 2030 printer but I don't know how to install it. I don't have some Brother pritner driver, but lpr and gnome-cups are installed.

I need step by step instructions how to set up the printer and how to print, especially from command line, i would like to print some man pages.

I am running Gnome.

One more thing. I am running Debian as virtual system in Windows. I am using vmware workstation 5. Usb device is detected.

I am new user of the Debian system and any help is appreciated.

 
Old 10-29-2005, 07:03 PM   #2
grautu
Member
 
Registered: Jul 2005
Posts: 142

Rep: Reputation: 15
Command line control on printing has not much to do with GNOME (or KDE). Here are the steps which I followed, without having X on my Debian.
1) Make clear about cups package and its "relatives" using # aptitude search cupsys, followed by # aptitude show packages, with suitable packages provided by # aptitude search cupsys.
2) Choose and install chosen packages with # aptitude install packages. As far as I know, Debian cups printing package requires uninstalling lpr.
3) Some SAMBA components will also be installed (automatically).
4) Make sure about printing hardware support
Code:
$ /usr/sbin/lpinfo -v
5) Make sure about printing software support for your printer
Code:
$ /usr/sbin/lpinfo -m
and choose a suitable driver /usr/share/cups/model/path_to_your_choice.
6) Choose your_printer_name to your printer, chose the_port to connect your printer and set the printer into the system
Code:
# /usr/sbin/lpadmin -p your_printer_name -m path_to_your_choice -v the_port -E
7) Test the installation
Code:
$ /usr/bin/lpstat -v
8) Ask about your printer status
Code:
$ /usr/bin/lpstat -a your_printer_name
9) Set your printer as default
Code:
/usr/sbin/lpadmin -d your_printer_name
10) Connect your printer and print a test page
Code:
$ lp /usr/share/cups/data/testprint.ps
Good luck!
 
Old 10-30-2005, 02:58 PM   #3
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
I have successfully installed cupsys but I don't have suitable printer driver. What to do now?
 
Old 10-30-2005, 03:41 PM   #4
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
Problem solved.

I found linux driver on Brother's website for my printer and it is working.

What does it mean cupswrapper? I have also download some file which name is "cupswrapperhl2030_1.0.0-1_i386.deb" , so I am wondering what is the function of it.
 
Old 10-31-2005, 02:49 AM   #5
grautu
Member
 
Registered: Jul 2005
Posts: 142

Rep: Reputation: 15
Quote:
Originally posted by zoffmann
Problem solved.

I found linux driver on Brother's website for my printer and it is working.

What does it mean cupswrapper? I have also download some file which name is "cupswrapperhl2030_1.0.0-1_i386.deb" , so I am wondering what is the function of it.
Information about Debian packages can be obtained at command line
Code:
$ aptitude search pattern
and
Code:
$ aptitude show package_name
where you think that pattern is a relevant part in the name of the package you are searching for.
 
Old 11-03-2005, 07:20 AM   #6
poochdog
Member
 
Registered: Jul 2004
Location: United Kingdom
Distribution: Fedora Core 9
Posts: 141

Rep: Reputation: 15
You can always try installing the driver that is on the brother cd. It is of type ppd, normally this will allow you to use the printer under linux.
 
Old 11-03-2005, 09:19 AM   #7
steve1972
Member
 
Registered: Jan 2005
Posts: 62

Rep: Reputation: 15
CUPS Wrapper Driver

Zoffman,

The Brother website says "The CUPS wrapper driver makes LPR drivers work with CUPS."

I'm curious what steps you actually took to get your printer to work.

Did you install the LPR driver before installing the CUPS wrapper driver as they warn you to do?

How's the printer working?

Best regards,
Steve
 
Old 11-03-2005, 09:33 AM   #8
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
Smile

I didn't installed lpr, I think it was already installed.

I have installed cupsys as grautu instructed, and than I installed driver for Debian from

http://solutions.brother.com/linux/s...r_drivers.html


I don't remember that I installed som CUPS wrapper from Brother's website.

My Debian i running as Virtual machine inside the vmware Workstation

Printer is working, that's all. I can print man pages and from Open Office.

Last edited by zoffmann; 11-03-2005 at 09:42 AM.
 
Old 11-04-2005, 12:44 PM   #9
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
I was so happy that printer worked att all, but when you print man pages you get letters on the left side as:

"....but the latter are mor
e
efficient. So,....."

It drops the last letter of the last word in the line , than put that letter in the next line and then to print the following line.

Does anybody knows how to format man pages so they have less columns?
 
Old 11-04-2005, 06:59 PM   #10
grautu
Member
 
Registered: Jul 2005
Posts: 142

Rep: Reputation: 15
I'm not very confident that my advice (to follow) is the right solution; please anybody else either correct me or improve my advice, if the case!
Most likely the format of manual pages is not suited for immediate printing. Here are some ideas to try in this respect.
(1) Try to open the file of manual pages with another (advanced) editting application which can print and then resave the original file in the native format of that application (however, take care not to lose the manual file!); then try to print the resaved file. Such an application could be the word editor in Open Office. Another example would be 'texinfo' but this way seems to be far more complicated than the previous one.
(2) One cannot exclude a direct solution, though not plausible in my opinion. That is to try a "fine tuning" of printable area, by the parameters of lp command (see <http://www.cups.org/doc-1.1/sum.html>).
Once again, please anybody correct me if the case!
 
Old 11-05-2005, 03:53 PM   #11
grautu
Member
 
Registered: Jul 2005
Posts: 142

Rep: Reputation: 15
I've got the confirmation that my belief was right, in that the manual pages are not printing-ready; type the command
Code:
man man
to see how man pages can be formated for printing. I'm still believing that advanced applications such as OpenOffice Word can also solve the problem; however I cannot be sure since not having installed X on my Debian.
 
Old 11-05-2005, 06:14 PM   #12
zoffmann
Member
 
Registered: Jun 2005
Posts: 60

Original Poster
Rep: Reputation: 15
Smile

You were faster than me.

The right syntax for formating and printing is:

man -t "your manualpage" | lp

And it is very nice formated page when printed on the paper. Thanks for your advices.

If you want to write:

man fdisk > printfile.txt

and open printfile.txt in OpenOffice than you get strange characters and double letter like fffddisskk in the opened document, it is not working that way.

Anyway thanks a lot, at least I have learned something about printers connected to the linux box.

Last edited by zoffmann; 11-05-2005 at 06:16 PM.
 
Old 11-06-2005, 04:13 AM   #13
grautu
Member
 
Registered: Jul 2005
Posts: 142

Rep: Reputation: 15
Hi!
Glad to know your problem is solved; thanks for announcing that!
Good luck!
 
Old 11-06-2005, 05:04 AM   #14
Dead Parrot
Senior Member
 
Registered: Mar 2004
Distribution: Debian GNU/kFreeBSD
Posts: 1,597

Rep: Reputation: 46
Quote:
If you want to write:

man fdisk > printfile.txt

and open printfile.txt in OpenOffice than you get strange characters and double letter like fffddisskk in the opened document, it is not working that way.
If you want to save a man page as a text file, you can do this instead:

man fdisk | col -b > printfile.txt
 
  


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
Fedora Printer Problem: Brother Laser Printer drops the first one or two centimeters merlinsenger Linux - Newbie 2 05-24-2008 06:13 AM
Brother printer dtsfanatic Linux - Software 5 02-11-2007 07:45 AM
Printer Brother trainee Slackware 6 10-14-2005 03:24 PM
brother printer anandj Linux - Hardware 0 11-29-2004 05:15 PM
Brother printer recall rshaw Linux - Hardware 2 10-25-2002 09:30 AM

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

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