Sooo, this is going to be a little worklog. I went with Shadowtesters tip and installed Ubuntu 8.10 in a VM since the O'Reilly folding VM obviously has a partitioning problem which won't be resolved anytime soon. I got the folding working right away (Ubuntu is such a lazy install, nothing compared to NetBSD on an old iBook *shudders*). Problem is, if I copy this VM to another folder and start it up, there's no eth0. So i searched around and found that it's a problem with the MAC. VMWare is cutely assigning a new MAC to the copy, but the install inside doesn't know that of course.
So read first: http://ubuntuforums.org/archive/index.php/t-333349.html
except, there's no iftab anymore, it's handled by udev: http://ubuntuforums.org/showthread.php?t=509722
reboot and viola, there's eth0 again.
What's to do now since there's now two working Vm's? Get NetBIOS and Samba working, I'll be looking into that ( http://www.hardforum.com/showpost.ph...92&postcount=7 )(never fiddled with samba? go read smb.conf and this link, it'll help very mucho.) tomorrow so I shut them down for now. I hope this works out.
Update: Ok, NetBIOS is working out of the box with Ubuntu. I thought I needed to fiddle with dhclient.conf, but no. nmblookup returned the VM IP's correctly (if you install Ubuntu also, then I guess it works for you too. If not check if you have a working NetBIOS name with "nmblookup yourhostname"). Sooo, I just went with the most simple samba setup. After a:
apt-get install samba
I just added (watch the spaces here!):
[folding] <-- the name of your new share
path = /path/to/my/working_directory
public = yes
writeable = yes
at the end and did:
sudo /etc/init.d/samba restart.
Then I went to Fahmon and added entries, where the target writes down as the following:
\\the_hostname_you_gave_your_vm\your_share's_name
If you want _some_ security for your new samba share, you need to tell it who you're going to allow to access to it. Open smb.conf and search for:
bind interfaces only = yes
Now you need to delete the ; at the beginning of this line, also if you look above there's a line that says
interfaces = 127.0.0.0/8 eth0
in front of which you need to delete the ; too. Now go above that and put in a line that's like:
hosts allow = localhost your_hosts_to_be_allowed
(example: I'll be allowing my complete home network, so for me it's
hosts allow = localhost 192.168.1.
but you can also put a list of IP's or a mask there).
Now do a
sudo /etc/init.d/samba restart
again and that's it.
That's it, now your VM's Samba server will only accept IP's you defined for ALL SHARES you defined. My guess is that this is still not secure since we're doing no checks on a per user basis, but I think it'll be okay for a folding VM.![]()





Bookmarks