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
kb:wine_i_pristup_mreznom_okruzenju_samba [2026/02/07 15:13] milanokb:wine_i_pristup_mreznom_okruzenju_samba [2026/02/07 15:46] (current) – [Balans u mrežnom Linux okruženju] milano
Line 1: Line 1:
 ====== Balans u mrežnom Linux okruženju ====== ====== Balans u mrežnom Linux okruženju ======
  
-Kako se za rad Balans pod Linuxom korisit Wine server, navodim [[https://www.winehq.org/docs/wineusr-guide/misc-things-to-configure#AEN725|članak]] sa [[https://www.winehq.org|WineHQ sajta]].+Balans pod Linuxom radi koristeći **Wine server**na način koji opisuje ovaj [[https://www.winehq.org/docs/wineusr-guide/misc-things-to-configure#AEN725|članak]] sa [[https://www.winehq.org|WineHQ sajta]].
  
-====== 4.3. Other Things to Configure ======+===== Bazična instalacija =====
  
-This section is meant to cover the rest of the things you can configureIt also serves as collection of tips and tricks to get the most out of using Wine.+Opisani proces sprovodi se u ''linux terminalu'' pod običnim korisničkim nalogom\\ \\ Ova komanda kreira novi wine **wine_vb6_pgsql** prefix: 
 +<code> 
 +WINEARCH=win32 WINEPREFIX=~/.wine_vb6_pgsql wine wineboot 
 +</code> 
 +Instalacija //VB6 runtime// i //MDAC 2.8// sa //ADO DB (jet)// bibliotekama: 
 +<code> 
 +WINEPREFIX=~/.wine_vb6_pgsql winetricks -q vb6run mdac28 jet40 
 +</code> 
 +Instalacija PostgreSQL ODBC drajvera (prethodno se mora preuzeti sa PostgreSQL sajta): 
 +<code> 
 +# Zameniti 'psqlodbc_x86.msi' sa nazivom preuzetog fajla 
 +WINEPREFIX=~/.wine_vb6_pgsql wine msiexec /i psqlodbc_x86.msi 
 +</code> 
 +Konfiguracija DSN-a
 +<code> 
 +WINEPREFIX=~/.wine_vb6_pgsql wine odbcad32.exe 
 +</code> 
 +====== Ostale stvari za konfigurisanje ======
  
-===== 4.3.1. Serial and Parallel Ports =====+Ovaj odeljak je namenjen da pokrije ostale stvari koje možete da konfigurišeteTakođe služi kao zbirka saveta i trikova kako biste izvukli maksimum iz korišćenja programa Wine.
  
-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: +===== Serijski i paralelni portovi =====
-<code>+
  
-ln -/dev/ttyS0 com1 ln -s /dev/lp0 lpt1+Konfiguracija serijskog i paralelnog porta je veoma slična konfiguraciji diska jednostavno kreirajte simboličku vezu u ''~/.wine/dosdeviceswith'' naziv uređaja. \\ 
 +Serijski portovi u sistemu Windows prate konvenciju imenovanja: reč „come“ praćena brojem, na primer ''com1'', ''com2'', itd. Slično tome, paralelni portovi koriste lpt praćen brojem, kao što je ''lpt1''.\\ \\ 
 +Trebalo bi da ih direktno povežete sa odgovarajućim Juniks uređajima, kao što su ''/dev/ttyS0'' i ''/dev/lp0''. Uverite se da imate potrebna prava pristupa tom uređaju \\ \\
  
 +Na primer, da biste konfigurisali jedan serijski port i jedan paralelni port, pokrenite sledeće komande:
 +<code>
 +ln -s /dev/ttyS0 com1 ln -s /dev/lp0 lpt1
 </code> </code>
  
-===== 4.3.2. Network Shares =====+===== Mrežni deljeni folderi =====
  
-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 exampleif you used [[:kb:konfiguracija_samba_servera|Samba]] to mount %//myserver// <nowiki>\</nowiki>//some// on /mnt/smb///myserver/////some// then you can do +Windows deljenja se mogu mapirati u ''unc/directory'' tako da sve što pokušava da pristupi ''\\myserver<nowiki>\</nowiki>//some//<nowiki>\</nowiki>//file//'' tražiće u ''~/.wine/dosdevices/unc///myserver/////some/////file//''\\ Na primerako ste koristili [[:kb:konfiguracija_samba_servera|Samba]] da montirate %//myserver// <nowiki>\</nowiki>//some// na /mnt/smb///myserver////some// onda možete da uradite sledeće:
-<code>+
  
 +<code>
 ln -s /mnt/smb/myserver/some/  unc/myserver/some/ ln -s /mnt/smb/myserver/some/  unc/myserver/some/
- 
 </code> </code>
  
-to make it available in Wine (don't forget to create the uncdirectory if it doesn't already exist).+Da bi deljeni folder bio dostupan u Wine-u (ne zaboravite da kreirate unc-direktorijum ako već ne postoji).
  
-===== 4.3.3. Fonts =====+===== Fontovi =====
  
-Font configurationonce a nasty problem, is now much simplerIf you have a collection of TrueType fonts in Windows it's simply a matter of copying the .ttffiles into c:\windows\fonts.+Konfiguracija fontovanekada neprijatan problem, sada je mnogo jednostavnijaAko imate kolekciju TrueType fontova u Windows-u, jednostavno je potrebno kopirati .ttffajlove u ''c:\windows\fonts''.
  
-===== 4.3.4. Printers =====+===== Printeri =====
  
-Wine can interact directly with the local CUPS printing system to find the printers available on your systemConfiguring printers with Wine is as simple as making sure your CUPS configuration works. Wine still needs the **lpr** command (from CUPS), when printing document.+Wine može direktno da komunicira sa lokalnim CUPS sistemom za štampanje kako bi pronašao štampače dostupne na vašem sistemuKonfigurisanje štampača pomoću Wine-a je jednostavno kao i provera da li vaša CUPS konfiguracija funkcioniše. Wine-u je i dalje potrebna komanda **lpr** (iz CUPS-a) prilikom štampanja dokumenta.
  
-If you do not use CUPS, the old BSD-Printing system is used:+Ako ne koristite CUPS, koristi se stari BSD-sistem za štampanje:
  
-  All Printers from /etc/printcapare installed automatically in Wine.+Svi štampači iz /etc/printca se automatski instaliraju u Wine-u. 
 +* Wine-u je potrebna PPD datoteka za svaki štampač (generic.ppd dolazi sa Wine-om). 
 +* Komanda **lpr** se poziva prilikom štampanja dokumenta.
  
-  * Wine needs a PPD file for every Printer (generic.ppdcomes with Wine).+===== Skeneri =====
  
-  The **lpr**  command is called when printing document+U operativnom sistemu Windows, skeneri koriste TWAIN API za pristup osnovnom hardveru. Ugrađena TWAIN DLL biblioteka Wine-a jednostavno prosleđuje te zahteve SANE bibliotekama Linux-a. Dakle, da biste koristili skener pod Wine-om, prvo morate da se uverite da mu možete pristupiti pomoću SANE-a. Nakon toga, moraćete da se uverite da imate **xscanimage** dostupan za upotrebu. Trenutno se isporučuje sa sane-frontends paketom, ali možda nije instaliran sa vašom distribucijom. Trenutno je poznato da pristup skeneru može imati problema. Ako smatrate da vam funkcioniše, razmislite o ažuriranju ovog odeljka korisničkog vodiča kako biste pružili detalje o korišćenju SANE-sa Wine-om.
  
-===== 4.3.5. Scanners =====+===== ODBC Databases =====
  
-In Windowsscanners use the TWAIN API to access the underlying hardware. Wine builtin TWAIN DLL simply forwards those requests to the Linux SANE librariesSoto utilize your scanner under Wine you'll first need to make sure you can access it using SANEAfter 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 youplease consider updating this section of the user guide to provide details on using SANE with Wine.+ODBC sistem unutar Wine-akao i sistem za štampanje, dizajniran je da se poveže sa Unix sistemom na visokom nivouUmesto da osigura da sav Windows kod radi pod Wine-om, koristi odgovarajući Unix ODBC provajder, kao što je unixODBCDakleako konfigurišete Wine da koristi ugrađenu odbc32.dllta Wine DLL datoteka će se povezati sa vašim Unix ODBC paketom i pustiti ga da obavi posao, dok ako konfigurišete Wine da koristi izvorni odbc32.dllit, pokušaće da koristi izvorne ODBC32 drajvere itd.
  
-===== 4.3.6. ODBC Databases =====+==== Konfigurisanje ODBC-a na Unix-u ====
  
-The ODBC system within Wine, as with the printing systemis designed to hook across to the Unix system at a high levelRather than ensuring that all the Windows code works under Wine it uses a suitable Unix ODBC providersuch as unixODBC. Thus if you configure Wine to use the built-in odbc32.dllthat Wine DLL will interface to your Unix ODBC package and let that do the workwhereas if you configure Wine to use the native odbc32.dllit will try to use the native ODBC32 drivers etc.+Prvi korak u korišćenju Unix ODBC sistema sa Wine-om jenaravnopokretanje samog Unix ODBC sistemaOvo može uključivati preuzimanje koda ili binarnih paketa itd. Postoji nekoliko Unix ODBC sistemakao što su unixODBC ili ODBC-ODBC most koji se može koristiti za pristup Microsoft Access bazi podatakaTipičnotakvi sistemi uključuju alat, kao što je **isql**koji će vam omogućiti pristup podacima iz komandne linije kako biste mogli da proverite da li sistem radi.
  
-==== 4.3.6.1. Configuring ODBC on Unix ==== +Sledeći korak je povezivanje Unix ODBC biblioteke sa ugrađenom odbc32DLL bibliotekom Wine-a. Ugrađena odbc32 biblioteka (trenutnotraži ime ODBC biblioteke u promenljivoj okruženja ''LIB_ODBC_DRIVER_MANAGER''Na primer:
- +
-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 Microsoft Access databaseTypically 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(currentlylooks to the environment variable ''LIB_ODBC_DRIVER_MANAGER''  for the name of the ODBC libraryFor example:+
  
 <code> <code>
 LIB_ODBC_DRIVER_MANAGER=/usr/lib/libodbc.so.1.0.0 LIB_ODBC_DRIVER_MANAGER=/usr/lib/libodbc.so.1.0.0
- 
 </code> </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 libraryFor example as root you could run the commands:+Ako ta promenljiva okruženja nije podešena, onda traži biblioteku pod nazivom libodbc.soand, tako da možete dodati simboličku vezu da biste je izjednačili sa svojom bibliotekomNa primer, kao root možete pokrenuti komande:
  
 <code> <code>
 # ln -s libodbc.so.1.0.0 /usr/lib/libodbc.so # /sbin/ldconfig # ln -s libodbc.so.1.0.0 /usr/lib/libodbc.so # /sbin/ldconfig
- 
 </code> </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 configurationThis built-in DLL merely acts as a stub between the calling code and the Unix ODBC library.+Poslednji korak u konfigurisanju jeste osigurati da je Wine podešen da pokreće ugrađenu verziju odbc32.dll, modifikovanjem DLL konfiguracijeOva ugrađena DLL datoteka samo deluje kao veza između pozivnog koda i Unix ODBC biblioteke. 
 + 
 +Ako imate bilo kakvih problema, možete koristiti komandu ''WINEDEBUG'' =+odbc32 pre pokretanja Wine-a da biste pratili šta se dešava. Jedno upozorenje: neki programi zapravo malo varaju i zaobilaze ODBC biblioteku. Na primer, Crystal Reports mehanizam ide u registar da proveri DSN. Rešenje za ovo je dokumentovano na unixODBC sajtu gde postoji odeljak o korišćenju unixODBC-a sa Wine-om. 
 + 
 +==== Using Windows ODBC drivers ==== 
 + 
 +Prijavljeno je da izvorni ODBC drajveri rade za mnoge tipove baza podataka, uključujući MSSQL i Oracle. U stvari, nekima poput MSSQL-a može se pristupiti samo na Linux-u preko aplikacije Winelib. Umesto samog kopiranja DLL datoteka, većini ODBC drajvera je potreban instalater zasnovan na Windows-u da bi se pravilno konfigurisale stvari kao što su ključevi registra\\ \\
  
-If you have any problems then you can use ''WINEDEBUG''  =+odbc32 command before running Wine to trace what is happeningOne word of warning: some programs actually cheat a little and bypass the ODBC libraryFor example the Crystal Reports engine goes to the registry to check on the DSNThe fix for this is documented at unixODBC site where there is a section on using unixODBC with Wine.+Da biste podesili podršku za MSSQL, prvo morate da preuzmete i pokrenete instalater **mdac_typ.exe** sa [[http://www.microsoft.com//|www.microsoft.com//]]. \\ \\ 
 +Da biste konfigurisali svoje ODBC veze, morate pokrenuti **CLICONFG.EXE** i **ODBCAD32.EXE** pod Wine-om. Možete ih pronaći u sistemskom direktorijumu windows<nowiki>\</nowiki>nakon što se ''mdac_typ'' pokreneUporedite izlaz ovih programa sa izlazom na originalnoj Windows mašini\\ \\ Neke stvari, kao što su protokoli, mogu nedostajati jer se oslanjaju na instalaciju zajedno sa operativnim sistemom\\ Ako je tako, možda ćete moći da kopirate nedostajuće funkcionalnosti iz postojeće Windows instalacije, kao i sve potrebne vrednosti registra. Izvorna Windows instalacija konfigurisana da je koristi Wine trebalo bi da radi na isti način kao kada se pokreće originalnoTipovi uspešno testirani pod Wine-om: 
  
-==== 4.3.6.2. Using Windows ODBC drivers ====+^ DB Type ^ Usefulness ^ 
 +| MS SQL | 100% | 
 +| PostgreSQL | 100% |
  
-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 appRather than just copying DLL files, most ODBC drivers require a Windows-based installer to run to properly configure things such as registry keys.+Prijava problema radi se preko mejling liste: ''[[wine-devel@winehq.org|wine-devel]]''.
  
-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. // 
  
  
  • kb/wine_i_pristup_mreznom_okruzenju_samba.1770477182.txt.gz
  • Last modified: 2026/02/07 15:13
  • by milano