I've been trying to get some sort of coherence running on my Ubuntu machine, and thought I might just post to say where I'm at, and what the issues are so far.
First, my configuration:
Macbook running OSX 10.5.2
Parallels 3
Ubuntu 8.04
My target:
Get Kmail, Kmymoney, Kphotoalbum running nearly natively on osX.
Shared /Home space.
I know that I could spend some time compiling these directly under osX, but I'm trying to get this up and running quickly, but as it's all effectivley beta on osX I thought that parallels would be the way to start...
So what I do:
1. Networking
- Setup to be shared networking, Fixed IP addresses
(10.211.55.10 for macbook, 10.211.55.11 for ubuntu)
2. Disk Sharing
NFS. This proved to be really simple in theory, but a right pain in practice - maybe someone can help me with this.
OSX setup:
add:
/Users 10.211.55.11
to /etc/exports
nfsd restart
showmount -e
Ubuntu
add:
macbook:/Users /Users nfs defaults 0 0
to /etc/fstab
then:
mkdir /Users
mount /Users
and hey presto, it works... well it should...
You have to turn off the "Application Firewall" in 10.5, as this seems to block all NFS traffic (Can anyone tell me how to add "NFS" to this?), but please add a decent ruleset to your ipfw firewall.
Then we need to get the UID/GID of all the files setup sensibly.
On your ubuntu machine (this was basically a new installation for me, so the easier one to play with, also I'm more familiar with linux than BSD/OSx, so more scared to hack files), login as root.
Add a new user with the correct UID/GID (Mac starts it UID's at 500, Ubuntu at 1000). To find your UID on your mac: open terminal, and type: "echo $UID"
To get the setup running properly This is where I think that time should be spent for any devel at parallels:
Matching /etc/passwd and /etc/group between mac and linux, and allowing NFS to work with the "Application Firewall"
To share most files (I wanted to keep the dot files separate from machine to machine), I just made softlinks to "Desktop" "Documents" etc etc. between /home/<users> and /Users/<user>
3. Application Setup
on the Virtual Machine I installed all the relevant applications as per usual.
4. Getting "Coherence"
Ensure that sshd is installed and running on the VM.
Optionally install a private key with ssh-keygen (avoids needing to keep typing passwords every time I start an app)
ssh -X 10.211.55.11 <command>
or:
(for kde)
ssh -X 10.211.55.11 kicker
(for gnome)
ssh -X 10.211.55.11 gnome-panel
Can anyone tell me how to create a "Shortcut" for this?
5. Tidying up:
To reduce the resources that your VM is using, I turned off xdm/gdm/kdm, so I was only running a terminal (by changing the /etc/rc.x/S30_gdm to K30_gdm - I'm sure there's a gui for that, but I couldn't find it)
I would love to be able to run the terminal that I start the applications from in the background (not requiring a window), if anyone can tell me how to do that it would be great!
6. Wishlist
For some reason when the VM is doing nothing I appear to be using 15-20% of CPU on the host. (running "top" on the vm shows 0 CPU use, and doesn't change this)
This compares to 7-8% for my XP VM. Is anyonen aware of any reason for this?
I hope people find this is interesting.
First, my configuration:
Macbook running OSX 10.5.2
Parallels 3
Ubuntu 8.04
My target:
Get Kmail, Kmymoney, Kphotoalbum running nearly natively on osX.
Shared /Home space.
I know that I could spend some time compiling these directly under osX, but I'm trying to get this up and running quickly, but as it's all effectivley beta on osX I thought that parallels would be the way to start...
So what I do:
1. Networking
- Setup to be shared networking, Fixed IP addresses
(10.211.55.10 for macbook, 10.211.55.11 for ubuntu)
2. Disk Sharing
NFS. This proved to be really simple in theory, but a right pain in practice - maybe someone can help me with this.
OSX setup:
add:
/Users 10.211.55.11
to /etc/exports
nfsd restart
showmount -e
Ubuntu
add:
macbook:/Users /Users nfs defaults 0 0
to /etc/fstab
then:
mkdir /Users
mount /Users
and hey presto, it works... well it should...
You have to turn off the "Application Firewall" in 10.5, as this seems to block all NFS traffic (Can anyone tell me how to add "NFS" to this?), but please add a decent ruleset to your ipfw firewall.
Then we need to get the UID/GID of all the files setup sensibly.
On your ubuntu machine (this was basically a new installation for me, so the easier one to play with, also I'm more familiar with linux than BSD/OSx, so more scared to hack files), login as root.
Add a new user with the correct UID/GID (Mac starts it UID's at 500, Ubuntu at 1000). To find your UID on your mac: open terminal, and type: "echo $UID"
To get the setup running properly This is where I think that time should be spent for any devel at parallels:
Matching /etc/passwd and /etc/group between mac and linux, and allowing NFS to work with the "Application Firewall"
To share most files (I wanted to keep the dot files separate from machine to machine), I just made softlinks to "Desktop" "Documents" etc etc. between /home/<users> and /Users/<user>
3. Application Setup
on the Virtual Machine I installed all the relevant applications as per usual.
4. Getting "Coherence"
Ensure that sshd is installed and running on the VM.
Optionally install a private key with ssh-keygen (avoids needing to keep typing passwords every time I start an app)
ssh -X 10.211.55.11 <command>
or:
(for kde)
ssh -X 10.211.55.11 kicker
(for gnome)
ssh -X 10.211.55.11 gnome-panel
Can anyone tell me how to create a "Shortcut" for this?
5. Tidying up:
To reduce the resources that your VM is using, I turned off xdm/gdm/kdm, so I was only running a terminal (by changing the /etc/rc.x/S30_gdm to K30_gdm - I'm sure there's a gui for that, but I couldn't find it)
I would love to be able to run the terminal that I start the applications from in the background (not requiring a window), if anyone can tell me how to do that it would be great!
6. Wishlist
For some reason when the VM is doing nothing I appear to be using 15-20% of CPU on the host. (running "top" on the vm shows 0 CPU use, and doesn't change this)
This compares to 7-8% for my XP VM. Is anyonen aware of any reason for this?
I hope people find this is interesting.