I have some vserver with Debian 5 Lenny 32bit and full root rights if necessary. I use wine to start a windows application which needs to open a gui. I followed this tutorial (http://www.lizardking.biz/2009/02/debian-5-multi-user-vnc/) to run the x11, xdm as login manager and fluxbox as windowmanager. I can login over VNC and i am able to start the program without any problems. I open the in fluxbox type "wine programname" and it works. The Problem: I do not want to run VNC(security reason) and i do not need to see the gui to control the application anyway. I want to be able to login over SSH with putty and to start it there. Then i am also able to make a autostart and it is not necessary to open a VNC connection first to run it. However, if i try to run the application just with putty over ssh it just says: Code: 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. So, is it technically possible to run as example notepad(same error) with just using putty over ssh? greetz, John
JohnBenard <wineforum-user at winehq.org> wrote:> > >The Problem: I do not want to run VNC(security reason) and i do not need to see the gui to control the application anyway. >I want to be able to login over SSH with putty and to start it there. Then i am also able to make a autostart and it is >not necessary to open a VNC connection first to run it. However, if i try to run the application just with putty over ssh >it just says: >Code: >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. >You need some sort of X client/host or Wine will not work properly if you use the out-of-the-box Wine that comes with Debian.> > >So, is it technically possible to run as example notepad(same error) with just using putty over ssh? >See comment above. You CANNOT run a text only application in Wine without invoking the need to display a window. That is what DOSBox is for. BTW, notepad uses Windows windowing functions and thus is not a text only application as stated in the previous paragraph. James McKenzie
JohnBenard wrote:> I use wine to start a windows application which needs to open a gui. > So, is it technically possible to run as example notepad(same error) with just using putty over ssh?Not with plain ssh connection. To run GUI app Wine needs to create windows thus requiring X. You can use one of virtual X servers instead.
vitamin <wineforum-user at winehq.org> wrote:> >JohnBenard wrote: >> I use wine to start a windows application which needs to open a gui. >> So, is it technically possible to run as example notepad(same error) with just using putty over ssh? > >Not with plain ssh connection. To run GUI app Wine needs to create windows thus requiring X. You can use one of virtual X servers instead. >Vitamin: Do this all the time. Set up PuTTY to forward X calls and then run the Xserver with the DISPLAY variable set to the target machine. On the target machine, I run an X client (XWin32, commercial software) and it works for what I need to do. VNC should also be able to run across the ssh tunnel in this fashion. This looks like a good thing to use Google for. James McKenzie
On Mon, 2010-11-15 at 07:35 -0600, JohnBenard wrote:> I have some vserver with Debian 5 Lenny 32bit and full root rights if > necessary. I use wine to start a windows application which needs to > open a gui. I followed this tutorial > (http://www.lizardking.biz/2009/02/debian-5-multi-user-vnc/) to run > the x11, xdm as login manager and fluxbox as windowmanager. I can > login over VNC and i am able to start the program without any > problems. I open the in fluxbox type "wine programname" and it works. > > The Problem: I do not want to run VNC(security reason) and i do not > need to see the gui to control the application anyway. I want to be > able to login over SSH with putty and to start it there. Then i am > also able to make a autostart and it is not necessary to open a VNC > connection first to run it. However, if i try to run the application > just with putty over ssh it just says: >PuTTY is not a full graphical X-server: it is only capable of supporting a text terminal. Code:> 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. >To do what you want you need to install a graphical X-server, such as Xming or Cygwin, enable X-11 forwarding for sshd (this is the default) and configure your ssh client to request X11 forwarding. If PuTTY doesn't support X11 forwarding you'll need to find another ssh client as well. Some X-servers, such as Xming, are free and some will also act as an ssh client. There are a lot out there - the net search 'windows xserver' would have found them: did you look? You can configure VNC to use a password and - even better - can stop its server when you're not using it. As the VNC server only listens for connections and your Linux box, Windows PC and local network are behind a firewall that refuses all inbound connections (they are behind such a a firewall, aren't they?) its difficult to see why you think its less secure than ssh. Merely having a booted up Windows box on your network is much less secure than either ssh or VNC, firewall or no firewall. Why not replace Windows with Linux on it? This way X11 forwarding will 'just work' once you've configured the ssh client to request it.> So, is it technically possible to run as example notepad(same error) > with just using putty over ssh? >No. See above. You can only use PuTTY to run Linux command line programs, e.g. vi, vim, nano or emacs instead of notepad. They're better, anyway: notepad is one of the least capable editors I've used, barely better than edlin. Martin