Portable Wine

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
askim_66
Newbie
Newbie
Posts: 3
Joined: Thu Sep 22, 2011 10:16 am

Portable Wine

Post by askim_66 »

Hello!

I need an official portable version Wine. I google it but i could not find something.

Some users told me where is no a portable version of Wine but i think it possible to make it. Because yesterday I downloaded from official site of Teamviewer the portable Linux version ( http://www.teamviewer.com/en/download/index.aspx ). Teamviewer has make his own portable Wine and Teamviewer works based on it perfectly.

I will be happy if you can help me.

Thanks in advance...
doh123
Level 8
Level 8
Posts: 1227
Joined: Tue Jul 14, 2009 1:21 pm

Post by doh123 »

if your having a specific problem getting it to work... then ask. What Teamviewer did with Wine is not hard to do. Did you try and its not working or something? what happens when you try?
askim_66
Newbie
Newbie
Posts: 3
Joined: Thu Sep 22, 2011 10:16 am

Post by askim_66 »

I did not tr any thing yet. But i just need Wine as portable.

Just like here:http://portablelinuxapps.org/ All the programs on this site are portable. I need portable of Wine.
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Portable Wine

Post by jjmckenzie »

On 9/22/11 2:02 PM, askim_66 wrote:
I did not tr any thing yet. But i just need Wine as portable.

Just like here:http://portablelinuxapps.org/ All the programs on this site are portable. I need portable of Wine.
This 'begs' the question, why? Are you planning on bundling a privately
built Windows program with Wine or do you want to run Wine from a
portable device (USB Stick)?

Most of the 'portable' applications are made to run off a USB device and
have all of their data saved to that device.

James
askim_66
Newbie
Newbie
Posts: 3
Joined: Thu Sep 22, 2011 10:16 am

Re: Portable Wine

Post by askim_66 »

jjmckenzie wrote:On 9/22/11 2:02 PM, askim_66 wrote:
I did not tr any thing yet. But i just need Wine as portable.

Just like here:http://portablelinuxapps.org/ All the programs on this site are portable. I need portable of Wine.
This 'begs' the question, why? Are you planning on bundling a privately
built Windows program with Wine or do you want to run Wine from a
portable device (USB Stick)?

Most of the 'portable' applications are made to run off a USB device and
have all of their data saved to that device.

James
I will answer why i want to use portable wine:

My friends has Ubuntu on their machine but they don't use Wine (because they don't want to install MS softwares or any other reasons). When i go their house, i will get my USB flash drive with me. So if i can use Wine portable, i will put some softwares on my usb stick and i will open these softwares on my friends directly. The same reason with other portable softwares.
Bruni
Level 2
Level 2
Posts: 13
Joined: Fri Aug 05, 2011 3:26 pm

Post by Bruni »

User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

Post by SpawnHappyJake »

You could format a thumb drive as ext[x] (or one partition on a thumb drive), and compile WINE from source on your friend's computer on your thumb drive. That way all the needed libraries (open source) will be installed on your friend's computer, and the WINE executable on your thumb drive will work. Just have some prefixes on your thumb drive, and voila! Maybe some bash scripts to run programs off your thumb drive instead of having to type out the path to your wine executable, the Windows exectuable, _and_ the wineprefix _every_single_time. Oh boy. Those bash scripts again. You don't intend on running a debugger, do you?

If anyone knows how to have WINE use libraries at a specified location, that would be super cool input. Then all the libraries could just be on the thumb drive, and WINE uses those. And it would be truly portable.

Also, constantly reading and writing to a thumb drive is hard on the flash cells and will kill your thumb drive. I recommend copying it off the thumb drive to a temporary location on your friend's computer, and then copying it back on when you are done, and delete the temp folder.

Cheers,
Jake
jjmckenzie
Moderator
Moderator
Posts: 1153
Joined: Wed Apr 27, 2011 11:01 pm

Portable Wine

Post by jjmckenzie »

On 9/24/11 4:49 PM, SpawnHappyJake wrote:
You could format a thumb drive as ext[x] (or one partition on a thumb drive), and compile WINE from source on your friend's computer on your thumb drive. That way all the needed libraries (open source) will be installed on your friend's computer, and the WINE executable on your thumb drive will work. Just have some prefixes on your thumb drive, and voila! Maybe some bash scripts to run programs off your thumb drive instead of having to type out the path to your wine executable, the Windows exectuable, _and_ the wineprefix _every_single_time. Oh boy. Those bash scripts again. You don't intend on running a debugger, do you?
Portable Applications come as a 'bundle' and do not need external
libraries. This would make Wine HUGE. The WineBottler and Wine
applications built by Mike Kronenberg are such but for MacIntosh systems.

James
Martin Gregorie

Portable Wine

Post by Martin Gregorie »

On Sat, 2011-09-24 at 18:49 -0500, SpawnHappyJake wrote:
Also, constantly reading and writing to a thumb drive is hard on the
flash cells and will kill your thumb drive. I recommend copying it off
the thumb drive to a temporary location on your friend's computer, and
then copying it back on when you are done, and delete the temp folder.
I used to think that until I read up on wear levelling.

All flash cards have a lifetime that's determined by two parameters:
chip design life expressed as write cycles
the design life of the package expressed as insert/remove cycles

Cheap cards may be designed for as few as 10,000 write cycles while
premium cards are typically designed for 100,000. Most card contacts are
designed for 20,000 insertions and removals. The lifetime of an SD card
is unaffected by the number of times it is read. Writing involves a
chemical change to the chip: each time a bit in the chip is written it
is degraded slightly. The material its made of is specified to last at
least the design life before it degrades sufficiently to become
unreliable. Calculations show that a good quality card is likely to be
lost or trodden on before either the chip or the contacts wear out.

This calculation assumed that the card was a 2GB SD card organised into
4K blocks and that it has a design life is 100,000 write cycles per
memory cell and 20,000 insertion cycles for the contacts. These are
typical figures for a premium quality card.

The application, a real one involving logging GPS data as it is
received, writes a 40 byte line to a log file once a second. If a
premium SD card is used, it will take 303 thousand years before the
cells in a memory block wears out.

I also assumed that the card would be removed from the recording device
and read into a PC every day (2 insertion/removal cycles per day). The
card should withstand this for 27 years.

As I said: unless the card is mistreated or faulty, you're likely to
lose or damage it before it wears out.

Don't believe me? The specs of a decent SD card, e.g. Crucial or
SanDisk, are on the 'net, so download them, read up on how the cards are
organised and how wear levelling works (both are well described in
Wikipedia) and do the calculations for yourself.


Martin
User avatar
SpawnHappyJake
Level 5
Level 5
Posts: 272
Joined: Sun Feb 06, 2011 5:57 am

Post by SpawnHappyJake »

Thanks Martin, that's pretty interesting.
Jake
Locked