I haven’t met with similar topic at forum, so why not make a short tutorial?
Since All-in-One Installer declared to be deprecated, HASSbian seems the only quick source for users tracing pure Raspbian experience . Furthermore, many people may want to use pi as MagicMirror or other projects needing GUI. Actually adding GUI to Hassbian is quite easy and finally you will get your own Raspbian with Desktop, even with hassbian-config tool!
Sound not bad, right? Here’s the guide:
Open terminal directly at a Hassbian-ready pi or ssh, plz make you use the latest Hassbian image (Stretch version).
First, of course, make sure everything is new.
sudo apt-get update sudo apt-get upgrade sudo reboot
Then we start the real installation:
sudo apt-get install --no-install-recommends xserver-xorg sudo apt-get install --no-install-recommends xinit sudo apt-get install --no-install-recommends raspberrypi-ui-mods lxterminal gvfs sudo apt-get install lightdm sudo reboot
Note: When pi is rebooted make sure that it outputs to Screen itself. Don’t use VNC here. Or
Xserver will fail to launch because it cannot recognize the screen is attached.
After reboot, input you account name and password using keyboard attached to
pi. Then you will be taken into desktop directly. There you go~ Everything is just like what you been through at Raspbian with PIXEL. Now you can set-up VNC or ssh to it.
If you want to enable auto-login, then open terminal again (this time you can click it at GUI):
sudo nano /etc/lightdm/lightdm.conf. Find
#autologin-user=username, uncomment it. Save and exit.
Finally you have your Hassbian with PIXEL, enjoy.
Of course you can choose other desktop environment like LXDE, just replace
raspberrypi-ui-mods with whatever you want.