WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: [HELP] Remote X applications  (Read 3376 times)

Offline brunok

  • Newbie
  • *
  • Posts: 36
[HELP] Remote X applications
« on: January 16, 2018, 05:18:08 AM »
I'm excited about this distro!  :P

I am currently trying to use X applications remotely.
I have a CentOS server, with 2 network cards. A NAT network delivering DHCP and a TinyCore 8.2 image remastered via TFTP.
Working very well!


I need to run X applications with DISPLAY redirection to TinyCore client IP.


On the server I did:

export DISPLAY=10.1.1.10:0.0

Where 10.1.1.10 is my Tiny Client with Xvesa. Already modified .xsession file (removed no tcp listen option).

And I tried running rdesktop on the server, to open it in TinyCore, but get error "could not open display".


Any idea?

Offline andyj

  • Hero Member
  • *****
  • Posts: 1020
Re: [HELP] Remote X applications
« Reply #1 on: January 16, 2018, 07:36:13 AM »
Rdesktop is an application to connect to windows terminal server sessions (the open source equivalent of mstsc.exe) and is not what you want. Running X applications remotely is different. There are different ways to do it, but for the kind of setup you are describing you probably want to use XDMCP. It is a little more automagic than the other ways. Otherwise it is a manual process that a person would probably only do on an as-needed basis.

Offline brunok

  • Newbie
  • *
  • Posts: 36
Re: [HELP] Remote X applications
« Reply #2 on: January 16, 2018, 08:37:17 AM »
Rdesktop is one example.

I've installed XMING in a Windows BOX and open FIREFOX in my Server CentOS.

Firefox GUI running in Windows BOX, but process, running in my CentOS.


Example:

CentOS: export DISPLAY=x.x.x.x:0.0
firefox &

Where x.x.x.x is Windows IP.


In my TinyCore client, value of $DISPLAY is :0.0

But get error in my CentOS.  :-\

Error: cannot open display: x.x.x.x:0.0
« Last Edit: January 16, 2018, 08:47:00 AM by brunok »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10957
Re: [HELP] Remote X applications
« Reply #3 on: January 16, 2018, 10:07:16 AM »
You may need to play with access control too (-ac option to Xvesa), or maybe Xorg.

edit: Tested with two Qemu instances in a LAN. Removing "-nolisten tcp" and adding "-ac -tcp", X remoting worked. Naturally disabling access control with -ac is insecure, so please set up a firewall or other measures.
« Last Edit: January 16, 2018, 10:17:39 AM by curaga »
The only barriers that can stop you are the ones you create yourself.

Offline brunok

  • Newbie
  • *
  • Posts: 36
Re: [HELP] Remote X applications
« Reply #4 on: January 16, 2018, 10:19:20 AM »
ITS AMAZING!!!

Updated my .xsession with -ac and -tcp flags.

Work like a charm!


THANKS!