Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 03-15-2014, 08:23 PM   #1
LQ Newbie
Registered: Mar 2014
Posts: 2

Rep: Reputation: Disabled
how do i get x11vnc to work inside a screen session

hello all. i have a quick question for everyone. i am trying to run a x11vnc the thing is i want it to be launched with a service command but not at startup and as well i want it running inside a screen session when it does start. i also want it to be able to view the root screen for the greeter. i am running ubuntu 13.04 with lightdm is there any way i can make this happen. the command i am trying to run is

screen -S "x11vnc" -d -m &&
screen -r "x11vnc" -X "/usr/bin/x11vnc -once -rfbauth /home/passwd -xkb -rfbport 5900 -auth /var/run/lightdm/root/:0 -display :0 -bg"
i have found that to run the root desktop for the greeter i have to run as su root so i was wondering if there was a way to pass something like
as_user() {
  if [ $ME == $USERNAME ] ; then
    bash -c "$1"
   su - $USERNAME -c "$1"
in the script that would be passed into the screen session. please help me and let me know.
Old 03-30-2014, 03:05 PM   #2
LQ Newbie
Registered: Mar 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled


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
Start x11vnc for gdm login screen galliar Ubuntu 1 07-02-2013 01:11 AM
[SOLVED] Run screen session in a screen session. eyanu Linux - Newbie 4 10-01-2012 01:50 AM
x11vnc, gdm, connect to any session Meson Linux - Desktop 3 01-18-2012 09:38 AM
x11vnc: black out host's screen? SheeEttin Linux - Server 6 01-08-2008 12:49 PM
Creating a screen session in an existing session Frits of waterplant Linux - Newbie 4 01-18-2007 04:53 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration