How to open apps...

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
Kaboo
Level 1
Level 1
Posts: 8
Joined: Thu May 07, 2009 1:08 pm

How to open apps...

Post by Kaboo »

Hello, to open a file with terminal, using wine, the command is:
wine filename, right?
How do i open a file that is inside folders?
Thanks!

Bye!
John Drescher

How to open apps...

Post by John Drescher »

On Thu, May 7, 2009 at 2:15 PM, Kaboo <[email protected]> wrote:
Hello, to open a file with terminal, using wine, the command is:
wine filename, right?
How do i open a file that is inside folders?
Thanks!
cd foldername

This is same command on windows or *nux from a shell/terminal/command window.

John
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

How to open apps...

Post by austin987 »

On Thu, May 7, 2009 at 1:15 PM, Kaboo <[email protected]> wrote:
Hello, to open a file with terminal, using wine, the command is:
wine filename, right?
Close:
$ wine program.exe filename
How do i open a file that is inside folders?
$ wine program.exe folder/filename

Same as you would on windows...

--
-Austin
Kaboo
Level 1
Level 1
Posts: 8
Joined: Thu May 07, 2009 1:08 pm

Re: How to open apps...

Post by Kaboo »

austin987 wrote:On Thu, May 7, 2009 at 1:15 PM, Kaboo <[email protected]> wrote:
Hello, to open a file with terminal, using wine, the command is:
wine filename, right?
Close:
$ wine program.exe filename
How do i open a file that is inside folders?
$ wine program.exe folder/filename

Same as you would on windows...

--
-Austin
Thanks for the help!
But... if the file program.exe is on /var/foldername, i will do:

$ wine programname.exe var/foldername
or
$ wine program.exe var/foldername/program.exe?

And.. how do i close the application that i opened?

Thanks.
Bye!
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

How to open apps...

Post by austin987 »

On Thu, May 7, 2009 at 1:31 PM, Kaboo <[email protected]> wrote:
austin987 wrote:
On Thu, May 7, 2009 at 1:15 PM, Kaboo <[email protected]> wrote:
Hello, to open a file with terminal, using wine, the command is:
wine filename, right?
Close:
$ wine program.exe filename

How do i open a file that is inside folders?
$ wine program.exe folder/filename

Same as you would on windows...

--
-Austin
Thanks for the help!
But... if the file program.exe is on /var/foldername, i will do:

$ wine programname.exe var/foldername
or
$ wine program.exe var/foldername/program.exe?
No, do:
$ cd /var/foldername
$ wine program.exe filename
-Austin
Kaboo
Level 1
Level 1
Posts: 8
Joined: Thu May 07, 2009 1:08 pm

Re: How to open apps...

Post by Kaboo »

austin987 wrote:On Thu, May 7, 2009 at 1:31 PM, Kaboo <[email protected]> wrote:
austin987 wrote:
On Thu, May 7, 2009 at 1:15 PM, Kaboo <[email protected]> wrote:
Close:
$ wine program.exe filename

$ wine program.exe folder/filename

Same as you would on windows...

--
-Austin
Thanks for the help!
But... if the file program.exe is on /var/foldername, i will do:

$ wine program.exe var/foldername
or
$ wine program.exe var/foldername/program.exe?
No, do:
$ cd /var/foldername
$ wine program.exe filename
-Austin
$ wine program.exe filename
What's the filename?
Sorry, i'm a damn newba, when talking about terminal :lol: .
However, how do i close the file, after i opened it?
And, can i open .bat files with Wine, eh?

Thanks for your posts, you are really helping me
Bye!
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

How to open apps...

Post by austin987 »

On Thu, May 7, 2009 at 1:46 PM, Kaboo <[email protected]> wrote:
austin987 wrote:
On Thu, May 7, 2009 at 1:31 PM, Kaboo <[email protected]> wrote:
austin987 wrote:
Thanks for the help!
But... if the file program.exe is on /var/foldername, i will do:

$ wine program.exe var/foldername
or
$ wine program.exe var/foldername/program.exe?
No, do:
$ cd /var/foldername
$ wine program.exe filename
-Austin
$ wine program.exe filename
What's the filename?
You said you wanted to open a file...if you just want to run a
program, it's 'wine program.exe'
Sorry, i'm a damn newba, when talking about terminal  [Laughing] .
However, how do i close the file, after i opened it?
Just as you would in windows. Close the program.
And, can i open .bat files with Wine, eh?
'wine cmd.exe' should support them. Complex .bat scripts may not work
as intended.

--
-Austin
Kaboo
Level 1
Level 1
Posts: 8
Joined: Thu May 07, 2009 1:08 pm

Re: How to open apps...

Post by Kaboo »

Just as you would in windows. Close the program.
Is there any command? Because i will open it remotely, with Putty, no graphical things, hehe.
'wine cmd.exe' should support them. Complex .bat scripts may not work
as intended.
So i can do:
$ cd /var/foldername
$ wine program.bat
?

Thanks!
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

How to open apps...

Post by austin987 »

On Thu, May 7, 2009 at 1:56 PM, Kaboo <[email protected]> wrote:
Just as you would in windows. Close the program.
Is there any command? Because i will open it remotely, with Putty, no graphical things, hehe.
Wine requires X to run.
And, can i open .bat files with Wine, eh?
'wine cmd.exe' should support them. Complex .bat scripts may not work
as intended.
So i can do:
$ cd /var/foldername
$ wine program.bat ?
Not quite...you'd need to use:
$ wine start program.bat

--
-Austin
Kaboo
Level 1
Level 1
Posts: 8
Joined: Thu May 07, 2009 1:08 pm

Re: How to open apps...

Post by Kaboo »

Wine requires X to run.
Sorry, but i didn't understand what is X.... hehe, what's it?

Thanks.
austin987
Wine Developer
Wine Developer
Posts: 2383
Joined: Fri Feb 22, 2008 8:19 pm

How to open apps...

Post by austin987 »

On Thu, May 7, 2009 at 2:16 PM, Kaboo <[email protected]> wrote:
Wine requires X to run.
Sorry, but i didn't understand what is X.... hehe, what's it?
http://www.x.org/wiki/

X = gui


--
-Austin
John Drescher

How to open apps...

Post by John Drescher »

On Thu, May 7, 2009 at 3:16 PM, Kaboo <[email protected]> wrote:
Wine requires X to run.
Sorry, but i didn't understand what is X.... hehe, what's it?
X Windows.


http://en.wikipedia.org/wiki/X_Window_System

John
jm

How to open apps...

Post by jm »

On Thu, May 7, 2009 at 2:20 PM, Austin English <[email protected]> wrote:
On Thu, May 7, 2009 at 2:16 PM, Kaboo <[email protected]> wrote:
Wine requires X to run.
Sorry, but i didn't understand what is X.... hehe, what's it?
http://www.x.org/wiki/

X = gui


--
-Austin

(waiting for the next question..."what is gui"?)


--
since this is a gmail account, please verify the mailing list is
included in the reply to addresses
Gert van den Berg

How to open apps...

Post by Gert van den Berg »

On Thu, May 7, 2009 at 20:56, Kaboo <[email protected]> wrote:
Just as you would in windows. Close the program.
Is there any command? Because i will open it remotely, with Putty, no graphical things, hehe.
SSH's X11 forwarding combined with a Windows X server, such as XMing
should work.

Look under the SSH -> X11 section in the PuTTY configuration.

Note: It might need some changes to the sshd_config.

Gert
Kaboo
Level 1
Level 1
Posts: 8
Joined: Thu May 07, 2009 1:08 pm

Re: How to open apps...

Post by Kaboo »

So, i need to install this X windows system where? On my home computer or on the Server(with linux, that i want to use wine remotely) that i'm using?
How do i use X Window System?
Sorry, but i'm confused...

Bye!
John Drescher

How to open apps...

Post by John Drescher »

On Thu, May 7, 2009 at 3:32 PM, Kaboo <[email protected]> wrote:
So, i need to install this X windows system where? On my home computer or on the Server(with linux, that i want to use wine remotely) that i'm using?
You install that on the server. You may want a virtual X server. I
have no time to go into the details of that though.

John
Martin Gregorie

How to open apps...

Post by Martin Gregorie »

On Thu, 2009-05-07 at 14:03 -0500, Austin English wrote:
On Thu, May 7, 2009 at 1:56 PM, Kaboo <[email protected]> wrote:
Just as you would in windows. Close the program.
Is there any command? Because i will open it remotely, with Putty, no graphical things, hehe.
Wine requires X to run.
... or you can use VNC provided you have either vncviewer or Java
installed on your Windows PC. If Java, you need a browser that can run
Java applets, e.g. FireFox.

T start VNC, login to the directory that contains WINE with PuTTY, run:
vncserver

and make a note of the desktop number it says it will use (usually 1).
You can logout from PuTTY or not, as you please.

If you have vncviewer, start it:

vncviewer

When prompted, enter "hostname:n" where 'n' is the desktop number.
Now it will prompt for the password for the login where you ran
vncserver. When that's accepted it will open a desktop for your remote
host.

Alternatively, fire up your web browser and type in the url
"hostname:580n" where 'n' is the desktop number (usually 1). The browser
will show a VNC banner page and pop yo a dialogue box showing
"hostname:n". Click OK and another popup appears, asking for the login
where you ran vncserver. When that's accepted it will open a desktop for
your remote host.

To close either desktop, click its 'close' icon. You can leave vncserver
running and close and reopen the desktop as many times as you want.

vncserver will keep running until you either reboot the host or login
again via PuTTY and stop it by running:

vncserver -kill :n

where 'n' is the desktop number.

VNC's desktop defaults to xfce and opens a terminal window on starting,
where you can type the wine command, etc. When an app wants to open a
window, a ghost window trails from the mouse pointer: click where you
want to put its top left corner on the VNC desktop. If you like VNC but
not xfce, you can configure it to use Gnome or KDE instead, but two
thinks to note: (1) accept the default desktop size and (2) you'll find
the colours are relatively poor because VNC only uses 16 bit colour.


HTH
Martin
Kaboo
Level 1
Level 1
Posts: 8
Joined: Thu May 07, 2009 1:08 pm

Re: How to open apps...

Post by Kaboo »

T start VNC, login to the directory that contains WINE with PuTTY, run:
vncserver
I went to the directory(cd usr/lib/wine) with Putty, but when i did vncserver:
Command not found.
Do i need to write anything, not only vncserver?

Thanks.
Bye!
John Drescher

How to open apps...

Post by John Drescher »

On Thu, May 7, 2009 at 6:18 PM, Kaboo <[email protected]> wrote:
T start VNC, login to the directory that contains WINE with PuTTY, run:
vncserver
I went to the directory(cd usr/lib/wine) with Putty, but when i did vncserver:
Command not found.
Do i need to write anything, not only vncserver?
Then its probably not installed on your linux server. Your distro
should have this.

John
Martin Gregorie

How to open apps...

Post by Martin Gregorie »

On Thu, 2009-05-07 at 17:18 -0500, Kaboo wrote:
T start VNC, login to the directory that contains WINE with PuTTY, run:
vncserver
I went to the directory(cd usr/lib/wine) with Putty, but when i did vncserver:
Command not found.
Do i need to write anything, not only vncserver?
It sounds as if it isn't installed by default on your distro, so you'll
need to install them. If your package installer doesn't let you figure
out the package names yourself, ask on a support forum for your distro.

In Fedora distros you need the vnc and vnc-server packages but I don't
know what other Linuxes would call them. When you find out, post the
package names here so others, as well as myself, will know what to
install for your distro.


Martin
Kaboo
Level 1
Level 1
Posts: 8
Joined: Thu May 07, 2009 1:08 pm

Re: How to open apps...

Post by Kaboo »

Ok, i started VNC server..
"New 'X' desktop is blabla.bla-:1
Starting applications specified in /etc/x11/xsession
log file is root/.vnc/blablabla:1.log".

But when i try to connect with VNC Viewer, i got the following error:
"unable to connect to host: Connection refused (10061)".
(I tried to log with IP:1)
The host provider(where i bought the server) said that all ports are opened
Didn't find anything good related to it on internet, does anyone had this error, or know how to solve?

Thanks.
Bye!
AL3X2
Level 2
Level 2
Posts: 11
Joined: Mon Dec 08, 2008 4:08 pm

Post by AL3X2 »

omg what a patience xD!
User avatar
Daemon
Level 4
Level 4
Posts: 101
Joined: Wed Nov 12, 2008 2:24 pm

Post by Daemon »

AL3X2 wrote:omg what a patience xD!
mental patients?

________________________________
I have this reoccurring dream that starts:
"Hi, this is Billy Mays for Linux..."
Martin Gregorie

How to open apps...

Post by Martin Gregorie »

On Thu, 2009-05-07 at 20:26 -0500, Kaboo wrote:
Ok, i started VNC server..
"New 'X' desktop is blabla.bla-:1
Starting applications specified in /etc/x11/xsession
log file is root/.vnc/blablabla:1.log".

But when i try to connect with VNC Viewer, i got the following error:
"unable to connect to host: Connection refused (10061)".
Didn't find anything good related to it on internet, does anyone had
this error, or know how to solve?
Have you got the firewall running on Linux? If so, it is probably
blocking the ports used by Xvnc, the server started by the vncserver
script. Xvnc listens on:

- 590x for vncviewer
- 580x for the Java applet

where x is the desktop number. In case you didn't realize, you can leave
more than copy of Xnvnc running in different logins and use the port
number to select which login to use.

Use the firewall management tool (it is System:Administration:Firewall
on Fedora) to open at least port 5801 (if you want to try the applet)
and 5901 (for vncviewer).


Martin
Locked