2

I've followed instructions from eLinux (here) on how to get a raspberry to start lxde at bootup. But I'm not sure if it will log in automatically, considering I have a password on my 'pi' user. Any of you guys know?

I'm running raspbian, however, I am not using the default lightdm. I need the GUI to start at boot because it's running a google printer service, and (afaik) chromium needs to start for the printer to go online.

closed as off-topic by goldilocks Oct 4 '15 at 17:16

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – goldilocks
If this question can be reworded to fit the rules in the help center, please edit the question.

  • I would not follow those instructions if cat /etc/issue indicates you are using Raspbian 8, which is the latest image. – goldilocks Oct 4 '15 at 14:41
  • @goldilocks it seems I'm running Raspbian 7 – sverker wahlin Oct 4 '15 at 16:51
  • Since you're not running it stock and are instead using an alternative display manager (which is what controls the GUI login), your question is not really very pi specific and would be better off on our larger sibling site Unix & Linux. – goldilocks Oct 4 '15 at 17:16
  • I'd say that customization is rather inherent in all Linux boxes. And it is running a raspberry pi specific OS. But sure, I can try another forum. – sverker wahlin Oct 5 '15 at 18:19
  • There's almost nothing about Raspbian that is actually specific to it, beyond default configurations (meaning, the software is the same, it may just be configured differently than normal Debian). As a rule of thumb when doing basic technical research, investigate in the broadest possible context, not the narrowest, and work your way down if necessary. – goldilocks Oct 5 '15 at 18:42
1

raspi-config should be able to do this for you via the top level option:

Choose whether to boot into a desktop environment or the command line

There are then choices including:

Desktop GUI, automatically logged in as 'pi' user

Raspi-config is a shell script in /usr/bin, you can look at do_boot_behaviour_new() for the details of how to do this "manually" (it depends on whether you are using systemd or the older init system), but there is no normally no need to do so.

If you're not using lightdm but you are using Raspbian 8 (jessie), I think raspi-config will still work, depending on what's been done with regard to your choosen DM and systemd. Systemd appears to have it's own mechanism for autologin with graphical.target, and presumably this is adapted depending on the DM (but I cannot say for sure).

If you're using Raspbian 7, however, raspi-config will re-enable lightdm here, which you don't want. In this case it is also using a hardcoded mechanism specific to lightdm. You will need to instead configure whatever DM it is you are using, since that's what controls this.

  • Looks like raspi-config only works with lightdm, and I'm currently testing slim. Either way, I need to know as much as possible of what's going on under this hood, for educational purposes. But I'll look into the boot_behaviour thingy. – sverker wahlin Oct 4 '15 at 16:52
  • I.e., your question is really "How do I enable autologin w/ SLiM?" wiki.archlinux.org/index.php/SLiM#Enable_Autologin – goldilocks Oct 4 '15 at 17:15
  • Quite possibly. If that is all there is to get the system to autologin. If slim.conf has complete control, then that's all that I'm after. But looking at the instructions from eLinux.org, I get the feeling that there's other things playing into this. Also, does Slim always grab the boot, when Slim is installed? Can't a system have Slim installed, but boot to command line? – sverker wahlin Oct 4 '15 at 17:34
  • What's the purpose in logging in on the command line then starting a DM, particularly if you are only using one DE? It would probably be simpler for you to just use the command line autologin then have the pi user automatically startx via a login script, and skip SLiM completely. – goldilocks Oct 4 '15 at 18:16

Not the answer you're looking for? Browse other questions tagged or ask your own question.