0

I am trying to get my installation of 10.04 to automatically log me in at start up. I tried to apply this method http://www.linuxjournal.com/article/3121 but after creating the script there, I was unable to edit the /etc/inittab file as there is not one present. Apparently this is because Ubuntu does not use this method and instead uses 'upstart'. Is there a similar way to auto login with Ubuntu??

1 Answers1

1

According to the fine manual, you need to edit /etc/gdm/custom.conf in 10.04. If you can live with a GUI solution, then:

  1. Load the Gnome Administration utility by clicking on System -> Administration -> Login Screen Settings
  2. Unlock the window by hitting the unlock button (you will be asked the administrator password)
  3. Enable the checkbox for Log in as UserName automatically (Select your User Name from the drop-down list of users)
dotancohen
  • 2,815
  • how do i do this via script, so I can automate this, thx – Dhana Krishnasamy Jul 22 '15 at 21:28
  • @DhanaKrishnasamy: You cannot have a script log in a user, as scripts are genreally run as your user, which hasn't come up yet as you are not logged in! – dotancohen Jul 23 '15 at 09:06
  • This is what I wanted (non gui approach) -> http://askubuntu.com/questions/48321/how-do-i-start-applications-automatically-on-login/48327#48327 – Dhana Krishnasamy Jul 23 '15 at 09:10
  • @DhanaKrishnasamy: I see. You link explains how to have an application start on login, not how to have the system log in a specific user. This question and answer deal with the later. I'm glad that you found what you are looking for, though! – dotancohen Jul 23 '15 at 11:29