Accessing Windows network from application in Wine
Accessing Windows network from application in Wine
I have successfully set up MYOB (accounting software used a lot in Australia) to run with Wine 1.0 (on Ubuntu 8.04 LTS). I now need to be able to access the data file on another PC (Windows XP) via a network which I cannot seem to get to when using the drop down list to find the file - all I can see under 'My Computer' are: C: - fake windows drive, E: - CD drive and Z: - Linux drive.
I can see the Windows network fine using Ubuntu - Places -> Network. I cannot see my Ubuntu machine from the XP machines.
I found FAQ - 6.26. My program fails to do networking, but Linux can get online
and was wondering if this is how to fix this? This seems to apply to games...
My hosts file contains:
127.0.0.1 localhost
127.0.1.1 rich-Evo
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
From the Network Settings I found my hostname but no domain name. There is a DNS Server with a number very similar to the on in the FAQ - 192.168.1.1
Any help would be greatly appreciated! Thanks.
I can see the Windows network fine using Ubuntu - Places -> Network. I cannot see my Ubuntu machine from the XP machines.
I found FAQ - 6.26. My program fails to do networking, but Linux can get online
and was wondering if this is how to fix this? This seems to apply to games...
My hosts file contains:
127.0.0.1 localhost
127.0.1.1 rich-Evo
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
From the Network Settings I found my hostname but no domain name. There is a DNS Server with a number very similar to the on in the FAQ - 192.168.1.1
Any help would be greatly appreciated! Thanks.
Re: Accessing Windows network from application in Wine
http://wiki.winehq.org/FAQ#head-0344b43 ... 6855283afdRichShark wrote:My hosts file contains:
127.0.0.1 localhost
127.0.1.1 rich-Evo
Hi vitamin. Thank you for the link. I did find this article but was confused by the presence of 2 lines of 127. etc in the hosts file. Do I have to remove both? I cannot find any way of finding what 'yourdomain' is on my machine so I cannot complete this part of the solution below (no instructions for this in the article):
192.168.0.23 yourhost.yourdomain.com yourhost
I have the 'yourhost' part, and I assume the DNS part is as I found under the network settings, or do I enter the 198.168.0.23 as above?
I am quite new to Ubuntu and very new to Wine and 'making things work' on Ubuntu.
Thanks again.
192.168.0.23 yourhost.yourdomain.com yourhost
I have the 'yourhost' part, and I assume the DNS part is as I found under the network settings, or do I enter the 198.168.0.23 as above?
I am quite new to Ubuntu and very new to Wine and 'making things work' on Ubuntu.
Thanks again.
Assuming your IP-Address on eth0 is 192.168.0.23 (check with /sbin/ifconfig) the hosts file should look like this:RichShark wrote:Do I have to remove both? I cannot find any way of finding what 'yourdomain' is on my machine so I cannot complete this part of the solution below (no instructions for this in the article):
Code: Select all
127.0.0.1 localhost
192.168.0.23 rich-Evo
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
Re: Accessing Windows network from application in Wine
If I get you right, you have to mount the windows share in ubuntu with somthing like this (probably as root):RichShark wrote:I have successfully set up MYOB (accounting software used a lot in Australia) to run with Wine 1.0 (on Ubuntu 8.04 LTS). I now need to be able to access the data file on another PC (Windows XP) via a network which I cannot seem to get to when using the drop down list to find the file - all I can see under 'My Computer' are: C: - fake windows drive, E: - CD drive and Z: - Linux drive.
I can see the Windows network fine using Ubuntu - Places -> Network. I cannot see my Ubuntu machine from the XP machines.
#mount -t smbfs "//192.168.0.1/share/" /mnt/local
After that you could run winefile or your app (as user):
$wine winefile
And you should be able to access the folder with Z:\mnt\local .
Accessing Windows network from application in Wine
Rico wrote:
I recommend.
James McKenzie
That or you may just want to give the share its own drive, which is whatRichShark wrote:
If I get you right, you have to mount the windows share in ubuntu with somthing like this (probably as root):I have successfully set up MYOB (accounting software used a lot in Australia) to run with Wine 1.0 (on Ubuntu 8.04 LTS). I now need to be able to access the data file on another PC (Windows XP) via a network which I cannot seem to get to when using the drop down list to find the file - all I can see under 'My Computer' are: C: - fake windows drive, E: - CD drive and Z: - Linux drive.
I can see the Windows network fine using Ubuntu - Places -> Network. I cannot see my Ubuntu machine from the XP machines.
#mount -t smbfs "//192.168.0.1/share/" /mnt/local
After that you could run winefile or your app (as user):
$wine winefile
And you should be able to access the folder with Z:\mnt\local .
I recommend.
James McKenzie
Thank you for the assistance everyone. I have had a few problems...
vitamin, thank you, I have changed the hosts file accordingly (192.168.1.6) after checking with ifconfig:
rich@rich-Evo:/sbin$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:02:96:46:7e
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::208:2ff:fe96:467e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82556 errors:0 dropped:0 overruns:0 frame:0
TX packets:45813 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:116746595 (111.3 MB) TX bytes:3984282 (3.7 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1574 errors:0 dropped:0 overruns:0 frame:0
TX packets:1574 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:78700 (76.8 KB) TX bytes:78700 (76.8 KB)
I assume inet addr:192.168.1.6 is the one to use? Does this change ever?
Rico, I tried to do what you suggested and got the following error:
rich@rich-Evo:~$ sudo mount -t smbfs "//192.168.0.1/share/" /mnt/local
mount: wrong fs type, bad option, bad superblock on //192.168.0.1/share/,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
James, I assume to give the share its own drive I just have to change some of the above command given by Rico?
On further experimentation I have found that when I find (using Nautilus) the MYOB data file (properties show location as smb://chantelle/myob%20files/) on the Windows XP machine and double click it, it opens in MYOB (in Wine) without a problem. I have tried to 'Make link' to put a 'shortcut' on my desktop (I think) but get an error 'Error while creating link to ... The target doesn't support symbolic links.' I have tried to create a Launcher to run this file but it does not work. How can I do this? I have found that the 'links' to the network are under /home/rich/.gvfs/ where (using Nautilus and selecting 'Show Hidden Files') I can see the other 3 machines on the network (although I cannot seem to access one of them - I think it may be because it is an old laptop with Win 98 and a FAT32 file system). Network properties show locations of the network machines as smb://homenet/.....
I cannot see the .gvs part under the drop down list in MYOB...
I would prefer a Launcher or link to the MYOB file on the desktop that just opens when I double click it.
Thanks for your patience and help, any ideas would be appreciated.
Cheers Richard
vitamin, thank you, I have changed the hosts file accordingly (192.168.1.6) after checking with ifconfig:
rich@rich-Evo:/sbin$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:02:96:46:7e
inet addr:192.168.1.6 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::208:2ff:fe96:467e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:82556 errors:0 dropped:0 overruns:0 frame:0
TX packets:45813 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:116746595 (111.3 MB) TX bytes:3984282 (3.7 MB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1574 errors:0 dropped:0 overruns:0 frame:0
TX packets:1574 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:78700 (76.8 KB) TX bytes:78700 (76.8 KB)
I assume inet addr:192.168.1.6 is the one to use? Does this change ever?
Rico, I tried to do what you suggested and got the following error:
rich@rich-Evo:~$ sudo mount -t smbfs "//192.168.0.1/share/" /mnt/local
mount: wrong fs type, bad option, bad superblock on //192.168.0.1/share/,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
James, I assume to give the share its own drive I just have to change some of the above command given by Rico?
On further experimentation I have found that when I find (using Nautilus) the MYOB data file (properties show location as smb://chantelle/myob%20files/) on the Windows XP machine and double click it, it opens in MYOB (in Wine) without a problem. I have tried to 'Make link' to put a 'shortcut' on my desktop (I think) but get an error 'Error while creating link to ... The target doesn't support symbolic links.' I have tried to create a Launcher to run this file but it does not work. How can I do this? I have found that the 'links' to the network are under /home/rich/.gvfs/ where (using Nautilus and selecting 'Show Hidden Files') I can see the other 3 machines on the network (although I cannot seem to access one of them - I think it may be because it is an old laptop with Win 98 and a FAT32 file system). Network properties show locations of the network machines as smb://homenet/.....
I cannot see the .gvs part under the drop down list in MYOB...
I would prefer a Launcher or link to the MYOB file on the desktop that just opens when I double click it.
Thanks for your patience and help, any ideas would be appreciated.
Cheers Richard