rocky_linux_9_migration_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
rocky_linux_9_migration_notes [2023/01/21 10:10] – juckins | rocky_linux_9_migration_notes [2024/01/10 20:51] – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Rocky Linux 9 Migration Notes ==== | ==== Rocky Linux 9 Migration Notes ==== | ||
- | <color # | + | NOTE 1: The fresh install instructions below were tested on Rocky Linux 9.3 |
- | __Before Starting__ | + | NOTE 2: Upgrading Rocky Linux 9.2 to 9.3 in late November 2023 resulted in ImageMagick errors. |
- | * Get inventory of users | + | NOTE 3: To migrate from Rocky Linux 8.x to 9, [[https:// |
- | * Become familiar with what each one does and the crons they run | + | |
- | * Make a test user on Rocky Linux 8 and one on Rocky Linux 9 | + | |
- | * Compare hidden files to see if anything changed between OSs | + | |
- | * This allows for easy migrating of data for users' $HOME directories | + | |
- | * Alternatively, just copy over the non-hidden files content first. Then rsync other $HOME directories one-by-one | + | |
- | * Ensure all scripts make their own log file directory | + | //The notes below have been combined from [[centos_8_migration_notes|CentOS 8 Migration Notes]] and [[centos_7_migration_notes|CentOS 7 Migration Notes]].// |
- | * '' | + | //It is based on the **[[https://www.xfce.org/|Xfce Desktop Environment]]**. MATE is available, see notes at bottom of the page.// |
- | | + | |
- | | + | |
+ | __Before Starting__ | ||
+ | |||
+ | * Get inventory of users (see /home) | ||
+ | * Become familiar with what each one does and the crons they run | ||
* Copy the following to external hard drive or other machine for restoration after upgrade | * Copy the following to external hard drive or other machine for restoration after upgrade | ||
* All users $HOME directories | * All users $HOME directories | ||
* Ensure crons are in each user's $HOME/ | * Ensure crons are in each user's $HOME/ | ||
- | * Log files from /var/tmp/ | ||
- | * ''/ | ||
- | * Or, possibly the entire directory contents to prevent man-in-the-middle attack messages (testing needed) | ||
* ''/ | * ''/ | ||
* ''/ | * ''/ | ||
Line 32: | Line 26: | ||
* Perform a minimal or basic install of Rocky Linux 9 | * Perform a minimal or basic install of Rocky Linux 9 | ||
- | * Run the [[dnf_installer_bash_script_rocky_linux_9|Rocky Linux 9 bash setup script]] to get the usual extras, add-ons and other packages | ||
* Backup ''/ | * Backup ''/ | ||
+ | * Run the [[dnf_installer_bash_script_rocky_linux_9|Rocky Linux 9 bash setup script]] to get the usual extras, add-ons and other packages | ||
+ | * Reboot target computer and login. | ||
+ | |||
* Since Xfce will be installed by running the bash script noted above, you can copy in pre-existing configs from another machine that already has Xfce installed. | * Since Xfce will be installed by running the bash script noted above, you can copy in pre-existing configs from another machine that already has Xfce installed. | ||
* Copy files in '' | * Copy files in '' | ||
- | * Reboot target computer and login. | + | * '' |
- | * See {{: | + | * See {{: |
- | * Disable screensaver | + | * [[https:// |
- | * Skip custom java runtime installation (does not seem to be needed) | + | |
+ | * Disable screensaver and power management | ||
* If necessary, disable WiFi LAN connection as root: '' | * If necessary, disable WiFi LAN connection as root: '' | ||
* [[https:// | * [[https:// | ||
- | * [[python_notes|Run through Python/PIP configuration]] | ||
- | * [[https:// | + | |
- | * Copy/merge in ''/ | + | * '' |
- | * Run through [[php8.1_upgrade|Rocky Linux 9 PHP 8.1 Upgrade]] | + | * Restore user's $HOME directories |
+ | * Copy over non-hidden files/ | ||
+ | * You can use rsync with the option to [[rsync_ignore_hidden_files|ignore hidden files]] | ||
+ | * Then rsync other hidden directories in each user's $HOME one-by-one, taking only what is needed | ||
+ | |||
+ | | ||
+ | * Copy/merge in ''/ | ||
+ | * Test password-restricted pages | ||
+ | * Run through [[php8.2_on_rocky_linux_8|PHP 8.2 on Rocky Linux 9]] | ||
* Copy/merge in a known good ''/ | * Copy/merge in a known good ''/ | ||
* Ensure a php file loads correctly (localhost, 192.168.X.XX, | * Ensure a php file loads correctly (localhost, 192.168.X.XX, | ||
* Check httpd logs for any errors, such as mod security | * Check httpd logs for any errors, such as mod security | ||
- | * Uninstall [[https:// | + | * Uninstall [[https:// |
* Firewall configuration | * Firewall configuration | ||
+ | * [[https:// | ||
* [[https:// | * [[https:// | ||
* Can also try '' | * Can also try '' | ||
Line 65: | Line 70: | ||
* '' | * '' | ||
- | * MySQL / MariaDB Database | + | * MySQL / MariaDB Database |
- | * [[https:// | + | * [[https:// |
- | * [[https:// | + | * How to [[https:// |
+ | |||
+ | * Install [[https:// | ||
+ | * Merge in config.inc.php from previous machine | ||
+ | * Clear local browser history, then test | ||
+ | * To create the phpmyadmin database, use the " | ||
+ | * To move over users, export from phpMyAdmin on old machine and cut-past into the Import function on new machine. | ||
+ | * If problematic, | ||
+ | |||
+ | * MySQL / MariaDB Database - Migrate databases | ||
+ | * [[http:// | ||
+ | * They can be exported from phpMyAdmin (but don't include root) | ||
* [[https:// | * [[https:// | ||
* Note that the restore of mysql does not use '' | * Note that the restore of mysql does not use '' | ||
* [[https:// | * [[https:// | ||
- | * [[http:// | ||
- | * They can be exported from phpMyAdmin (but don't include root) | ||
* Export MySQL databases with mysqldump | * Export MySQL databases with mysqldump | ||
* [[https:// | * [[https:// | ||
* [[http:// | * [[http:// | ||
+ | * When done, check format of tables (MyISAM vs InnoDB vs Aria) | ||
+ | * To change database engine, see [[https:// | ||
- | * Install | + | * [[python_notes|Run through Python/PIP configuration]] |
- | * Merge in configs from previous machine | + | * For the non-root user needing it, run '' |
- | * Clear local browser history, then test | + | |
- | * May need to comment out the cookie validity setting in config.inc.php | + | |
+ | * Install miniconda3 (see [[python_virtual_environments|Python Virtual Environments]]) | ||
+ | |||
+ | * [[gmail_as_a_relay_on_linux|Set up Gmail Relay and test]] | ||
* Set up [[samba_file_sharing|Samba]] users, passwords, shares (for security cameras) | * Set up [[samba_file_sharing|Samba]] users, passwords, shares (for security cameras) | ||
+ | * Credentials are stored in my secure password file | ||
+ | * command will be: '' | ||
* Make sure service is running and will start at boot. | * Make sure service is running and will start at boot. | ||
* Check output with: '' | * Check output with: '' | ||
- | | + | |
* VSFTP (for security cameras) | * VSFTP (for security cameras) | ||
- | * [[http:// | + | |
+ | | ||
* [[https:// | * [[https:// | ||
* As root: '' | * As root: '' | ||
Line 95: | Line 115: | ||
* https:// | * https:// | ||
* '' | * '' | ||
- | * Use ''/ | + | * Use ''/ |
* Setup duckdns updater cron | * Setup duckdns updater cron | ||
* Setup ydns updater cron | * Setup ydns updater cron | ||
Line 104: | Line 124: | ||
* Check that each cron job runs and the specified log directory exists | * Check that each cron job runs and the specified log directory exists | ||
* Check network connections and make sure active connection comes up at boot time | * Check network connections and make sure active connection comes up at boot time | ||
- | * Install NoMachine Desktop | ||
* Restore Thunderbird profile | * Restore Thunderbird profile | ||
- | * Restore Firefox profile | + | * [[https:// |
- | * Restore | + | * Migrate/ |
+ | * I had to create and self-sign MOK (Machine Owner Key) certificates. | ||
+ | * My Google Doc "Linux Replacement 2024" has some crude notes | ||
+ | * Restore | ||
+ | * '' | ||
* Test ASMAD for processing end-to-end | * Test ASMAD for processing end-to-end | ||
+ | * All perl scripts | ||
+ | * Required modules should be included in the [[dnf_installer_bash_script_rocky_linux_9|dnf installer bash script]] | ||
+ | * All python scripts | ||
+ | * Check my amtrak_status " | ||
* Install [[clamav_antivirus|ClamAV]] | * Install [[clamav_antivirus|ClamAV]] | ||
* Install local printer | * Install local printer | ||
+ | * Use http:// | ||
+ | * If you don't use root credentials, | ||
+ | * Then restart cups '' | ||
+ | * Use AppSocket/ | ||
+ | * Choose driver '' | ||
+ | * Use option settings to make it the default printer and use 600x600 DPI quality | ||
+ | * Test using enscript filename.txt (old a2ps command) | ||
+ | * See if printer is default with '' | ||
+ | * '' | ||
+ | * Local RPMs | ||
+ | * perl-Math-Round | ||
+ | * Slack | ||
+ | * sunwait | ||
+ | * Test with ''/ | ||
* Check any remaining ''/ | * Check any remaining ''/ | ||
- | * For example, Ookla Speedtest | + | * For example, |
* Mount /disk2 (see [[adding_a_second_hard_drive]]) | * Mount /disk2 (see [[adding_a_second_hard_drive]]) | ||
* Install [[https:// | * Install [[https:// | ||
+ | * See repo at https:// | ||
* Use this instead of [[https:// | * Use this instead of [[https:// | ||
* v1.16 works with '' | * v1.16 works with '' | ||
- | | + | * Binary is / |
- | * '' | + | |
- | * Right-click top panel > Add to Panel | + | * Packages are xfce4-cpugraph-plugin and xfce4-weather-plugin which are part of the bash install script noted near top of this page |
- | * In the "Find an item to add to the panel:" search box, enter " | + | * Right-click top panel > Add New Items |
- | * Moving display of current CPU usage should appear | + | * Add CPU Graph, Weather Info |
+ | * Adjust top and bottom panels | ||
+ | * Reverse positions | ||
+ | * Make top panel 24px with icons at fixed 22px | ||
+ | * Bottom panel 24px with icons at fixed 16px | ||
+ | * Top panel has these buttons: | ||
+ | * Show desktop, separator, calculator, xterm, gedit, chrome, chrome beta, firefox, app finder, file manager, screenshot, keepass, xfreerdp, shortcut to security cams, VirtualBox, Remmina | ||
+ | * Stop the Keyring popup GUI when starting Chrome (see [[https:// | ||
+ | * '' | ||
+ | * Log out and log back in or reboot | ||
__Post Installation__ | __Post Installation__ | ||
+ | * In /root/bin on old/new machines, see final_sync_for_new_server.txt | ||
* As root, use '' | * As root, use '' | ||
+ | * Cleanup old files in root, my $HOME | ||
+ | * Fix date [[https:// | ||
+ | * Setting should be in .bashrc | ||
__Other Notes__ | __Other Notes__ | ||
+ | |||
MATE is now available. | MATE is now available. | ||
+ | |||
+ | * Add System Monitor to panel | ||
+ | * '' | ||
+ | * Right-click top panel > Add to Panel | ||
+ | * In the "Find an item to add to the panel:" | ||
+ | * Moving display of current CPU usage should appear | ||
+ | |||
+ | __Known issues__ | ||
+ | * SHA-1 security signing is not supported on RHEL9 ([[https:// | ||
+ | * / | ||
+ | * Probably not a critical issue since Chrome can be updated via dnf |
rocky_linux_9_migration_notes.txt · Last modified: 2024/05/14 13:18 by juckins