LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint
User Name
Password
Linux Mint This forum is for the discussion of Linux Mint.

Notices


Reply
  Search this Thread
Old 07-12-2016, 02:04 PM   #1
nobahn
Member
 
Registered: Sep 2013
Location: Great Lakes region
Distribution: LinuxMint 20 | Cinnamon 4.6.7
Posts: 36
Blog Entries: 2

Rep: Reputation: 0
Changing to Linux Mint 18


It's my understanding that that upgrades aren't recommended for Linux Mint. Therefore, how do I save my settings and install them in the clean installed system? OR, put another way, where can I find the information on this topic?
 
Old 07-12-2016, 02:14 PM   #2
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
There is a very simple, but essential, method to do this. BACKUP!!!

In other words, save everything you want to keep (probably your /home/<user> directory), not onto just one media, but at least two.

Then do a clean install (or, by all means an upgrade - if it doesn't pan out, THEN do a clean install!). After that, put your stuff back.

This, in my humble experience, is the only foolproof way. Yes, I too avoid upgrades from one major version to another.

Best regards,
HMW
 
1 members found this post helpful.
Old 07-12-2016, 02:20 PM   #3
nobahn
Member
 
Registered: Sep 2013
Location: Great Lakes region
Distribution: LinuxMint 20 | Cinnamon 4.6.7
Posts: 36

Original Poster
Blog Entries: 2

Rep: Reputation: 0
HMW--
Thank you for the courtesy of your reply. Query: Where can I find step-by-step instructions?
 
Old 07-13-2016, 02:16 AM   #4
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by nobahn View Post
HMW--
Thank you for the courtesy of your reply. Query: Where can I find step-by-step instructions?
Hi again!

Well, I don't know about step-by-step instructions. Maybe I did not express myself in a good way, but this is really simple. I'll try to break it down...
  1. Insert removable media 1
  2. Copy all the files you want to save to removable media 1
  3. Insert removable media 2
  4. Copy all the files you want to save (same files as to removable media 1) to removable media 2
  5. Boot your PC with the installation media for the new Linux Mint version you wish to install
  6. Do a clean install (wipe the drive)
  7. After the installation, copy your saved files back to the new version of Linux Mint

^That's about the best I can do as far as step-by-step.

Best regards,
HMW
 
Old 07-13-2016, 03:00 AM   #5
nomko
Member
 
Registered: Feb 2011
Location: The Netherlands
Distribution: Linux Mint 17.2
Posts: 115

Rep: Reputation: 21
There's someone who already started a topic about the same thing: http://www.linuxquestions.org/questi...-a-4175584445/

Quote:
In other words, save everything you want to keep (probably your /home/<user> directory), not onto just one media, but at least two.
Bad advise to backup your complete /home/{user} folder! The difference between Mint 17.* and Mint 18 are too significant that there will be conflicts between program/configuration files versions.

Best is to only backup your important data (documents, photo's, Thunderbird mail folder, etc.) and do a fresh/clean/new installation.
 
Old 07-13-2016, 05:26 AM   #6
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by nomko View Post
Bad advise to backup your complete /home/{user} folder!
Where did I say that?
Quote:
In other words, save everything you want to keep (probably your /home/<user> directory)
(My emphasis)

Since I don't know what OP wants to keep, this was a suggestion, nothing more. As far as I'm concerned, OP can have files and directories just about anywhere in the filesystem that he/she wants to keep!

I also fail to see the harm in backing up the entire $HOME as long as you don't put everything from the old $HOME (including configuration files) back into the new $HOME. That kind of beats the whole purpose of doing a clean install in the first place!

Best regards,
HMW
 
Old 07-13-2016, 06:21 AM   #7
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by nobahn View Post
It's my understanding that that upgrades aren't recommended for Linux Mint. Therefore, how do I save my settings and install them in the clean installed system? OR, put another way, where can I find the information on this topic?
For your info, the Mint team are working this month on an upgrade path from Linux Mint 17.3 to 18 and it will hopefully be available soon.
 
Old 07-13-2016, 07:04 AM   #8
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by nobahn View Post
It's my understanding that that upgrades aren't recommended for Linux Mint. Therefore, how do I save my settings and install them in the clean installed system? OR, put another way, where can I find the information on this topic?
I see some answers regarding backing up DATA, but the original question is about backing up SETTINGS.
There is some important information lacking - such as:
What Desktop are you using? Cinnamon? Mate?
Are you installing the same Desktop?
Do you have a separate /home partition? Or a separate DATA partition?

The basic idea on backing up settings for programs like GIMP, Firefox, Seamonkey, Thunderbird, etc., is that the settings are stored in your current /home (wherever that is) in hidden files and folders. So in your file manager, activate the view for hidden files and you will see them. You can back up those folders, and restore them (carefully).

I just installed Mint 18, and migrated my settings from Mint 17.3, but I "cheated". I used a script I wrote to back up and re-install all my important settings to the new installation. It worked like a charm. I will post the scripts here, but you can only use them for a guide. They are highly customized for my programs and my Desktop (Cinnamon).

backup.sh - backup script
Code:
#!/bin/sh
# You will need a backup drive with at least 1GB available.
# Boot into the OS that you want to back up.
# make a folder on your backup drive "backupscript"
# save this file in the backupscript folder, as backup.sh
# right-click on the backupscript folder & open a terminal
# make the script executable with "sudo chmod u+x backup.sh"
# run the script with "sudo ./backup.sh"

# clean out unneeded .deb files:
aptitude autoclean
# copy all remaining .deb files -
# this eliminates excessive downloading when installing your programs
mkdir archives
cp /var/cache/apt/archives/*.deb ./archives/

# copy personal configuration and program configs
# if you use Firefox or Thunderbird you will want to add those to this list
# any programs you don't use can be deleted from this list
cp -a $HOME/.avidemux .
cp -a $HOME/.gconf .
cp -a $HOME/.config/Pinta .
cp -a $HOME/.config/smplayer .
cp -a $HOME/.config/vlc .
cp -a $HOME/.filezilla .
cp -a $HOME/.grsync .
cp -a $HOME/.icons .
cp -a $HOME/.local .
cp -a $HOME/.themes .
cp -a $HOME/.wallpapers .
cp -a $HOME/.mozilla/seamonkey .
cp -a $HOME/.asunder* .
cp -a $HOME/.bash_history .
# preserve my custom aliases in bashrc
cp -a $HOME/.bashrc .
cp -a $HOME/.gimp-2.8 .
cp -a $HOME/.config/google-chrome .
cp -a $HOME/bin .

# remove Firefox and Thunderbird
# I don't use them, and don't want frequent updates
apt-get --purge autoremove -y firefox  firefox-locale-en
apt-get --purge autoremove -y thunderbird  thunderbird-gnome-support

# copy your software sources
# I do this in order to restore my PPA's
cp -a /etc/apt .

# save installed software list
# WARNING "dpkg set-selections" should be used ONLY when migrating to the SAME version and desktop !!!
# otherwise you will trash the new system - at least that is my experience...
dpkg --get-selections > installed-software.list

# If you are using Cinnamon, backup the entire Cinnamon dconf
# includes the menu favorites, panel location, hot corners, etc.
dconf dump /org/cinnamon/ > dconf.org.cinnamon

# If you are using Cinnamon, backup the entire Nemo dconf
# preserves columns, views, bookmarks, and Desktop
dconf dump /org/nemo/ > dconf.org.nemo

echo DONE !
update.sh - restore script
Code:
#!/bin/sh
# save this file in the backupscript folder as update.sh
# make it executable with "sudo chmod u+x update.sh"
# boot into the newly installed OS
# establish wireless or cable internet connection
# Check Software Sources for fastest connection
# right-click on the backupscript folder & open a terminal
# run the script with "sudo ./update.sh"

# remove unused stuff e.g. firefox, thunderbird, and rare fonts
apt-get -y --purge autoremove firefox  firefox-locale-en
apt-get -y --purge autoremove thunderbird  thunderbird-gnome-support
apt-get -y --purge autoremove fonts-kacst fonts-kacst-one fonts-khmeros-core fonts-lao fonts-lklug-sinhala fonts-nanum fonts-sil-abyssinica fonts-sil-padauk fonts-takao-pgothic fonts-tibetan-machine fonts-tlwg-garuda fonts-tlwg-kinnari fonts-tlwg-loma fonts-tlwg-mono fonts-nanum fonts-tlwg-norasi fonts-noto fonts-tlwg-purisa fonts-tlwg-sawasdee fonts-tlwg-typewriter fonts-tlwg-typist fonts-tlwg-typo fonts-tlwg-umpush fonts-tlwg-waree ttf-indic-fonts-core ttf-punjabi-fonts ttf-wqy-microhei fonts-droid fonts-wqy-zenhei

# Get rid of the annoying "Warning: No support for locale: en_US.utf8"
dpkg-reconfigure locales
update-locale LANG=en_US.UTF-8
locale-gen --purge --no-archive
update-initramfs -u -k all

# copy all old .deb files
cp ./archives/*.deb /var/cache/apt/archives/

# install ubuntuzilla ppa (Seamonkey) and MultiSystem ppa (additional-repositories.list)
cp ./apt/sources.list.d/additional-repositories.list /etc/apt/sources.list.d/

# install ubuntuzilla ppa key
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com C1289A29

# install MultiSystem ppa key
wget -q -O - http://liveusb.info/multisystem/depot/multisystem.asc | sudo apt-key add -

# copy Google Chrome ppa and install key
cp ./apt/sources.list.d/google-chrome.list /etc/apt/sources.list.d/
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -

apt-get -y update

# install all the programs I use:
# -r = Treat recommendations as dependencies
aptitude -r install  acetoneiso album apport-gtk asunder avidemux avidemux-plugins-gtk bluefish boot-info-script clipit cthumb dconf-tools filezilla flegita-gimp fsarchiver gimp glines gnome-brave-icon-theme gnome-color-chooser gnome-search-tool google-chrome-stable gparted gpick grml-rescueboot grml2usb grsync gsmartcontrol gtkhash gufw gwenrename hardinfo htop imagemagick-doc leafpad medit meld multisystem nemo-image-converter pithos pmount preload puddletag roxterm seamonkey-mozilla-build shutter smartmontools smplayer smtube swapspace xsane

# alternative installation command - only when cloning the SAME version and desktop:
# aptitude -r install $(cat installed-software.list | awk '{print $1}')

# clean out unused .deb files
aptitude autoclean

# restore personal configuration
cp -a .avidemux $HOME/
cp -a .gconf $HOME/
cp -a  Pinta $HOME/.config/
cp -a  smplayer $HOME/.config/
cp -a  vlc $HOME/.config/
cp -a .filezilla $HOME/
cp -a .grsync $HOME/
cp -a .icons $HOME/
cp -a .local $HOME/
cp -a .themes $HOME/
cp -a .wallpapers $HOME/
cp -a  seamonkey $HOME/.mozilla/
cp -a .asunder* $HOME/
cp -a .bash_history $HOME/
cp -a .gimp-2.8 $HOME/
cp -a  google-chrome $HOME/.config/
# .bashrc contains my custom aliases
cp -a .bashrc $HOME/

# restore dconf settings (only if you use Cinnamon)
# "Perhaps first do a "dconf reset -f /org/cinnamon/" or "dconf reset -f /org/nemo/"
# to reset all values to their default, before you load the customized values"
# - was not necessary for me on a fresh install of Mint 17.3 Cinnamon
# might be necessary on a cloned OS
# This worked beautifully to restore a boatload of configuration!
dconf load /org/cinnamon/ < dconf.org.cinnamon
dconf load /org/nemo/ < dconf.org.nemo

# make symlinks to my themes
ln -s $HOME/.themes/Dans_BurntOrangeLonghorn /usr/share/themes/Dans_BurntOrangeLonghorn
ln -s $HOME/.themes/Dans_MintyGreen-V3 /usr/share/themes/Dans_MintyGreen-V3
ln -s $HOME/.themes/Dans_RainyDayBlues /usr/share/themes/Dans_RainyDayBlues

# create a mount point for my data partition:
mkdir $HOME/DATA_sda7
chown $USER:$USER $HOME/DATA_sda7
# add data partition to fstab
echo "# mount sda7 on /home/dan/DATA_sda7" | sudo tee -a /etc/fstab
echo "UUID=8f13cffd-fb93-4f54-92f6-9eec1f97cbd1   /home/dan/DATA_sda7   ext4   defaults,noatime   0   2" | sudo tee -a /etc/fstab
mount -a

echo Install Samsung printer and scanner drivers...
sleep 3
cd $HOME/bin/SamsungPrinter/uld/
./install.sh
cd $HOME

echo DONE !
echo Do you want to reboot now?
while true
do
  echo -n "Please confirm y(es) or n(o):"
  read CONFIRM
  case $CONFIRM in
    y|Y|YES|yes|Yes) break ;;
    n|N|no|NO|No)
      echo Aborting - you entered $CONFIRM
      exit
      ;;
    *) echo Please enter only y or n
  esac
done
echo You entered $CONFIRM - rebooting...
shutdown -r now

Last edited by TxLonghorn; 07-13-2016 at 08:37 AM.
 
2 members found this post helpful.
Old 07-13-2016, 07:53 AM   #9
HMW
Member
 
Registered: Aug 2013
Location: Sweden
Distribution: Debian, Arch, Red Hat, CentOS
Posts: 773
Blog Entries: 3

Rep: Reputation: 369Reputation: 369Reputation: 369Reputation: 369
Quote:
Originally Posted by TxLonghorn View Post
I see some answers regarding backing up DATA, but the original question is about backing up SETTINGS.
There is some important information lacking - such as:
What Desktop are you using? Cinnamon? Mate?
Are you installing the same Desktop?
Do you have a separate /home partition? Or a separate DATA partition?

The basic idea on backing up settings for programs like GIMP, Firefox, Seamonkey, Thunderbird, etc., is that the settings are stored in your current /home (wherever that is) in hidden files and folders. So in your file manager, activate the view for hidden files and you will see them. You can back up those folders, and restore them (carefully).
^True. I read 'data' where I should have read 'settings'.
 
Old 07-13-2016, 08:44 AM   #10
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 4,005
Blog Entries: 33

Rep: Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471
nobahn,

You may find this information helpful:

http://www.linuxquestions.org/questi...-distro-37074/
 
1 members found this post helpful.
Old 07-13-2016, 08:55 AM   #11
nobahn
Member
 
Registered: Sep 2013
Location: Great Lakes region
Distribution: LinuxMint 20 | Cinnamon 4.6.7
Posts: 36

Original Poster
Blog Entries: 2

Rep: Reputation: 0
TxLonghorn--

O.S. -- LM 17.3 Cinnamon 64-bit
Cinnamon Ver. -- 2.8.8
Linux Kernel -- 3.13.0-24-generic

Yes, I will be installing the same desktop.
I do not believe that that I have separate /home or /data partitions -- seeing as I don't know how to create them.

So if I'm understanding you correctly, to save my Firefox settings -- which is what I'm primarily interested in -- I need to save the /home/.mozilla directory.

beachboy2--
Thank you for the link.
 
Old 07-13-2016, 09:19 AM   #12
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 4,005
Blog Entries: 33

Rep: Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471
nobahn,

To save your Firefox bookmarks:

Open Firefox > Bookmarks > Show all bookmarks > Import & Backup > Export to .html > Give the file a name, such as bookmarks13JULY2016.html and select Desktop > Save.

You can now copy and paste the bookmarks13JULY2016.html to a USB flash drive.

In the new distro, plug in the USB drive and then copy and paste the .html file to your Desktop.

Open Firefox and this time select Import bookmarks from the file on Desktop.
 
1 members found this post helpful.
Old 07-13-2016, 09:43 AM   #13
nobahn
Member
 
Registered: Sep 2013
Location: Great Lakes region
Distribution: LinuxMint 20 | Cinnamon 4.6.7
Posts: 36

Original Poster
Blog Entries: 2

Rep: Reputation: 0
Thumbs up

beachboy2--
Thankyouverymuch!
 
Old 07-13-2016, 10:03 AM   #14
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 21 MATE, EndeavourOS, antiX, MX Linux
Posts: 4,005
Blog Entries: 33

Rep: Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471Reputation: 1471
Thumbs up

nobahn,

You are welcome!
 
Old 07-13-2016, 10:59 AM   #15
TxLonghorn
Member
 
Registered: Feb 2004
Location: Austin Texas
Distribution: Mandrake 9.2
Posts: 702

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Transferring a Firefox profile from one computer to another can be a pain if you have to do it manually. Sure, you can locate the firefox profile directory and then copy it to the new machine, but then it doesn’t automatically show up in the list, etc.
MORE Backup and Restore Firefox Profiles Easily
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
why is my language not changing to english again in linux mint? kishlay Linux - Newbie 1 03-10-2012 06:08 AM
Changing the login screen setup [Linux Mint/Ubuntu] CameronS Linux - Desktop 1 01-16-2012 01:18 AM
LXer: Changing Desktop Appearance On Linux Mint 11 (Advanced) LXer Syndicated Linux News 0 10-13-2011 09:30 AM
LXer: Changing Desktop Appearance On Linux Mint 11 LXer Syndicated Linux News 0 08-26-2011 11:10 AM
LXer: Changing From Microsoft Windows To Linux Mint 11 LXer Syndicated Linux News 0 08-12-2011 03:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux Mint

All times are GMT -5. The time now is 09:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration