LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-13-2013, 05:39 AM   #1
Peterken
Member
 
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 63

Rep: Reputation: 20
vncserver on display 0 instead of 1?


Hi guys,

I somehow managed quite some time a go to setup a system and connect to the active display with vnc of an unmanaged system - it's a 'display/presentation' box running Debian with Gnome.
I guess that I've used the standard remote desktop option but I can't remember and cannot find any other traces.

Now, I want to setup similar system with a RPI with LXDE but with tightvncserver, I cannot set it to display :0 since some files are locked.

The ability to see what is actually displayed to the connected screen is crucial since it's unmanaged and difficult to reach and preferably remotely controlled/monitored.

I have searched quite a lot but with the different vnc flavors and distributions, I didn't find a solution yet.

Any help is greatly appreciated!
TIA
Peter
 
Old 07-13-2013, 09:16 AM   #2
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
VNC server is something like another X server, so both cannot works on the same screen, however there is a tool "x11vnc" which connect to real X server and allow connection from standard VNC clients.
 
1 members found this post helpful.
Old 07-17-2013, 05:53 AM   #3
Peterken
Member
 
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 63

Original Poster
Rep: Reputation: 20
Thank you very much!!!
Got it working on a test system but in production there's an issue with the hostname. (sudo complains about not being able to resolve the host)

Have been tinkering with the different files to get it right but there is a lot different information about it.
 
1 members found this post helpful.
Old 07-17-2013, 06:01 AM   #4
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,522

Rep: Reputation: 398Reputation: 398Reputation: 398Reputation: 398
Quote:
Originally Posted by Peterken View Post
Thank you very much!!!
Got it working on a test system but in production there's an issue with the hostname. (sudo complains about not being able to resolve the host)

Have been tinkering with the different files to get it right but there is a lot different information about it.
Funny then, that there doesn't seem to be any in your post ...
 
Old 07-17-2013, 06:03 AM   #5
eSelix
Senior Member
 
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,254

Rep: Reputation: 315Reputation: 315Reputation: 315Reputation: 315
You doon't need to execute x11vnc with sudo. If some user is logged in X you can execute x11vnc on this account. If no one is logged, then you need to use root privilages.
 
1 members found this post helpful.
Old 07-17-2013, 06:28 AM   #6
Peterken
Member
 
Registered: Apr 2007
Location: Belgium
Distribution: Debian
Posts: 63

Original Poster
Rep: Reputation: 20
Quote:
Originally Posted by descendant_command View Post
Funny then, that there doesn't seem to be any in your post ...
You are right, was trying to find a solution first myself and not just let someone else do my work.
I found information about host, hosts, hostname, 127.0.0.1, 127.0.1.1, .... and apparently I made a mess out of it since installing x11vnc returns some 'Failed to fetch' msgs

@eSelix: right ;-)

EDIT: the problem was the resolv.conf file. Corrected this and now x11vnc installed and works.
Any clarification about the host files issue is more then welcome.

Last edited by Peterken; 07-17-2013 at 06:39 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
vncserver xauth: (argv):1: bad display name kd101 Linux - Software 2 08-30-2013 03:08 AM
how to make vncserver listen on display 3 ashwin_cse Linux - Software 2 09-18-2007 12:46 AM
vncserver display kishore2k4 Linux - Software 4 02-21-2007 02:41 AM
Robust vncserver startup file (rc.vncserver) arobinson74 Slackware 4 05-14-2005 06:33 AM
vncserver display connection earthling Linux - Newbie 2 08-10-2003 11:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration