logo Debian Debian Debian-France Debian-Facile Debian-fr.org Forum-Debian.fr Debian ? Communautés logo inclusivité

Debian-facile

Bienvenue sur Debian-Facile, site d'aide pour les nouveaux utilisateurs de Debian.

Vous n'êtes pas identifié(e).

#26 17-10-2018 13:04:03

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : [clos] autologin lightdm et bureaux

J'ai encore rien compris de ce que tu veux big_smile
pourquoi mettre autologin si tu veux avoir le choix d'un autre bureau?

un des buts d'un serveur , c'est de tout faire à distance .
y compris le pilotage du bureau .
enfin , je pense ...


même pas besoin de bureau pour un serveur, c'est juste plus conviviale
Un serveur c'est bien pour gérer ses données sinon quoi?


-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#27 17-10-2018 13:08:00

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

et si tu interviens à distance chez qqun , tu fais comment ?

en plus ça me permet d'apprendre plus encore  ....

Hors ligne

#28 17-10-2018 13:22:10

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : [clos] autologin lightdm et bureaux

j'ai jamais fais, mais je dirais avec teamviewer

-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#29 17-10-2018 13:23:10

empanada
Membre
Distrib. : Debian 11 (Bullseye)
Noyau : 5.10.0-13-amd64
(G)UI : LXDE
Inscription : 19-09-2018

Re : [clos] autologin lightdm et bureaux

au dessous de [Seat:*] ...évidement pas commentée (# au début de ligne) . Voilà mon /etc/lightdm/lightdm.conf :

cat /etc/lightdm/lightdm.conf


# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
# backup-logs = True to move add a .old suffix to old log files when opening new ones
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-check-graphical=false
#log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=/usr/share/lightdm/greeters:/usr/share/xgreeters
#backup-logs=true

#
# Seat configuration
#
# Seat configuration is matched against the seat name glob in the section, for example:
# [Seat:*] matches all seats and is applied first.
# [Seat:seat0] matches the seat named "seat0".
# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
#
# type = Seat type (xlocal, xremote, unity)
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
# xserver-config = Config file to pass to X server
# xserver-layout = Layout to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option)
# unity-compositor-timeout = Number of seconds to wait for compositor to start
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
#
[Seat:*]
#type=xlocal
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-command=X
#xmir-command=Xmir
#xserver-config=
#xserver-layout=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
#greeter-session=example-gtk-gnome
greeter-hide-users=false
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
#user-session=default
#allow-user-switching=true
#allow-guest=true
#guest-session=
#session-wrapper=lightdm-session
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
user-session = LXDE
autologin-user=eva
#autologin-user-timeout=0
#autologin-in-background=false
#autologin-session=
#exit-on-failure=false

#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn.  Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#listen-address=
#key=
#hostname=

#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#listen-address=
#width=1024
#height=768
#depth=8
 


"blues are the roots and the other musics are the fruits" . Willie Dixon

Hors ligne

#30 17-10-2018 13:24:31

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

teamviewer ou vncviewer (que j'utilise) ne donnent aucun accès à l'écran de login .

enfin , de ce que j'ai vu .

Hors ligne

#31 17-10-2018 13:38:12

Croutons
Membre
Distrib. : Debian12
Noyau : Linux 6.1.0-13-amd64
(G)UI : Fluxbox(NakeDeb)
Inscription : 16-12-2016

Re : [clos] autologin lightdm et bureaux

Il y a un non sens , ou c'est moi qui comprend rien
si tu utilises autologin tu te supprime tout choix possible vu que justement le but est d'ouvrir la session rapidement sans avoir a choisir et sans taper de mot de passe

-->les cahiers du debutant<--      WikiDF-->Découvrir les principales commandes Linux<-- 
L' expérience, c'est le nom que chacun donne à ses erreurs. Oscar Wilde

Hors ligne

#32 17-10-2018 13:52:41

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

okay , j'avais pas compris çà .

je croyais que l'autologin n'était qu'un "démarrage automatique" tout simple ,

ce qui n'empêchait en rien le choix d'un bureau par  défaut .

vu le fonctionnement en local et à la main .

que l'autologin ouvre rapidement la session , je trouve çà normal ,

sans entrer ses identifiants , normal là aussi ,

mais sans pouvoir choisir son bureau ... , savais pas .

Hors ligne

#33 17-10-2018 13:56:20

empanada
Membre
Distrib. : Debian 11 (Bullseye)
Noyau : 5.10.0-13-amd64
(G)UI : LXDE
Inscription : 19-09-2018

Re : [clos] autologin lightdm et bureaux

Debian Alain a écrit :

teamviewer ou vncviewer (que j'utilise) ne donnent aucun accès à l'écran de login


Pour accès à distance graphique, pour serveur Linux j'utilise x2go. Sur réseau locale vnc fonctionne bien normalement, mais s'il faut rentrer dès dehors (Internet), la performance et pauvre à mon avis. Il y a clients pour Linux, Windows et OSX.
Pour serveur Windows , RDP.

As-tu vu le message #29?


"blues are the roots and the other musics are the fruits" . Willie Dixon

Hors ligne

#34 17-10-2018 14:18:28

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

oui , je l'ai suivi , malgré tout , pas moyen d'obtenir le changement du bureau au reboot  .

il semble que croutons ait  raison .

autologin = acun moyen de changer les paramètres au démarrage .

Hors ligne

#35 17-10-2018 14:21:02

empanada
Membre
Distrib. : Debian 11 (Bullseye)
Noyau : 5.10.0-13-amd64
(G)UI : LXDE
Inscription : 19-09-2018

Re : [clos] autologin lightdm et bureaux

Debian Alain a écrit :

oui , je l'ai suivi , malgré tout , pas moyen d'obtenir le changement du bureau au reboot  .

il semble que croutons ait  raison .

autologin = acun moyen de changer les paramètres au démarrage .



Mais les deux ordinateurs ou j'ai essayé ça marche bien, alors...scratchhead.gif


"blues are the roots and the other musics are the fruits" . Willie Dixon

Hors ligne

#36 17-10-2018 14:23:49

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

oui , moi aussi , ya kek choz  qui m'échappe ... kernal_panic.gif  scratchhead.gif

Hors ligne

#37 17-10-2018 14:39:53

empanada
Membre
Distrib. : Debian 11 (Bullseye)
Noyau : 5.10.0-13-amd64
(G)UI : LXDE
Inscription : 19-09-2018

Re : [clos] autologin lightdm et bureaux

Debian Alain a écrit :

kernal_panic.gif

  lol lol lol

Ufff, les logiciels sont des centaines ou milliers des lignes de code, qui se comuniquent avec des tas des autres logiciels qui sont des autres centaines o milliers, ou millions de lignes de code.
On est habitué à penser que le normal ce que "tout marche nickel", mais le plus logique serait que rien ne marche du tout lol.

Poste nous le lightdm.conf complet. Peut-être une autre option invalide user-session scratchhead.gif

Dernière modification par empanada (17-10-2018 14:42:33)


"blues are the roots and the other musics are the fruits" . Willie Dixon

Hors ligne

#38 17-10-2018 14:50:03

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

voilà ce que tu m'as demandé empanada , tongue

hp@Host-001:/etc/lightdm$ cat lightdm.conf



#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
# backup-logs = True to move add a .old suffix to old log files when opening new ones
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-check-graphical=false
#log-directory=/var/log/lightdm
#run-directory=/var/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=/usr/share/lightdm/greeters:/usr/share/xgreeters
#backup-logs=true

#
# Seat configuration
#
# Seat configuration is matched against the seat name glob in the section, for example:
# [Seat:*] matches all seats and is applied first.
# [Seat:seat0] matches the seat named "seat0".
# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
#
# type = Seat type (xlocal, xremote, unity)
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
# xserver-config = Config file to pass to X server
# xserver-layout = Layout to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option)
# unity-compositor-timeout = Number of seconds to wait for compositor to start
# greeter-session = Session to load for greeter
  greeter-hide-users = false
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
#
[Seat:*]
#type=xlocal
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-command=X
#xmir-command=Xmir
#xserver-config=
#xserver-layout=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
#greeter-session=example-gtk-gnome
#greeter-hide-users=false
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
#user-session=
#allow-user-switching=true
#allow-guest=true
#guest-session=
#session-wrapper=lightdm-session
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
 autologin-user= hp
 autologin-user-timeout= 10
#autologin-in-background=false
#autologin-session=
#exit-on-failure=false

#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn.  Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#listen-address=
#key=
#hostname=

#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#listen-address=
#width=1024
#height=768
#depth=8
 




hp@Host-001:/etc/lightdm$ cat lightdm-gtk-greeter.conf



# LightDM GTK+ Configuration
# Available configuration options listed below.
#
# Appearance:
#  theme-name = GTK+ theme to use
#  icon-theme-name = Icon theme to use
#  background = Background file to use, either an image path or a color (e.g. #772953)
#  user-background = false|true ("true" by default)  Display user background (if available)
#  transition-duration = Length of time (in milliseconds) to transition between background images ("500" by default)
#  transition-type = ease-in-out|linear|none  ("ease-in-out" by default)
#
# Fonts:
#  font-name = Font to use
#  xft-antialias = false|true  Whether to antialias Xft fonts
#  xft-dpi = Resolution for Xft in dots per inch (e.g. 96)
#  xft-hintstyle = none|slight|medium|hintfull  What degree of hinting to use
#  xft-rgba = none|rgb|bgr|vrgb|vbgr  Type of subpixel antialiasing
#
# Login window:
#  active-monitor = Monitor to display greeter window (name or number). Use #cursor value to display greeter at monitor with cursor. Can be a semicolon separated list
#  position = x y ("50% 50%" by default)  Login window position
#  default-user-image = Image used as default user icon, path or #icon-name
#  hide-user-image = false|true ("false" by default)
#
# Panel:
#  panel-position = top|bottom ("top" by default)
#  clock-format = strftime-format string, e.g. %H:%M
#  indicators = semi-colon ";" separated list of allowed indicator modules. Built-in indicators include "~a11y", "~language", "~session", "~power", "~clock", "~host", "~spacer". Unity indicators can be represented by short name (e.g. "sound", "power"), service file name, or absolute path
#
# Accessibility:
#  a11y-states = states of accessibility features: "name" - save state on exit, "-name" - disabled at start (default value for unlisted), "+name" - enabled at start. Allowed names: contrast, font, keyboard, reader.
#  keyboard = command to launch on-screen keyboard (e.g. "onboard")
#  keyboard-position = x y[;width height] ("50%,center -0;50% 25%" by default)  Works only for "onboard"
#  reader = command to launch screen reader (e.g. "orca")
#
# Security:
#  allow-debugging = false|true ("false" by default)
#  screensaver-timeout = Timeout (in seconds) until the screen blanks when the greeter is called as lockscreen
#
# Template for per-monitor configuration:
#  [monitor: name]
#  background = overrides default value
#  user-background = overrides default value
#  laptop = false|true ("false" by default) Marks monitor as laptop display
#  transition-duration = overrides default value
#
[greeter]
 background=/home/hp/Images/tigre.jpg
#user-background=
#theme-name=
 icon-theme-name= gnome-noble
 font-name= Droid Sans 12
 xft-antialias= true
#xft-dpi=
 xft-hintstyle= hintfull
 xft-rgba= rgb
#indicators=
show-indicators = ~language;~session;~power
show-clock = True
 clock-format= %H:%M
#keyboard=
#reader=
 position= 72%,center 24%,center
#screensaver-timeout=
#default-user-image = /home/$USER/Images/Default.png
 

Hors ligne

#39 17-10-2018 14:57:58

empanada
Membre
Distrib. : Debian 11 (Bullseye)
Noyau : 5.10.0-13-amd64
(G)UI : LXDE
Inscription : 19-09-2018

Re : [clos] autologin lightdm et bureaux

À simple vue je ne vois pas des différences, mais je bien de voir un autre paramètre :

# autologin-session = Session to load for automatic login (overrides user-session)

As-tu essayé?

"blues are the roots and the other musics are the fruits" . Willie Dixon

Hors ligne

#40 17-10-2018 15:01:52

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

non , attends mon post , je m'y mets .

ben non , pas de résultat.

Dernière modification par Debian Alain (17-10-2018 15:09:15)

Hors ligne

#41 17-10-2018 15:16:50

chalu
Modératrice
Lieu : Anjou
Distrib. : openSUSE Tumbleweed
Noyau : Linux 5.12
(G)UI : KDE 5.21.4
Inscription : 11-03-2016

Re : [clos] autologin lightdm et bureaux

C’est dans le contrôle à distance que tu n’y arrives ?
En direct sur le PC ça fonctionne tu peux choisir ton bureau ?

Tu fais comment pour prendre le contrôle à distance, c’est peut-être là qu’il y a un souci
https://pronflette.developpez.com/tutor … -distance/

Hors ligne

#42 17-10-2018 15:31:50

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

ben , je sais pas chalu .

à distance , pourtant , je fais ce que je veux avec openssh-server , ssh , x11vnc (server) et vncviewer (client) .

remmina fonctionne très mal en vnc , par contre en ssh , ça va .

j'arrive , en ssh , à faire presque ce que je veux avec quasiment n'importe quel fichier sur ma  machine distante .

la modification des bureaux dans lightdm.conf , à distance , ne  donne aucun résultat en local .

le pc reboote systematiquement sur mate (bureau par défaut à l'origine) .

l'appel à l'utilisation de gnome , gnome-classic (mes tentatives) n'a jamais rien donné .

par contre en local , directement sur la machine , le login est  assez long pour que je puisse modifier le bureau .

et d'ailleurs , ça fonctionne sans problème . en local . en direct . pas  en distant .

chalu a écrit :

C’est dans le contrôle à distance que tu n’y arrives ?

en effet .

chalu a écrit :

En direct sur le PC ça fonctionne tu peux choisir ton bureau ?

oui .

chalu a écrit :

Tu fais comment pour prendre le contrôle à distance ?

avec ssh .

chalu a écrit :

c’est peut-être là qu’il y a un souci ?


sais pas ... je pense pas , mais , sait on jamais  ?

je pense plutôt au fonctionnement de lightdm . bizzarre .

Dernière modification par Debian Alain (17-10-2018 15:42:23)

Hors ligne

#43 17-10-2018 17:09:40

empanada
Membre
Distrib. : Debian 11 (Bullseye)
Noyau : 5.10.0-13-amd64
(G)UI : LXDE
Inscription : 19-09-2018

Re : [clos] autologin lightdm et bureaux

Finalement je crois avoir compris...

chalu a écrit :

c’est peut-être là qu’il y a un souci ?


je crois que chalu a pointé dans la direction correcte.

Ce que tu appelles "local"

la modification des bureaux dans lightdm.conf , à distance , ne  donne aucun résultat en local


c'est un accès distante,à une nouvelle session, géré par VNC , et non géré par lightdm étant donné que toutes les options relatives a login distante son commentés.

par contre en local , directement sur la machine , le login est  assez long pour que je puisse modifier le bureau


Ça c'est un accès local.

Peut-être c'est ça ce que tu veux.
Remotely administering machines graphically, with VNC:

Another common option is to adjust the window manager that remote users will recieve.
For example if you have the GNOME desktop installed for your use you might wish incoming connections to use a more light-weight window manager such as IceWM. To do that you modify the file ~/.vnc/xstartup. You can mandate a window manager by changing this file to read, for example:

exec icewm

Dernière modification par empanada (17-10-2018 17:11:09)


"blues are the roots and the other musics are the fruits" . Willie Dixon

Hors ligne

#44 17-10-2018 17:16:20

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

lors de mes  recherches , je suis tombé sur un lien (mint) qui parlait de "xinitrc "

qu'en penses tu et  comment faire ?

Hors ligne

#45 17-10-2018 17:34:17

empanada
Membre
Distrib. : Debian 11 (Bullseye)
Noyau : 5.10.0-13-amd64
(G)UI : LXDE
Inscription : 19-09-2018

Re : [clos] autologin lightdm et bureaux

.xinitrc c'est utilisé quand xinit démarre Xserver, et normalement ce n'est pas le cas.

Xinitrc Wiki Debian

Note that ~/.xinitrc is only for configuring the initialization of xinit. If you want the script to be called when ever an X Session is started, then you should instead use ~/.xsession. Most WindowManagers also have a method of starting programs when they first startup.


"blues are the roots and the other musics are the fruits" . Willie Dixon

Hors ligne

#46 17-10-2018 18:10:47

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

ben alors du coup , je sais plus .

.xinitrc ou .xsession ?

trouvé ceci : https://unix.stackexchange.com/question … xsessionrc

intéressant mais ... en anglais . donc difficile à comprendre .

traduction §1 a écrit :

~/.xinitrc est exécuté par xinit, qui est généralement invoqué via startx. Ce programme est exécuté après la connexion : d'abord vous vous connectez sur une console texte, puis vous démarrez l'interface graphique avec startx. Le rôle de .xinitrc est de démarrer la partie GUI de la session, généralement en définissant certains paramètres liés à l'interface graphique tels que les raccourcis clavier (avec xmodmap ou xkbcomp), les ressources X (avec xrdb), etc. et de lancer un gestionnaire de session ou un gestionnaire de fenêtres (éventuellement dans un environnement bureau).

Traduit avec www.DeepL.com/Translator



traduction §2 a écrit :

~/.xsession est exécuté lorsque vous vous connectez en mode graphique (sur un gestionnaire d'affichage) et que le gestionnaire d'affichage appelle le type de session "personnalisée". (Avec le gestionnaire d'affichage historique xdm, .xsession est toujours exécuté, mais avec les gestionnaires d'affichage modernes qui donnent à l'utilisateur un choix de type de session, vous devez généralement choisir "personnalisé" pour que .xsession fonctionne. Son rôle est à la fois de définir les paramètres de temps de connexion (comme les variables d'environnement) et de démarrer la session de l'interface graphique. Une session .xsession typique est

#!/bin/sh
. ~/.profile
. ~/.xinitrc

Traduit avec www.DeepL.com/Translator



traduction §3 a écrit :

~/.xsessionrc est exécuté sur Debian (et ses dérivés comme Ubuntu, Linux Mint, etc.) par les scripts de démarrage X sur une connexion GUI, pour tous les types de session et (je pense) de tous les gestionnaires d'affichage. Il est également exécuté à partir de startx si l'utilisateur n'a pas de .xinitrc, car dans ce cas, startx retombe sur les mêmes scripts de démarrage de session que ceux utilisés pour se connecter à l'interface graphique. Il est exécuté relativement tôt, après le chargement des ressources mais avant le démarrage de tout programme tel qu'un agent clé, un démon D-Bus, etc. Il définit typiquement des variables qui peuvent être utilisées par des scripts de démarrage ultérieurs. Il n'y a pas de documentation officielle à ma connaissance, il faut fouiller dans les sources pour voir ce qui fonctionne.

Traduit avec www.DeepL.com/Translator



traduction §4 et 5 a écrit :

.xinitrc et .xsession sont des caractéristiques historiques du système X11 Window et doivent donc être disponibles et avoir un comportement similaire sur tous les systèmes Unix. D'autre part,.xsessionrc est une fonctionnalité de Debian et les distributions qui ne sont pas basées sur Debian ne l'ont pas, sauf si elles ont implémenté quelque chose de similaire.

.xprofile est très similaire à.xsessionrc, mais il fait partie du script de démarrage de session de GDM (le gestionnaire d'affichage GNOME), donc il n'est lu que si vous vous connectez avec GDM.



voilà pour le premier chapitre . je ne sais pas quelle décision prendre .

à priori , .xsession  :

mais :

hp@Host-001:~$ locate .xsession



/home/hp/.xsession-errors
/home/hp/.xsession-errors.old
 


hp@Host-001:~$ locate .xinit


hp@Host-001:~$ locate .xinitrc



en théorie , il faut donc le créer ....

oui , mais comment ? sous quelle forme ? de quelle manière ? avec quels droits ?

je continue à chercher et je trouve :

hp@Host-001:/etc/X11$ ls -la


total 96
drwxr-xr-x  10 root root  4096 oct.  11 13:28 .
drwxr-xr-x 145 root root 12288 oct.  17 19:02 ..
drwxr-xr-x   2 root root  4096 oct.   6 10:32 app-defaults
-rw-r--r--   1 root root    18 oct.   6 10:32 default-display-manager
drwxr-xr-x   6 root root  4096 oct.   6 10:27 fonts
-rw-r--r--   1 root root 17394 nov.  23  2016 rgb.txt
drwxr-xr-x   2 root root  4096 oct.   6 10:31 xinit
drwxr-xr-x   2 root root  4096 juil. 18  2017 xkb
-rwxr-xr-x   1 root root   709 nov.  23  2016 Xreset
drwxr-xr-x   2 root root  4096 oct.   6 10:18 Xreset.d
drwxr-xr-x   2 root root  4096 oct.   6 10:18 Xresources
-rwxr-xr-x   1 root root  3517 nov.  23  2016 Xsession
drwxr-xr-x   2 root root  4096 oct.  16 15:22 Xsession.d
-rw-r--r--   1 root root   265 nov.  23  2016 Xsession.options
drwxr-xr-x   2 root root  4096 oct.   6 10:31 xsm
-rw-r--r--   1 root root    13 déc.   5  2016 XvMCConfig
-rwxr-xr-x   1 root root   185 avril  9  2017 Xvnc-session
-rw-r--r--   1 root root   630 oct.   6 10:32 Xwrapper.config



hp@Host-001:/etc/X11$ cat Xsession


#!/bin/sh
#
# /etc/X11/Xsession
#
# global Xsession file -- used by display managers and xinit (startx)

# $Id: Xsession 967 2005-12-27 07:20:55Z dnusinow $

set -e

PROGNAME=Xsession

message () {
  # pretty-print messages of arbitrary length; use xmessage if it
  # is available and $DISPLAY is set
  MESSAGE="$PROGNAME: $*"
  echo "$MESSAGE" | fold -s -w ${COLUMNS:-80} >&2
  if [ -n "$DISPLAY" ] && which xmessage > /dev/null 2>&1; then
    echo "$MESSAGE" | fold -s -w ${COLUMNS:-80} | xmessage -center -file -
  fi
}

message_nonl () {
  # pretty-print messages of arbitrary length (no trailing newline); use
  # xmessage if it is available and $DISPLAY is set
  MESSAGE="$PROGNAME: $*"
  echo -n "$MESSAGE" | fold -s -w ${COLUMNS:-80} >&2;
  if [ -n "$DISPLAY" ] && which xmessage > /dev/null 2>&1; then
    echo -n "$MESSAGE" | fold -s -w ${COLUMNS:-80} | xmessage -center -file -
  fi
}

errormsg () {
  # exit script with error
  message "$*"
  exit 1
}

internal_errormsg () {
  # exit script with error; essentially a "THIS SHOULD NEVER HAPPEN" message
  # One big call to message() for the sake of xmessage; if we had two then
  # the user would have dismissed the error we want reported before seeing the
  # request to report it.
  errormsg "$*" \
           "Please report the installed version of the \"x11-common\"" \
           "package and the complete text of this error message to" \
           "<debian-x@lists.debian.org>."
}

# initialize variables for use by all session scripts

OPTIONFILE=/etc/X11/Xsession.options

SYSRESOURCES=/etc/X11/Xresources
USRRESOURCES=$HOME/.Xresources

SYSSESSIONDIR=/etc/X11/Xsession.d
USERXSESSION=$HOME/.xsession
USERXSESSIONRC=$HOME/.xsessionrc
ALTUSERXSESSION=$HOME/.Xsession
ERRFILE=$HOME/.xsession-errors

# attempt to create an error file; abort if we cannot
if (umask 077 && touch "$ERRFILE") 2> /dev/null && [ -w "$ERRFILE" ] &&
  [ ! -L "$ERRFILE" ]; then
  chmod 600 "$ERRFILE"
elif ERRFILE=$(tempfile 2> /dev/null); then
  if ! ln -sf "$ERRFILE" "${TMPDIR:=/tmp}/xsession-$USER"; then
    message "warning: unable to symlink \"$TMPDIR/xsession-$USER\" to" \
             "\"$ERRFILE\"; look for session log/errors in" \
             "\"$TMPDIR/xsession-$USER\"."
  fi
else
  errormsg "unable to create X session log/error file; aborting."
fi

exec >>"$ERRFILE" 2>&1

echo "$PROGNAME: X session started for $LOGNAME at $(date)"

# sanity check; is our session script directory present?
if [ ! -d "$SYSSESSIONDIR" ]; then
  errormsg "no \"$SYSSESSIONDIR\" directory found; aborting."
fi

# Attempt to create a file of non-zero length in /tmp; a full filesystem can
# cause mysterious X session failures.  We do not use touch, :, or test -w
# because they won't actually create a file with contents.  We also let standard
# error from tempfile and echo go to the error file to aid the user in
# determining what went wrong.
WRITE_TEST=$(tempfile)
if ! echo "*" >>"$WRITE_TEST"; then
  message "warning: unable to write to ${WRITE_TEST%/*}; X session may exit" \
          "with an error"
fi
rm -f "$WRITE_TEST"

# use run-parts to source every file in the session directory; we source
# instead of executing so that the variables and functions defined above
# are available to the scripts, and so that they can pass variables to each
# other
SESSIONFILES=$(run-parts --list $SYSSESSIONDIR)
if [ -n "$SESSIONFILES" ]; then
  set +e
  for SESSIONFILE in $SESSIONFILES; do
    . $SESSIONFILE
  done
  set -e
fi

exit 0

# vim:set ai et sts=2 sw=2 tw=80:



trouvé ceci :  https://wiki.debian.org/fr/Xsession

où la doc recommande de créer un .xsessionrc si j'ai bien compris .
mais là , j'avoue que je suis un peu largué ... en anglais en plus ...

Dernière modification par Debian Alain (17-10-2018 18:40:57)

Hors ligne

#47 17-10-2018 19:31:43

empanada
Membre
Distrib. : Debian 11 (Bullseye)
Noyau : 5.10.0-13-amd64
(G)UI : LXDE
Inscription : 19-09-2018

Re : [clos] autologin lightdm et bureaux

As-tu essayé #43? neutral

"blues are the roots and the other musics are the fruits" . Willie Dixon

Hors ligne

#48 17-10-2018 19:43:21

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

voilà ce que j'y trouve  :

hp@Host-001:~/.vnc$ ls -la



total 20
drwxr-xr-x  2 hp hp 4096 oct.  11 13:51 .
drwxr-xr-x 28 hp hp 4096 oct.  17 20:34 ..
-rw-r--r--  1 hp hp  530 oct.  11 13:56 Host-001.lan:1.log
-rw-r--r--  1 hp hp    5 oct.  11 13:51 Host-001.lan:1.pid
-rw-------  1 hp hp    8 oct.  11 13:51 passwd
 



si je te suis bien , empanada , tu me demandes de le créer  (xstartup) ? c'est çà ?

mais comment ? quelle forme ? quelle syntaxe ? quel(s) texte(s) ? quels droits ? où ?

Hors ligne

#49 17-10-2018 20:19:02

empanada
Membre
Distrib. : Debian 11 (Bullseye)
Noyau : 5.10.0-13-amd64
(G)UI : LXDE
Inscription : 19-09-2018

Re : [clos] autologin lightdm et bureaux

Debian Alain a écrit :

tu me demandes de le créer  (xstartup) ? c'est çà ?


Bien sur. Beaucoup des fichiers de config ils n'existent pas, il faut le créer.

Debian Alain a écrit :

mais comment ? quelle forme ? quelle syntaxe ? quel(s) texte(s) ? quels droits ? où ?



C'était dit ici:

empanada a écrit :


Remotely administering machines graphically, with VNC:

Another common option is to adjust the window manager that remote users will recieve.
For example if you have the GNOME desktop installed for your use you might wish incoming connections to use a more light-weight window manager such as IceWM. To do that you modify the file ~/.vnc/xstartup. You can mandate a window manager by changing this file to read, for example:
exec icewm



Pour gnome, par exemple:


echo '#!/bin/bash' > $HOME/.vnc/xstartup
echo "gnome-session" >> $HOME/.vnc/xstartup
chmod +x $HOME/.vnc/xstartup
 



La commande varie en fonction du bureau à démarrer

Dernière modification par empanada (17-10-2018 20:22:10)


"blues are the roots and the other musics are the fruits" . Willie Dixon

Hors ligne

#50 17-10-2018 20:30:57

Debian Alain
Membre
Lieu : Bretagne
Distrib. : sid (unstable) / bullseye (stable)
Noyau : Linux sid 6.4.0-3-amd64
(G)UI : Gnome X.org (X11) / GDM3
Inscription : 11-03-2017
Site Web

Re : [clos] autologin lightdm et bureaux

si je veux démarrer gnome - wayland , je fais ceci ? :

echo '#!/bin/bash' > $HOME/.vnc/xstartup
echo "GNOME" >> $HOME/.vnc/xstartup
chmod +x $HOME/.vnc/xstartup



et ceci pour gnome - classic ? :

echo '#!/bin/bash' > $HOME/.vnc/xstartup
echo "GNOME Classic" >> $HOME/.vnc/xstartup
chmod +x $HOME/.vnc/xstartup



pour mate et xfce , je fais quoi ? ceci ?:

echo '#!/bin/bash' > $HOME/.vnc/xstartup
echo "MATE" >> $HOME/.vnc/xstartup
chmod +x $HOME/.vnc/xstartup



echo '#!/bin/bash' > $HOME/.vnc/xstartup
echo "Xfce Session" >> $HOME/.vnc/xstartup
chmod +x $HOME/.vnc/xstartup



déduit d'après ton post #24 :

for DESKTOP in $(ls /usr/share/xsessions);do cat "/usr/share/xsessions/${DESKTOP}"|grep "Name="|cut -d = -f 2 ;done


GNOME Classic
GNOME
Kodi
Default Xsession
MATE
Kodi
Xfce Session
 



et ici post #49

echo '#!/bin/bash' > $HOME/.vnc/xstartup         ## crée le fichier en ajoutant le shebang
echo "gnome-session" >> $HOME/.vnc/xstartup      ## écrit la commande "gnome-session"  dans le fichier  
chmod +x $HOME/.vnc/xstartup                     ## donne les droits en exécution
 



par ailleurs , excuse moi mais moi et l'anglais , on est , disons ... pas toujours très copains .

Dernière modification par Debian Alain (17-10-2018 20:48:34)

Hors ligne

Pied de page des forums