rocky_linux_9_migration_notes
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
rocky_linux_9_migration_notes [2023/01/21 10:26] – juckins | rocky_linux_9_migration_notes [2025/04/08 20:00] (current) – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== Rocky Linux 9 Migration Notes ==== | ==== Rocky Linux 9 Migration Notes ==== | ||
- | <color # | + | __2024-11-25__ |
- | **The below is based on the Xfce Desktop Environment** | + | Old news, but LibreOffice no longer supported by RedHat. |
- | __Before Starting__ | + | Unpack the tar and verify you see individual RPMs. Then: |
- | * Get inventory of users | + | |
- | * Become familiar with what each one does and the crons they run | + | |
- | | + | You can then start an application like this: |
- | * Compare hidden files to see if anything changed between OSs | + | |
- | * This allows for easy migrating of data for users' $HOME directories | + | |
- | * Alternatively, | + | |
- | | + | |
- | * '' | + | |
- | * '' | + | Make a .bashrc alias for shortcuts. |
- | * Should crons write to /tmp and then have a daily script that checks cron logs for errors? | + | |
+ | __2024-11-21__ | ||
+ | |||
+ | Upgrade to Rocky Linux 9.5: | ||
+ | |||
+ | Had to run the following due to package problems (which will break ' | ||
+ | |||
+ | dnf remove compat-ffmpeg4 ffmpeg-libs vlc | ||
+ | dnf update | ||
+ | dnf install vlc gstreamer1-plugin-openh264 | ||
+ | | ||
+ | Then security cameras running vlc and totem worked correctly. | ||
+ | |||
+ | __2024-05-13__ | ||
+ | |||
+ | Upgrade to Rocky Linux 9.4: | ||
+ | |||
+ | Had to run '' | ||
+ | |||
+ | After the upgrade the test Rocky Linux 9.3 VM would not start X with Xfce. Tried a bunch of things like reinstalling all RPMs, getting list of matching RPMs against another VM that upgraded OK but X still would not start. | ||
+ | |||
+ | Discovered that if you select the " | ||
+ | |||
+ | Very odd but that seems to be the workaround for this upgrade. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | NOTE 1: The fresh install instructions below were tested on Rocky Linux 9.3 | ||
+ | |||
+ | NOTE 2: Upgrading Rocky Linux 9.2 to 9.3 in late November 2023 resulted in ImageMagick errors. | ||
+ | |||
+ | NOTE 3: To migrate from Rocky Linux 8.x to 9, [[https:// | ||
+ | |||
+ | //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:// | ||
+ | |||
+ | __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 34: | Line 66: | ||
* 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 '' | + | |
- | * Reboot | + | |
- | * See {{: | + | * '' |
- | * Disable screensaver | + | * Copy files in '' |
- | * Skip custom java runtime installation (does not seem to be needed) | + | * '' |
+ | * Reboot the target machine | ||
+ | * See {{: | ||
+ | * [[https:// | ||
+ | |||
+ | * Disable screensaver and power management | ||
* If necessary, disable WiFi LAN connection as root: '' | * If necessary, disable WiFi LAN connection as root: '' | ||
+ | * If necessary, keep WiFi LAN enabled but install Intel WiFi drivers if needed | ||
+ | * '' | ||
+ | * Reboot and enable Wifi in task bar (the WiFi choice may be grayed out at first). Check that the wifi switch on the laptop needs to be turned on (keyboard toggle). | ||
+ | * http:// | ||
+ | * https:// | ||
* [[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 67: | Line 119: | ||
* '' | * '' | ||
- | * 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 97: | Line 164: | ||
* https:// | * https:// | ||
* '' | * '' | ||
- | * Use ''/ | + | * Use ''/ |
* Setup duckdns updater cron | * Setup duckdns updater cron | ||
* Setup ydns updater cron | * Setup ydns updater cron | ||
Line 104: | Line 171: | ||
* Check httpd logs for errors | * Check httpd logs for errors | ||
* Restore and test crons for each user | * Restore and test crons for each user | ||
+ | * At the top of each user's cron file, add something like '' | ||
+ | * Alternatively, | ||
* Check that each cron job runs and the specified log directory exists | * Check that each cron job runs and the specified log directory exists | ||
+ | * Modify ''/ | ||
* 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) | ||
+ | * **When using evince to print out PDFs, it seems you need to choose "Print to " | ||
+ | * Otherwise the output does not fit the page. | ||
+ | * Note that Libre Office can print to the printer name " | ||
+ | * 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, |
+ | * If Ookla becomes a graphical output, might need to consider '' | ||
* 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 / | ||
* Add CPU graph and Weather Info to panel | * Add CPU graph and Weather Info to panel | ||
- | * '' | + | * Packages are xfce4-cpugraph-plugin |
- | * Right-click top panel > Add to Panel | + | * Right-click top panel > Add New Items |
* Add CPU Graph, Weather Info | * 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, password safe, keepassxc, shortcut to security cams, VirtualBox, Remmina, XfreeRDP | ||
+ | * 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 | ||
+ | * If you have slow dnf updates, add these 2 lines to '/ | ||
+ | * '' | ||
+ | * '' | ||
__Other Notes__ | __Other Notes__ | ||
Line 137: | Line 250: | ||
* In the "Find an item to add to the panel:" | * In the "Find an item to add to the panel:" | ||
* Moving display of current CPU usage should appear | * 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.1674314818.txt.gz · Last modified: 2023/01/21 10:26 by juckins