2

Steps to reproduce:

  1. copy latest Raspbian Jessie Lite image to sdcard
  2. install updates, reboot
  3. run raspi-config, choose "boot into Desktop" from boot menu
  4. install lightdm package as suggested by raspi-config
  5. reboot

After these steps cli is only loaded and lightdm service shows only this:

sudo systemctl status lightdm
 lightdm.service - Light Display Manager
   Loaded: loaded (/lib/systemd/system/lightdm.service; enabled)
   Active: failed (Result: start-limit) since Thu 2017-03-30 11:05:44 UTC; 39s ago
     Docs: man:lightdm(1)
  Process: 854 ExecStart=/usr/sbin/lightdm (code=exited, status=1/FAILURE)
  Process: 849 ExecStartPre=/bin/sh -c [ "$(cat /etc/X11/default-display-manager 2>/dev/null)" = "/usr/sbin/lightdm" ] (code=exited, status=0/SUCCESS)
 Main PID: 854 (code=exited, status=1/FAILURE)

Mar 30 11:05:44 raspberrypi systemd[1]: Failed to start Light Display Manager.
Mar 30 11:05:44 raspberrypi systemd[1]: Unit lightdm.service entered failed state.
Mar 30 11:05:44 raspberrypi systemd[1]: lightdm.service holdoff time over, scheduling restart.
Mar 30 11:05:44 raspberrypi systemd[1]: Stopping Light Display Manager...
Mar 30 11:05:44 raspberrypi systemd[1]: Starting Light Display Manager...
Mar 30 11:05:44 raspberrypi systemd[1]: lightdm.service start request repeated too quickly, refusing to start.
Mar 30 11:05:44 raspberrypi systemd[1]: Failed to start Light Display Manager.
Mar 30 11:05:44 raspberrypi systemd[1]: Unit lightdm.service entered failed state.
valentt
  • 1,315
  • 3
  • 15
  • 21

2 Answers2

2

GUI in Linux is modular and client-server. A display manager (as its name suggests) manages your displays, and nothing more. You will need an X server (which doesn't have to be running on the same computer BTW) to have any displays in the first place, and a desktop environment if you want to have something on your display besides a mouse pointer.

The relevant packages to install are xserver-xorg and lxde, but there's a high chance that I have missed something, so if your goal is to use the GUI, just install Raspbian with GUI included.

Dmitry Grigoryev
  • 28,277
  • 6
  • 54
  • 147
1

I probably didn't do all this correctly, but maybe this will help someone.

After spending much time trying to get OpenCV working, I found ready to use Image based on Lite. But still in the very Noob stage, decided to get a GUI installed and found this/ [GUIDE] [Raspbian Lite with RPD/LXDE/XFCE/MATE/i3/Openbox/X11 GUI]1 Then I installed synaptic and loaded up what I needed without any of the troubles I was having with the OpenCV installation attempts.

Should anyone be interested in the Image: Ready-to-use Image: Raspbian Stretch + ROS + OpenCV

Shiseiji
  • 11
  • 1