How to network two dsl machines?


Forum: Networking
Topic: How to network two dsl machines?
started by: Juanito

Posted by Juanito on Sep. 07 2007,12:57
This might sound odd, but so far I've found it easier to share files and printers between a dsl machine and windows machines than to share between two dsl machines.

I have a small home network with a wired/wireless router and an old desktop running dsl. There is a usb all-in-one printer connected to the dsl desktop. The dsl desktop has a file share via samba and the printer installed via cups.

Periodically, there are a couple of laptops - one dsl/w2k dual boot & one running xp -  connected to the network. The xp machine can access the file share and printer, the dual boot can access the file share but not the printer under w2k and neither under dsl (but it can mount the file share under dsl via samba).

I've tried many combinations of http/ipp address to connect to the printer using cups from the dsl laptop with no success and I wouldn't even know where to start to mount a file share between the two machines running dsl. As per google, I should be able to access the scanner from the two laptops using sane but that doesn't work either.

Any guidelines or hints would be much appreciated.

Posted by curaga on Sep. 07 2007,14:13
Umm, first you said you could mount the share from DSL using Samba, then that you
Quote
wouldn't even know where to start to mount a file share between the two machines running dsl

So you know but you don't know? Clarify please..

Posted by roberts on Sep. 07 2007,15:38
I use fuse/sshfs to mount directories on other DSL machines.
Posted by Juanito on Sep. 07 2007,17:43
Quote
So you know but you don't know? Clarify please..

What I meant by that is that I am sharing files between linux machines via a system (samba) that is intended to share files with windows machines - i.e. surely there must be a method more straightforward than that.

I'll try google on fuse/sshfs to see what that brings...

Posted by roberts on Sep. 07 2007,18:07
See my previous post about using fuse/sshfs:
< http://damnsmalllinux.org/cgi-bin....t=16216 >

Posted by Juanito on Sep. 08 2007,06:10
That seemed to do the trick - thanks.

After starting ssh via the control panel on the dsl desktop, I did this on the dsl laptop:
Code Sample
$ sudo modprobe fuse
$ sudo sshfs -o allow_other root@192.168.1.100:/mnt/sdb4/dslshare /mnt/dslshare
root@192.168.1.100's password: xxxx
$
This allowed rw access to the dsl desktop share for user dsl on the laptop.

One down, one to go - my usb printer is attached to the dsl desktop as cups printer OfficeJetG85. I tried to add this as a printer in cups on the dsl laptop using an ipp address of the form:

ipp://192.168.1.100:631/OfficeJetG85

..and many variants, but no luck. Has anybody had any sucess with this?

Posted by Juanito on Sep. 08 2007,14:55
Finally google came up with some modifications for /etc/cupsd.conf on the client and the server and - this was really impressive - without me doing anything, the printer on the dsl desktop was added to the available printers in cups admin on the dsl laptop. I'm sure this configuration is not the best from a security standpoint, but in case anybody finds it useful, then here it is. BTW the auto-added address was ipp://192.168.1.100:631/printers/OfficeJetG85.

/etc/cupsd.conf on the dsl laptop (client):
Quote
LogLevel info
RunAsUser Yes
Port 631
Listen localhost:631
Listen /opt/hplip/var/run/cups/cups.sock
   
   ### Which print servers to use
   BrowseOrder deny,allow
   BrowseDeny from All
   BrowseAllow from @LOCAL
   BrowseAllow from 192.168.1.*
   
   <Location />
   AuthType None
   Order Deny,Allow
   Deny From All
   Allow From @LOCAL
   </Location>
   
   <Location /jobs>
   AuthType None
   Order Deny,Allow
   Deny From All
   Allow From @LOCAL
   </Location>
   
   <Location /printers>
   AuthType None
   Order Deny,Allow
   Deny From All
   Allow From @LOCAL
   </Location>
   
   <Location /admin>
   AuthType None
   Order Deny,Allow
   Deny From All
   Allow From @LOCAL
   </Location>


/etc/cupsd.conf on the dsl desktop with printer attached:
Quote
LogLevel info
Port 631
Listen /opt/hplip/var/run/cups/cups.sock
Listen 192.168.1.100:631
Listen localhost:631
Browsing On
BrowseAddress @LOCAL
BrowseAddress 192.168.1.255
BrowseAddress 192.168.1.*

<Location />
 AuthType None
 Order Deny,Allow
 Deny From All
 Allow From @LOCAL
 Allow From 192.168.1.*
 Allow From 127.0.0.1
</Location>

<Location /jobs>
 AuthType None
 Order Deny,Allow
 Deny From All
 Allow From @LOCAL
 Allow From 192.168.1.*
 Allow From 127.0.0.1
</Location>

<Location /printers>
 AuthType None
 Order Deny,Allow
 Deny From All
 Allow From @LOCAL
 Allow From 192.168.1.*
 Allow From 127.0.0.1
</Location>

<Location /admin>
 AuthType Basic
 AuthClass System
 Allow From 127.0.0.1
 Order Deny,Allow
 Deny From All
</Location>

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.