Friday, July 08, 2011

Autologin and Startup apps from command-line

Yesterday, I mentioned that I had installed Oneiric Ocelot (Ubuntu 11.10) Alpha 2 and, while it worked very well (for an alpha), it didn't seem to have either Login Screen or Startup Applications apps.
However, as is normal in Linux, if there's no GUI, just use the CLI.
Note that Ocelot uses the LightDM manager to login.
Although the post in this link explains (in one of the comments) how to autologin, it's actually explained much more clearly here.
As it says, just edit /etc/lightdm/lightdm.conf and replace these commented lines



where your_user is, of course, your username -- but you knew that, right?
Note no password is needed as you've already used your password to do the editing.
And that's it. Next time you boot, you should bypass the login page.

To add apps to the Startup Applications list, I added the .desktop file for the app I wanted to autostart (e.g. yakuake.desktop) to the directory /etc/xdg/autostart. I copied yakuake.desktop from /usr/share/applications.
This link provides a lot of useful information as does this thread.

No comments:

Post a Comment