LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   x11vnc failing (https://www.linuxquestions.org/questions/linux-newbie-8/x11vnc-failing-717176/)

fedder22 04-06-2009 08:51 AM

x11vnc failing
 
the error code thats comes up is here

currently I'm trying to start my vnc server so I can vnc into it so I can change my routers config (which I can only do from inside of my network)

so I'm trying to start my x11vnc (it doesnt need to be the X interface i just need any interface so i can use a browser because ssh access isnt setup)


below is the error coming up after trying to start x11vnc

X connection to localhost:11.0 broken (explicit kill or server shutdown).


... so i can ssh fine but no matter what i do with starting vnc it doesnt seem to work, i did some google and there doesnt appear to be a striaght forward solution... any thoughts?

fedder22 04-06-2009 12:09 PM

I may have deleted alot of my X configurations

it appears that
Xsession: no "/etc/X11/Xsession.d" directory found;

when i run startx i get this too

X: unable to open wrapper config file /etc/X11/Xwrapper.config


can someone let me know hwo to repair it? i tried re-installing x11vnc but i realize thats only a piece of it I really need the root of 'X' and to re-install or re-download all of the 'X' files. is there a quick way to do this or my installation SNAFU'd ?

Tinkster 04-06-2009 03:07 PM

Maybe if you provided us with info about what distro you're using ...



Cheers,
Tink

fedder22 04-06-2009 03:46 PM

wow sorry,

I'm using debian etch.

After doing a little research I think i may have found its related to xinit (but my knowledge is really limited... I'm really just googling and hoping i find something relevant to what my issue is)

krunge 04-06-2009 07:24 PM

Quote:

X connection to localhost:11.0 broken (explicit kill or server shutdown).

... so i can ssh fine but no matter what i do with starting vnc it doesnt seem to work
"localhost:11.0" as your $DISPLAY variable sounds like a ssh X redirection, not the display of the machine you want to connect to. Type "echo $DISPLAY" in the shell, you will see localhost:11.0 See the ssh(1) man page for more information on how this works.

If you don't tell x11vnc explicitly which X display to connect to, it will use your $DISPLAY setting (like all X clients do.)

To tell it, use this:
Code:

x11vnc -display :0 <anything-else-you-need>
Where DISPLAY :0 is the X session you are already logged into on the machine and you wish to view it.

BTW, if localhost:11 did redirect to the local X session you are sitting at, then you could probably just type "firefox" in that shell and the app would (slowly) appear on it. But since x11vnc couldn't connect to it, something else must be not working.

fedder22 04-07-2009 07:04 AM

thanks for your knowledge krunge,

Last night I fiddled with it and just blew away the gui haha.. well your solution may work but I wont know, This may be the best way for me to learn about it (I currently am in no rush to have a gui) but thanks again for your help I will definitely write down that note and keep it in mind when i have my gui back.

thanks again :)

krunge 04-07-2009 10:27 PM

Quote:

Originally Posted by fedder22 (Post 3501051)
thanks for your knowledge krunge,

Last night I fiddled with it and just blew away the gui haha.. well your solution may work but I wont know, This may be the best way for me to learn about it (I currently am in no rush to have a gui) but thanks again for your help I will definitely write down that note and keep it in mind when i have my gui back.

Hmmm.....

fedder22 04-08-2009 07:12 AM

hmmm???

explanation of need:

I needed access to the gui for that day in order to change a configuration on my router (through browser).... due to the fact i couldnt do it from over the wan the only port that was still forwarding to through was one that was open and to my linux box. after i got home it wasnt needed anymore and I just did it from another box.....

the gui isntneeded and the only reason i needed to change my router config was because i had hard reset it due to a corruption in the router which is now fixed....maybe in a week or two when i ahve some more time I'll have to read up on re-installing from scratch since most of the files in my /etc/X11/* are all deleted/not configured correctly even after running a dpkg-reconfigure x11-common


All times are GMT -5. The time now is 06:56 AM.