Warning: Trying to access array offset on false in /var/www/html/Website/common.php on line 245

Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/html/Website/common.php on line 245

Warning: Trying to access array offset on false in /var/www/html/Website/common.php on line 245

Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /var/www/html/Website/common.php on line 245

Warning: Trying to access array offset on false in /var/www/html/Website/common.php on line 247

Warning: Trying to access array offset on false in /var/www/html/Website/common.php on line 248
Baillehache Pascal's personal website
Update Fedora on a linode instance

This article is a memo to myself about how to upgrade Fedora on a Linode instance using the "clean install" method.

I assume there already exist an instance (let's call it "linode-old") from where one wants to upgrade the Fedora version.

Login to your Linode control panel. In the "Linodes" tab, click on "Create Linode". Some important parameters here are, the region, which must be the same as linode-old, the ssh keys, if you want to reuse the same as for the previous instance, and the OS, which is the new new Fedora version you want to upgrade too.

Once the instance is running, you can make your life easier by setting an environment variable with the IP of the new instance

Log into the new instance with as root:

Create a new user (XXX is the user password):

Add the new user to the sudoers:

Allow remote access to the instance for the new user:

Disconnect from the new isntance and reconnect to it as the new user:

Setup and secure the instance (cf here):

Setup fail2ban as described here. Install various tools:

Install Apache and PHP:

Setup LetsEncrypt as described here:

Transfer the static IP adress as described here. Update the ssh connection by deleting the lines in ~/.ssh/known_hosts referring to the swapped IP and ssh-ing again into them as usual (the correct lines will be automatically recreated). Set the appropriate rights for read/write/exec using chcon.

2025-08-20
in All,
6 views
A comment, question, correction ? A project we could work together on ? Email me!
Learn more about me in my profile.

Copyright 2021-2025 Baillehache Pascal