Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lightdm and x11vnc startup
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
g-virus
n00b
n00b


Joined: 26 Aug 2017
Posts: 44

PostPosted: Fri Mar 22, 2019 12:58 pm    Post subject: Lightdm and x11vnc startup Reply with quote

Hello, everyone. I'm fighting with one problem - how to startup x11vnc server with lightdm. I have i3wm installed with LightDM, everything is configured and works, but the only problem is remaining - I cannot start x11vnc properly. It complains that it can't open display :0. I've tried many ways:

1. Tried to change depends() function in x11vnc init-script, (changed "need xdm" to "after xdm") - doesn't work
2. Tried to use VNCServer section in the lightdm configuration file. (changed "enabled" to true and replaced the "command" with "rc-service x11vnc re-/start") - doesn't work
3. Tried to use display-setup-script just to try to run x11vnc after the lightdm will run X. Also I tried to use greeter-setup-script. Both are don't work :(
4. Tried to use for-loop in start() function of x11vnc init-script just to wait for X will launch. Doesn't work

Why am I still trying to find a way to launch it? Because if I wait for LightDM will start (while greeter will appear) and switch to another terminal and launch x11vnc manually - it works! So please help me to fix it, thanks in advance!

I really wouldn't like to use TigerVNC since I already have Xserver installed and I don't want to have overhead software
Back to top
View user's profile Send private message
g-virus
n00b
n00b


Joined: 26 Aug 2017
Posts: 44

PostPosted: Wed Mar 27, 2019 3:59 pm    Post subject: Reply with quote

As I found out, x11vnc doesn't want to start before a user session will be started. But I've set up the LightDM to skip a password entrance and go further, but x11vnc still didn't start up....
Back to top
View user's profile Send private message
Logicien
Veteran
Veteran


Joined: 16 Sep 2005
Posts: 1360
Location: Montréal

PostPosted: Wed Mar 27, 2019 7:05 pm    Post subject: Reply with quote

Hello, I use X11vnc. When no normal user is connected to X, to access the display manager I start X11vnc service as root with the Xauthority that Lightdm have created in the /run directory.

When a user is connected I use the $HOME/.Xauthority of this user.

I think it's mandatory to start X11vnc as root to access the display manager who can only be seen when no user is connected to X. I use a Systemd unit x11vnc.service to start X11vnc.

I can show you this unit if you want with all X11vnc parameters that I use. X11vnc work nornally for me.
_________________
Paul
Back to top
View user's profile Send private message
g-virus
n00b
n00b


Joined: 26 Aug 2017
Posts: 44

PostPosted: Fri Mar 29, 2019 11:22 pm    Post subject: Reply with quote

Logicien wrote:
Hello, I use X11vnc. When no normal user is connected to X, to access the display manager I start X11vnc service as root with the Xauthority that Lightdm have created in the /run directory.

When a user is connected I use the $HOME/.Xauthority of this user.

I think it's mandatory to start X11vnc as root to access the display manager who can only be seen when no user is connected to X. I use a Systemd unit x11vnc.service to start X11vnc.

I can show you this unit if you want with all X11vnc parameters that I use. X11vnc work nornally for me.


Hi. Thank you, but I use OpenRC :) Anyway, I've checked x11vnc openrc-init script, and it actually tries to find proper .Xauthority, so it does everything you have offered. No idea what is a problem..
Back to top
View user's profile Send private message
g-virus
n00b
n00b


Joined: 26 Aug 2017
Posts: 44

PostPosted: Mon Apr 15, 2019 11:27 am    Post subject: Reply with quote

Any more ideas, guys? :) The question is still relevant
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum