VNC question

I have one machine (out of a couple dozen) that continues to refuse to
allow “vncserver :1” to start. It is perfectly happy with :2 - :9 but
tells me :1 is already running - yet ps tells me that there is no running
Xvnc instance.

What have I done here and how do I get that session back? I’ve cleared
the /tmp/.X11-unix entries but that did no good. Could I have checked
something in Yast that is launching an invisible session? It’s just a
nuisance but I hate unexplained things like this on just one machine.

Will Honea

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Did you check to see if the port is already listening?

netstat -planet

Look for :5901

Good luck.

On 05/24/2010 01:01 AM, Will Honea wrote:
> I have one machine (out of a couple dozen) that continues to refuse to
> allow “vncserver :1” to start. It is perfectly happy with :2 - :9 but
> tells me :1 is already running - yet ps tells me that there is no running
> Xvnc instance.
>
> What have I done here and how do I get that session back? I’ve cleared
> the /tmp/.X11-unix entries but that did no good. Could I have checked
> something in Yast that is launching an invisible session? It’s just a
> nuisance but I hate unexplained things like this on just one machine.
>
> -
> Will Honea
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJL+orcAAoJEF+XTK08PnB5o6gQANc32lfo9MD8b/wonBto1Df3
XKEz4rJi5A1n85qBHZtNYiyDbKoQ+iikTOvluIPbcC77C1/isldvBmCesScIjnO6
SmI0J/qqyL+Sp9W1W8Zl09qvoudtm66WXjS8cV52MZsT/y5iI+jW4whUH8L48DU2
RMZjKx/MBDsV74UETf615qeZg/tcs8wXrad1baMQBBzzLCI3DitKBnzVhE2NGkO+
0JxBsec7o+S5lVjvP6Qw7lOuHUPyc9b8aFD8S1ATuoZvFji6EvnX+wV/MNiIkcO2
WlZCbitIFkMTQ5vRd6psJYlKflty4j0ADO3UESidgviF12lCbrtq4I+dqrqM9B9C
eQFMRD4x1I0g9oCBTPYqJmkCILvaYmasnEvjngPOGn+fwQwAVMnGCLepyle+pEFw
tVSJBvKWjHk7M6bIjODR58qFGBsQ4G6L4lLZ8+a97x0q0Wzm90pREmOHsjmS4hsD
3p8nTV/QX8wKieeD27wmU139nwGXZN96XQYzP0l2cnYqbSSsZ6Pk9I1xeHwEO6Zp
+DxzAMW77u5OR5bf646tORJ/W+FxuClkW0pvbC9Ae6kGKrMjNA9pDlP1cbC/Mdcf
h4nEf2AAe+WYunbZEE7B3ApTycEaTLSE7pzsELvjRm3X5L4Z9zcKzB7Pv/xf94Aq
DWfpEXRCHu37BsB/XfX7
=j8YF
-----END PGP SIGNATURE-----

If you enabled Yast → network services → remote administration, then server:1 will run constantly via xinetd

swerdna wrote:

>
> If you enabled Yast → network services → remote administration, then
> server:1 will run constantly via xinetd

Rechecked - remote admin is NOT enabled in Yast.

For the other reply,

code<

will@grbc-server:~> netstat -planet | grep 590
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 0 8855 -
tcp 0 0 0.0.0.0:5902 0.0.0.0:* LISTEN 1000 18649244 22573/Xvnc

As I read this, the port is listening but has no app has it bound. Am I
correct in assuming this makes it effectively a zombie? Or is it waiting to
bite me in the butt?

I’m reasonably certain this is a left-over from the original setup on the
machine where I had several problems. I did initially have remote admin
enabled but disabled it since I saw no immediate use for it after checking
it out. Given the initial instability of the system, I wouldn’t be
surprised if the session were a leftover from a panic abort.

Question is, where do I go with my big hammer to kill it??


Will Honea

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

No, you do not have rights to figure out which app is using that port,
probably because as swerdna mentioned it is xinetd. Become root and use
the same command and you should see the app.

Good luck.

On 05/25/2010 01:42 PM, Will Honea wrote:
> swerdna wrote:
>
>>
>> If you enabled Yast → network services → remote administration, then
>> server:1 will run constantly via xinetd
>
> Rechecked - remote admin is NOT enabled in Yast.
>
> For the other reply,
>
> code<
> ---------------------------------
> will@grbc-server:~> netstat -planet | grep 590
> (Not all processes could be identified, non-owned process info
> will not be shown, you would have to be root to see it all.)
> tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN 0 8855 -
> tcp 0 0 0.0.0.0:5902 0.0.0.0:* LISTEN 1000 18649244 22573/Xvnc
> ---------------------------------
>
> As I read this, the port is listening but has no app has it bound. Am I
> correct in assuming this makes it effectively a zombie? Or is it waiting to
> bite me in the butt?
>
> I’m reasonably certain this is a left-over from the original setup on the
> machine where I had several problems. I did initially have remote admin
> enabled but disabled it since I saw no immediate use for it after checking
> it out. Given the initial instability of the system, I wouldn’t be
> surprised if the session were a leftover from a panic abort.
>
> Question is, where do I go with my big hammer to kill it??
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJL/Eg2AAoJEF+XTK08PnB5QlgQAKVedTW0cCnW2YbDKR+XNdEs
+84PY+zMXipMcAvQS7GfzS7P/LBkNwXsoaQFDgH8vwqXbB9sE3PhRz7Nnv3saJK7
33ZeTMJz/p3hPPrtevum4uU21irImAYWWpaVM29vnCUZZPO4e7aqfI8w0ARe/yK5
uljZMDP/6HwQseJQz1Yrfzi+0PXk+05UrPcIvr7a7d1k+9UZ1+gC3cP1nCKNAEUK
iN7as3V8Dolng8Ruvl9tQTFY9bVOzKVq/ZmQMWyKBL7JIRYfVJITveHLHqLoFRve
B1nbrvkE9YA6wiMVj8iJkFKmczPaqZAZ4hc/QdknAqOLHMK4EoxaYjRltucHRXlI
PRkbE4j7aoKWWNajCVZ28EzShxahCQWgDvCW9475XBre/pU5rL8NHhr56kOjUWgi
pLF1HIoiCJdlHftH8hAjsE2DvOM2/H9Sde1uhiK2kdqsoN4P4QnfQzGjocGd+BEW
ECPuVEYYkj1tYvEXkSVWBDtNhfQ/IzU35nByslAYLnTIZ+/x9bxb1MqCCi+EzTLw
Q/3yTNJy/lgp1NAC5zJhwwLiZhDuhE9xtwQQ5y+KNJTD1oRlTUF3NAOF9jx1jvXO
lglJc83grDO0FQD97HeYtQmq0k3TBmSnW/RMYjROAoteAx371dEFdhjfEoBpvuOI
ayCyvXX7tbYWfGLkroP6
=lpsC
-----END PGP SIGNATURE-----