How to restore Ubuntu desktop to first install

In a few days a new version of Ubuntu will be released, with this, many users will update their computers, change their desktops and as a result of all this, the operating system may become slower due to the various libraries and programs that have no function or that is not really used by the end user.

Therefore many users usually perform a clean install of Ubuntu. But you can restore the desktop without having to do a clean install and then remove the leftover packages, without having problems with dependencies.

There is a command for the Gnome, MATE and Unity desktops that not only deletes the configurations of the desktops but also allows us to make backup copies of those configurations to use them later or restore them. The command makes use of the Dconf program, a tool that is present in the aforementioned desktops and that therefore we cannot use in other desktops such as Xfce, Plasma or Lxde.

To do all this we have to open a terminal and write the following:

sudo dconf dump

This command will execute a subfunction to make a backup of our configuration. It is important to do it before the next command because if when restoring the desktop we see that there is something wrong, we can return to the previous configuration and solve the problems.

Now we write in the terminal:

dconf reset -f /

And after this, the desktop of our Ubuntu will return to its initial configuration, as if we installed Ubuntu for the first time. This means that the shortcuts, settings, desktop themes, etc ... will stop working and everything will be returned to default.

Personally, I usually opt for a clean installation, but I have to say that backup and installation takes a while that I don't have, so this trick seems very interesting to me, since it allows us clean our Ubuntu without spending a lot of time on it.


Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   Fernando Robert Fernandez said

    It looks quite simple and practical. I am one of those who prefer an installation from 0. My machines are Dual Boot, I do the Back Up, from Windows I delete the partitions for Linux and then I follow the directives of the graphical installer of the Distro that I install and everything works very well.

  2.   Mr. Paquito said

    On genbeta.com two days ago:

    https://www.genbeta.com/paso-a-paso/como-restablecer-el-escritorio-de-ubuntu-a-su-estado-original-con-un-simple-comando

    I do not know if it is the first site where this was published, but I had read it there two days ago and, in any case, the genbeta article cites the source.

    What a coincidence that in Ubunlog an article comes out telling exactly the same thing the next day. Of course, in this case, it is homegrown, without having read it anywhere before because, if I had read it, the source would be cited, of course, since it is fair and it also doesn't cost anything... Anyway.

    Greetings.

  3.   Peter Clement said

    I have windows on one pc and ububtu on another so I have no problems and can use both at the same time