Arch è necessario modificare il file xinitrc
sudo nano ~/.xinitrc
Debian e derivate (ubuntu e simili)
Cambiare Desktop Manager
sudo update-alternatives --config x-session-manager
There are 4 choices for the alternative x-session-manager (providing /usr/bin/x-session-manager).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/gnome-session 50 auto mode
1 /usr/bin/gnome-session 50 manual mode
2 /usr/bin/lxsession 49 manual mode
3 /usr/bin/openbox-session 40 manual mode
4 /usr/bin/startlxde 50 manual mode
Press enter to keep the current choice[*], or type selection number: 4
update-alternatives: using /usr/bin/startlxde to provide /usr/bin/x-session-manager (x-session-manager) in manual mode.
Cambiare Window Manager
sudo update-alternatives --config x-window-manager
There are 3 choices for the alternative x-window-manager (providing /usr/bin/x-window-manager).
Selection Path Priority Status
------------------------------------------------------------
* 0 /usr/bin/openbox 90 auto mode
1 /usr/bin/awesome 20 manual mode
2 /usr/bin/metacity 60 manual mode
3 /usr/bin/openbox 90 manual mode
Press enter to keep the current choice[*], or type selection number:
Conoscere i desktop manager installati
sudo update-alternatives --list x-session-manager
Conoscere i window manager i disponibili per il sistema
grep "^Exec" /usr/share/xsessions/*
Per visualizzare i window manager disponibili
sudo update-alternatives --list x-window-manager
oppure
grep -l "section=.Window Managers." /usr/share/menu/*
Per impostare l’avvio del login manager grafico preferito utilizzare il comando
sudo sysv-rc-conf
selezionare i livelli 2,3,4,5
e disabiliare il precedente login manager attivo