LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 03-15-2014, 08:23 PM   #1
kain184
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

Code:
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
Code:
ME=`whoami`
as_user() {
  if [ $ME == $USERNAME ] ; then
    bash -c "$1"
  else
   su - $USERNAME -c "$1"
  fi
}
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
kain184
LQ Newbie
 
Registered: Mar 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
bump
 
  


Reply



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

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

All times are GMT -5. The time now is 02:15 AM.

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
Open Source Consulting | Domain Registration