Customizing a desktop atmosphere on Linux is enjoyable and rewarding however time-consuming. Quite than spending a whole day re-setting up your LXDE desktop atmosphere every time you put in it, you shold again up the LXDE desktop settings, and restore from it every time you must.

SPOILER ALERT: Scroll down and watch the video tutorial on the finish of this text.

Back Up LXDE Settings

Z

LXDE remains to be a preferred desktop atmosphere, regardless of its age. As a result of age of it, you gained’t have the ability to do a fast backup by exporting issues in Dconf. As an alternative, if you wish to protect your LXDE desktop atmosphere, you’ll must create an entire backup of the ~/.config folder.

Making a backup of ~/.config is finest achieved with a TarGZ archive. With a lot of these archives, customers can simply protect the entire file permissions within the backup. Whereas safeguarding permissions for configuration information isn’t finally that essential, it’s nonetheless an affordable precaution to take.

Open up a terminal and use the tar command to create a brand new TarGZ archive.

tar -cvpf my-configuration-folder.tar.gz ~/.config

Encrypt Backups

Making a GPG encryption of a desktop atmosphere, for probably the most half, isn’t required. Nonetheless, on this tutorial it’s since we’re constructing an entire backup of all the ~/.config folder (which has your browser profile, and different utility login settings) fairly than only a few LXDE folders.

Earlier than making an attempt to make an entire GPG backup, you’ll want to make sure that you might have GnuPG in your Linux PC. Open up a terminal and observe the directions that correspond together with your working system.

Ubuntu

sudo apt set up gpg

Debian

sudo apt-get set up gpg

Arch Linux

sudo pacman -S gnupg

Fedora

sudo dnf set up gpg

OpenSUSE

sudo zypper set up gpg

Generic Linux

Want to put in GPG in your Linux PC however not sure of do it? Open up a terminal window, search the package deal supervisor for “gpg” and set up it. Alternatively, discover a downloadable binary package deal from Pkgs.org.

Begin the encryption course of by executing the gpg command together with the “c” swap.

gpg -c my-configuration-folder.tar.gz

Fill out the password immediate that seems in your terminal to complete the encryption course of. Don’t neglect to make use of a secure password! When the encryption is full, you’ll see my-configuration-folder.tar.gz.gpg in your house listing. Be happy to add this file to the cloud or a house server for secure protecting.

After importing the backup to a secure place, use the rm command to delete the unencrypted TarGZ archive.

rm my-configuration-folder.tar.gz

Themes And Icons

The LXDE desktop atmosphere configuration settings are secure and safe in a GPG encrypted archive. Nonetheless, the LXDE backup course of isn’t full, as we nonetheless must create a replica of your {custom} icons and and themes.

Making a backup of {custom} icons and themes on Linux includes compressing  ~/.icons and ~/.themes folders into separate TarGZ archives. Begin the backup course of by opening up a terminal and working the next instructions.

Word: did you put in icons and themes system-wide? If that’s the case, create a again up of  /usr/share/icons/ and /usr/share/themes/ directories, and never ~/.icons and ~/.themes.

tar -cvpf custom-icons.tar.gz ~/.icons

tar -cvpf custom-themes.tar.gz ~/.themes

For system-wide icons and themes, do the next.

sudo -s

cd /usr/share/

tar -cvpf custom-icons.tar.gz icons

tar -cvpf custom-themes.tar.gz themes

mv *.tar.gz /house/username/

Now that every one {custom} themes and icons are in TarGZ archives, the backup is full. Transfer these TarGZ information to the cloud, or a house server for secure protecting.

Restore Backup

Obtain your my-configuration-folder.tar.gz.gpg file and place it within the ~/Downloads folder. Do the identical for the custom-icons.tar.gz and custom-themes.tar.gz information. When the entire information are in place, open up a terminal window and use the CD command to navigate to the ~/Downloads folder.

cd ~/Downloads

In ~/Downloads, use the gpg command to decrypt your my-configuration-folder.tar.gz.gpg file.

gpg my-configuration-folder.tar.gz.gpg

As soon as decrypted, restore the file to your house listing with the tar command.

tar --extract --file my-configuration-folder.tar.gz -C ~/ --strip-components=2

After restoring your configuration information, extract each the icon and theme archive information with tar.

Restore icons and themes for a single person

tar --extract --file custom-icons.tar.gz -C ~/ --strip-components=2

tar --extract --file custom-themes.tar.gz -C ~/ --strip-components=2

Restore icons and themes system-wide

sudo tar --extract --file custom-icons.tar.gz -C /usr/share/ --strip-components=1 --overwrite 

sudo tar --extract --file custom-themes.tar.gz -C /usr/share/ --strip-components=1 --overwrite

When the icons are in place, your LXDE desktop you will have to reboot your Linux PC. It’s because the LXDE desktop atmosphere can’t routinely apply adjustments to the settings.

After restarting, log again into LXDE and every part ought to look because it did earlier than creating your backup!



Source link

Share.
Leave A Reply

Exit mobile version