pc.jpg

STOP spending your hard earn money by having someone else fix your Computer. Do it yourself and save a bundle of cash.
Click for more info --> Windows PC Troubleshooting Unleashed!

How To Enable Automatic Logon In Ubuntu And Kubuntu

ubuntulogo.jpgI'm a long time Windows user and recently started playing with Linux and Ubuntu. I am finally getting comfortable with Ubuntu but still have a learning curve when it comes to configuration and customizing the desktop to my preference. One thing I always enable on my Windows PC is automatic logon. Can auto login be enabled in Ubuntu?

When it comes to any Linux distribution, if it can be done in Windows, it definitely can be done in Linux.

To enable automatic logon in Ubuntu, you will need to open and run GNOME Display Manager (also known as Logon Window Preference) as root.

Start by bringing bring up the Run Application window from the keyboard by pressing Alt+F2 and proceed the command with gksu by typing the following:

gksu /usr/sbin/gdmsetup

then click Run and enter your password.

NOTE: Screen shots are from Ubuntu and Kubuntu 7.04 Fiesty Fawn, but should be similar in previous versions.

ubuntuautologon1.png

 

In Kubuntu, bring up the Run Application window from the keyboard by pressing Alt+F2 and type the following:

kdesu /usr/sbin/gdmsetup

then click Run and enter your password.

ubuntuautologon3.png

 

In the Login Window Preferences, select the Security tab and check the box next to Enable Automatic Login. If necessary select the user account to enable automatic login. Click Close to save settings.

ubuntuautologon2.png

 

The next time you boot your computer, you will not need to login anymore!

Remember, while auto login is convenient, it is a security risk, and you should make sure there are no risks involved before allowing auto login on your Ubuntu or Kubuntu computer.

Filed under Ubuntu And Linux Tips by

Comment

Comments on How To Enable Automatic Logon In Ubuntu And Kubuntu »

December 11, 2007

simon @ 9:31 pm

these instructions are not useful to Kubuntu users, as it utilises a gnome specific program…

February 7, 2008

Dick Knight @ 4:06 pm

Thank you for this site. I used your directions for auto login in ubuntu. GOOD JOB!!!!!!

May 13, 2008

teddyhcraig @ 6:46 pm

I used sudo instead of gksu and it worked just fine. Boots up faster now.
It took several minutes to load gdmsetup to change it, but, it worked fine.

So if anyone else runs the command with sudo, and it seems like gdmsetup is not going to start for you, just give it a few minutes as it takes some time to load it up. At least it did on my system, which is, running Ubuntu Harty Heron.

Watching The Net @ 8:30 pm

@teddyhcraig

Good tip about using sudo. That's what's cool about Linux, many ways do things and no one way is wrong (maybe just a little more efficient!).

June 19, 2008

SleeplessHacker @ 8:15 pm

What about Kubuntu?

Leave a Comment

Subscribe without commenting