UNC Mapping with WINE

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
mitchman333
Newbie
Newbie
Posts: 2
Joined: Fri Oct 17, 2008 8:29 am

UNC Mapping with WINE

Post by mitchman333 »

My apologies if this is an off-topic WINE question...

I have 5 Wintel machines that all UNC map over to my Ubuntu server (\\Ubuntu\M-Music\) for my MediaMonkey application. I use SAMBA for network sharing and it works perfectly.

I am trying to configure WINE to have the same UNC mapping structure on my Linux machine (eg. \Ubuntu\M-Music\) so I can share a common SQLite database throughout the network.

I do not use Drive Letter mapping, rather I use UNC Mapping (long story) but that seems to be my confusion with the Winecfg settings - everything seems Drive letter based.

All media files, DB reside on the Ubuntu machine.

I've tried the manual (pg 14) for network shares and some Forum postings - but no luck in getting it configured correctly.

Any help would be great - thank you.

-- Mitchman
vitamin
Moderator
Moderator
Posts: 6605
Joined: Sat Feb 23, 2008 2:29 pm

Re: UNC Mapping with WINE

Post by vitamin »

mitchman333 wrote:I am trying to configure WINE to have the same UNC mapping structure on my Linux machine (eg. \Ubuntu\M-Music\) so I can share a common SQLite database throughout the network.
Wine can not access remote windows shares. You have to mount them first with samba.

Also there are questions if Wine even supports UNC mapping at all (into local filesystem of course). There is some code that does it but the shell doesn't support it - you can't "browse for file" into UNC paths.
mitchman333
Newbie
Newbie
Posts: 2
Joined: Fri Oct 17, 2008 8:29 am

Re: UNC Mapping with WINE

Post by mitchman333 »

Wine can not access remote windows shares.
Sorry for the confusion, I am actually trying to trick my Linux machine into recognizing (\\Ubuntu\M-Music\) with the common program shares for music lookups. The media program, mp3, and DB all reside on the Linux machine.

So no Window shares, it's a Linux share - all the Wintel machines see it as (\\Ubuntu\M-Music\).

Anyway maybe this isn't a WINE question, but it seems like I might be close.

Appreciate the quick reply.
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Re: UNC Mapping with WINE

Post by DanKegel »

mitchman333 wrote:I have 5 Wintel machines that all UNC map over to my Ubuntu server (\\Ubuntu\M-Music\) for my MediaMonkey application....

I am trying to configure WINE to have the same UNC mapping structure on my Linux machine (eg. \Ubuntu\M-Music\) so I can share a common SQLite database throughout the network. ...
This is http://bugs.winehq.org/show_bug.cgi?id=425
You may be able to get at least part of what you want by following the recipe in comment #9 of that bug report, e.g.

Code: Select all

$ sudo apt-get install smbfs
$ sudo gedit /etc/hosts (and add entry for name of windows machine 'ubuntu')
$ smbmount -L ubuntu (and verify the expected share is visible)
$ sudo mount -t smbfs //ubuntu/m-music /mnt
$ cd $HOME/.wine/dosdevices/
$ mkdir -p unc/ubuntu
$ ln -s /mnt unc/ubuntu/m-music
User avatar
DanKegel
Moderator
Moderator
Posts: 1164
Joined: Wed May 14, 2008 11:44 am

Post by DanKegel »

Oh, and you don't need to edit /etc/hosts if you can already ping the server by name; this newfangled avahi stuff might take care of that for you.
Locked