Fresh user profile: Difference between revisions

From LWP-Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:misc-faq]]
[[Category:misc-faq]]
==== Fresh profile ====
Log out, open TTY 1 (CTRL+ALT+F1), log in with your p-number.<br/>
Log out, open TTY 1 (CTRL-ALT-F1), log in with your p-number.<br/>
Go to /home and delete the dot files and folders, or your whole /home directory (Back-up your important files first).<br/>
After you delete your home directory the system will create a new and fresh profile for you when you login again.<br/>
<br/>
<br/>
This command forcibly removes all dot files and directory and their content from your home dir:<br/>
If you want to save the dot files:<br/>
  rm -rf ~/.*
mkdir ~/backup_dot_files && mv ~/.* ~/backup_dot_files/
Switch back to your window manager (CTRL-ALT-F7) and log in again.
'''NOTE!''' this will give you the following error message that you can ignore:<br/>
''mv: cannot move '/home/p123456/.' to '/home/p123456/backup_dot_files/.': device or resource busy<br/>''
''mv: cannot move '/home/p123456/..' to '/home/p123456/backup_dot_files/..': device or resource busy<br/>''
<br/>
If you have no settings to save, you can do this:<br/>
  rm -rf ~/.*  
'''NOTE!''' this will also give you an error message that you can ignore:<br/>
''rm: refusing to move '.' or '..' directory: skipping  '/home/p123456/.'<br/>''
''rm: refusing to move '.' or '..' directory: skipping  '/home/p123456/..'<br/>''
<br/>
Switch back to the graphical user interface (GUI) (CTRL+ALT+F7) and log in. If everything works again, don't forget to logout of TTY1 by giving the command:
exit
== HINTS ==
The following directories containing most of the application settings you did yourself. If you want to keep your settings make a copy of these directories:
* .local/
* .config/
After cleaning your profile and logging in works again, you can copy back these two directories the same way you removed them; Log out, open TTY 1, log in with your p-number, copy the directories and login to the GUI.<br/>
If the trouble returns, the problem is in one of those directories. Clean your home dir again and now copy back your settings one at a time to find the culprit.<br/>
<br/>
I also made a, in no way complete, list of directories that might be in your home dir which sometimes are the cause of trouble and you can delete without thinking about it twice:
* .dbus/
* .gnome/
* .gnome2/
* .gnome2_private/
* .qt/
* .nv/
* .nvidia-settings-rc
* .Xauthority
* .gconf/
* .cache/
* .kde/
* .compiz/

Latest revision as of 11:54, 6 November 2018

Log out, open TTY 1 (CTRL+ALT+F1), log in with your p-number.

If you want to save the dot files:

mkdir ~/backup_dot_files && mv ~/.* ~/backup_dot_files/

NOTE! this will give you the following error message that you can ignore:
mv: cannot move '/home/p123456/.' to '/home/p123456/backup_dot_files/.': device or resource busy
mv: cannot move '/home/p123456/..' to '/home/p123456/backup_dot_files/..': device or resource busy

If you have no settings to save, you can do this:

rm -rf ~/.* 

NOTE! this will also give you an error message that you can ignore:
rm: refusing to move '.' or '..' directory: skipping '/home/p123456/.'
rm: refusing to move '.' or '..' directory: skipping '/home/p123456/..'

Switch back to the graphical user interface (GUI) (CTRL+ALT+F7) and log in. If everything works again, don't forget to logout of TTY1 by giving the command:

exit

HINTS

The following directories containing most of the application settings you did yourself. If you want to keep your settings make a copy of these directories:

  • .local/
  • .config/

After cleaning your profile and logging in works again, you can copy back these two directories the same way you removed them; Log out, open TTY 1, log in with your p-number, copy the directories and login to the GUI.
If the trouble returns, the problem is in one of those directories. Clean your home dir again and now copy back your settings one at a time to find the culprit.

I also made a, in no way complete, list of directories that might be in your home dir which sometimes are the cause of trouble and you can delete without thinking about it twice:

  • .dbus/
  • .gnome/
  • .gnome2/
  • .gnome2_private/
  • .qt/
  • .nv/
  • .nvidia-settings-rc
  • .Xauthority
  • .gconf/
  • .cache/
  • .kde/
  • .compiz/