Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
[Unit]Description=Start x11vnc at startup.After=multi-user.target[Service]Type=simpleExecStart=/usr/bin/x11vnc -rfbauth /etc/x11vnc.pass -noxdamage -shared -dontdisconnect -many -noxfixes[Install]WantedBy=multi-user.target
Feb 3 14:36:00 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:00 passing arg to libvncserver: -rfbauthFeb 3 14:36:00 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:00 passing arg to libvncserver: /etc/x11vnc.passFeb 3 14:36:00 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:00 passing arg to libvncserver: -dontdisconnectFeb 3 14:36:00 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:00 x11vnc version: 0.9.13 lastmod: 2011-08-10 pid: 4727Feb 3 14:36:00 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:00 XOpenDisplay("") failed.Feb 3 14:36:00 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:00 Trying again with XAUTHLOCALHOSTNAME=localhost ...Feb 3 14:36:00 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:00 #007Feb 3 14:36:00 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:00 *** XOpenDisplay failed. No -display or DISPLAY.Feb 3 14:36:00 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:00 *** Trying ":0" in 4 seconds. Press Ctrl-C to abort.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:00 *** 1 2 3 4Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: No protocol specifiedFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:04 XOpenDisplay(":0") failed.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:04 Trying again with XAUTHLOCALHOSTNAME=localhost ...Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: No protocol specifiedFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:04 XOpenDisplay(":0") failed.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:04 Trying again with unset XAUTHLOCALHOSTNAME ...Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: No protocol specifiedFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:04Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:04 ***************************************Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: 03/02/2020 14:36:04 *** XOpenDisplay failed (:0)Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: *** x11vnc was unable to open the X DISPLAY: ":0", it cannot continue.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: *** There may be "Xlib:" error messages above with details about the failure.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: Some tips and guidelines:Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: ** An X server (the one you wish to view) must be running before x11vnc isFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: started: x11vnc does not start the X server. (however, see the -createFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: option if that is what you really want).Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: ** You must use -display <disp>, -OR- set and export your $DISPLAYFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: environment variable to refer to the display of the desired X server.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: - Usually the display is simply ":0" (in fact x11vnc uses this if you forgetFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: to specify it), but in some multi-user situations it could be ":1", ":2",Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: or even ":137". Ask your administrator or a guru if you are havingFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: difficulty determining what your X DISPLAY is.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: ** Next, you need to have sufficient permissions (Xauthority)Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: to connect to the X DISPLAY. Here are some Tips:Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: - Often, you just need to run x11vnc as the user logged into the X session.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: So make sure to be that user when you type x11vnc.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: - Being root is usually not enough because the incorrect MIT-MAGIC-COOKIEFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: file may be accessed. The cookie file contains the secret key thatFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: allows x11vnc to connect to the desired X DISPLAY.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: - You can explicitly indicate which MIT-MAGIC-COOKIE file should be usedFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: by the -auth option, e.g.:Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: x11vnc -auth /home/someuser/.Xauthority -display :0Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: x11vnc -auth /tmp/.gdmzndVlR -display :0Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: you must have read permission for the auth file.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: See also '-auth guess' and '-findauth' discussed below.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: ** If NO ONE is logged into an X session yet, but there is a greeter loginFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: program like "gdm", "kdm", "xdm", or "dtlogin" running, you will needFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: to find and use the raw display manager MIT-MAGIC-COOKIE file.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: Some examples for various display managers:Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: gdm: -auth /var/gdm/:0.XauthFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: -auth /var/lib/gdm/:0.XauthFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: kdm: -auth /var/lib/kdm/A:0-crWk72Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: -auth /var/run/xauth/A:0-crWk72Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: xdm: -auth /var/lib/xdm/authdir/authfiles/A:0-XQvaJkFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: dtlogin: -auth /var/dt/A:0-UgaaXaFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: Sometimes the command "ps wwwwaux | grep auth" can reveal the file location.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: Starting with x11vnc 0.9.9 you can have it try to guess by using:Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: -auth guessFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: (see also the x11vnc -findauth option.)Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: Only root will have read permission for the file, and so x11vnc must be runFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: as root (or copy it). The random characters in the filenames will of courseFeb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: change and the directory the cookie file resides in is system dependent.Feb 3 14:36:04 Ubuntu-for-LSA x11vnc[4727]: See also: http://www.karlrunge.com/x11vnc/faq.htmlFeb 3 14:36:04 Ubuntu-for-LSA systemd[1]: x11vnc.service: Main process exited, code=exited, status=1/FAILUREFeb 3 14:36:04 Ubuntu-for-LSA systemd[1]: x11vnc.service: Failed with result 'exit-code'.
XOpenDisplay(":0") failed.
[Unit]Description=Start x11vnc at startup.After=multi-user.target[Service]Type=simpleExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc.pass -rfbport 5900 -shared[Install]WantedBy=multi-user.target
Я так делал юнит, может поможет:
apt remove --purge vino
apt install xubuntu-core
apt-get install x11vnc -y
mkdir /etc/x11vncx11vnc -storepasswd /etc/x11vnc/passwd
cat > /lib/systemd/system/x11vnc.service << EOF[Unit]Description=Start x11vnc at startup.After=multi-user.target[Service]Type=simpleExecStart=/usr/bin/x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /etc/x11vnc/passwd -rfbport 5900 -shared[Install]WantedBy=multi-user.targetEOF
systemctl enable x11vnc.servicesystemctl daemon-reloadsystemctl restart x11vncилиreboot
Страница сгенерирована за 0.044 секунд. Запросов: 25.