I need to open a Nautilus window on a headless server, but no matter what I try it complains about the display:
✈dcl:~$ xhost + localhost localhost being added to access control list ✈dcl:~$ ssh -X user@ip.address [user@CentOS-55-32-minimal ~]$ export DISPLAY=localhost:0.0 [user@CentOS-55-32-minimal ~]$ nautilus --display=0:0 cannot open display: 0:0 Run 'nautilus --help' to see a full list of available command line options. [user@CentOS-55-32-minimal ~]$
Googling the situation it looks like I've covered all the steps: enabling remote X, X forwarding, display export and telling Nautilus which display to use. Any other ideas? Thanks!
Hi Dotan,
I need to open a Nautilus window on a headless server, but no matter what I try it complains about the display:
✈dcl:~$ xhost + localhost localhost being added to access control list ✈dcl:~$ ssh -X user@ip.address [user@CentOS-55-32-minimal ~]$ export DISPLAY=localhost:0.0 [user@CentOS-55-32-minimal ~]$ nautilus --display=0:0 cannot open display: 0:0 Run 'nautilus --help' to see a full list of available command line options. [user@CentOS-55-32-minimal ~]$
Googling the situation it looks like I've covered all the steps: enabling remote X, X forwarding, display export and telling Nautilus which display to use. Any other ideas? Thanks!
Check that you have X11Forwarding yes in sshd.conf
Rgds
Simon
On Fri, Aug 6, 2010 at 11:43, Simon Billis simon@houxou.com wrote:
Check that you have X11Forwarding yes in sshd.conf
Rgds
Simon
Thanks, Simon, it appears so:
[root@CentOS-55-32-minimal ~]# cat /etc/ssh/sshd_config | grep X11Forwarding #X11Forwarding no X11Forwarding yes
The SSH server (and the machine itself) had been reset since that change has been made, of course.
On Fri, Aug 6, 2010 at 11:43, Simon Billis simon@houxou.com wrote:
Check that you have X11Forwarding yes in sshd.conf
Rgds
Simon
Thanks, Simon, it appears so:
[root@CentOS-55-32-minimal ~]# cat /etc/ssh/sshd_config | grep X11Forwarding #X11Forwarding no X11Forwarding yes
The SSH server (and the machine itself) had been reset since that change has been made, of course.
Having reread your OP - try running nautilus without the display setting at the end (it's superfluous considering that you have a exported the display variable) as you had a typo in the incatation or replace the ":" with a "."
HTH
S.
On Fri, Aug 6, 2010 at 12:05, Simon Billis simon@houxou.com wrote:
On Fri, Aug 6, 2010 at 11:43, Simon Billis simon@houxou.com wrote:
Check that you have X11Forwarding yes in sshd.conf
Rgds
Simon
Thanks, Simon, it appears so:
[root@CentOS-55-32-minimal ~]# cat /etc/ssh/sshd_config | grep X11Forwarding #X11Forwarding no X11Forwarding yes
The SSH server (and the machine itself) had been reset since that change has been made, of course.
Having reread your OP - try running nautilus without the display setting at the end (it's superfluous considering that you have a exported the display variable) as you had a typo in the incatation or replace the ":" with a "."
HTH
S.
Still no luck: [user@CentOS-55-32-minimal ~]$ nautilus cannot open display: Run 'nautilus --help' to see a full list of available command line options. [user@CentOS-55-32-minimal ~]$ nautilus --display=0.0 cannot open display: 0.0 Run 'nautilus --help' to see a full list of available command line options. [user@CentOS-55-32-minimal ~]$
Hi,
On Fri, Aug 6, 2010 at 12:05, Simon Billis simon@houxou.com wrote:
On Fri, Aug 6, 2010 at 11:43, Simon Billis simon@houxou.com wrote:
CUT
Still no luck: [user@CentOS-55-32-minimal ~]$ nautilus cannot open display: Run 'nautilus --help' to see a full list of available command line options. [user@CentOS-55-32-minimal ~]$ nautilus --display=0.0 cannot open display: 0.0 Run 'nautilus --help' to see a full list of available command line options. [user@CentOS-55-32-minimal ~]$
Ah yes - Hakan Koseoglu has correctly identified the problem in his recent sorry to have wasted your time :-)
S.
On Fri, Aug 6, 2010 at 12:59, Simon Billis simon@houxou.com wrote:
Ah yes - Hakan Koseoglu has correctly identified the problem in his recent sorry to have wasted your time :-)
No, I feel that I had wasted yours! But if we both had learned something then the time was invested, not wasted. Thanks!
On Fri, 6 Aug 2010, Dotan Cohen wrote:
To: CentOS mailing list centos@centos.org From: Dotan Cohen dotancohen@gmail.com Subject: Re: [CentOS] Remote nautilus, X display forwarding problem
On Fri, Aug 6, 2010 at 12:05, Simon Billis simon@houxou.com wrote:
On Fri, Aug 6, 2010 at 11:43, Simon Billis simon@houxou.com wrote:
Check that you have X11Forwarding yes in sshd.conf
Rgds
Simon
Thanks, Simon, it appears so:
[root@CentOS-55-32-minimal ~]# cat /etc/ssh/sshd_config | grep X11Forwarding #X11Forwarding no X11Forwarding yes
The SSH server (and the machine itself) had been reset since that change has been made, of course.
Having reread your OP - try running nautilus without the display setting at the end (it's superfluous considering that you have a exported the display variable) as you had a typo in the incatation or replace the ":" with a "."
HTH
S.
Still no luck: [user@CentOS-55-32-minimal ~]$ nautilus cannot open display: Run 'nautilus --help' to see a full list of available command line options. [user@CentOS-55-32-minimal ~]$ nautilus --display=0.0 cannot open display: 0.0 Run 'nautilus --help' to see a full list of available command line options. [user@CentOS-55-32-minimal ~]$
Hi Dotan.
Give me a temporary login (sent directly via email) as user@CentOS-55-32-minimal, and I'll see if I can login and run Nautilus from here.
Are there any other X apps that you can run on the remote box that will work over ssh -X ?
Kind Regards,
Keith Roberts
----------------------------------------------------------------- Websites: http://www.php-debuggers.net http://www.karsites.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------
Dotan,
Do not do these steps:
On 6 August 2010 09:24, Dotan Cohen dotancohen@gmail.com wrote:
[user@CentOS-55-32-minimal ~]$ export DISPLAY=localhost:0.0 [user@CentOS-55-32-minimal ~]$ nautilus --display=0:0 cannot open display: 0:0
When you connect with sssh -X, it will create the tunnel and assign a DISPLAY variable. hakan@hakan-laptop:10:29:51:~$ ssh -X hobbit Last login: Thu Aug 5 09:45:59 2010 from 10.15.1.99 more cowbells! _________________________________________ / It is impossible to defend perfectly \ | against the attack of those who want to | \ die. / ----------------------------------------- \ ^__^ \ (oo)_______ (__)\ )/\ ||----w | || || [hakan@hobbit ~]$ echo $DISPLAY localhost:10.0
and then you can run Nautilus w/o a problem, with no options necessary.
On Fri, Aug 6, 2010 at 12:31, Hakan Koseoglu hakan@koseoglu.org wrote:
Dotan,
Do not do these steps:
On 6 August 2010 09:24, Dotan Cohen dotancohen@gmail.com wrote:
[user@CentOS-55-32-minimal ~]$ export DISPLAY=localhost:0.0 [user@CentOS-55-32-minimal ~]$ nautilus --display=0:0 cannot open display: 0:0
When you connect with sssh -X, it will create the tunnel and assign a DISPLAY variable. hakan@hakan-laptop:10:29:51:~$ ssh -X hobbit Last login: Thu Aug 5 09:45:59 2010 from 10.15.1.99 more cowbells! _________________________________________ / It is impossible to defend perfectly \ | against the attack of those who want to | \ die. / ----------------------------------------- \ ^__^ \ (oo)_______ (__)\ )/\ ||----w | || || [hakan@hobbit ~]$ echo $DISPLAY localhost:10.0
and then you can run Nautilus w/o a problem, with no options necessary.
For some reason, now I can just SSH -X in and then start Nautilus. This was _not_ working earlier, which is why I hit google and found the "display" playthings. Maybe I was forgetting the -X (I don't have a history to check, arh!). I don't know, but it works now.
Thanks, sorry for the noise.
On Fri, 6 Aug 2010, Dotan Cohen wrote:
To: CentOS mailing list centos@centos.org From: Dotan Cohen dotancohen@gmail.com Subject: Re: [CentOS] Remote nautilus, X display forwarding problem
*snipped*
For some reason, now I can just SSH -X in and then start Nautilus. This was _not_ working earlier, which is why I hit google and found the "display" playthings. Maybe I was forgetting the -X (I don't have a history to check, arh!). I don't know, but it works now.
Thanks, sorry for the noise.
If you ran the following from bash:
✈dcl:~$ xhost + localhost localhost being added to access control list ✈dcl:~$ ssh -X user@ip.address
There should be a file in your dcl home directory, called .bash_history . Each command you type at the bash prompt will be saved to that file, including any command line options.
Kind Regards,
Keith Roberts
----------------------------------------------------------------- Websites: http://www.php-debuggers.net http://www.karsites.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------
On Fri, Aug 6, 2010 at 15:49, Keith Roberts keith@karsites.net wrote:
Give me a temporary login (sent directly via email) as user@CentOS-55-32-minimal, and I'll see if I can login and run Nautilus from here.
Are there any other X apps that you can run on the remote box that will work over ssh -X ?
Thanks, Keith. I cannot reproduce the issue, but if it crops up again (ie, if the problem wasn't bkac) then I'll ping you. Thanks.
If you ran the following from bash:
✈dcl:~$ xhost + localhost localhost being added to access control list ✈dcl:~$ ssh -X user@ip.address
There should be a file in your dcl home directory, called .bash_history . Each command you type at the bash prompt will be saved to that file, including any command line options.
My local machine has history disabled, due to an unrelated issue.
2010/8/6 Dotan Cohen dotancohen@gmail.com:
I need to open a Nautilus window on a headless server, but no matter what I try it complains about the display:
✈dcl:~$ xhost + localhost localhost being added to access control list ✈dcl:~$ ssh -X user@ip.address [user@CentOS-55-32-minimal ~]$ export DISPLAY=localhost:0.0 [user@CentOS-55-32-minimal ~]$ nautilus --display=0:0 cannot open display: 0:0 Run 'nautilus --help' to see a full list of available command line options. [user@CentOS-55-32-minimal ~]$
Googling the situation it looks like I've covered all the steps: enabling remote X, X forwarding, display export and telling Nautilus which display to use. Any other ideas? Thanks!
install xorg-x11-xauth on server and then just ssh -X user@ip
-- Eero