LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   SSH -X to run Firefox on remote machine (https://www.linuxquestions.org/questions/linux-software-2/ssh-x-to-run-firefox-on-remote-machine-4175505966/)

postcd 05-24-2014 08:17 AM

SSH -X to run Firefox on remote machine
 
Hello,

on my home computer i have Debian 6.x

and i can use SSH -X to connect my remote linux server on which is CentOS (Redhat).

I have fluxbox desktop interface there.

I want to ask how i can run somehow Firefox on that remote server and work in that Firefox on my local home linux PC..

Do i need to install Huge X-Window system (yum groupinstall 'X Window System') on remote computer or can i use fluxbox or any other more lightweight?

I want skip VNC and use ssh -X command..

When not having X-window system installed:

im getting errors like:
Quote:

Error: no display specified
# export DISPLAY=localhost:0.0
# firefox &
[1] 5832
# Error: cannot open display: localhost:0.0
AFTER installing X-Window system using yum command above, im getting same errors:
Quote:

[root@vps ~]#
[root@vps ~]# firefox
Error: cannot open display:
[root@vps ~]# export DISPLAY=
[root@vps ~]# firefox
Error: cannot open display:
[root@vps ~]# export DISPLAY=localhost:0.0
[root@vps ~]# firefox
Error: cannot open display: localhost:0.0
[root@vps ~]# firefox &
[1] 6426
any ideas please?

273 05-24-2014 09:12 AM

My guess is your problem is due to trying to run Firefox as root. I find that I can run an instance of Firefox from a remote machine on the local X server as long as I do not do it as root.
I am assuming you are allowing X in the config files on both machines.

timl 05-24-2014 05:56 PM

try:

Quote:

ssh -X user@192.168.1.99 firefox -no-remote
Where user is the username on the centos box and your own IP add

Not sure about fluxbox. I run a centos system headlessly and that just worked for me.

Cheers

allend 05-24-2014 09:16 PM

I find that running a browser locally with a connection to a ssh provided SOCKS5 server on the remote is much faster.

I connect using 'ssh -Y -D8888 <remote>' and have the local browser configured (Preferences->Advanced->Network->Settings in Firefox) to use a manual proxy using SOCKSv5 to a SOCKS host at 127.0.0.1 on port 8888.

postcd 05-26-2014 02:54 AM

Quote:

I am assuming you are allowing X in the config files on both machines.
Im unsure how i can do it(

Quote:

try:

Quote:
ssh -X user@192.168.1.99 firefox -no-remote
thx, but it complains about "Error: no display specified"


the "echo $DISPLAY" command returns blank line.. when done in "ssh -X myremoteserverip" (loged in by that command to my remote server)

Remote server is on Redhat CentOS 5.10 32bit, when list installed x11 packages (yum list *x11*), these are returned: libX11.i386 1.0.3-11.el5_7.1 installed - Pastebin.com

Please advice me on how to install, how to do?


All times are GMT -5. The time now is 09:19 AM.