Cups on MyBook WE White Light, a torture
Forum » Forum / My Book World Edition (white light) » Cups on MyBook WE White Light, a torture
Started by: berwinterberwinter
On: 1252317720|%e %b %Y, %H:%M %Z|agohover
Number of posts: 26
rss icon RSS: New posts
Cups on MyBook WE White Light, a torture
berwinterberwinter 1252317720|%e %b %Y, %H:%M %Z|agohover

Hi,

I have tried for a long time to run cups on my WD MyBook World Ed (white light), but it won't work!
Yesterday I managed to compile the usblp.ko module on my Ubuntu Box and copied it to my MBWE. (The module usblp, I think, is needed for the linux printing support, right?)

After loading the module I have some new devices in /dev/

/dev/usblp0

/dev/usb/lp0
/dev/usb/lp1
.
.
/dev/usb/lp7

and lsusb say:

Bus 001 Device 003: ID 04f9:0027 Brother Industries, Ltd

If I send some ASCII Code to the printer-device (echo Hallo > /dev/usblp0), the printer makes only some noises but doesn't print anything. I think this is because my printer (Brother HL-2030) doesn't support direkt ASCII printing.

I also set the device-permission to user root and group lp and changed the cupsd.conf

4 -rw-r--r-- 1 root lp          6 Sep  7 11:46 usblp0

But cups won't find my printer in the web interface!

What else can I try?

Thanky,
bertram

unfold Cups on MyBook WE White Light, a torture by berwinterberwinter, 1252317720|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
steffendsteffend 1252327178|%e %b %Y, %H:%M %Z|agohover

Hey I am about to look into CÚPS on a white light soon. Did you just use the blue ring guide to install it? If/when following the bluering guide should you do anything different when it is a white light?

unfold Re: Cups on MyBook WE White Light, a torture by steffendsteffend, 1252327178|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
fraterfrater 1252332311|%e %b %Y, %H:%M %Z|agohover

You should load the usb filesystem….
If you are actively using the whitelight as a linux system, you should really do some modifications to it…

All modification which I think are necessary are taken care of with this script:

wget -O prep_whitelight http://wd.mirmana.com/prep_whitelight
sh prep_whitelight

Part of it is a script which loads the usbfs which is necessary for some usb-programs. I do believe it's deprecated….

unfold Re: Cups on MyBook WE White Light, a torture by fraterfrater, 1252332311|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
berwinterberwinter 1252334403|%e %b %Y, %H:%M %Z|agohover

First you need the prep_whitelight script as frater said for the necessary basic setup and to setup optware. Then you can install cups:

/opt/bin/ipkg install cups
/opt/bin/ipkg install cups-pdf
/opt/bin/ipkg install cups-doc
/opt/bin/ipkg install cups-driver-gutenprint

I think on the whitelight you don't need to recompile cups as it is descripted in de bluering-guide.
Configure the cupsd.conf file like in the bluering-guide.

If you also need the usblp.ko module for Kernel printing support you could compile it from the Western Digital Sources or I would send it you.

unfold Re: Cups on MyBook WE White Light, a torture by berwinterberwinter, 1252334403|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
LeTigreLeTigre 1252669444|%e %b %Y, %H:%M %Z|agohover

Hi,
I have the same problem, I also ran the prep_whitelight script but it did not help recognizing my Brother printer in the cups webinterface. I would really appreciate a description of scripts and steps after which cups runs properly on an untouched whitelight and recognizes e.g. a Brother printer HL-XXXX.

unfold Re: Cups on MyBook WE White Light, a torture by LeTigreLeTigre, 1252669444|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
berwinterberwinter 1252758568|%e %b %Y, %H:%M %Z|agohover

hey,
I just managed to print with my Brother HL2030 on the MyBook (whitelight). If required I would publish a Totorial/HowTo in the next days or weeks.

greetings

unfold Re: Cups on MyBook WE White Light, a torture by berwinterberwinter, 1252758568|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
steffendsteffend 1253002240|%e %b %Y, %H:%M %Z|agohover

Yes please do make the tutorial / how to :-)

unfold Re: Cups on MyBook WE White Light, a torture by steffendsteffend, 1253002240|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
berwinterberwinter 1253460863|%e %b %Y, %H:%M %Z|agohover

Here is a German version of the HowTo. I will also write an English one in the next days.
Cups Configuration

unfold Re: Cups on MyBook WE White Light, a torture by berwinterberwinter, 1253460863|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
mad_adymad_ady 1253817119|%e %b %Y, %H:%M %Z|agohover

The Google Translate version of your page is not bad at all: Google Translate

Unfortunately, I got a problem while applying prep_whitelight, so I couldn't follow the steps, but I'll be back!
Great job!

last edited on 1253858553|%e %b %Y, %H:%M %Z|agohover by mad_ady + show more
unfold Re: Cups on MyBook WE White Light, a torture by mad_adymad_ady, 1253817119|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
berwinterberwinter 1253895216|%e %b %Y, %H:%M %Z|agohover

Which error did you get while running prep_whiteight?

unfold Re: Cups on MyBook WE White Light, a torture by berwinterberwinter, 1253895216|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
mad_adymad_ady 1253895509|%e %b %Y, %H:%M %Z|agohover

There was a temporary problem after installing the new wget version. More details here: http://mybookworld.wikidot.com/forum/t-184528/prep-whitelight-wget-breaks-after-update-from-optware

unfold Re: Cups on MyBook WE White Light, a torture by mad_adymad_ady, 1253895509|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
mad_adymad_ady 1253895397|%e %b %Y, %H:%M %Z|agohover

Hello berwinter,

I followed your tutorial and managed to get my HP printer working. Thank you very much - your kernel module was the missing link.

You can add the following information to your tutorial:
- instead of editing the printers file, you can add your printer using the web interface - the printer is detected as being connected to LPT1 (even if it's USB).
- the CUPS on the MBWE can't print test pages - It says everything is ok, but the printer never prints anything. If you generate a test page from the computer (through the network), the printer works. So, there's no need to worry about the test page not working.

Anyway, good job!

unfold Re: Cups on MyBook WE White Light, a torture by mad_adymad_ady, 1253895397|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
berwinterberwinter 1253895852|%e %b %Y, %H:%M %Z|agohover

thanks for the feedback!

I will update the tutorial with your information.

Yes cups can't print test-pages on the mybook. This is because in my tutorial I used raw printing, so cups has no print-driver and can't generate the testpages. Maybe it would work if you use the ppd driver…

greetings

unfold Re: Cups on MyBook WE White Light, a torture by berwinterberwinter, 1253895852|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
sammy2002sammy2002 1256247690|%e %b %Y, %H:%M %Z|agohover

Hi berwinter,

thanks for your tutorial, but now I am stucked a bit.

I did everything as you said in your tutorial, but my HL-1430 still refuses to print.

lsusb says:

Bus 001 Device 002: ID 04f9:001a Brother Industries, Ltd HL-1430 Laser Printer
Bus 001 Device 001: ID 0000:0000

I can also try "echo Hi > /dev/lp0" and the yellow light on the printer flashes, but nothing else happens.

I tried to search for a new printer in CUPS, but it's not found.

Then I tried to add it by myself, but I can't select the parallel port in the add printer dialog. So I chose the serial port and modified the printers.conf manually afterwards. But this all won't get the printer started. Instead I have an error in CUPS saying "Filter "foomatic-rip" for printer "1430" not available: No such file or directory".

Do you have any suggestions?

PS: When I use your starting script it says "lp: no such group" - so I changed the lines from "sys:lp" to "sys:sys"

EDIT: I now did a "chmod 777 /dev/lp0" and now my printer is printing with the settings given in your tutorial. But 777 isn't nice, though…

last edited on 1256289743|%e %b %Y, %H:%M %Z|agohover by sammy2002 + show more
unfold Re: Cups on MyBook WE White Light, a torture by sammy2002sammy2002, 1256247690|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
berwinterberwinter 1256327795|%e %b %Y, %H:%M %Z|agohover

maybe you have to add the group lp manually by using the addgroup function or change also the group in /opt/etc/cups/cupsd.conf to sys.

The problem with "echo something > /dev/lp0" is that there is no driver for the printer on the mybook which translate the text into raw for the printer.

unfold Re: Cups on MyBook WE White Light, a torture by berwinterberwinter, 1256327795|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
KRID221993KRID221993 1255373345|%e %b %Y, %H:%M %Z|agohover

Thank you for your great Tutorial, but i've meet a dead end, and i hope you guys can help me:

I followed your Tutorial, and it worked great till the start of the Init Script, i always get the following error:

[root@MyBookWorld dev]# /opt/etc/init.d/S88cupsd start
BusyBox v1.1.1 (2008.11.20-08:20+0000) multi-call binary

Usage: insmod [OPTION]... MODULE [symbol=value]...

/opt/etc/init.d/S88cupsd: line 14: /lib/modules/2.6.24.4/kernel/drivers/usb/class/usblp.ko: Permission denied

I've ignored this and added a printer, but the time i like to print all i get is a error from CUPS:
"Unable to open device file "/dev/lp0": No such device"

I've checked this in the shell, dev/lp0 isn't a device, but i cant find my failure, I bet i've missed the important little part, but i can't tell which part this is.

Sorry, for my bad english, i speak german as my native language.

edit: the printer is also listed by lsusb?! What went wrong?

last edited on 1255434368|%e %b %Y, %H:%M %Z|agohover by KRID221993 + show more
unfold Re: Cups on MyBook WE White Light, a torture by KRID221993KRID221993, 1255373345|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
berwinterberwinter 1255522861|%e %b %Y, %H:%M %Z|agohover

Maybe there is a problem with insmod. Try to load usblp.ko manuell:

insmod /lib/modules/2.6.24.4/kernel/drivers/usb/class/usblp.ko

Please also check if there is the usblp.ko file in the right directory and has the right permissions.

unfold Re: Cups on MyBook WE White Light, a torture by berwinterberwinter, 1255522861|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
KRID221993KRID221993 1255527738|%e %b %Y, %H:%M %Z|agohover

Found my failure, after trying to load manually i've seen, that in the start script was a line break after the insmod, probably nano, probably me(greater chance i say :-) ), so after removing it all worked.
Thanks for your fast help and the Tutorial!

unfold Re: Cups on MyBook WE White Light, a torture by KRID221993KRID221993, 1255527738|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
FidateloFidatelo 1256269593|%e %b %Y, %H:%M %Z|agohover

This post is great, the guide of berwinter's really helped. One thing I had to do in addition to the guide was use the 'addgroup' function to create an 'lp' group, otherwise the startup script would fail.

unfold Re: Cups on MyBook WE White Light, a torture by FidateloFidatelo, 1256269593|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
berwinterberwinter 1256327857|%e %b %Y, %H:%M %Z|agohover

Thanks for the feedback I will update the tutorial with your information in the next days!

unfold Re: Cups on MyBook WE White Light, a torture by berwinterberwinter, 1256327857|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
FidateloFidatelo 1256363026|%e %b %Y, %H:%M %Z|agohover

Another piece of feedback:

After creating my printer, I noticed that it defaults to being "Stopped", so whenever my MBWE reboots, I have to remember to go to the CUPS admin page and "Start" the printer. I found a solution in a post by frederikk, so I added a couple lines to my _SK88cupsd file AFTER completing the initial setup and creating my printer. The lines simply sleep for 10 seconds after starting up cups, then start the printer. My _SK88cupsd file now looks like this:

#!/bin/sh 
  # 
  # 
  # 
  case "$1" in 
          start) 
                  if ( [ ! -c /dev/lp0 ] ) then 
                          mknod /dev/lp0 c 180 0 
                  fi 
                  /bin/chown sys:lp /dev/lp0 

                  if ( !(lsmod | grep "^usblp" -q) ); then 
                           insmod /lib/modules/2.6.24.4/kernel/drivers/usb/class/usblp.ko 
                  fi 

                  if [ -n "`pidof cupsd`" ]; then 
                          /usr/bin/killall cupsd 2>/dev/null 
                  fi 
                  /opt/sbin/cupsd
                  sleep 10
                  /opt/sbin/cupsenable HP-Deskjet-812c
          ;; 
          stop) 
                  if [ -n "`pidof cupsd`" ]; then 
                          /usr/bin/killall cupsd 2>/dev/null 
                  fi 
          ;; 
          *) 
                  echo "Usage: (start|stop)" 
                  exit 1 
  esac
last edited on 1256363274|%e %b %Y, %H:%M %Z|agohover by Fidatelo + show more
unfold Re: Cups on MyBook WE White Light, a torture by FidateloFidatelo, 1256363026|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
crossmaxcrossmax 1257125747|%e %b %Y, %H:%M %Z|agohover

Hello, and first of all thanks for the tutorial.

I'm configurating cups to do step by step this tutorial. My problem comes when I try to execute /opt/etc/init.d/S88cupsd start
The error says:
cupsd: Child exited with status 1!
I changed intervals IP, 192.168.1.0
I supose that my cups.conf file have a error because if launch cupsd with -c cups.conf.old its works.
What is wrong?

Thks

unfold Re: Cups on MyBook WE White Light, a torture by crossmaxcrossmax, 1257125747|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
berwinterberwinter 1257275213|%e %b %Y, %H:%M %Z|agohover

hello!

please post your /opt/etc/init.d/S88cupsd and cupsd files

unfold Re: Cups on MyBook WE White Light, a torture by berwinterberwinter, 1257275213|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
crossmaxcrossmax 1257282504|%e %b %Y, %H:%M %Z|agohover

Hi!
I posted cups files in this link with html format. I hope your reading easier.
If you need other files, tell me

Thanks again

unfold Re: Cups on MyBook WE White Light, a torture by crossmaxcrossmax, 1257282504|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
berwinterberwinter 1257358119|%e %b %Y, %H:%M %Z|agohover

Maybe you only need to change the line 834 from:

Require @SYSTEM

to:

Require user @SYSTEM
unfold Re: Cups on MyBook WE White Light, a torture by berwinterberwinter, 1257358119|%e %b %Y, %H:%M %Z|agohover
Re: Cups on MyBook WE White Light, a torture
nyieldingnyielding 1257723834|%e %b %Y, %H:%M %Z|agohover

Hello, I have been working on this as well, and thanks to the posts in this thread and berwinter's guide, I have gotten close to completing this

EDIT: nvm what this post was, I have it set up now but am only having issues with the print jobs going through. I have the printer added on the CUPS web interface and on my PC, but jobs just sit on my PC and don't show up in the web ui. I think it'll just take more tinkering with.

last edited on 1257738789|%e %b %Y, %H:%M %Z|agohover by nyielding + show more
unfold Re: Cups on MyBook WE White Light, a torture by nyieldingnyielding, 1257723834|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License