Tags

,

Considering the application of Raspberry Pi for the elderly, it is very tedious to have to log in every time Raspberry Pi starts up. So I configured it to do auto login and run LXDE (Auto StartX) when powered on.

The following configuration is required:
In LXTerminal, type
sudo nano /etc/inittab

Scroll down (or CTRL V to next page) to a line which states
1:2345:respawn:/sbin/getty 115200 tty1 (or /getty --noclear 38400 tty1)

Comment it out by adding “#” at the front.
#1:2345:respawn:/sbin/getty 115200 tty1

Add this line instead:
1:2345:respawn:/bin/login -f pi tty1 /dev/tty1 2>&1

Press CTRL+X to save (press Y) and exit.

As for auto StartX, type the following in terminal:
sudo nano /etc/rc.local

Scroll to the bottom and add the following above exit 0:
su -l pi -c startx

where “pi” is the username you want run X as. Press CTRL+X to save (press Y) and exit.

Install a virtual keyboard:
sudo apt-get install matchbox

Then to access it, go to accessories>keyboard

So upon power up, R-Pi will automatically shows its GUI. Now I can get rid of the physical keyboard!:D And no worries about doing CTRL+X or scroll up and down in the LXTerminal because the virtual keyboard can do it as well!

To run a script automatically after start up, here is the reference that I have not try out.

Advertisements