Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I changed my .profile to run a script at startup. That scripts loops through all the files in a folder and sets it as the background image. It sleeps for 10 seconds before it sets the next one as the wallpaper. The problem is, I didn't tell it to run as a background process.

So, at login, it runs the script in the main thread and I'm screwed. I can't do anything. It's not responsive. I have nearly 1200 images, so it could take nearly 3.33 hours to complete. I can wait but I don't want to. Is there any solution?

BTW, the login screen does not appear at login. It automatically signs in (I checked that option at Ubuntu install). So, there's no apparent way to log in using Failsafe Gnome mode.

I use Ubuntu 10.04. Any help would be appreciated.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

Yes, and it is one of the feature of Linux: you can get to a console by pressing ControlAltF1

Use cd to go to the directory where you edited the file and restore the backup profile you created before you editted it ( ;) ) or just edit the file if you did not make a backup.

nano .profile

When you're done, ControlX to save and exit and then just run sudo restart lightdm to restart the graphical server. If that didn't work, back to TTY1 and edit your .profile again.

Alternatively you can so the same using the live CD: boot from it and mount the disc that has your .profile and edit it.

share|improve this answer
    
I booted into recovery mode and changed the .profile. This would have been a better way, but I read this after I got it working. Thank you. –  asattar Feb 16 '12 at 13:37
    
no problem! glad you got it fixed. and thanks Oli. –  Rinzwind Feb 16 '12 at 13:37

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.