Home > How To, Raspberry pi, Technology > Raspberry pi – Setting up auto-login and auto-loading the gui

Raspberry pi – Setting up auto-login and auto-loading the gui


Setting up Auto-Login

In the GUI left click in the bottom left hand corner on the blue cross to display the options menu (Like the start button in windows)

Go up to “other” and then scroll down the list until you get to “terminal” and left click

You should now see the “terminal” window which is just like a cmd box in windows and enter the following command

Sudo nano /etc/inittab

This will open up the boot time system configuration script.

Scroll down the file until you reach the line ‘1:2345:resoawn:/sbin/getty 115200 tty1’

When you see that line, put a hash # in front of it to disable that line then scroll to the end of line and hit enter.

In the blank line that appears add the following command

1:2345:respawn:/bin/login -f pi tty1 / dev/tty1 2>&1

Don’t forget to add the spaces and double check that the line enter is correct.

Press Ctrl+X to exit followed by Y to accept the changes.

To test that it works give the pi a reboot and it should now boot-up and auto-login you in ready for you to start the gui

Auto-loading the Gui

You need to start the gui with startx before carrying on with rest of this how to.

In the GUI left click in the bottom left hand corner on the blue cross to display the options menu (Like the start button in windows)

Go up to “other” and then scroll down the list until you get to “terminal” and left click

You should now see the “terminal” window which is just like a cmd box in windows and enter the following command

sudo nano /etc/profile

Scroll down to the very bottom of the file and add the following command

Startx

Press Ctrl+X to exit followed by Y to accept the changes.

To test that it works give the pi a reboot and it should now boot-up ask for a  login put in your pi account  and it will start the gui for you.

Advertisements
  1. AK
    August 30, 2012 at 1:21 am

    THANK YOU! You are the man! Finally able to auto login.

  2. January 1, 2013 at 10:56 pm

    How do you then disable startx because on my pi it means I cannot now access it at all and crashes out.

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

raspberrypicloud

The University of Glasgow's Raspberry Pi Project

Tech-o-rama

Your all round solution for tech problems (and some others things...like spelling errors)

thedomesticfringe.com/

telling stories - making memories

Raspberry Pi Kid

A 14-year old's adventures with Raspberry Pi

Naked Security

Computer Security News, Advice and Research

Grumpy IT Girl

I'm not a very good writer

Dustin Software

Because programming is fun!

Pinoy Tekkie

USER-FRIENDLY TECHNOLOGIES FOR THE PINOY NOOBIES

petRockBlog

Fun stuff for technics enthusiasts

I Kissed My Date Goodnight

A single thirty-something embarking on motherhood through the miracle of adoption.

projectz

Tech, Gadgets, Photography, Social Media and Poor Spelling

Programming My Rasberry Pi

A brave fool's adventures into the unknown!

Chris Ainger's Blog

Where Fishing Meets Computing

PIPAL

Information wants to be free

ITtechExec: Protecting Tech Careers Since 2001

Technical Career Advancement: Transformed. Guaranteed.

CRUNCHEDD

Entertainment, Technology, Social Media Updates from in Between the Web…

StartupTunes

An Exclusive Web 2.0 Startups Review Blog

The Life of Me

Just another IT blog

NJrajgelani

The Best Place for Deziners

%d bloggers like this: