Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have replaced the generated home with my old home folder. Now I can not log in to unity. (i can login to tty1)

How do I best fix this?

What files is needed in home to login?

I started without: .xsession file.

share|improve this question
Do you have a .xsession file in your home? Rename or delete it and try again. – solarc Jul 1 '12 at 22:12
up vote 1 down vote accepted

Very bizarre situation you have their. My best advice to this would create a new user from TTY1 (terminal) using the command adduser.

sudo adduser newuser

If you are able to login with the newuser account, then just copy the files out of /home/newuser into your home folder. Also, if you have to copy the files as root, make sure you correct the file ownerships.

sudo cp -a /home/newuser/. /home/myname/
sudo chown -R myname:myname /home/myname
share|improve this answer
This solves the problem but do not answer the question. This solution resets settings in the old home that perhaps is unnecessary if a user knows what files actually is required. – Paven Jul 3 '12 at 9:46

Your Answer


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.