Come trasformare il Mybook resuscitato in un print server per stampanti USB o di rete.
(Questo articolo è solo in inglese. Se qualcuno ha interesse me lo faccia sapere che lo traduco in italiano.)
How to enable the Revived Mybook as a print server for USB or network printers.
First of all, we install CUPS print server:
root@mybook:~# apt-get install cupsys
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
cupsys-common defoma file fontconfig-config gs-common gs-esp gsfonts
libcairo2 libcupsimage2 libcupsys2 libdbus-1-3 libexpat1 libfontconfig1
. . .
. . .
Need to get 24.9MB of archives.
After unpacking 76.0MB of additional disk space will be used.
Do you want to continue [Y/n]? y
as you can see this will install a lot of packages… so please be patient.
As the installation ends, open the file /etc/cups/cupsd.conf and locate the line with:
Listen localhost:631
change in:
Listen *:631
and restart CUPS:
# /etc/init.d/cupsys restart
This will enable CUPS to listen on external interface eth0.
Locate the line with:
DefaultAuthType Basic
and add immediately after this line:
DefaultEncryption Never
Locate the section:
<Location />
Order allow,deny
Allow localhost
Allow @LOCAL
</Location>
and change in:
<Location />
Order allow,deny
Allow localhost
Allow all
</Location>
This will allow access to any computer in the network.
You can also use:
Allow 192.168.x.y/255.255.255.0
Allow @LOCAL
Allow *.mydomain
Refer to CUPS documentation included in CUPS administration web pages.
Locate the section:
<Location /admin>
Order allow,deny
Allow localhost
</Location>
and change in:
<Location /admin>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
Allow all
</Location>
This will allow access to remote administration, but requires user/password (i.e. user root and the same password of the root user in the Mybook)
The same you must do in:
<Location /admin/conf>
AuthType Basic
Require user @SYSTEM
Order allow,deny
Allow localhost
Allow all
</Location>
Restart cupsys:
# /etc/init.d/cupsys restart
Now you can add printers.
For best use, I advise to use only “raw” printers in Mybook CUPS server, and use the driver of the printing computer, this is the best situation.
If you have HP Jetdirect network printer, when adding printer, in the Device you must choose “AppSocket/HP JetDirect”, and in URI you must insert the string:
socket://hostname:9100
where “hostname” is the IP address of the printer, or the name if resolved from your DNS.
If you have USB printer first connect the printer to the Mybook, next go in “Add printer” from the administration web. In the Device page you should see your printer listed in the combo box. In some cases CUPS doesn’t allow you to define printer as “raw” in this step, but if you select any driver and install the printer, next you can go in Printers and change the configuration of the printer to “raw”.
That’s all.

