|
Sexta-feira, Agosto 08, 2003
Wine-pt-HOWTO
Hugo Pereira, hugocunhapereira@teleweb.pt v 0.01, 25 de Junho de 2000 1 - Experiência pessoal 1.1 - O que é o wine? O Wine é um programa que permite correr software para windows no Linux 1.2 - Como comecei a usá-lo. Comecei a utilizar o Wine pois existia um programa que adorava, mas não existia versão para Linux. Esse programa é o Free Agent, um cliente de nntp. Actualmente no meu sistema tenho leafnode que alimenta localmente o sistema com newsgroups, e como cliente o Free Agent. 2 - Como obter o Wine? Pode obter o Wine apartir de http://www.winehq.com. Aconselho o descarregamento do código fonte, pois os binários são um pouco lentos. Tal também é válido se a sua distribuição possuir o Wine pré-compilado: essa versão provavelmente já é antiga e lenta, logo deve descarregar a última versão e compilá-la no seu computador. 3 - Como compilar e instalar o Wine? Após ter descarregado o ficheiro wine-????????.tar.gz, descompacte esse ficheiro: # tar xvfz wine-????????.tar.gz (substitua wine-????????.tar.gz pelo nome do ficheiro que descarregou) Entre na directoria que foi criada. Aí dever dar os seguintes comandos: # ./configure # make depend && make # make install Em principio não surgirá nenhum erro. O mais comum é não ter a biblioteca xpm instalada. Procure-a no cd da sua distribuição. 4 - Configurar o Wine O meu objectivo era configurar o wine de modo a correr apartir do meu directório fonte. Para tal criei os seguintes directórios: /home/---/win /home/---/win/windows /home/---/win/windows/system /home/---/win/windows/temp Não possuo o windows instalado no meu sistema. Se o tem numa partição, pode montá-la e correr os programas directamente a partir dessa partição. Aqui está o meu ficheiro .winerc: ----------------- .winerc -------------------- ;; ;; MS-DOS drives configuration ;; ;; Each section has the following format: ;; [Drive X] ;; Path=xxx (Unix path for drive root) ;; Type=xxx (supported types are 'floppy', 'hd', 'cdrom' and 'network') ;; Label=xxx (drive label, at most 11 characters) ;; Serial=xxx (serial number, 8 characters hexadecimal number) ;; Filesystem=xxx (supported types are 'msdos'/'dos'/'fat', 'win95'/'vfat', 'un$;; This is the FS Wine is supposed to emulate on a certain ;; directory structure. ;; Recommended: ;; - "win95" for ext2fs, VFAT and FAT32 ;; - "msdos" for FAT16 (ugly, upgrading to VFAT driver strongly recommended) ;; DON'T use "unix" unless you intend to port programs using Winelib ! ;; Device=/dev/xx (only if you want to allow raw device access) ;; [Drive A] Path=/mnt/fd0 Type=floppy Label=Floppy Serial=87654321 Device=/dev/fd0 [Drive C] Path=/home/hugo/win Type=hd Label=MS-DOS Filesystem=win95 [Drive D] Path=/mnt/cdrom Type=cdrom Label=CD-Rom Filesystem=win95 [Drive E] Path=/home/hugo/win/windows/temp Type=hd Label=Tmp Drive Filesystem=win95 [Drive F] Path=${HOME} Type=network Label=Home Filesystem=win95 [wine] Windows=/home/hugo/win/windows System=/home/hugo/win/windows/system Temp=/home/hugo/win/windows/temp Path=/home/hugo/win/windows;/home/hugo/win/windows/system; /home/hugo/win/window$SymbolTableFile=./wine.sym # [DllDefaults] EXTRA_LD_LIBRARY_PATH=${HOME}/wine/cvs/lib DefaultLoadOrder = native, elfdll, so, builtin [DllPairs] kernel = kernel32 gdi = gdi32 user = user32 commdlg = comdlg32 commctrl= comctl32 ver = version shell = shell32 lzexpand= lz32 mmsystem= winmm msvideo = msvfw32 winsock = wsock32 [DllOverrides] kernel32, gdi32, user32 = builtin kernel, gdi, user = builtin toolhelp = builtin comdlg32, commdlg = elfdll, builtin, native version, ver = elfdll, builtin, native shell32, shell = builtin, native lz32, lzexpand = builtin, native commctrl, comctl32 = builtin, native wsock32, winsock = builtin advapi32, crtdll, ntdll = builtin, native mpr, winspool = builtin, native ddraw, dinput, dsound = builtin, native winmm, mmsystem = builtin msvideo, msvfw32 = builtin, native mcicda.drv, mciseq.drv = builtin, native mciwave.drv = builtin, native mciavi.drv, mcianim.drv = native, builtin w32skrnl = builtin wnaspi32, wow32 = builtin system, display, wprocs = builtin wineps = builtin [options] AllocSystemColors=100 [fonts] ;Read documentation/fonts before adding aliases Resolution = 96 Default = -adobe-times- [serialports] Com1=/dev/ttyS0 Com2=/dev/ttyS1 Com3=/dev/modem,38400 Com4=/dev/modem [parallelports] Lpt1=/dev/lp0 [spooler] LPT1:=|lpr LPT2:=|gs -sDEVICE=bj200 -sOutputFile=/tmp/fred -q - LPT3:=/dev/lp3 [ports] ;read=0x779,0x379,0x280-0x2a0 ;write=0x779,0x379,0x280-0x2a0 [spy] Exclude=WM_SIZE;WM_TIMER; [Registry] ; Paths must be given in /dir/dir/file.reg format. ; Wine will not understand dos file names here... ;UserFileName=xxx ; alternate registry file name (user.reg) ;LocalMachineFileName=xxx ; (system.reg) [Tweak.Layout] ;; WineLook=xxx (supported styles are 'Win31'(default), 'Win95', 'Win98') WineLook=Win95 [programs] Default= Startup= [Console] ;XtermProg=nxterm ;InitialRows=25 ;InitialColumns=80 ;TerminalType=nxterm # ----------------- .winerc -------------------- 5 - Que programas correm no Wine? Já corri no Wine o Free Agent, o Agent, o mIRC, o winamp, o freecell, a diciopédia entre outros. Acho que o Free Agent e a Diciopédia são dois dos programas que melhor correr no Wine. O Wine ainda está numa fase muito inicial de desenvolvimento, mas já é capaz de correr um grande número de aplicações. Seguindo li, correr bastante bem jogos, mas inda não experimentei. ---------------------------------------------- Copyright (C) 2000 Hugo Pereira Este texto é documentação livre, pode ser distribuido, modificado ou traduzido livremente desde que o autor seja notificado. O autor pode alterar a totalidade ou parte do documento sem qualquer aviso prévio. O autor não se responsabiliza por qualquer dano que possa ocorrer pela utilização da informação existente neste documento. Sugestões e críticas para: hugocunhapereira@teleweb.pt Poderá encontrar a última versão deste documento no seguinte endereço: http://sevennet.webhop.org Etiquetas: bits, linux, softwarelivre, tutoriais |