Bashster
Posts: 41
Joined: Sat Jan 19, 2013 3:00 pm

.bash_profile missing?

Mon Mar 11, 2013 12:41 am

Hi all,

I want to get X running automatically so need to add 'startx' to .bash_profile but the file seems to be missing in Raspbian. Is it called something else in this derivation of Debian does anyone know?

THanks.

Bashster
Posts: 41
Joined: Sat Jan 19, 2013 3:00 pm

Re: .bash_profile missing?

Mon Mar 11, 2013 12:46 am

OK, forget that, I've just discovered it's in rc.local

User avatar
jojopi
Posts: 3078
Joined: Tue Oct 11, 2011 8:38 pm

Re: .bash_profile missing?

Mon Mar 11, 2013 5:39 am

/etc/rc.local runs as root at the end of the system boot sequence. ~/.bash_profile runs as the user whenever a login shell launches. Neither is a good place to run interactive processes such as "startx". That will make it difficult to boot and log in normally.

If you are using the Foundation's Raspbian image, "sudo raspi-config" has an option to boot to desktop, which may be closer to what you want.

Return to “Raspbian”