Chris301197
Posts: 1
Joined: Fri Dec 11, 2015 5:50 pm

How to run .exe files on raspbian

Fri Dec 11, 2015 6:03 pm

Hi, I've puchased the raspberry pi 2 some days ago, and I need to run an application .exe for windows.
I want to run it on wine, installed on rasbpian, but my question is "How to install wine?"
I've tryed with the command "sudo apt-get install wine" and "sudo apt-get install wine-development" but there is a problem with my missing package.
How I can do for to resolve this problem?
Thank you in advance!

drgeoff
Posts: 10183
Joined: Wed Jan 25, 2012 6:39 pm

Re: How to run .exe files on raspbian

Fri Dec 11, 2015 7:04 pm

WIne is not an emulator. It requires an x86 processor. RPis have ARM processors. Completely different instruction sets.

Time for plan B.

fruitoftheloom
Posts: 21565
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to run .exe files on raspbian

Fri Dec 11, 2015 7:24 pm

Chris301197 wrote:Hi, I've puchased the raspberry pi 2 some days ago, and I need to run an application .exe for windows.
I want to run it on wine, installed on rasbpian, but my question is "How to install wine?"
I've tryed with the command "sudo apt-get install wine" and "sudo apt-get install wine-development" but there is a problem with my missing package.
How I can do for to resolve this problem?
Thank you in advance!
Raspberry Pi's Linux OSes are not designed for what you want, but if really really really desperate then try:

http://eltechs.com/product/exagear-desktop
Retired disgracefully.....
......to a more gentile life !

User avatar
Cancelor
Posts: 759
Joined: Wed Aug 28, 2013 4:09 pm
Location: UK

Re: How to run .exe files on raspbian

Fri Dec 11, 2015 8:09 pm

What is the application you want to run? There is probably a Linux alternative.
Can't find the thread you want? Try googling : YourSearchHere site:raspberrypi.org

User avatar
DougieLawson
Posts: 37068
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: How to run .exe files on raspbian

Sat Dec 12, 2015 10:18 am

Chris301197 wrote:Hi, I've puchased the raspberry pi 2 some days ago, and I need to run an application .exe for windows.
Take your Raspberry Pi back to the shop - you bought the wrong computer. Get a cheap Win10 laptop - they run Windows programs with zero effort.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

gsgs
Posts: 134
Joined: Sun Dec 13, 2015 6:48 pm
Location: Germany
Contact: Website

Re: How to run .exe files on raspbian

Tue Dec 15, 2015 10:13 am

but the universities use Linux/unix and most of the scientific software is designed for linux
or doesn't compile in windows.

And no, you usually can't find easily a Linux equivalent for Windows/DOS programs.
Not for those selfwritten adapted utilities anyway.

It would be fine, if Wine just lets me continue to use the DOS commands at commandline,
so I don't have to learn the Linux terminology.

I don't know whether that will work
(I couldn't get my raspberry pi 2 running yet)


for most programs speed is not so important, so a slow emulation of X86 would be ok

fruitoftheloom
Posts: 21565
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to run .exe files on raspbian

Tue Dec 15, 2015 11:20 am

gsgs wrote:It would be fine, if Wine just lets me continue to use the DOS commands at commandline,
so I don't have to learn the Linux terminology.
WINE requires the machine to have Intel x86 CPU or equivalent :shock:

The Raspberry Pi has ARM CPU so can not run the WINE software as stated already...


Here you go a Windows Tablet £50.00 and sell your Raspberry Pi http://www.dabs.com/products/linx-7-win ... -9S52.html
Retired disgracefully.....
......to a more gentile life !

gsgs
Posts: 134
Joined: Sun Dec 13, 2015 6:48 pm
Location: Germany
Contact: Website

Re: How to run .exe files on raspbian

Tue Dec 15, 2015 11:35 am

can't I get both ? living together in peaceful coexistence, exchanging data
via SD-cards...


but why is wine included in raspbian operation system ? (as I understood)

--------edit------
ahh, - reading again - not included, the original poster wanted to install it

but I vaguely remember a thread, I think it was on this forum, where they
somehow succeeded to emulate the X86
Last edited by gsgs on Tue Dec 15, 2015 11:39 am, edited 1 time in total.

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 24912
Joined: Sat Jul 30, 2011 7:41 pm

Re: How to run .exe files on raspbian

Tue Dec 15, 2015 11:39 am

There is something called Dosbox, which I believe can run DOS programs by emulation. It's used by some game emulators.

But I'd suggest learning some LInux command line stuff - the basics are pretty easy, and compared with DOS much better.
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed. Here's an example...
“I own the world’s worst thesaurus. Not only is it awful, it’s awful."

fruitoftheloom
Posts: 21565
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to run .exe files on raspbian

Tue Dec 15, 2015 11:43 am

gsgs wrote: but I vaguely remember a thread, I think it was on this forum, where they
somehow succeeded to emulate the X86
......read my first response to OP and click on the eltechs.com link I posted :?

Yes double emulation then Wine noone has actually proved that ExaGear is usable for Windows NT .EXE :shock:


search.php?keywords=exagear
Retired disgracefully.....
......to a more gentile life !

flubbard
Posts: 65
Joined: Tue Dec 08, 2015 12:41 pm
Location: Ohio, USA
Contact: Website

Re: How to run .exe files on raspbian

Tue Dec 15, 2015 2:31 pm

@gsgs
It would be fine, if Wine just lets me continue to use the DOS commands at commandline,
so I don't have to learn the Linux terminology.
Just as an FYI, even when running on a Linux machine, Wine attempts to emulate a portion of the Windows structure, it does not create a windows "Virtual Machine" for you to run in. Therefore, you still do not get to use the standard DOS commands at the terminal, instead of the Linux commands.

As mentioned otherwise in this thread, getting Wine to work under the Raspberry Pi is going to be tricky, given the fact that the ARM processor is not an x86 based processor, and probably more importantly, is under powered for the typical requirements of Wine.

If you are looking at getting started with Linux to learn for University, you might wish to start with a LiveCD or Linux on a USB drive, as you can run that on your desktop machine to give you a full Linux environment, without the need of reformatting or dual booting your machine. I have written up some instructions at: http://www.barryhubbard.com/linux/boota ... -computer/

Also, there are some basic Linux command line utilities (Pretty much my notes to myself) at:

http://www.barryhubbard.com/linux/usefu ... with-text/

and

http://www.barryhubbard.com/linux/usefu ... avigation/

Personally, I got started with Linux for a very similar reason, so that I could create a remote X windows session to do my homework in my dorm room instead of having to go to the computer lab. All of the programs were running on a Unix server and I needed to establish an X front end to do it. The Pi might be sufficient for such a project, but it might be a little unrealistic to replace the windows machine with a Pi.

Hope this helps.

- Barry

gsgs
Posts: 134
Joined: Sun Dec 13, 2015 6:48 pm
Location: Germany
Contact: Website

Re: How to run .exe files on raspbian

Tue Dec 15, 2015 5:19 pm

it should be easy to replace the DOS commands by their Linux equivalents.
Has it been done ?

A small utility or "batch files" that lets me use the DOS commands on Linux

dir instead of ls and such

User avatar
rpdom
Posts: 16054
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: How to run .exe files on raspbian

Tue Dec 15, 2015 5:36 pm

gsgs wrote:it should be easy to replace the DOS commands by their Linux equivalents.
Has it been done ?

A small utility or "batch files" that lets me use the DOS commands on Linux

dir instead of ls and such
Have you tried typing dir at the command line?

fruitoftheloom
Posts: 21565
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to run .exe files on raspbian

Tue Dec 15, 2015 5:41 pm

Retired disgracefully.....
......to a more gentile life !

gsgs
Posts: 134
Joined: Sun Dec 13, 2015 6:48 pm
Location: Germany
Contact: Website

Re: How to run .exe files on raspbian

Tue Dec 15, 2015 7:23 pm

thanks for the bash list.
I somehow remember bash , was it in my knoppix-stick, maybe.
Or fedora. I had been playing with these a bit .. some hours
Navigating directories was different

I'll be missing my list,edit,repl,sort utilities, my C-compiler, gwbasic, batch files
trenne,klebe,filtentr, -(timing),mn(#+size of entries) and dozends of others gathered
or written over the years
-------------
now I remember, bash was in my knoppix-book
my raspberry doesn't seem to boot. I ordered a card with multiple
operation systems now , let's see...
Raspbian
Arch
OpenELEC
RaspBMC
PiDora
RiscOS
uvm. [and many others]

stderr
Posts: 2178
Joined: Sat Dec 01, 2012 11:29 pm

Re: How to run .exe files on raspbian

Tue Dec 15, 2015 7:50 pm

gsgs wrote:can't I get both ? living together in peaceful coexistence, exchanging data
via SD-cards...
Get everyone connected via a network because exchanging sdcards means a lot of potential and real trouble and bother. This could even include wearing out the sdcard mechanism on a board because it is not maybe designed for so many disconnections and reconnections. I've certainly seen this issue with USB motherboard connections. It's kind of a bigger potential deal with a sbc because the sdcard is probably the only way to boot.

It *is* irritating to take an sdcard out of an ARM board and put it into a x86 system, mount it and then not be able to chroot into it to do updates. It's nice to be able to do that and run, say, apt-get before putting the drive back where it belongs, which you can easily do if both systems are the same arch.

gsgs
Posts: 134
Joined: Sun Dec 13, 2015 6:48 pm
Location: Germany
Contact: Website

Re: How to run .exe files on raspbian

Wed Dec 16, 2015 7:13 am

you mean,
on bootable paspberry-cards
I do not get a normal file-structure that can be worked with in
both systems , raspberry and x86-windows/DOS ??
They should resolve that problem

User avatar
rpdom
Posts: 16054
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: How to run .exe files on raspbian

Wed Dec 16, 2015 1:54 pm

gsgs wrote:you mean,
on bootable paspberry-cards
I do not get a normal file-structure that can be worked with in
both systems , raspberry and x86-windows/DOS ??
They should resolve that problem
Yes, it's about time Microsoft fixed that in their systems.

gsgs
Posts: 134
Joined: Sun Dec 13, 2015 6:48 pm
Location: Germany
Contact: Website

Re: How to run .exe files on raspbian

Wed Dec 16, 2015 3:26 pm

ok, I got it booting now (the OS had to be "installed")
and the 2 cards could be read normally under windows/dos ,
although only ~70MB free disk space was shown.
I assume there are other hidden partitions or such
that I can only access with tricks

fruitoftheloom
Posts: 21565
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: How to run .exe files on raspbian

Wed Dec 16, 2015 3:30 pm

Removed response as not fully answering after reading this thread again and may cause confusion :D
Last edited by fruitoftheloom on Thu Dec 17, 2015 7:23 am, edited 1 time in total.
Retired disgracefully.....
......to a more gentile life !

gsgs
Posts: 134
Joined: Sun Dec 13, 2015 6:48 pm
Location: Germany
Contact: Website

Re: How to run .exe files on raspbian

Thu Dec 17, 2015 6:58 am

there should be a program, that reads/writes a specified block from/to the card,
regardless of the partitions or file structure

but I can't find it with googling now
I remember, in x86 it is all done by BIOS int 13, disks, harddrives,
But my old sector-read program doesn't word on SD-cards.
Well, they don't have sectors,cylinders,heads - so no surprise.

wdt
Posts: 21
Joined: Wed Dec 16, 2015 6:04 am

Re: How to run .exe files on raspbian

Thu Dec 17, 2015 2:23 pm

Well SD cards have emulated cylinders, heads , sectors,,
but most everything nowdays use LBA
INT 13!! that is real mode access, from the bios.
Once you are past Win3.1 there is no int13
There are IFS,, installable file systems for NT,
be carefull using them, win is not that reliable wrinting ext2,
mostly it works, OK for reading

gsgs
Posts: 134
Joined: Sun Dec 13, 2015 6:48 pm
Location: Germany
Contact: Website

Re: How to run .exe files on raspbian

Thu Dec 17, 2015 2:30 pm

LBA : https://en.wikipedia.org/wiki/Logical_block_addressing

but are things better nowadays ?
Not so easy to program

User avatar
rpdom
Posts: 16054
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: How to run .exe files on raspbian

Thu Dec 17, 2015 5:16 pm

It sounds like you are trying to overcomplicate things.

Reading and writing a raw device is easy in Linux, as long as the user has the correct permissions.

For the SD card you could do something like

Code: Select all

  card = open( "/dev/mmcblk0" )
  seek( card, address * 512 )
  read( buffer, card, 512 ) // Read a sector
  close( card )
You can even read/write sectors from the command line with the skip/seek and count options of dd.

gsgs
Posts: 134
Joined: Sun Dec 13, 2015 6:48 pm
Location: Germany
Contact: Website

Re: How to run .exe files on raspbian

Thu Dec 17, 2015 5:39 pm

> Reading and writing a raw device is easy in Linux, as long
> as the user has the correct permissions.

how does he get the correct permissions ?

> For the SD card you could do something like
> card = open( "/dev/mmcblk0" )
> seek( card, address * 512 )
> read( buffer, card, 512 ) // Read a sector
> close( card )

thanks...sounds good ... what Linux is it ? bash ? reads the raspberry2b system-card or from USB ?
Now read all the sectors and write it to a file on another, bigger card in another USB-port
Or write it directly to their corresponding sectors/blocks

> You can even read/write sectors from the command line with the skip/seek and count options of dd.

so the above wasn't the command line ?! what's dd ?

(I have no easy Linux access ATM)

how to do that in Windows cmd.exe commandline or with a C-program
or x86 assembly

Return to “Beginners”