Tiny Core Linux

Tiny Core Extensions => TCE Q&A Forum => Topic started by: beerstein on March 05, 2012, 04:32:17 PM

Title: ssh - tcl 3.84 on 2 PCs-try to run rox filer on remote machine
Post by: beerstein on March 05, 2012, 04:32:17 PM
ssh - tcl 3.84 on 2 PCs-try to run rox filer on remote machine
Hi: I connected 2 PCs with openssl from the repo running. I can connect into the remote
machine by: ssh -X tc@192.168.1.3 and I am able to execute CLI commands and even midnight commander. But when I try to start "rox" on the remote PC I get an error message similar to" GTK warning can not open display"

Is something missing here?
What do I have to to do to start a GUI app on the remote machine such as Firefox?
Title: Re: ssh - tcl 3.84 on 2 PCs-try to run rox filer on remote machine
Post by: gerald_clark on March 05, 2012, 04:42:44 PM
Is Xlibs.tcz loaded on the remote machine?
Title: Re: ssh - tcl 3.84 on 2 PCs-try to run rox filer on remote machine
Post by: beerstein on March 05, 2012, 05:54:56 PM
no, it was not loaded - I installed it from the repo (on boot) and tried it
while using the localhost - i did not reboot

# ssh -X tc@localhost
I got the same error message: tc@box:~$ rox

(ROX-Filer:5068): Gtk-WARNING **: cannot open display:
tc@box:~$

maybe I need more?
Title: Re: ssh - tcl 3.84 on 2 PCs-try to run rox filer on remote machine
Post by: curaga on March 06, 2012, 08:30:42 AM
You may need to use ssh -Y.
Title: Re: ssh - tcl 3.84 on 2 PCs-try to run rox filer on remote machine
Post by: beerstein on March 07, 2012, 08:52:14 AM
thank you I will try that. From googling the web I learned it might have something to do
with: 
a) display variable
b) remote host identification in general
c) public / private key authentication
Title: Re: ssh - tcl 3.84 on 2 PCs-try to run rox filer on remote machine
Post by: beerstein on March 08, 2012, 08:44:49 AM
Hi: loaded Xlibs.tcz and used the -Y option  I am getting different errors when I try to start rox-filer and leafpad. I tested using localhost.
When I am connected to a remote Suse 10.3 machine I can start GUI apps on the remote machine. Even the desktop comes up when I start kde.
Please HELP me

tc@box:~$ ssh -Y tc@localhost

tc@box:~$ rox

(ROX-Filer:13437): Gtk-WARNING **: cannot open display:

tc@box:~$ leafpad
leafpad: Cannot open display:
tc@box:~$


PS: I am getting a different error message when I try to start firefox at the remote PC."Error: no display specified" Do I need to install a GUI or GTK2.tcz?
Title: Re: ssh - tcl 3.84 on 2 PCs-try to run rox filer on remote machine
Post by: curaga on March 08, 2012, 10:04:16 AM
The dropbear client does not support X, and I think you need to enable X forwarding support in the opensshd server config if you use that.
Title: Re: ssh - tcl 3.84 on 2 PCs-try to run rox filer on remote machine
Post by: beerstein on March 13, 2012, 05:45:04 AM
Hi: Thank you for this. I changed the sshd_config file:
And set:

ForwardAgent yes


default is: ForwardAgent no

still get the same error. There might be other options I need to change:
ForwardX11 yes
ForwardX11Trusted yes

on the web I found the following quote " need to run export DISPLAY=:0 (or whatever the remote display is"
But how do I find out what the number of the remote display is?
May be, that  I also need to set the resolution for the remote display?


Title: Re: ssh - tcl 3.84 on 2 PCs-try to run rox filer on remote machine
Post by: curaga on March 13, 2012, 09:58:53 AM
SSH exports DISPLAY for you. If both X11 options are already set to yes, perhaps you need to give it the path to xauth.