You are not logged in.
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
Last edited by toad (2009-03-12 11:58:43)
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
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
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
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
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
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 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
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
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
avahi-discover gets me a list of computers on the local network! That is good
Under "Internet Printer" I can see both my printers, that is fantastic
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
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)
//github/
Offline
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
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
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 ?
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline
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 ).
never trust a toad...
::Grateful ArchDonor::
::Grateful Wikipedia Donor::
Offline