Digital Picture Frame Startup Scripts - Auto Login
I have some startup scripts that I want to run when I boot up my machine. I am running a server edition of ubuntu with X installed (XFCE). When I boot up I had an auto-login script set up to log in, and then my .bash_profile set up to start up a couple scripts. The problem is if I auto login (I wish i still had the script to show you, i deleted it since it doesn't work) then if i try to SUDO anything, or SSH in, my password isn't accepted !?
1) How can I auto login and still have the ability to SSH or SUDO (It boots to command prompt now)
2) I read about inet.d and /etc/rc2.d/ and /etc/rc3.d/ for startup scripts, but is this the best way to go?
3) When I log in from the command prompt and run the script which calls "xinit", it says the user isn't authorized to start x or run x. How can i fix it ?
Thanks a LOT!!!!