Difference between revisions of "User:Bkoenig"

From FreekiWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
'''Hello World!'''
 
'''Hello World!'''
  
Seems like most Distros will be using grub, so heres a guide for installing them  alongside others on one hard drive.
+
Here is a guide for wine in Tech Support
  
=The Partitions=
+
=Terminology=
  
First, delete all partitions on the drive. Then add partitions to the beginning of the disk, sda1-3 should be primary, and the rest logical. Decide in advance how many partitions to create, so that the final partition can be a swap space of 2-5 Gigabytes (not that you need that much, but it's easier to shrink them than grow them).  
+
.wine – This is a hidden folder in the Home directory that contains everything that makes windows programs run, including the programs themselves. When you install a Windows program in wine, it goes into this folder. Every user also has their own copy of this folder.
  
From online research it seems you have to use an extended partition in place of sda4 to allow for more partitions.
+
Winecfg –  a.k.a WINE config – This main configuration program for wine lets you change all kinds of settings, and sometimes changing just one of these can be the difference between a program working perfectly, or being a piece of garbage. Also available in your menu under WINE.
  
=The Install=
+
Winetricks – A script that officially “breaks” wine, so you may loose some support, but if used correctly it can turn a terrible program into the program of your dreams.
  
When installing always use the manual partitioning method. All decent Distros should have this option.
+
Windows version – Wine can emulate several versions of Windows, and sometimes you  will have to pick a certain version for your program.
  
To keep it organized we should install first to sda1, then sda2, and so on so that its easier to look at. Also, don't format a partition unless you are going to use it for the root of the OS you are installing.
+
DLL – This is what a Windows library is called. WINE has special reverse-engineered versions of all of the major ones, but sometimes they just aren't up to par, or WINE doesn't have it's own version. If this is the case you may have to use an original Windows DLL (usually with winetricks).
  
==The Bootloader==
+
= Install WINE=
 +
Follow the directions on the Downloads page of www.winehq.org to install the latest version of WINE.
  
If there isn't an option to install the booloader to a specific place well then maybe we shouldn't consider that distro, or install to a clean HD. In Ubuntu it can be kind of convoluted to find the bootloader option, but its there, you just need to hunt for it.
+
=Install the Windows program=
Once you find it, if this is the first distro on the system, install to the MBR, or Master Boot Record (sda). For all consecutive distros install the grub to the partition you specified as /.
 
  
==GRUB Config==
+
Check the Winehq database to see how the programs works with WINE. If it's "Garbage" or "Bronze" forget about it, it's just too buggy. If it's "Silver" give a it a shot, but don't spend too much time on it, it probably won't work. "Gold" and "Platinum" should work, though you may have to follow an install guide on its AppDB page.
  
The grub of the first distro on the hard drive will also point the the bootloaders of all the other distros.
+
You should be able to just open the installer (whether it's in your Downloads or on a CD), usually setup.exe with the wine program loader. Install as normal, leaving everything at default.
First create the file that will tell grub where to look:
 
touch /etc/grub.d/50_distrotest
 
  
and copy this into it:
+
=Tweaking=
 +
If a program does not work, check the AppDB and the Internet for advice. Sometimes you may have to change which version of Windows to emulate, or have the app run in its own virtual desktop.
  
#!/bin/sh
+
If you need to install things like Directx or internet explorer, use winetricks. "winetricks --help" in a terminal will set on your way. Common uses of winetricks are
exec tail -n +3 $0
+
  winetricks vcrun2005
# This file provides an easy way to add custom menu entries. Simply type the
+
  winetricks vcrun2008
  # menu entries you want to add after this comment.  Be careful not to change
+
  winetricks ie6
# the 'exec tail' line above.
+
  winetricks ie7
  menuentry "distro name" {
+
  winetricks ie8
  set root=(hd0,2)
+
These install Windows runtime librarys and of course, different versions of Internet Explorer
  chainloader (hd0,2)+1
 
  }
 
Give the menu entry a nice name, and then tell it where to look.
 
(hd0,2) is sda2, change the "2" to the partition number that the distro is installed to in both instances.
 
In the above example selecting "distro name" in the grub menu will launch whatever bootloader is installed to sda2, which will load its appropriate OS.
 
  
Now just a few more things:
+
''NEVER BE AFRAID TO DELETE THE .WINE DIRECTORY AND START COMPLETELY OVER! THINGS WILL BREAK WHEN YOU START FIDDLING WITH IT!!!!''
chmod -x /etc/grub.d/30_os-prober
 
chmod +x /etc/grub.d/50_distrotest
 
update-grub
 
 
 
I can't see why this wouldn't work on any Debian-based system. If you have problems, first scream. And then go to tech support and get the grub rescue cd. And then do a bunch of searches on google, it really helps.
 

Revision as of 10:48, 22 August 2012

Hello World!

Here is a guide for wine in Tech Support

Terminology

.wine – This is a hidden folder in the Home directory that contains everything that makes windows programs run, including the programs themselves. When you install a Windows program in wine, it goes into this folder. Every user also has their own copy of this folder.

Winecfg – a.k.a WINE config – This main configuration program for wine lets you change all kinds of settings, and sometimes changing just one of these can be the difference between a program working perfectly, or being a piece of garbage. Also available in your menu under WINE.

Winetricks – A script that officially “breaks” wine, so you may loose some support, but if used correctly it can turn a terrible program into the program of your dreams.

Windows version – Wine can emulate several versions of Windows, and sometimes you will have to pick a certain version for your program.

DLL – This is what a Windows library is called. WINE has special reverse-engineered versions of all of the major ones, but sometimes they just aren't up to par, or WINE doesn't have it's own version. If this is the case you may have to use an original Windows DLL (usually with winetricks).

Install WINE

Follow the directions on the Downloads page of www.winehq.org to install the latest version of WINE.

Install the Windows program

Check the Winehq database to see how the programs works with WINE. If it's "Garbage" or "Bronze" forget about it, it's just too buggy. If it's "Silver" give a it a shot, but don't spend too much time on it, it probably won't work. "Gold" and "Platinum" should work, though you may have to follow an install guide on its AppDB page.

You should be able to just open the installer (whether it's in your Downloads or on a CD), usually setup.exe with the wine program loader. Install as normal, leaving everything at default.

Tweaking

If a program does not work, check the AppDB and the Internet for advice. Sometimes you may have to change which version of Windows to emulate, or have the app run in its own virtual desktop.

If you need to install things like Directx or internet explorer, use winetricks. "winetricks --help" in a terminal will set on your way. Common uses of winetricks are

winetricks vcrun2005
winetricks vcrun2008
winetricks ie6
winetricks ie7
winetricks ie8 

These install Windows runtime librarys and of course, different versions of Internet Explorer

NEVER BE AFRAID TO DELETE THE .WINE DIRECTORY AND START COMPLETELY OVER! THINGS WILL BREAK WHEN YOU START FIDDLING WITH IT!!!!