You are not logged in.

#1 2009-03-07 19:54:33

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

[printing SOLVED, file sharing not yet] - Apple and Linux home network

First off: apologies if this matter has been dealt with elsewhere. I have not been able to find anything relevant and a simple link will suffice.

'nuff chatter, here's the meat:

My wife just bought herself a second Apple. She's now got an imac notebook and an imac desktop (or whatever these things are called). I have the same in Arch form.

We have a DSL router at home, my desktop is on cable, all others on wireless (54 MBit).

Ideally I'd like to create a network share on my desktop which is available to all others. Same goes for the printer (attached to my desktop).

I've been googling linux and network but I always get hopelessly lost sad

Last edited by toad (2009-03-12 11:58:43)


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#2 2009-03-07 21:45:54

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

toad, apple has client support for samba (in fact, the windows share support in os x IS samba). My recommendation would be to setup a samba share on one of your boxes. Both linux and os x would then be able to access it.

In a similar fashion, you can use samba+cups to share a printer.
If you google for 'samba linux os x' you may be able to refine your search criteria enough to find useful documentation.

good luck!


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#3 2009-03-07 22:43:15

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

Cheers Cactus!

After searching for what seemed an endless time (it must have been hit 150+) I found this:

http://www.linux.com/feature/54739

They talk about NFS and SSH rather than samba. Not that we have highly confidential data on our systems, but we do live in an urban area (I think I've got 30 wireless lans in my flat!) and the less windows we have, the safer we are. So I think I'll skip samba or use it as a last resort.


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#4 2009-03-07 23:56:28

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

You may also want to check on avahi. avahi is a zeroconf implementation and Apple also has one by default. Your computers should be able to talk with one another automagically. Start the avahi daemon and CUPS should find all of the available printers on the network.

Offline

#5 2009-03-08 02:24:42

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

for reference:
  setup a samba server on linux:
    (few google results)
    http://www.linux.com/articles/58593 or
    http://wiki.archlinux.org/index.php/Samba or
    http://www.paranoidix.dk/files/arch_samba.pdf  ... many more

  access a samba share from os x:
    http://support.apple.com/kb/HT1568

Last edited by cactus (2009-03-08 02:28:29)


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#6 2009-03-08 07:21:04

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

skottish, I am very excited about avahi. And, of course, there is a wiki entry:

http://wiki.archlinux.org/index.php/Avahi

Working through it now...

EDIT:

Bah - the following rendered firefox and kmail unable to connect to the internet although I could ping google...

To enable it edit the file /etc/nsswitch.conf and change the line:

hosts: files dns

to

hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4

EDIT 2:

installation of nss-mdns fixed the above smile At first I wasn't able to install it 'cos my mirror was offline.

Last edited by toad (2009-03-08 09:48:46)


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#7 2009-03-08 17:10:22

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

avahi remains unfortunately a closed book to me. I haven't found a tutorial as yet which I understand. All NFS tutorials go way over my head after about line two although I haven't checked the ArchWiki yet so there is still hope.

Frustrated at the mo and about to be off to my local to get some Dutch courage wink


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#8 2009-03-10 15:05:09

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

avahi-discover gets me a list of computers on the local network! That is good smile

Under "Internet Printer" I can see both my printers, that is fantastic big_smile

Now I pop over to my wife's apple, click on printers, network printers, enter my hostname.local, the apple is looking for published printers and ... nothing. It uses a generic printer instead of my HP4 or HP Inkjet.

So my question is - where is the bottleneck? Is it my cupsd.conf?

I don't know much about cupsd.conf and only post it reluctantly for others to have a laugh - or tell me that the fault lies elsewhere...

DefaultEncryption IfRequested                  
LogLevel debug                                 
SystemGroup sys root lpadmin                   
# Allow remote access                          
Listen 192.168.1.28:631                        
Listen *:631                                   
Port 631                                       
# Enable printer sharing and shared printers.  
Browsing On                                    
BrowseOrder allow,deny                         
BrowseAllow all                                
BrowseAddress @LOCAL                           
DefaultAuthType Basic                          
<Location />                                   
  Allow localhost                              
  Allow all                                    
  Order allow,deny                             
</Location>                                    
<Location /admin>                              
  Allow localhost                              
  # Restrict access to the admin pages...      
  Order allow,deny                             
</Location>                                    
<Location /admin/conf>                         
  AuthType Basic                               
  Require user @SYSTEM                         
  Allow localhost                              
  # Restrict access to the configuration files...
  Order allow,deny                               
</Location>

never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#9 2009-03-10 17:15:49

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

FWIW: i share a printer from my arch box to my macbook.  as both run cups, following the linux-to-linux method under the cups wiki entry got me up and running in two lines of code on the mac side.  although, avahi or samba should both do the job i found this method the easiest as all i needed to do was share the printer.

edit.  ps, you're cupsd.conf looks fine to me.

Last edited by brisbin33 (2009-03-10 17:16:10)

Offline

#10 2009-03-10 21:56:40

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

Hi dude,

thanks for that top tip. I attempted it. First I had to add my arch box' ip address to the apple's /etc/hosts, then I changed the apple's /etc/cups/client.conf and tried lpq but no joy, it does not recognize any printers.

So I tried lpadmin on the apple but it wouldn't let me (and I was logged in as root). Well weird...

So, back to the coalface unless anybody out there has an idea as to where I #@!* up.

EDIT:

Unfortunately the link from the ArchWiki below gives me a 404 tongue

There are more configuration possibilities including an automatic configuration which are described in detail on http://localhost:631/sam.html#CLIENT_SETUP (this link works on your printer server).

Last edited by toad (2009-03-10 21:58:34)


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#11 2009-03-12 11:57:40

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

I can print!

It was quite simple in the end using localhost:631 together with names in /etc/host - twat that I am I hadn't enabled all the users in the server's configuration. My cupsd.conf looked fine, but the server's localhost:631 said something different.

Now for sharing my music - any offers big_smile?


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

#12 2009-03-12 15:16:28

brisbin33
Member
From: boston, ma
Registered: 2008-07-24
Posts: 1,796
Website

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

i'll +1 samba, our samba wiki is easy to follow, then <Cmd+K> smb://arch-servername on the mac side.

Offline

#13 2009-03-12 15:22:56

toad
Member
From: if only I knew
Registered: 2008-12-22
Posts: 1,775
Website

Re: [printing SOLVED, file sharing not yet] - Apple and Linux home network

Yeah, I know, but why easy M$ stuff (which perhaps a script kiddie in the neighbourhood gets interested in) if I have the freedom to ~!@# my brain with Unix-like stuff?

Printing was the big one, I'm easy on the music ('cos its on MY box anyway smile ).


never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::

Offline

Board footer

Powered by FluxBB