Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I share my desktop with VirtualBox. It allows me to work on current files in a nice easy way. I have quite a few utility launchers on my desktop. It's only a dozen or so at peak time but it makes navigating the list of real files a little harder when I'm working from Windows.

I was wondering if there was a way of excluding the files from the share. Either at VirtualBox (I've no idea where it keeps its samba configuration -- or if it actually uses samba at all for that matter) or in Windows.

share|improve this question
    
Without a decission layer in betwean (e.g. samba) it's not possible. Linux files starting with a . (dot) at the beginning are also marked as hidden for Windows (VirtualBox). But for me you should move the Linux only desktop files to a different folder. My understanding is one desktop is one but not two with shared content. –  Raphael B. Jan 7 '11 at 23:08

1 Answer 1

up vote 2 down vote accepted

Reading the VirtualBox documentation, it's clear that this isn't possible directly. But I have an idea which will work.

Using a Warren Falk's picfs fuse mount, you remount your Desktop under a hidden directory, say .VirtualBox/shared/Desktop and point virtual box at that. Then in the fuse mount configuration, you simply specify which files should be ignored.

See here for more details: http://www.warrenfalk.com/blog/2009/07/09/picsfs-fuse-filesystem/

Using this, your Desktop will be exactly the same to Linux, but your VirtualBox will see a controlled directory. The fuse code is even in python, so it's easy to modify. Let me know if you want instructions.

share|improve this answer
    
That's very cunning. –  Oli Jan 10 '11 at 23:30

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.