Install GUI on Raspi OS Lite using LXDE
Install Depedencies
First, install all depedencies
sudo apt update && apt upgrade -y
# install all depedencies
sudo apt install lxde lxde-core lxsession lxappearance lightdm lxterminal xserver-xorg xinit dbus-x11 lightdm -y
Keep in mind
If you are asked "Default display manager.", chose: lightdm.
LightDM Configuration
You neet to verify that all of Environment.
ls -la /usr/share/xsession/
- LXDE.desktop (This is the main core and I will utilize it.)
- lxde-pi.desktop
- openbox.desktop
- LXDE-pi-labw.desktop
Then, configure the lightdm conf. Edit file /etc/lightdm/lightdm.conf.
sudo nano /etc/lightdm/lightdm.conf
Edit autologin-user=your_user and autologin-session=LXDE.
[Seat:*]
autologin-user=anaklanang
autologin-session=LXDE
Restart lightdm using
sudo systemctl restart lightdm
Automate Login GUI after live boot.
sudo raspi-config
-> Chose 1. System Options
-> Chose S5. Boot/Auto Login
-> Chose B2. Console Autologin with Desktop GUI
Then, reboot.
reboot
Error solver
if you do not enter the LDX GUI session, run this command in tty. You can enter TTY session using 'CTRL + ALT + F1 - F6'. Login as your user and run these command.
startx
# or startlxde
it will start the Xorg server.
Also, you can check log in .xsession-errors and /var/log/lightdm/lightdm.log.