LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-24-2014, 08:17 AM   #1
postcd
Member
 
Registered: Oct 2013
Posts: 527

Rep: Reputation: Disabled
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?
 
Old 05-24-2014, 09:12 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
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.

Last edited by 273; 05-24-2014 at 06:01 PM. Reason: Typo'
 
Old 05-24-2014, 05:56 PM   #3
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
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
 
Old 05-24-2014, 09:16 PM   #4
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,377

Rep: Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757Reputation: 2757
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.
 
Old 05-26-2014, 02:54 AM   #5
postcd
Member
 
Registered: Oct 2013
Posts: 527

Original Poster
Rep: Reputation: Disabled
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?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SSH remote command: Pipe remote output to local machine? kenneho Linux - Server 6 12-06-2012 01:37 AM
How to use ssh and run command in the remote machine using shell script salmanmanekia Linux - Newbie 8 04-28-2011 07:41 AM
Run application on *monitor* of remote machine via SSH? DiBosco Linux - Networking 5 04-09-2007 08:57 AM
how to open a dilog on local machine when i do ssh to remote machine fahad26 Programming 3 05-03-2005 07:39 PM
How do I setup xwindow to run a remote desktop on my local machine through ssh. green-ears Linux - Newbie 4 11-04-2003 05:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration