LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-22-2005, 06:44 AM   #1
penguinlnx
Member
 
Registered: Mar 2005
Location: Ice Station Alert AFB
Distribution: Gentoo
Posts: 166

Rep: Reputation: 30
BROTHER Laser Printer HL 1230/1250 ?


Has anyone here got their Brother Laser printer to work?

Possibly under CUPS?

I have Gentoo Distro with CUPS already running.

The Brother Website wasn't very helpful for a newbie.

I think the driver(s) for an HL 1250 also work for my HL 1230,
but I don't know the procedure.

My HL 1230 is hooked up to the Parallel port (It has no USB).

Thanks!
 
Old 03-22-2005, 07:11 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Have a look at

http://www.linuxprinting.org/

and

http://www.turboprint.de/

They will refer you to the driver(s) and the necessary procedures to install them.
 
Old 03-22-2005, 11:29 AM   #3
penguinlnx
Member
 
Registered: Mar 2005
Location: Ice Station Alert AFB
Distribution: Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
The Turboprint link isn't helpful I think unless one has money.

The free version I am told prints their logo on every page.
This might not matter for now printing docs, but obviously crippling longterm.

The other link I went to looked more promising:
I got hopelessly confused trying the quickstart thread,
but I left a message on their forum board.
 
Old 03-22-2005, 02:44 PM   #4
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Ok, start by installing cups, foomatic-filters, and ghostscript (emerge cups footmatic-filters ghostscript). Cups is the Common Unix Printing System. Same system that MacOS X uses, solaris, aix, ect.

Check out the Linux Printing website dealing with your printer. It will tell you what driver to use (this case it say ghostscript includes the driver). Download the PPD from that site, put it in /usr/share/cups/models/. Start cups (/etc/init.d/cups start). Point your web browser on that machine to localhost:631. Add a printer with the add a printer button under Administration. Print a test page, if it works, your golden. Don't forget to add cups to your startup scripts if you want to make it start with the machine (rc-update add cups default).

Once you have gotten that far you can move on to the advanced step, configuring it to print over smb (aka windows networking) and ipp (aka ip-printing) so all your computers on your network can print to it.
 
Old 03-22-2005, 04:34 PM   #5
penguinlnx
Member
 
Registered: Mar 2005
Location: Ice Station Alert AFB
Distribution: Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
3 steps forward, 1 step back...

okay, I have CUPS installed already, I installed foomatic-filters, and ghostscript.

I checked out the website and generated and downloaded Brother-HL-1250-hl1250.ppd, and placed it in /usr/share/cups/model (not models).

I am hung after "start CUPS (/etc/init.d/cups start).

I can't find a program named 'cups', just one named cupsd.

I don't know if this is the same file you mean, but it doesn't take "start" as a parameter.

The website thing, I tried that previously (perhaps wrongly) and discovered I needed a USER NAME and PASSWORD to enter the site.(?)

I feel like I'm 2 steps away from printing out the documentation I need to hook up my printer (catch 22).

P.S. I tried : # rc-update add cups default <CR>

This was the result:

* /sbin/rc-update: /etc/init.d/cups not found; aborting."

Last edited by penguinlnx; 03-22-2005 at 04:48 PM.
 
Old 03-22-2005, 06:07 PM   #6
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Sorry, I was doing that from memory at the office. cupsd is the correct script. /etc/init.d/cupsd start should start your cups deamon. You will need a user name and password to log in, with the default gentoo cups.conf file it will be root/<your root password>.
 
Old 03-23-2005, 01:22 AM   #7
penguinlnx
Member
 
Registered: Mar 2005
Location: Ice Station Alert AFB
Distribution: Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
Thank you for your help:
I am not sure why, but the printer seems to work now, at least page by page.
It has been a confusing process, not helped by unclear documentation and
counter-intuitive user interfaces.

I don't know if I could make it work twice. I notice now that my install of Gentoo
will hang if the modem is off. I wonder if that can be worked around.
 
Old 03-24-2005, 06:53 AM   #8
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally posted by penguinlnx
The Turboprint link isn't helpful I think unless one has money.

The free version I am told prints their logo on every page...
That depends from the resolution. Usually thye do it only for the highest resolution, while printing 300 * 300 dpi is usually quite sufficient for printing documentation. (e.g. my ink sprayer can do all resolutions except photo-resolution, which I don't need...).
 
Old 03-24-2005, 07:01 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally posted by penguinlnx
The Turboprint link isn't helpful I think unless one has money.

The free version I am told prints their logo on every page...
That depends from the resolution. Usually they do it only for the highest resolution, while printing 600 * 600 dpi or even 300 * 300 dpi is quite sufficient for documentation. (e.g. my ink sprayer can do all resolutions except photo-resolution, which I don't need...).

Last edited by JZL240I-U; 03-24-2005 at 07:06 AM.
 
Old 03-24-2005, 09:41 AM   #10
penguinlnx
Member
 
Registered: Mar 2005
Location: Ice Station Alert AFB
Distribution: Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
Hmm... that sounds interesting because with the hl 1250 driver I am using,
there seems to be problems with the pages being clipped at the top of the page,
at least when printing html from Epiphany. I will experiment some more to nail down
what the current printer-driver is doing wrong, and see if it can be tweaked -
unlike Windoze, I assume these printer/driver files are readable and editable textfiles
rather than proprietary binaries.
 
Old 03-29-2005, 01:25 AM   #11
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally posted by penguinlnx
...I assume these printer/driver files are readable and editable textfiles
rather than proprietary binaries.
I would be very much surprised if that is the case. If you are successful, please post what you did and how you did it...
 
Old 04-03-2005, 01:49 PM   #12
penguinlnx
Member
 
Registered: Mar 2005
Location: Ice Station Alert AFB
Distribution: Gentoo
Posts: 166

Original Poster
Rep: Reputation: 30
An Update on Printer problem...

Well, I thought I'd better update this, in case there are others struggling with this problem:

I thought I had the printer install beaten with the following procedure:

(1) CUPS, FOOMATIC-FILTER, and GHOSTSCRIPT apparently need to be running. In my distro (VLOL-Gentoo) two are already installed and running, so I only need the FOOMATIC-FILTER. I either emerge foomatic-filters or do it from Portal/Portage. To check if CUPS is running, try #/etc/init.d/CUPSD STATUS <CR>. If needed, you can get it going with #/etc/init.d/CUPSD START <CR>. If it's not installed, you could #emerge cups <cr> from the console, I think. If you have to do any of this, it is probably a good idea to reboot, to make sure everything is now installed and running.

(2) Get .PPD file for your printer. I went to www.linuxprinting.org and fetched the hl1250.ppd file from there and downloaded it directly into /usr/share/cups/model/<yourprintername.ppd> . You can seemingly compile this file too, at this website manually. In my case, the hl-1250 is available and is supposed to work for my Brother hl-1230 laser printer also. You will need to restart again for the new .ppd file to be noticed and incorporated into CUPS as an option.

(3) Go to localhost:631 in your web-browser. This apparently runs a local config program for CUPS. When you get there, you click on printers, and you are prompted for your username and password (use 'root' & whatever the password for 'root' is.) Go through the steps to install a printer, including selecting your brand and finding the driver (.ppd). Configure the printer. In my case, 300 dpi was all the driver supports. Test the printer by printing a test page. Reboot if necessary.

Well, I thought that covered it all, for it appeared to work fine the first time. (although when printing using a web-browser, long webpages are broken up and a few lines are lost at the top of each page.)
However, the second time I followed this procedure, after reinstalling my OS, it didn't work. The CUPS/driver talk to the printer, because I see the lights flashing, but no pages come out. I have tried shutting on and off the printer, and rebooting. Any ideas?

------- Addendum (or -dumb...)

I just went to localhost:631 again to see if there was some other menu options or something to slap the printer in the face, and I selected 'PRINTERS' and hit the 'Configure Printer' button. The info there was correct, but I pressed the 'continue' button anyway (reconfiguring with the same info). I came back to the PRINTERS screen and hit the PRINT TEST PAGE button, and lo and behold, NOW it prints!

Last edited by penguinlnx; 04-04-2005 at 01:46 AM.
 
Old 04-04-2005, 03:56 AM   #13
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
And this is what I hate: inexplicable behaviour of an assembly of logical instructions (aka programs) .

I hope your box stays now in working order.

Last edited by JZL240I-U; 04-04-2005 at 04:45 AM.
 
Old 04-09-2005, 05:25 PM   #14
kerby2000
LQ Newbie
 
Registered: Apr 2005
Posts: 1

Rep: Reputation: 0
Small HOWTO: on installation of USB printer Brother HL-1250 on Debian linux

Here is my experience on installation of this damm printer
I've spent whole weekend doing this :-)

1) switch ON printer and plug in USB cable
# dmesg
will show you following line
...
usb 2-1: new full speed USB device using address 2

2) check if USB printer support is loaded into the kernel
# lsmod
...
...
usbcore 119012 6 uhci_hcd,ehci_hcd,usb_storage
...
look for a line containing "usbcore"
if USB Printer Device driver (usblp) not there load it
# modprobe usblp
or use more user friendly tool - modconf
# modconf (there select kernel/drivers/usb/class and then usblp)

try lsmod again
# lsmod
...
...
usbcore 119012 6 usblp,uhci_hcd,ehci_hcd,usb_storage
...

After all this operations
# dmesg
it will show you following lines
...
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 2 if 0 alt 0 proto 2 vid 0x04F9 pid 0x0007
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver

3) Now you can install CUPS (In my case without ESP GhostScript it was not working
So, install it too)
Cups is the Common Unix Printing System

# apt-get install cupsys
# apt-get install gs-esp

Now you need to add the driver for the printer
For instance in my case I got it from the following page
http://www.linuxprinting.org/show_pr...rother-HL-1250
Download the PPD file and put it into /usr/share/cups/models/

# cd /usr/share/cups/models/
# cp /home/sergey/Downloads/hl1250.ppd ./

Now restart the CUPS server
# /init.d/cupsys restart

4) It's time to print something. Open web browser on that machine and type localhost:631.
It should open admin panel for your printers. Login as root and add a printer
Select USB port #1.
Now try to print a test page, if it works, your are half way there.

5) Now let's try more advanced section.

Normally at home you have several computers in the network and it is quite convenient to have network printer service running at one of them. In my case this is a Linux machine. All the rest PCs are Windows base. So Samba sever should be tuned up to do the job.

You can edit smb.conf manually or you can take advantage of the web based configuration of samba – SWAT. Just open in the local browser following link. localhost:901

To configure samba for printing, you need to make sure the following config options are set in the
Code:
[global] section of /etc/samba/smb.conf:
 load printers = yes
 printing = cups
 printcap name = cups
In the [printers] section, you should have something like the following:
Code:
[printers]
 comment = All Printers
 path = /var/spool/samba
 browseable = no
 public = yes
 guest ok = yes
 writeable = no
 printable = yes
 printer admin = root, @ntadmins
After you made all modification to smb.conf it is good idea to test configuration
Code:
# testparm
Load smb config files from /etc/samba/smb.conf
Processing section "[homes]"
Processing section "[printers]"
Processing section "[print$]" 
Loaded services file OK.
...
...
Make sure that folders /var/spool/samba and /var/lib/samba/printers, otherwise you can end up with system which sees the printer but cannot do anything with it. Also don’t forget to change permission on these directories.
The directory must be owned by the superuser (root) user and group:
# chown root.root /var/spool/samba
Directory permissions should be set for public read-write with the sticky-bit set as shown:
# chmod a+rw TX /var/spool/samba
In my case I forgot to create var/spool/samba folder and all my attemts to connect to the printer where rejected (see below)

Code:
# smbclient //caiman/hl1250 -U root
Password:
Domain=[WIN] OS=[Unix] Server=[Samba 3.0.10-Debian]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
if everything is ok message will look like this

Code:
# smbclient //caiman/hl1250 -U root
Password:
Domain=[WIN] OS=[Unix] Server=[Samba 3.0.10-Debian]
smb: \>
If you are still experiencing problems try to look into logs
pico /var/log/samba/log.caiman

At this moment you are able to see printer from windows machine and if you click on it will ask to install printers.

If you know what is the model just select it

Now you are able to print test page from Windows

6) That was good but it looks a bit difficult for your relatives they know that there is printer in a house but not the model. So there is an option called Point and Print. In samba it requires an extra section in smb.conf

Code:
[print$]
 comment = Printer Drivers
 path = /var/lib/samba/printers
 write list = sergey, @sergey
 browseable = yes
 guest ok = no
 read only = yes
In essence this is the share where Windows looks for printers drivers. There are many ways how to place drivers there. You can try links below, but in my case these options were not working. Maybe you will be more lucky.

HOWTO Native Windows Printing with CUPS/Samba
http://gentoo-wiki.com/HOWTO_Native_...ith_CUPS/Samba

Point and Print in Samba
http://www.netadmintools.com/part258.html

My solution was following :
First I just connected the printer to the Windows machine and it installed drivers for me. Than I just located printer drivers folder
C:\WINDOWS\system32\spool\drivers\w32x86\3\
and copied them to folder on the Linux machine
/var/lib/samba/printers/3/W32X86.
And after reconnecting the printer to Linux machine printer was just accessible drivers were downloaded automaticaly from samba share. That is it. And it was working on all other PCs.

Code:
 
# ls -al /var/lib/samba/printers/W32X86/3
total 3320
drwxr-xr-x  2 root   root     4096 Apr  9 10:41 .
drwxr-xr-x  3 sergey sergey   4096 Apr  9 10:41 ..
-rwxr--r--  1 sergey sergey  32588 Apr  8 22:07 brhl1250.bud
-rwxr--r--  1 sergey sergey    220 Apr  8 22:07 brhl1250.gpd
-rwxr--r--  1 sergey sergey  23361 Apr  8 22:07 brhl125x.gpd
-rwxr--r--  1 sergey sergey   8522 Apr  8 22:28 brohl125.inf
-rwxr--r--  1 sergey sergey 758784 Apr  8 22:07 mdigraph.dll
-rwxr--r--  1 sergey sergey  35328 Apr  8 22:07 mdiui.dll
-rwxr--r--  1 sergey sergey   2516 Apr  8 22:28 oemhl99a.inf
-rwxr--r--  1 sergey sergey 676864 Apr  8 22:07 pcl5eres.dll
-rwxr--r--  1 sergey sergey 672768 Apr  8 22:07 pcl5ures.dll
-rwxr--r--  1 sergey sergey  14362 Apr  8 22:07 stdnames.gpd
-rwxr--r--  1 sergey sergey    698 Apr  8 22:07 ttfsub.gpd
-rwxr--r--  1 sergey sergey 264704 Apr  8 22:07 unidrv.dll
-rwxr--r--  1 sergey sergey  21225 Apr  8 22:07 unidrv.hlp
-rwxr--r--  1 sergey sergey 197120 Apr  8 22:07 unidrvui.dll
-rwxr--r--  1 sergey sergey 619520 Apr  8 22:07 unires.dll
 
Old 02-28-2012, 08:21 AM   #15
brokerj
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
The model number Brother HL-1230 does not seem to be correct.

Method 1:
You may refer to the below links and use the troubleshooters. Check if it lists and helps resolve any issues: Open the Printer troubleshooter:
http://www.brother-usa.com/support/

Method 2:
You may check if you have the latest drivers installed for the device. You may refer to the below link for getting the latest drivers and check
Brother HL-1230 Driver

Good Luck.
 
  


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
Fedora Printer Problem: Brother Laser Printer drops the first one or two centimeters merlinsenger Linux - Newbie 2 05-24-2008 06:13 AM
Laser printer iqbala Linux - Newbie 1 04-17-2005 12:41 PM
Brother laser printer not working with fc2 tzonga1 Linux - Hardware 0 12-12-2004 08:20 PM
Brother HL-1450 laser printing one page only with 9.2 winkydink Mandriva 0 06-14-2004 09:19 AM
Brother HL-1030 laser printer not working, RH8 to RH9 upgrade webhamster Linux - Hardware 1 04-16-2003 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 01:27 AM.

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