Sharing between Ubuntu and OS X

zedwards

Bit poster
I know this is possible in WinXP because if the Parallels 'extras' virtual disk, but is it possible to share files from my mac to Ubuntu installation? Maybe there is a way to mount a network drive? Anyone have a good trick for doing this?
 
I share files between Ubuntu and Mac OSx via SSH. Setup ubuntu network so that it can ping the mac os (same ip range, subnet mask, gateway) then I connect in mac os via Cyberduck - SFTP option.

Hope this helps
 
Use samba of NFS

Why don't you just set up a samba share on your Mac OS X system and then mount it in your ubuntu installation ? Or you could use an NFS export. That's the way I share folders, since NFS is way faster than samba.
 
any good tips on how to make 10.4 work as an NFS server?

I folllowed the procedures on
http://mactechnotes.blogspot.com/2005/09/mac-os-x-as-nfs-server.html

and had to kill "nfsd-server" and "mount_nfs" to restart.
If I just do

sudo kill -1 `cat /var/run/mountd.pid`
to restart a change it doesn't show up the new mounts.

Even new mounts do show up, there are errors on both the OS X and Ubuntu sides:


On the OS X side:

nfsd: [6127]: can't bind udp addr

on the Ubuntu side:

sudo mount -t nfs 192.168.1.100:/Volumes/test /home/me/mount
Password:
mount: 192.168.1.100"/Volumes/test: can' read superblock
 
Finally NFS server on OS X and NFS client on Ubuntu work after I did a few things:

1. changed both UIDs and GIDs of my acounts on both OS X and Ubuntu so they all match.
A good reference is
http://inthezone.wordpress.com/2006/06/18/parallels-with-shared-home-directory-to-debian-linux/

2. added a couple of ipfw rules so ipfw doesn't block packets from and to the Ubuntu VM any more:

03000 allow ip from 10.37.129.3 to any via en2
03001 allow ip from any to 10.37.129.3 via en2

Now I still have a puzzle to solve- Internet sharing is not working with the host-only networking.
Even though I did enable "share your connection from Built-in Ethernet" to en2

Wheneven I try to reach a website or other machines on the same LAN, there is no packets going out through the built-in ethernet.

The ipfw tules I added should allow the packets to go through, but OS X is not forwarding them or Parallels is not doing the NAT thing?
 
Finally problem solved. I had to get the gateway on ubuntu right. I had no idea what it is, but an
ifconfig on my macbook shows it's 10.37.129.2 and I just need to put it in

system menu-> Administration -> networking -> Ethernet connection's property -> gateway address and now everything works great!

en2: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
inet6 fe80::201:23ff:fe45:6789%en2 prefixlen 64 scopeid 0x8
inet 10.37.129.100 netmask 0xffffff00 broadcast 10.37.129.255
inet 10.37.129.2 netmask 0xffffff00 broadcast 10.37.129.255
inet 192.168.2.1 netmask 0xffffff00 broadcast 192.168.2.255
ether 00:01:23:45:67:89
media: autoselect status: active
supported media: autoselect
 
Back
Top