GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Ubuntu 16.04 Lts – Come viene avviato il server X?

Ho pensato che /usr/bin/startx lo script viene utilizzato per avviare il server X ma sembra che non sia vero. Quale processo o script avvia il server X? Il server X deve essere avviato prima che lightdm greeter sia visibile, ma quando esattamente?

Risposta accettata:

/etc/init.d/lightdm avvia il server X. Lightdm viene avviato prima, quindi avvia Xserver. Il processo padre di Xserver (Xorg) è lightdm (PID 25600 come mostrato nell'esempio seguente). Puoi vederlo eseguendo:

ps -ef | grep lightdm.

root     25600     1  0 00:50 ?        00:00:00 /usr/sbin/lightdm  
root     25608 25600  2 00:50 tty7     00:00:35 /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch  
root     25686 25600  0 00:50 ?        00:00:00 lightdm --session-child 12 19

L'esecuzione dei seguenti comandi interromperà e avvierà lightdm e Xserver di conseguenza:

sudo /etc/init.d/lightdm stop  
sudo /etc/init.d/lightdm start

Ubuntu
  1. Come installare il server Minecraft su Ubuntu 18.04 LTS

  2. Come configurare il server Rsyslog su Ubuntu 18.04 LTS

  3. Come installare Ubuntu Server 18.04 LTS

  4. Come installare Docker in Ubuntu 18.04 LTS Server

  5. Come installare Discourse su Ubuntu 20.04 LTS

Come installare Plex Media Server su Ubuntu 20.04 LTS Server/Desktop

Come installare OpenProject su Ubuntu 20.04 LTS Server

Come installare il server OpenSSH su Ubuntu 20.04 LTS

Come installare TeamSpeak Server su Ubuntu 16.04 LTS

Come installare Jekyll su Ubuntu 16.04 LTS

Come installare il server Minecraft su Ubuntu 16.04 LTS