It is currently Fri May 24, 2013 6:28 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: [FINALLY] Share a Printer using TonidoPlug
PostPosted: Wed Jan 27, 2010 10:52 pm 
Tonido MVP
Tonido MVP
Joined: Sun Aug 23, 2009 9:04 pm
Posts: 193

This guide is for advanced users, so read the directions several times if you're not sure what you're doing. They seem long, but in reality, it will take about 5 minutes to set it all up. I've only tested using my home network (standard configuration, nothing special) and an HP Photosmart C3180. I was able to print using Windows 7 and Mac OS X.

1. SSH in to your TonidoPlug. The root password is "nosoup4u".

2. Type "mkdir -p /var/cache/apt/archives/partial".

3. Type "apt-get update && apt-get install cups" (If you know what printer driver you install on a regular Ubuntu computer, install it as well, for example, "apt-get install hpijs", which provides many HP printer drivers).

4. As the process goes along, you'll be shown a blue screen with a few choices to replace/modify/keep the Samba configuration. Just press ENTER, keeping the currently installed configuration.

5. Type "insmod /lib/modules/2.6.30-rc6/kernel/drivers/usb/class/usblp.ko". This enables your TonidoPlug to recognize USB printers.

6. Now comes the fun part: configuration files.

First, type "nano /etc/samba/smb.conf". Scroll down a long way until you see "### Printing ###". You'll see "load printers = no". Change the "no" to a "yes". Scroll down a little bit more until you see "# CUPS printing..." with two lines (;printing = cups...). Remove the semicolon (;) from the front of both of those lines. Scroll down to the very end of the file now. Add a line of after the last line and paste in:

Code:
[printers]
   comment = All Printers
   browseable = no
   path = /tmp
   printable = yes
   public = yes
   writable = no
   create mode = 0700
   printcap name = /etc/printcap
   print command = /usr/bin/lpr -P%p -r %s
   printing = cups


Type CTRL+X and Y to save.

NEXT, you need to make a few quick edits to the TonidoPlug's bootup procedure. Type "nano /etc/rc.local" Scroll down right above the "exit 0" line and paste in "insmod /lib/modules/2.6.30-rc6/kernel/drivers/usb/class/usblp.ko". CTRL+X and Y to save.

LAST ONE, I PROMISE: Type "nano /etc/cups/cupsd.conf". Basically, make it the top look like this, while leaving the rest:

Code:
#
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel warning

# Administrator user group...
SystemGroup lpadmin


# Only listen for connections from the local machine.
Listen 0.0.0.0:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow localhost
  Allow @LOCAL
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Encryption Required
  Order allow,deny
  Allow @LOCAL
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow @LOCAL
</Location>


Now, run "/etc/init.d/samba restart" and then "/etc/init.d/cups restart".

Open a web browser and browse to "https://plug.ip.address:631". You might need to log in (using username "root" and password "nosoup4u". Click "Add a Printer" and follow the step-by-step instructions. Type in the root username and password when it asks you to when adding the printer.

Once you're all done, connect using a computer (connect as a Guest). On Mac OS X, you can just use a "Generic Postscript" driver.

Questions, comments, concerns below. Sorry it's a little complicated. It should work for you if you know what printer drivers to install. If you don't know, just do a Google search for "<<Printer Name, Model>> on Ubuntu 9.04".


Offline
 Profile  
 Post subject: Re: [FINALLY] Share a Printer using TonidoPlug
PostPosted: Thu Jan 28, 2010 12:46 am 
Guru Tonidoid
Guru Tonidoid
Joined: Wed Oct 28, 2009 9:28 pm
Posts: 197
Location: Framingham, MA, USA

Thanks much, Mike. I can't wait to try. But since it involves apt-get, I'll need to set up booting from the USB drive first. I was hoping to avoid that and just use the standard TonidoPlug setup; but having a printer server will be worth it.


Offline
 Profile  
 Post subject: Re: [FINALLY] Share a Printer using TonidoPlug
PostPosted: Thu Jan 28, 2010 3:45 am 
Guru Tonidoid
Guru Tonidoid
Joined: Fri Nov 06, 2009 2:36 pm
Posts: 286
Location: The Netherlands

dongadoy wrote:
Thanks much, Mike. I can't wait to try. But since it involves apt-get, I'll need to set up booting from the USB drive first. I was hoping to avoid that and just use the standard TonidoPlug setup; but having a printer server will be worth it.


Thanks for the instructions as well.
Most simple NAS devices have a printserver. So i think it should be possible to make a setup without installing cups and samba (which take up a lot of space). This procedure is nice but it would indeed be preferable to have it within the Tonido install.


Offline
 Profile  
 Post subject: Re: [FINALLY] Share a Printer using TonidoPlug
PostPosted: Thu Jan 28, 2010 5:30 am 
Rookie Tonidoid
Rookie Tonidoid
User avatar
Joined: Fri Jan 01, 2010 6:49 am
Posts: 5

Hi Mike,

Thanks for the guide. It would be great if you could add it to the TonidoUser wiki, too.

Kind regards,
Dmitri


Offline
 Profile  
 Post subject: Re: [FINALLY] Share a Printer using TonidoPlug
PostPosted: Thu Jan 28, 2010 1:28 pm 
Tonido MVP
Tonido MVP
Joined: Sun Aug 23, 2009 9:04 pm
Posts: 193

If you know what you're doing, you can set your connected printer up to be an IP printer, so you can print stuff at work/school/library on your printer, using your username.tonidoid.com URL. I haven't tried it but it should work.


Offline
 Profile  
 Post subject: Re: [FINALLY] Share a Printer using TonidoPlug
PostPosted: Mon Feb 01, 2010 1:41 pm 
Tonido MVP
Tonido MVP
Joined: Sun Aug 23, 2009 9:04 pm
Posts: 193

Bump. Anyone try this or find it useful?


Offline
 Profile  
 Post subject: Re: [FINALLY] Share a Printer using TonidoPlug
PostPosted: Wed Feb 03, 2010 6:18 pm 
Veteran Tonidoid
Veteran Tonidoid
Joined: Thu Jan 14, 2010 11:04 pm
Posts: 50

Thanks mike, I definitely find this useful and hope to try it soon. Will post my results later.

P.S. If you manage to try it with an IP Printer setup, could you add the instructions to your guide as well? It would be much appreciated.


Offline
 Profile  
 Post subject: Re: [FINALLY] Share a Printer using TonidoPlug
PostPosted: Mon Apr 26, 2010 3:25 pm 
Rookie Tonidoid
Rookie Tonidoid
Joined: Mon Apr 26, 2010 3:16 pm
Posts: 1

Sadly Im running into issues following this guide.
1st I'm running the latest image - 0.8.0.11504 so the kernel part writes 2.6.31
Then when I go to the CUPS page myip:631 and I try to add a printer it prompts that I should be using https, gives me a link and does an automatic redirect to the https variant. Now when it does that the page never loads. Clicking the link does not load at all either. So I can't add any printers =[.

Lastly the whole process leaves me with 90MB on my tonido. That's not a whole lot of wiggle room.
PS connecting an HP 6543 printer.


Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 6 hours [ DST ]


 Who is online

Users browsing this forum: Google [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: