LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-30-2013, 08:14 AM   #1
dderr
LQ Newbie
 
Registered: Jul 2013
Posts: 5

Rep: Reputation: Disabled
Running a .exe file


I have an executable xxxx.exe file that I want to run. What is the procedure to run this?
 
Old 07-30-2013, 08:19 AM   #2
Razaliel
LQ Newbie
 
Registered: Jul 2013
Distribution: Debian testing
Posts: 21

Rep: Reputation: 5
Hi,

It's a windows executable file, so you have to use wine.
First install wine:
sudo apt-get install wine (if you are using a Debian/Ubuntu distribution)
Then run wine in graphical mode and open the .exe file, or type in your terminal: wine xxxx.exe
 
Old 07-30-2013, 08:29 AM   #3
dderr
LQ Newbie
 
Registered: Jul 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
How do you know it is a windows file? Is it because it is a xxx.exe file?

Did as you suggested but returned an error indicating that

" Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window"

So it would seem that my problem is bigger than I thought.
 
Old 07-30-2013, 08:37 AM   #4
Razaliel
LQ Newbie
 
Registered: Jul 2013
Distribution: Debian testing
Posts: 21

Rep: Reputation: 5
The extension .exe is the standard extension for windows executables, that's why I think it's from windows. Do you have a graphical user interface? Gnome or KDE? Or are you just running this in command line?
You also have to configure wine with the command : winecfg
Don't run the wine and winecfg commands in root.
After the config you can run the exe file with: wine xxxx.exe

Last edited by Razaliel; 07-30-2013 at 08:45 AM.
 
Old 07-30-2013, 09:02 AM   #5
dderr
LQ Newbie
 
Registered: Jul 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Running an exe file

I have two approaches; one is command line and I managed to start Xming. Neither has been successful. Did the winecfg but to no avail. Still looking to see if the X server is running.
 
Old 07-30-2013, 09:08 AM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,362

Rep: Reputation: 3912Reputation: 3912Reputation: 3912Reputation: 3912Reputation: 3912Reputation: 3912Reputation: 3912Reputation: 3912Reputation: 3912Reputation: 3912Reputation: 3912
Quote:
Originally Posted by dderr View Post
I have an executable xxxx.exe file that I want to run. What is the procedure to run this?
This has been asked (and answered), many MANY times on this site. There are lots of different solutions, so check out the "Search" feature and look at a few of them.
Quote:
Originally Posted by dderr
How do you know it is a windows file? Is it because it is a xxx.exe file?
Right.
Quote:
Did as you suggested but returned an error indicating that

" Application tried to create a window, but no driver could be loaded.
Make sure that your X server is running and that $DISPLAY is set correctly.
err:systray:initialize_systray Could not create tray window"

So it would seem that my problem is bigger than I thought.
Nope...if you are already running a GUI (that is, have windows/menus/mouse cursor), you're already running X, and that error is coming from the application.
Quote:
Originally Posted by dderr
I have two approaches; one is command line and I managed to start Xming. Neither has been successful. Did the winecfg but to no avail. Still looking to see if the X server is running.
We could help you more, but you're not providing details. You don't say what this application actually IS, what version/distro of Linux you're trying to run it on, etc.

The best approach is to not run Windows applications at all. Chances are, there is already a Linux application that does exactly what you need to do, without Wine/Windows, so using it is simpler by far.
 
Old 07-30-2013, 09:11 AM   #7
dderr
LQ Newbie
 
Registered: Jul 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Well, this is a bit embarrassing. I looked again and the file is not a .exe but .bin
It is either earlier then I think or much, much later than I think.
 
Old 07-30-2013, 09:24 AM   #8
Razaliel
LQ Newbie
 
Registered: Jul 2013
Distribution: Debian testing
Posts: 21

Rep: Reputation: 5
Quote:
Originally Posted by dderr View Post
Well, this is a bit embarrassing. I looked again and the file is not a .exe but .bin
Well if its a .bin file then you can run it in the terminal by going to the folder containing the file, and then type:
Code:
chmod u+x xxxx.bin
./xxxx.bin
 
1 members found this post helpful.
Old 07-30-2013, 09:55 AM   #9
dderr
LQ Newbie
 
Registered: Jul 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Hum...... Thought I had tried that but maybe I did not change the mode to executable when I tried it last time.
Thanks, this did the trick.
 
Old 07-31-2013, 03:20 PM   #10
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,498
Blog Entries: 10

Rep: Reputation: 1647Reputation: 1647Reputation: 1647Reputation: 1647Reputation: 1647Reputation: 1647Reputation: 1647Reputation: 1647Reputation: 1647Reputation: 1647Reputation: 1647
Just be cautious running EXE or BIN files and make sure you know where they came from; that you trust where they came from; and what their intended results are. Probably running an EXE under Wine may not cause problems as it would if you were running Windows; and the EXE had malicious intent. Running a BIN under Linux will work, same cautious concern there. If someone wrote something with malicious intent, it could basically destroy your installation pretty fast.
 
Old 07-31-2013, 03:56 PM   #11
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian Jessie / sid
Posts: 1,471

Rep: Reputation: 444Reputation: 444Reputation: 444Reputation: 444Reputation: 444
as already mentioned, wine

but if it is .NET, then mono works well

But really you should look for Linux alternative
http://alternativeto.net/ is a great help here
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
running 32 bit C code .exe file using more memory to run on 64 bit machine? gajananh999 General 9 08-07-2012 09:16 AM
Running an exe file on a dedicated virtual server at media temple linux based. abasquare Linux - Newbie 2 01-09-2011 07:20 PM
help running .exe file for app installed on server bcbotha SUSE / openSUSE 2 10-28-2009 08:05 AM
To write a script file to check the running exe in LINUX platform udhaya Linux - Newbie 1 01-31-2008 09:13 AM


All times are GMT -5. The time now is 01:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration