Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: How to network two dsl machines?, Trying to share files and printers< Next Oldest | Next Newest >
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Sep. 08 2007,06:10 QUOTE

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?
Back to top
Profile PM 
Juanito Offline





Group: Members
Posts: 1601
Joined: Sep. 2005
Posted: Sep. 08 2007,14:55 QUOTE

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>
Back to top
Profile PM 
6 replies since Sep. 07 2007,12:57 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: How to network two dsl machines?

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code