kb:wine_i_pristup_mreznom_okruzenju_samba

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
kb:wine_i_pristup_mreznom_okruzenju_samba [2015/08/13 16:19] milanokb:wine_i_pristup_mreznom_okruzenju_samba [2015/08/13 16:21] – [4.3.2. Network Shares] milano
Line 5: Line 5:
 ====== 4.3. Other Things to Configure ====== ====== 4.3. Other Things to Configure ======
  
-This section is meant to cover the rest of the things you can configure.   It also serves as a collection of tips and tricks to get the most out       of using Wine.+This section is meant to cover the rest of the things you can configure.   It also serves as a collection of tips and tricks to get the most out   of using Wine.
  
 ===== 4.3.1. Serial and Parallel Ports ===== ===== 4.3.1. Serial and Parallel Ports =====
  
-Serial and parallel port configuration is very similar to drive   configuration - simply create a symbolic link in           ~/.wine/dosdeviceswith the name of the   device.  Windows serial ports follow a naming convention of the           word comfollowed by a number, such as   com1, com2, etc.  Similarly, parallel ports use   lptfollowed by a   number, such as lpt1.   You should link these directly to the corresponding Unix           devices, such as /dev/ttyS0and   /dev/lp0. Make sure you have the needed   access rights to that device. For example, to configure           one serial port and one parallel port, run the following commands:+Serial and parallel port configuration is very similar to drive   configuration - simply create a symbolic link in   ~/.wine/dosdeviceswith the name of the   device.  Windows serial ports follow a naming convention of the           word comfollowed by a number, such as   com1, com2, etc.  Similarly, parallel ports use   lptfollowed by a   number, such as lpt1.   You should link these directly to the corresponding Unix           devices, such as /dev/ttyS0and   /dev/lp0. Make sure you have the needed   access rights to that device. For example, to configure           one serial port and one parallel port, run the following commands:
  
-<SCREEN+<code
-ln -s /dev/ttyS0 com1 +ln -s /dev/ttyS0 com1 ln -s /dev/lp0 lpt1 
-ln -s /dev/lp0 lpt1 +</code>
-</SCREEN>+
  
 ===== 4.3.2. Network Shares ===== ===== 4.3.2. Network Shares =====
  
-Windows shares can be mapped into the unc/directory so anything trying to access           %//myserver// %%\%%//some// %%\%%//file// will look in           ~/.wine/dosdevices/unc///myserver/////some/////file//  For example, if you used Samba to mount           %//myserver// %%\%%//some// on   /mnt/smb///myserver/////some// then you can do +Windows shares can be mapped into the unc/directory so anything trying to access   %//myserver// <nowiki>\</nowiki>//some// <nowiki>\</nowiki>//file// will look in   ~/.wine/dosdevices/unc///myserver/////some/////file//  For example, if you used Samba to mount   %//myserver// <nowiki>\</nowiki>//some// on   /mnt/smb///myserver/////some// then you can do 
-<SCREEN+<code
-ln -s /mnt/smb///myserver/////some//  unc///myserver/////some/+ln -s /mnt/smb/myserver/some/  unc/myserver/some/ 
-</SCREEN>to make it available in Wine (don't forget to create the uncdirectory if it doesn't already exist).+</code> 
 + 
 +to make it available in Wine (don't forget to create the uncdirectory if it doesn't already exist).
  
 ===== 4.3.3. Fonts ===== ===== 4.3.3. Fonts =====
  
-Font configuration, once a nasty problem, is now much simpler.   If you have a collection of TrueType fonts in Windows it'          simply a matter of copying the .ttffiles   into c:\windows\fonts.+Font configuration, once a nasty problem, is now much simpler.   If you have a collection of TrueType fonts in Windows it'  simply a matter of copying the .ttffiles   into c:\windows\fonts.
  
 ===== 4.3.4. Printers ===== ===== 4.3.4. Printers =====
  
-Wine can interact directly with the local CUPS printing system to   find the printers available on your system.  Configuring           printers with Wine is as simple as making sure your CUPS           configuration works. Wine still needs the           **lpr** command (from CUPS), when printing a document.+Wine can interact directly with the local CUPS printing system to   find the printers available on your system.  Configuring   printers with Wine is as simple as making sure your CUPS           configuration works. Wine still needs the           **lpr** command (from CUPS), when printing a document.
  
 If you do not use CUPS, the old BSD-Printing system is used: If you do not use CUPS, the old BSD-Printing system is used:
  
-    *+    * All Printers from /etc/printcapare installed automatically in Wine.
  
-All Printers from /etc/printcapare installed automatically in Wine.+    * Wine needs a PPD file for every Printer (generic.ppdcomes with Wine).
  
-    * +    * The **lpr**   command is called when printing a document
- +
-Wine needs a PPD file for every Printer (generic.ppdcomes with Wine). +
- +
-    * +
- +
-The **lpr**  command is called when printing a document+
  
 ===== 4.3.5. Scanners ===== ===== 4.3.5. Scanners =====
  
-In Windows, scanners use the TWAIN API to access the underlying   hardware.  Wine builtin TWAIN DLL simply forwards those requests           to the Linux SANE libraries.  So, to utilize your scanner under           Wine you'll first need to make sure you can access it using           SANE.  After that you'll need to make sure you have           **xscanimage**  available for use.  Currently   it is shipped with the           sane-frontends package but it   may not be installed with your distribution.  Scanner access           is currently known to have problems.  If you find it works for           you, please consider updating this section of the user guide to           provide details on using SANE with Wine.+In Windows, scanners use the TWAIN API to access the underlying   hardware.  Wine builtin TWAIN DLL simply forwards those requests   to the Linux SANE libraries.  So, to utilize your scanner under           Wine you'll first need to make sure you can access it using           SANE.  After that you'll need to make sure you have           **xscanimage**   available for use.  Currently   it is shipped with the   sane-frontends package but it   may not be installed with your distribution.  Scanner access           is currently known to have problems.  If you find it works for           you, please consider updating this section of the user guide to           provide details on using SANE with Wine.
  
 ===== 4.3.6. ODBC Databases ===== ===== 4.3.6. ODBC Databases =====
  
-The ODBC system within Wine, as with the printing system, is designed   to hook across to the Unix system at a high level.  Rather than           ensuring that all the Windows code works under Wine it uses a suitable           Unix ODBC provider, such as unixODBC.  Thus if you configure Wine to   use the built-in odbc32.dll,   that Wine DLL will interface to your           Unix ODBC package and let that do the work, whereas if you configure           Wine to use the native odbc32.dllit will try to use the native ODBC32 drivers etc.+The ODBC system within Wine, as with the printing system, is designed   to hook across to the Unix system at a high level.  Rather than   ensuring that all the Windows code works under Wine it uses a suitable           Unix ODBC provider, such as unixODBC.  Thus if you configure Wine to   use the built-in odbc32.dll,   that Wine DLL will interface to your           Unix ODBC package and let that do the work, whereas if you configure           Wine to use the native odbc32.dllit will try to use the native ODBC32 drivers etc.
  
 ==== 4.3.6.1. Configuring ODBC on Unix ==== ==== 4.3.6.1. Configuring ODBC on Unix ====
  
-The first step in using a Unix ODBC system with Wine is, of course,   to get the Unix ODBC system working itself.  This may involve           downloading code or binary packages etc.  There are several Unix ODBC systems           available such as unixODBCor an ODBC-ODBC bridge that can be used   to access a Microsoft Access database.  Typically such systems will            include a tool, such as **isql**, which will allow   you to access the data from the command line so that you can check            that the system is working.+The first step in using a Unix ODBC system with Wine is, of course,   to get the Unix ODBC system working itself.  This may involve   downloading code or binary packages etc.  There are several Unix ODBC systems           available such as unixODBCor an ODBC-ODBC bridge that can be used   to access a Microsoft Access database.  Typically such systems will            include a tool, such as **isql**, which will allow   you to access the data from the command line so that you can check   that the system is working.
  
-The next step is to hook the Unix ODBC library to the Wine built-in   odbc32DLL.  The built-in odbc32(currently)   looks to the environment variable           ''LIB_ODBC_DRIVER_MANAGER''  for the name of the ODBC   library.  For example:+The next step is to hook the Unix ODBC library to the Wine built-in   odbc32DLL.  The built-in odbc32(currently)   looks to the environment variable   ''LIB_ODBC_DRIVER_MANAGER''   for the name of the ODBC   library.  For example:
  
-<SCREEN>+<code>
 LIB_ODBC_DRIVER_MANAGER=/usr/lib/libodbc.so.1.0.0 LIB_ODBC_DRIVER_MANAGER=/usr/lib/libodbc.so.1.0.0
-</SCREEN>+</code>
  
-If that environment variable is not set then it looks for a   library called libodbc.soand so   you can add a symbolic link to           equate that to your own library.  For example as root you could           run the commands:+If that environment variable is not set then it looks for a   library called libodbc.soand so   you can add a symbolic link to   equate that to your own library.  For example as root you could           run the commands:
  
-<SCREEN># ln -s libodbc.so.1.0.0 /usr/lib/libodbc.so +<code> 
-# /sbin/ldconfig +# ln -s libodbc.so.1.0.0 /usr/lib/libodbc.so # /sbin/ldconfig 
-</SCREEN>+</code>
  
-The last step in configuring this is to ensure that Wine is set up   to run the built-in version of odbc32.dll,   by modifying the DLL           configuration.  This built-in DLL merely acts as a stub between the           calling code and the Unix ODBC library.+The last step in configuring this is to ensure that Wine is set up   to run the built-in version of odbc32.dll,   by modifying the DLL   configuration.  This built-in DLL merely acts as a stub between the           calling code and the Unix ODBC library.
  
-If you have any problems then you can use   ''WINEDEBUG'' =+odbc32 command   before running Wine to trace what is happening.  One word of           warning: some programs actually cheat a little and bypass the ODBC           library. For example the Crystal Reports engine goes to the registry           to check on the DSN.  The fix for this is documented at unixODBC   site where there is a section on using unixODBC with Wine.+If you have any problems then you can use   ''WINEDEBUG''  =+odbc32 command   before running Wine to trace what is happening.  One word of   warning: some programs actually cheat a little and bypass the ODBC           library. For example the Crystal Reports engine goes to the registry           to check on the DSN.  The fix for this is documented at unixODBC   site where there is a section on using unixODBC with Wine.
  
 ==== 4.3.6.2. Using Windows ODBC drivers ==== ==== 4.3.6.2. Using Windows ODBC drivers ====
  
-Native ODBC drivers have been reported to work for many types of   databases including MSSQL and Oracle. In fact, some like MSSQL can             only be accessed on Linux through a Winelib app.   Rather than             just copying DLL files, most ODBC drivers require a Windows-based             installer to run to properly configure things such as registry keys+Native ODBC drivers have been reported to work for many types of   databases including MSSQL and Oracle. In fact, some like MSSQL can   only be accessed on Linux through a Winelib app.   Rather than             just copying DLL files, most ODBC drivers require a Windows-based             installer to run to properly configure things such as registry keys.
- +
-In order to set up MSSQL support you will first need to download   and run the **mdac_typ.exe**  installer from www.microsoft.com</font> .  In order to   configure your ODBC connections you must then run **CLICONFG.EXE**    and **ODBCAD32.EXE**  under Wine.  You can find them in the   windows%%\%%system   directory after mdac_typ runs.  Compare the output of these programs             with the output on a native Windows machine.  Some things, such             as protocols, may be missing because they rely on being installed             along with the operating system.  If so, you may be able to copy             missing functionality from an existing Windows installation as             well as any registry values required.  A native Windows installation             configured to be used by Wine should work the same way it did             when run natively.+
  
-Types successfully tested under Wine:+In order to set up MSSQL support you will first need to download   and run the **mdac_typ.exe**   installer from [[http://www.microsoft.com//|www.microsoft.com//]]<///font> .  In order to   configure your ODBC connections you must then run **CLICONFG.EXE**     and **ODBCAD32.EXE**   under Wine.  You can find them in the   windows<nowiki>\</nowiki>system   directory after mdac_typ runs.  Compare the output of these programs   with the output on a native Windows machine.  Some things, such             as protocols, may be missing because they rely on being installed             along with the operating system.  If so, you may be able to copy             missing functionality from an existing Windows installation as             well as any registry values required.  A native Windows installation             configured to be used by Wine should work the same way it did             when run natively.  Types successfully tested under Wine:  ^DB Type ^Usefulness | |MS SQL |100% |  Please report any other successes to the   [[wine-devel@winehq.org|wine-devel]] mailing list. //
  
-^DB Type ^Usefulness | +//  //
-|MS SQL |100% |+
  
-Please report any other successes to the   [[wine-devel@winehq.org|wine-devel]] mailing list.+// //
  
  • kb/wine_i_pristup_mreznom_okruzenju_samba.txt
  • Last modified: 2016/09/09 13:48
  • by milano