I have a remote session via ssh/vncviewer and I'm logged in and working.
I have opened a terminal and am trying to start the Fedora Directory Server console (not that this should matter)...
and thus I am typing (as root)...
./startconsole -x nologo -u admin -a MYHOSTNAME:PORT# &
and it fails to launch and returns the following error...
Xlib: connection to "MYHOSTNAME:1.0" refused by server Xlib: no protocol specified
Console: can't connect to X11 window server using 'MYHOSTNAME:1.0' as the value of the DISPLAY variable
and of course it then exits
I have done this elsewhere - the difference I think is that I originally installed this system without any X stuff but have since added it and am launching this from a GNOME session (so I know X is working).
Clues?
Craig
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Jan 11, 2006 at 07:37:30PM -0700, Craig White wrote:
Xlib: connection to "MYHOSTNAME:1.0" refused by server Xlib: no protocol specified
Clues?
xhost(1)
Also make sure your local X server is configured to accept tcp connections, and you have no iptables rules blocking those.
Among other places, you will want to check for the DisalowTCP tag on /etc/X11/gdm/gdm.conf, if you are using gdm (standard for CentOS). I don't remember what the default is.
- -- Rodrigo Barbosa rodrigob@suespammers.org "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
On Thu, 2006-01-12 at 01:04 -0200, Rodrigo Barbosa wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Jan 11, 2006 at 07:37:30PM -0700, Craig White wrote:
Xlib: connection to "MYHOSTNAME:1.0" refused by server Xlib: no protocol specified
Clues?
xhost(1)
Also make sure your local X server is configured to accept tcp connections, and you have no iptables rules blocking those.
Among other places, you will want to check for the DisalowTCP tag on /etc/X11/gdm/gdm.conf, if you are using gdm (standard for CentOS). I don't remember what the default is.
---- thanks but you are still over my head.
xhost +localhost returns the same error.
DisallowTCP is commented in /etc/X11/gdm/gdm.conf
The issue seems to be that gdm isn't running...is it supposed to be running in runlevel 3?
If so...what is the right way to start it?
Craig
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Jan 11, 2006 at 08:17:39PM -0700, Craig White wrote:
On Thu, 2006-01-12 at 01:04 -0200, Rodrigo Barbosa wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Jan 11, 2006 at 07:37:30PM -0700, Craig White wrote:
Xlib: connection to "MYHOSTNAME:1.0" refused by server Xlib: no protocol specified
Clues?
xhost(1)
Also make sure your local X server is configured to accept tcp connections, and you have no iptables rules blocking those.
Among other places, you will want to check for the DisalowTCP tag on /etc/X11/gdm/gdm.conf, if you are using gdm (standard for CentOS). I don't remember what the default is.
thanks but you are still over my head.
xhost +localhost returns the same error.
On your local workstation, you should do:
xhost +remote
Where remote is either the hostname (should be possible to lookup) or IP Address (to make sure it will work).
DisallowTCP is commented in /etc/X11/gdm/gdm.conf
Uncomment and set to "false".
The issue seems to be that gdm isn't running...is it supposed to be running in runlevel 3?
You should set those value on your local workstation (console), not the remote one. This is the workstation you call MYHOSTNAME.
You might also want to access MYHOSTNAME:0.0, not 1.0.
If so...what is the right way to start it?
- -- Rodrigo Barbosa rodrigob@suespammers.org "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
On Thu, 2006-01-12 at 01:23 -0200, Rodrigo Barbosa wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Jan 11, 2006 at 08:17:39PM -0700, Craig White wrote:
On Thu, 2006-01-12 at 01:04 -0200, Rodrigo Barbosa wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Jan 11, 2006 at 07:37:30PM -0700, Craig White wrote:
Xlib: connection to "MYHOSTNAME:1.0" refused by server Xlib: no protocol specified
Clues?
xhost(1)
Also make sure your local X server is configured to accept tcp connections, and you have no iptables rules blocking those.
Among other places, you will want to check for the DisalowTCP tag on /etc/X11/gdm/gdm.conf, if you are using gdm (standard for CentOS). I don't remember what the default is.
thanks but you are still over my head.
xhost +localhost returns the same error.
On your local workstation, you should do:
xhost +remote
Where remote is either the hostname (should be possible to lookup) or IP Address (to make sure it will work).
DisallowTCP is commented in /etc/X11/gdm/gdm.conf
Uncomment and set to "false".
The issue seems to be that gdm isn't running...is it supposed to be running in runlevel 3?
You should set those value on your local workstation (console), not the remote one. This is the workstation you call MYHOSTNAME.
You might also want to access MYHOSTNAME:0.0, not 1.0.
If so...what is the right way to start it?
---- OK - I will play with this but I think you aren't understanding how I am accessing...
I am connecting to remote via ssh...
ssh -XC user@host
I can execute this program no problem by the './startconsole...'
But I really want to use a VNC session and run from there...so instead, I have vncserver start as my user and connect...
vncviewer localhost:1
Once I authenticate, I am running a VNC session and I can use things like firefox/evolution/etc.
I then open a terminal session, su - to root and then execute the command, which is when I get this error.
If this explanation helps...I am offering it. Basically, everything I am doing is not on my local machine but rather on the remote to which I am connected via ssh.
Thanks
Craig
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Jan 11, 2006 at 08:34:56PM -0700, Craig White wrote:
OK - I will play with this but I think you aren't understanding how I am accessing...
I am connecting to remote via ssh...
ssh -XC user@host
I can execute this program no problem by the './startconsole...'
But I really want to use a VNC session and run from there...so instead, I have vncserver start as my user and connect...
vncviewer localhost:1
Once I authenticate, I am running a VNC session and I can use things like firefox/evolution/etc.
I then open a terminal session, su - to root and then execute the command, which is when I get this error.
If this explanation helps...I am offering it. Basically, everything I am doing is not on my local machine but rather on the remote to which I am connected via ssh.
Ahhh. After you open the terminal session and before running "su -", execute xhost +localhost
That should work.
- -- Rodrigo Barbosa rodrigob@suespammers.org "Quid quid Latine dictum sit, altum viditur" "Be excellent to each other ..." - Bill & Ted (Wyld Stallyns)
On Thu, 2006-01-12 at 01:46 -0200, Rodrigo Barbosa wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Jan 11, 2006 at 08:34:56PM -0700, Craig White wrote:
OK - I will play with this but I think you aren't understanding how I am accessing...
I am connecting to remote via ssh...
ssh -XC user@host
I can execute this program no problem by the './startconsole...'
But I really want to use a VNC session and run from there...so instead, I have vncserver start as my user and connect...
vncviewer localhost:1
Once I authenticate, I am running a VNC session and I can use things like firefox/evolution/etc.
I then open a terminal session, su - to root and then execute the command, which is when I get this error.
If this explanation helps...I am offering it. Basically, everything I am doing is not on my local machine but rather on the remote to which I am connected via ssh.
Ahhh. After you open the terminal session and before running "su -", execute xhost +localhost
That should work.
---- BING!!!
Thanks - sorry I didn't make myself more clear earlier - thanks for the patience.
Craig
On Thursday 12 January 2006 04:53, Craig White wrote:
On Thu, 2006-01-12 at 01:46 -0200, Rodrigo Barbosa wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Wed, Jan 11, 2006 at 08:34:56PM -0700, Craig White wrote:
OK - I will play with this but I think you aren't understanding how I am accessing...
I am connecting to remote via ssh...
ssh -XC user@host
I can execute this program no problem by the './startconsole...'
But I really want to use a VNC session and run from there...so instead, I have vncserver start as my user and connect...
vncviewer localhost:1
Once I authenticate, I am running a VNC session and I can use things like firefox/evolution/etc.
I then open a terminal session, su - to root and then execute the command, which is when I get this error.
If this explanation helps...I am offering it. Basically, everything I am doing is not on my local machine but rather on the remote to which I am connected via ssh.
Ahhh. After you open the terminal session and before running "su -", execute xhost +localhost
That should work.
BING!!!
Thanks - sorry I didn't make myself more clear earlier - thanks for the patience.
Craig
<paranoia> Using xhost almost allways has security implications. In this case any user/process on that machine can do anything to your X-server (including sniffing your passwords). There is malware in the wild that exploits this kind of weakness. </paranoia>
/Peter
On Jan 11, 2006, at 10:17 PM, Craig White wrote:
thanks but you are still over my head.
xhost +localhost returns the same error.
DisallowTCP is commented in /etc/X11/gdm/gdm.conf
The issue seems to be that gdm isn't running...is it supposed to be running in runlevel 3?
If so...what is the right way to start it?
switch to runlevel 5:
# /sbin/init 5
this will make gdm start. however, you may also want to create the file /etc/X1.hosts and populate it with the hostnames or IP addresses of the machine(s) from which you will be connecting.
do this before you go to runlevel 5.
-steve
--- If this were played upon a stage now, I could condemn it as an improbable fiction. - Fabian, Twelfth Night, III,v
On Wed, 2006-01-11 at 22:24 -0500, Steve Huff wrote:
On Jan 11, 2006, at 10:17 PM, Craig White wrote:
thanks but you are still over my head.
xhost +localhost returns the same error.
DisallowTCP is commented in /etc/X11/gdm/gdm.conf
The issue seems to be that gdm isn't running...is it supposed to be running in runlevel 3?
If so...what is the right way to start it?
switch to runlevel 5:
# /sbin/init 5
this will make gdm start. however, you may also want to create the file /etc/X1.hosts and populate it with the hostnames or IP addresses of the machine(s) from which you will be connecting.
do this before you go to runlevel 5.
---- run level 5 is a bit of a problem. There's no monitor connected and I didn't ever configure X since when I installed CentOS (the moment when I did have a monitor attached), I didn't install X.
A switch to runlevel 5 doesn't seem possible without a monitor connected and configuration created for xorg.
for good measure though - I did create /etc/X1.hosts per advice and populated with...
localhost fqdn
and it made no difference.
Thanks
Craig