Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian User (http://www.linux-archive.org/debian-user/)
-   -   accessing shared printed from virtualbox client (http://www.linux-archive.org/debian-user/509060-accessing-shared-printed-virtualbox-client.html)

Liam O'Toole 04-02-2011 08:52 PM

accessing shared printed from virtualbox client
 
On 2011-04-02, Steve Kleene <skdeb@syrano.acb.uc.edu> wrote:
> I have a Wheezy host, an XP virtualbox client, and an old LaserJet 5MP
> configured with CUPS and connected by a parallel port. How can I access this
> printer from the XP client?
>
> In XP Add Printer, I tried to define a network printer at these URLs:
>
> http://127.0.0.1:631/printers/LaserJet_5MP
> http://192.168.1.2:631/printers/LaserJet_5MP
>
> but they were not found. (192.168.1.2 is my port on a local router; ifconfig
> shows it for eth0.) The CUPS interface at localhost:631 lists the connection
> site as "parallel:/dev/lp0".

Assuming the virtualbox client uses NAT networking (the default), the
client can't connect directly to the host's CUPS daemon. Instead tell it
to connect to the virtual private address 10.0.2.0 or similar; see the
output of the route command on the guest to determine the precise
gateway address.

>
> I have not set up Samba sharing. As shown below, /etc/cups/printers.conf
> shows the printer as shared, and I thought that should suffice.

Yes, samba should not be necessary.

>
> I gather virtualbox won't support the parallel-port connection directly. I
> did succeed with a USB-to-parallel adapter cable and defining a USB printer,
> but I'd rather use the CUPS shared printer if possible.

--- SNIP ---

--
Liam O'Toole
Cork, Ireland


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: slrnipf33t.3io.liam.p.otoole@dipsy.tubbynet">http://lists.debian.org/slrnipf33t.3io.liam.p.otoole@dipsy.tubbynet

Steve Kleene 04-02-2011 09:32 PM

accessing shared printed from virtualbox client
 
On Sat, 2 Apr 2011 20:33:25 +0000 (UTC), I wrote:

> I have a Wheezy host, an XP virtualbox client, and an old LaserJet 5MP
> configured with CUPS and connected by a parallel port. How can I access this
> printer from the XP client?

On Sat, 2 Apr 2011 20:52:13 +0000 (UTC), Liam O'Toole replied:

> Assuming the virtualbox client uses NAT networking (the default), the
> client can't connect directly to the host's CUPS daemon. Instead tell it
> to connect to the virtual private address 10.0.2.0 or similar; see the
> output of the route command on the guest to determine the precise
> gateway address.

Thanks, but I'm not there yet. On the XP client, I ran "route" from the
command prompt and got, in part:

route PRINT
route ADD 157.0.0.0 MASK 255.0.0.0 157.55.80.1 METRIC 3 IF 2
destination^ ^mask ^gateway metric^ ^
Interface^

So I tried setting up an XP network printer at these two URLs:

http://157.55.80.1:631/printers/LaserJet_5MP
http://157.0.0.0:631/printers/LaserJet_5MP

but neither was found. I also tried 192.168.1.0, which is shown by route on
the Linux host. "LaserJet_5MP" is the correct Linux name for the printer,
but I must still be doing something wrong.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: loom.20110402T232755-217@post.gmane.org">http://lists.debian.org/loom.20110402T232755-217@post.gmane.org


All times are GMT. The time now is 06:24 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.