Using X11VNC with another user - Raspberry Pi Forums


good morning,

unfortunately spend hours x11vnc working using user (not pi). read hundreds posts nothing worked. furthermore doubt wheather tried before.

i'll explain in detail. company wants use pi server , web client. have set 2 images. important administrate devices remotely. see user's screen chose x11vnc. if install on plain raspbian image following steps works fine:

code: select all

choose boot desktop raspi-config (i use putty)  ###installation sudo apt-get install x11vnc x11vnc -storepasswd                                          ###start boot cd .config mkdir autostart cd autostart sudo nano x11vnc.desktop  ###the file [desktop entry] encoding=utf-8 type=application name=x11vnc comment= exec=x11vnc -forever -usepw -display :0 -ultrafilexfer startupnotify=false terminal=false hidden=false
not everything. task use x11vnc user. first image need run user mes , other web. i'll change username , hostname:

code: select all

###hostname sudo nano /etc/hostname sudo nano /etc/hosts sudo nano /etc/ntp.conf sudo nano /etc/resolv.conf  ###username sudo passwd root [i]logoff , logon root[/i] usermod -l web -d /home/web -m pi groupmod -n web pi sudo passwd web reboot 
if want connect not ultravnc error message "failed connect server". if run bootcommand x11vnc manually following error:
web@l099itd50 ~ $ x11vnc -forever -usepw -display :0 -ultrafilexfer
25/07/2013 07:56:24 passing arg libvncserver: -rfbversion
25/07/2013 07:56:24 passing arg libvncserver: 3.6
25/07/2013 07:56:24 passing arg libvncserver: -permitfiletransfer
25/07/2013 07:56:24 -usepw: found /home/web/.vnc/passwd
25/07/2013 07:56:24 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 2576
no protocol specified
25/07/2013 07:56:24 xopendisplay(":0") failed.
25/07/2013 07:56:24 trying again xauthlocalhostname=localhost ...
no protocol specified

25/07/2013 07:56:24 ***************************************
25/07/2013 07:56:24 *** xopendisplay failed (:0)

*** x11vnc unable open x display: ":0", cannot continue.
*** there may "xlib:" error messages above details failure.........
because of change of name assume problem regarding permissions. if run

code: select all

x11vnc -find
seems if server running. when try connect ultravnc error "server closed connection".

can me? very desperate :(

i wonder... i'm not sure i'll take guess. did add web user groups?

code: select all

useradd -g {group-name} web
may need add user groups users , video before work.
can @ current group settings here;

code: select all

cat /etc/group


raspberrypi



Comments

Popular posts from this blog

Thread: PKI Client 5.00 install (for eToken Pro)

ATmega2560-Arduino Pin Mapping

Crossfader Arduino Tutorial