How to upgrade from Fedora24 to Fedora25 with less stress.

It's time to upgrade to 64 bit!
There is no easy way to do this and preserve your settings.
So we need to backup everything and do a fresh install of the root directory.

On my main production machine
BACKUP list of installed software
dnf list installed > /SCSI/backup/linux7_os/dnf-list-installed.f24
rpm -qa --qf "%{NAME}\n" | sort > /SCSI/backup/linux7_os/rpm-qa-qf.f24

This can be used but I chose to reinstall by hand
# LIST="$( cat /SCSI/backup/linux7_os/rpm-qa-qf.f24 )"
# for s in $LIST; do yum -y install $s; done

BACKUP directories: /boot /home/ /etc /usr /root /var

DOWNLOAD and BURN ISO of Fedora 25 64 bit
dd if=/path/to/image.iso of=/dev/sdX bs=8M status=progress oflag=direct

On my backup server
BACKUP web server files
# rsync -auvn --delete /home1/gyllenberg
# rsync -auvn --delete /home2/hi-rez
# rsync -auvn --delete /home3/blessisrael

SETUP compatible http, sendmail, dovecot, passwd

RECREATE mysql databases

CHANGE wan IP of backup server
and in iptables

UNPLUG wan on both servers and REBOOT backup server

BACKUP thunderbird files in mozilla
# rsync -auvn --delete /SCSI/mozilla

BACKUP sendmail files in Maildir
# rsync -auvn --delete /var/spool/Maildir

PLUG wan back in on backup server and check webserver and mailserver

BOOT Fedora 25 64bit Live from ISO on main production machine
I used a small server ISO and installed workstation from the web
Don't change the default names yet of ethernet interfaces or the web will not be available.

After removing the USB and rebooting:
rpm -qa --qf "%{NAME}\n" | sort > /SCSI/backup/linux7_os/rpm-qa-qf.f25
dnf update
compare rpm-qa-qf.f24 and rpm-qa-qf.f25 using KDiff3 or similar
install all your essential software
you may have to reinstall aditional repos for ffmpeg and vlc for instance
teamviewer needs to be downloaded again as it does not install from a repo
modify fstab
restore /home

SETUP compatible http, sendmail, dovecot, passwd
The newer version of spamassassin needed to modify procmail files.

RECREATE mysql databases

and in iptables
In Fedora 25, as long as the files have the correct hardware address, you can rename them and the name of the interface inside the file. This takes precidence over biosdevname.

UNPLUG wan on both servers and restore ip of backup server

RESTORE thunderbird files in mozilla
# rsync -auvn --delete /SCSI/mozilla

RESTORE sendmail files in Maildir
# rsync -auvn --delete /var/spool/Maildir

REBOOT both server and PLUG in the wan on both servers

CHECK that everything is working
There are things to fix:
First, Disable Wayland and Skip login, nobody else uses this computer!
Your /etc/gdm/custom.conf file should look like this:
# GDM configuration storage

# Uncoment the line below to force the login screen to use Xorg





# Uncomment the line below to turn on debugging

Create or edit a file called ~/.config/gtk-3.0/gtk.css
@define-color theme_bg_color #3366cc; /* #3366cc; for blue */ /*cc6600; for red *//* #669900; for green */

.header-bar.default-decoration {
padding-top: 0px;
padding-bottom: 0px;

.header-bar.default-decoration .button.titlebutton {
padding-top: 0px;
padding-bottom: 0px;

/* Get rid of unsightly line in ssd title bar and reduce button padding */
.ssd .titlebar {
border: none;
background-image: linear-gradient(to bottom,
shade(@theme_bg_color, 1.042),
shade(@theme_bg_color, 0.999));
box-shadow: none;
border-top: 1px solid shade(@theme_bg_color, 1.072);

.ssd .titlebar:backdrop {
background-image: linear-gradient(to bottom, @theme_bg_color);

.ssd .titlebar .button.titlebutton {
padding: 3px;

Get rid of annoying screen shield in fedora 25.
dnf install gnome-tweak-tool
1. Disable Screen Lock
Gnome settings → Privacy → Screen Lock → Off

2. Download this extension - Clone this repo into the correct folder:
git clone /home/kevin/.local/share/gnome-shell/extensions/

3. Reload GnomeShell
Press ALT + F2 then enter r and press Enter.

4. Activate this extension
Tweak Tool → Extension → Disable Screen Lock → On

Set the defaults in Nautilus
gsettings set org.gnome.nautilus.preferences default-folder-viewer 'list-view'
gsettings set org.gnome.nautilus.preferences enable-delete true
nautilus >Files on top bar >Preferences >Behavior >Delete Files Permanently

As usual to:
Disable selinux, edit /etc/selinux/config.
Instead of installing gnome-classic-session
We can install some extensions to make it behave just like "classic" GNOME.
Using gnome-tweak-tool activate these extensions:
Applications menu
Places status indicator
Window list
I enabled them all except Background logo
must run hp-setup again to detect scanner
Then, to get rid of that slow lemon at bootup:
In grub.cfg, replace ro rhgb quiet LANG=en_US.UTF-8 with ro video=VGA-1:1920x1200 LANG=en_US.UTF-8 verbose

Updated 24 February 2017
by Kevin Gyllenberg.