Pages : 1
#1 Le 01/05/2022, à 15:18
- samprzyswa
[Résolu] VNC serveur sur Ubuntu 20.04
Bonjour,
J'ai en fait mal formulé ma question au départ, j'ai trouvé un tuto "https://www.digitalocean.com/community/ … u-20-04-fr" qui décrit la procédure à suivre avec "tightvncserver" pour un serveur Ubuntu sans interface graphique à la base et il propose d'utiliser xfce4 et de le lancer à chaque connexion.
Mais impossible de le faire fonctionner même avec Xfce, beaucoup de message d'erreur.
Est-ce que je peux lancer le serveur VNC sans avoir à lancer Xfce ?
Merci d'avance pour vos lumières...
Sam.
Dernière modification par samprzyswa (Le 02/05/2022, à 00:32)
Système: Ubuntu 20.04.4
Carte mère MSI B560 PRO-VDH | Carte graphique Radeon HD 7450
Intel(R) Core(TM) i3-10105F CPU @ 3.70GHz
Linux RAID1 2X1Tb
Hors ligne
#2 Le 01/05/2022, à 15:30
- xubu1957
Re : [Résolu] VNC serveur sur Ubuntu 20.04
Bonjour,
Si tu trouves une inspiration dans> Installation de TightVNC sur UBUNTU 20.04
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#3 Le 01/05/2022, à 16:06
- samprzyswa
Re : [Résolu] VNC serveur sur Ubuntu 20.04
Bonjour,
Si tu trouves une inspiration dans> Installation de TightVNC sur UBUNTU 20.04
Oui c'est en gros ce que j'ai fait mais j'ai des messages d'erreur:
systemctl enable --now vncserver
Job for vncserver.service failed because the control process exited with error code.
See "systemctl status vncserver.service" and "journalctl -xe" for details.
systemctl status vncserver.service
● vncserver.service - TightVNC server
Loaded: loaded (/etc/systemd/system/vncserver.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2022-05-01 16:57:58 CEST; 5min ago
Process: 512678 ExecStartPre=/usr/bin/vncserver -kill :1 > /dev/null 2>&1 (code=exited, status=217/USER)
Process: 512679 ExecStart=/usr/bin/vncserver (code=exited, status=217/USER)
mai 01 16:57:58 ubuntu systemd[1]: Starting TightVNC server...
mai 01 16:57:58 ubuntu systemd[512678]: vncserver.service: Failed to determine user credentials: No such process
mai 01 16:57:58 ubuntu systemd[512678]: vncserver.service: Failed at step USER spawning /usr/bin/vncserver: No such process
mai 01 16:57:58 ubuntu systemd[512679]: vncserver.service: Failed to determine user credentials: No such process
mai 01 16:57:58 ubuntu systemd[512679]: vncserver.service: Failed at step USER spawning /usr/bin/vncserver: No such process
mai 01 16:57:58 ubuntu systemd[1]: vncserver.service: Control process exited, code=exited, status=217/USER
mai 01 16:57:58 ubuntu systemd[1]: vncserver.service: Failed with result 'exit-code'.
mai 01 16:57:58 ubuntu systemd[1]: Failed to start TightVNC server.
journalctl -xe
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- The unit vncserver.service has entered the 'failed' state with result 'exit-code'.
mai 01 16:57:58 ubuntu systemd[1]: Failed to start TightVNC server.
-- Subject: A start job for unit vncserver.service has failed
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- A start job for unit vncserver.service has finished with a failure.
--
-- The job identifier is 7503 and the job result is failed.
mai 01 16:57:59 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:00 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:01 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:02 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:03 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:04 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:05 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:06 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:07 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:08 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:09 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:10 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:11 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:12 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:13 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:14 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:15 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:16 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:17 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:18 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:19 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:20 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:21 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:22 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:23 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:24 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
mai 01 16:58:25 ubuntu boinc[487670]: Client is not authorized to connect to ServerNo protocol specified
Je suis un peu perdu là...
Sam.
Système: Ubuntu 20.04.4
Carte mère MSI B560 PRO-VDH | Carte graphique Radeon HD 7450
Intel(R) Core(TM) i3-10105F CPU @ 3.70GHz
Linux RAID1 2X1Tb
Hors ligne
#4 Le 01/05/2022, à 16:10
- xubu1957
Re : [Résolu] VNC serveur sur Ubuntu 20.04
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#5 Le 01/05/2022, à 16:34
- samprzyswa
Re : [Résolu] VNC serveur sur Ubuntu 20.04
En fait ça y est ça marche avec Xfce, je ne me connectais pas sur le bon display:3, maintenant comment le faire fonctionner avec ubuntu-desktop GNOME ?
Sam.
Dernière modification par samprzyswa (Le 01/05/2022, à 17:08)
Système: Ubuntu 20.04.4
Carte mère MSI B560 PRO-VDH | Carte graphique Radeon HD 7450
Intel(R) Core(TM) i3-10105F CPU @ 3.70GHz
Linux RAID1 2X1Tb
Hors ligne
#6 Le 01/05/2022, à 21:03
- samprzyswa
Re : [Résolu] VNC serveur sur Ubuntu 20.04
Aucun retour de cette commande...
Sinon est-ce que tu sais comment on configure Xtightvnc pour modifier la résolution de l'écran ?
Sam.
Système: Ubuntu 20.04.4
Carte mère MSI B560 PRO-VDH | Carte graphique Radeon HD 7450
Intel(R) Core(TM) i3-10105F CPU @ 3.70GHz
Linux RAID1 2X1Tb
Hors ligne
#7 Le 01/05/2022, à 21:16
- xubu1957
Re : [Résolu] VNC serveur sur Ubuntu 20.04
Je ne sais pas.
Je trouve cette page > askubuntu.com/questions/648819/couldnt-start-xtightvnc-trying-default-font-path-vncserver
Conseils pour les nouveaux demandeurs et pas qu'eux
Important : Pensez à passer vos sujets en [Réso|u] lorsque ceux-ci le sont, au début du titre en cliquant sur Modifier sous le premier message, et un bref récapitulatif de la solution à la fin de celui-ci. Merci. Membre de Linux-Azur
Hors ligne
#8 Le 01/05/2022, à 21:41
- samprzyswa
Re : [Résolu] VNC serveur sur Ubuntu 20.04
Je ne sais pas.
Je trouve cette page > askubuntu.com/questions/648819/couldnt-start-xtightvnc-trying-default-font-path-vncserver
Ok merci effectivement ça va m'aider, mais où se trouvent les infos pour générer ces commandes passées à Xtightvnc
ps -ef | grep Xtightvnc
ubuntu 657142 1 3 21:29 pts/0 00:01:28 Xtightvnc :1 -desktop X -auth /home/ubuntu/.Xauthority -geometry 1024x768 -depth 24 -rfbwait 120000 -rfbauth /home/ubuntu/.vnc/passwd -rfbport 5901 -fp /usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1/,/usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100dpi/ -co /etc/X11/rgb
Sam.
Système: Ubuntu 20.04.4
Carte mère MSI B560 PRO-VDH | Carte graphique Radeon HD 7450
Intel(R) Core(TM) i3-10105F CPU @ 3.70GHz
Linux RAID1 2X1Tb
Hors ligne
#9 Le 01/05/2022, à 23:19
- samprzyswa
Re : [Résolu] VNC serveur sur Ubuntu 20.04
J'ai trouvé dans /usr/share/doc/tightvncserver un truc qui je crois répond à ma question:
# /etc/vnc.conf written by Marcus Brinkmann. This file is in the Public Domain.
#
# This is the configuration file for the vncserver package.
# It is perl syntax, but only variable assignment is allowed.
# A semicolon will be added if missing.
# Every value has suitable defaults, so you probably don't need any file.
#
# This file will be sourced by `vncserver' and `vncpasswd'.
# After this file, $(HOME)/.vncrc will be sourced, so values can be
# overwritten on a per-user basis. If you want to reactivate the default
# value there, you have to specify an empty value. For example, $fontPath
# will set to the default value after
#
# $fontPath = "/foo";
# $fontPath = "";
#
# If you are missing something, please let me know.
# Marcus.Brinkmann@ruhr-uni-bochum.de
# System configuration
# --------------------
#
# This section contains entries that should be true for all users.
# $vncClasses should be the path to the java classes of server.
# $vncClasses = "/usr/share/vncserver";
# $XFConfigPath can be set to the global XF86Config file. This will be
# parsed to gain default values for $fontPath and $colorPath.
# If you want to disable this feature, point it to an
# invalid file, "/foo" for example.
# $XFConfigPath = "/etc/X11/XF86Config";
# $fontPath should be a comma seperated list of fonts to be added to the font
# path. If not specified, and $XFConfigPath is valid, vncserver
# will read the $fontPath from there. If both are not set, the
# default will apply.
# Example: $fontPath = "tcp/localhost:7100"; # would make vnc to use xfs.
# Example: $fontPath = "";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/misc/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/Type1/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/Speedo/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/75dpi/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/100dpi/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/freefont/,";
# $fontPath .= "/usr/X11R6/lib/X11/fonts/sharefont/";
# I don't know what the default is, though.
# $colorPath should be the RGB file to be used by X. This can also be taken from
# XF86Config file if specified by $XFConfigPath
# $colorPath = "/usr/X11R6/lib/X11/rgb";
# User configuration
# ------------------
#
# This section contains entries that may change from user to user.
# $vncUserDir contains the filename for the log files directory of Xvnc
# (the server) and the viewers that are connected to it.
# $vncUserDir = "$ENV{HOME}/.vnc";
# $vncPasswdFile contains the filename of the password file for Xvnc.
# $vncPasswdFile = $vncUserDir . "/passwd";
# $vncStartup points to a script that will be started at the very beginning.
# $vncStartup = "/etc/X11/Xsession";
# $xauthorityFile should be the path to the authority file that should be used
# by your vnc X server.
# $xauthorityFile = "$ENV{HOME}/.Xauthority";
# $defaultDesktopName should be set to the default name of the desktop.
# This can be changed at the command line with -name.
# $defaultDesktopName = "X";
# $geometry sets framebuffer width & height. Default will be calculated if
# server is started from within a running X servers. Can be changed at
# the commandline (-geometry). A fixed default will be used if
# vncserver is not invoked in a running X session.
# Example: $geometry ="640x480";
# $depth sets the framebuffer color depth. Must be between 8 and 32.
# $pixelformat sets the default pixelformat.
# The default will be calculated if none of both is specified
# and when vncserver is called from within a running X servers.
# Can be changed at the command line with option -depth.
# A fixed default value will be used if vncserver is not
# invoked in a running X session.
# Example: $depth = "16";
# $pixelformat = "rgb565";
# $getDefaultFrom sets the display from which you can query the default of
# the above three options, if you don't want to start vncserver
# from within a running X server. It will be added to the call
# of xdpyinfo.
# It is useful to get the default from the X server you will
# run xvncviewer in.
# Example: $getDefaultFrom = "-display localhost:0"
# $rfbwait sets the maximum time in msec to wait for vnc client viewer.
# $rfbwait = "120000";
Sam.
Système: Ubuntu 20.04.4
Carte mère MSI B560 PRO-VDH | Carte graphique Radeon HD 7450
Intel(R) Core(TM) i3-10105F CPU @ 3.70GHz
Linux RAID1 2X1Tb
Hors ligne