centos_8_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 | ||
centos_8_migration_notes [2020/10/15 18:30] – juckins | centos_8_migration_notes [2021/01/27 11:09] – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
==== CentOS 8 Migration Notes ==== | ==== CentOS 8 Migration Notes ==== | ||
- | <color # | + | Fix php for phpmyadmin: |
+ | |||
+ | dnf install php-gd php-ldap php-mysqlnd php-pecl-mcrypt php-pecl-zip | ||
+ | |||
+ | Also comment out the cookie validity setting in config.inc.php | ||
+ | |||
+ | Secure the mariadb | ||
+ | |||
+ | Fix php.ini | ||
+ | |||
+ | Configure $HOME/.vimrc as the following: | ||
+ | |||
+ | autocmd FileType | ||
+ | |||
+ | # python3 -m pip install --upgrade pip | ||
+ | # python3 -m pip install dictor | ||
+ | # python3 -m pip install wheel | ||
+ | # python3 -m pip install httplib2 | ||
+ | # python3 -m pip install PyMySQL | ||
+ | |||
+ | PyMySQL v0.9.3 has been upgraded to v1.0.2 and requires modification to " | ||
Other fixes: | Other fixes: | ||
Line 30: | Line 50: | ||
* uninstall [[https:// | * uninstall [[https:// | ||
* [[https:// | * [[https:// | ||
+ | * '' | ||
+ | * '' | ||
* <color # | * <color # | ||
* [[https:// | * [[https:// | ||
Line 64: | Line 86: | ||
* Note firewall rules | * Note firewall rules | ||
* [[https:// | * [[https:// | ||
+ | |||
+ | <color # | ||
Must-Have functionality: | Must-Have functionality: | ||
* Apache, MySQL, PHP, Perl | * Apache, MySQL, PHP, Perl | ||
- | * [[https:// | + | * [[https:// |
* edit / | * edit / | ||
* Check logs: # cat / | * Check logs: # cat / | ||
Line 100: | Line 124: | ||
* Edit > Keyboard Shortcuts > Reset and Clear > F2 | * Edit > Keyboard Shortcuts > Reset and Clear > F2 | ||
* Disable Vim auto-indent following [[vim_tips|Vi and Vim Tips]] | * Disable Vim auto-indent following [[vim_tips|Vi and Vim Tips]] | ||
- | * < | ||
- | * < | ||
- | * < | ||
- | * < | ||
- | * < | ||
Change setting on screensaver | Change setting on screensaver | ||
Line 114: | Line 133: | ||
* Moving display of current CPU usage should appear | * Moving display of current CPU usage should appear | ||
- | __Fresh VirtualBox Installation Notes 8 Nov 2015 (previous install 30 Sept 2014)__ | + | ---- |
- | + | ||
- | * Preferable to use local .iso file to conserve bandwidth for multiple installs | + | |
- | * Used http:// | + | |
- | * On initial config screen, ensure the network connection is activated | + | |
- | * You can also disable SELinux | + | |
- | * < | + | |
- | * * < | + | |
- | * Let system create mount points automatically | + | |
- | * After they are suggested, change from LVM to Standard Mount | + | |
- | * May want to increase the boot and " | + | |
- | * Used default " | + | |
- | * For software packages, if you only choose something like Web Server you will not get graphical login | + | |
- | * Choose a general desktop option, too | + | |
- | * Boot into machine | + | |
- | * Note the IP address | + | |
- | + | ||
- | Use nmtui-hostname to [[http:// | + | |
- | < | + | |
- | # nmcli general hostname | + | |
- | # nmcli general hostname new_server_name | + | |
- | # systemctl restart systemd-hostnamed | + | |
- | </ | + | |
- | + | ||
- | dnf -y update, reboot, verify latest kernel is loaded by GRUB | + | |
- | + | ||
- | Only keep 1 old kernel | + | |
- | + | ||
- | Ensure gcc, make, kernel-devel are installed. | + | |
- | + | ||
- | Install Virtual Box Guest Additions | + | |
- | * Took 10 minutes to install | + | |
- | + | ||
- | Reboot | + | |
- | + | ||
- | Add 2nd hard drive to /etc/fstab [[adding_a_second_hard_drive|following these notes]] | + | |
- | + | ||
- | Prepare to run the local dnf installer script | + | |
- | * Also installs [[https:// | + | |
- | * Best to run the script by establishing SSH connection to box from a different machine. | + | |
- | * Pipe output to log file and tail the log file | + | |
- | * [[yum_installer_bash_script_centos8|dnf installer bash script (CentOS 8)]] | + | |
- | + | ||
- | [[install_configure_cpan|CPAN packages]] to install: | + | |
- | * <color # | + | |
- | * [[http:// | + | |
- | * Array:: | + | |
- | * //Note, this module is not needed. Was used in ASMAD compare_stops.pl and compare_origin.pl// | + | |
- | * Start up cpan as root (initial time) | + | |
- | * Run through the manual configuration process, accept the defaults | + | |
- | * Start up cpan as root | + | |
- | * > install CPAN (this updates the CPAN packages) | + | |
- | * cpan Array:: | + | |
- | * Time:: | + | |
- | * //Note, this module is not needed. Was used in syncing to CDN.// | + | |
- | * As root, had to: | + | |
- | * cd / | + | |
- | * cp -rp * / | + | |
- | * Another option is to install modules locally | + | |
- | * Yet another option is to use modules that are in a repository | + | |
- | + | ||
- | [[http:// | + | |
- | + | ||
- | [[http:// | + | |
- | * check / | + | |
- | * [[http:// | + | |
- | * [[http:// | + | |
- | + | ||
- | [[centos_php7.2_upgrade|Upgrade PHP to version 7.2]] | + | |
- | + | ||
- | Migrate / | + | |
- | < | + | |
- | ; | + | |
- | max_execution_time = 3600 | + | |
- | ; | + | |
- | max_input_time = 3600 | + | |
- | ; | + | |
- | memory_limit = 1024M | + | |
- | ; | + | |
- | display_errors = On | + | |
- | ; | + | |
- | post_max_size = 250M | + | |
- | ; | + | |
- | upload_max_filesize = 250M | + | |
- | ; | + | |
- | date.timezone = " | + | |
- | ; | + | |
- | session.gc_maxlifetime = 7200 | + | |
- | </ | + | |
- | < | + | |
- | # systemctl restart httpd.service | + | |
- | </ | + | |
- | + | ||
- | [[http:// | + | |
Database work: | Database work: | ||
Line 233: | Line 159: | ||
* systemctl enable mariadb.service | * systemctl enable mariadb.service | ||
* mysql DATABASE -h localhost -u USER -p' | * mysql DATABASE -h localhost -u USER -p' | ||
- | |||
- | * Note CentOS7 comes with PHP 5.4 and latest version of phpMyAdmin that will work is 4.4.x | ||
- | * [[centos_php5.6_upgrade|Install PHP 5.6 on CentOS 7]] | ||
- | * Run through phpmyadmin install steps listed in [[installing_phpmyadmin_tips]] | ||
- | * [[https:// | ||
- | * With PHP 5.6, the latest version of phpMyAdmin (4.6.4) is fully supported | ||
- | * Copy config from previous machine | ||
Setup ddclient: | Setup ddclient: | ||
Line 265: | Line 184: | ||
Restore /etc/hosts from previous machine as needed | Restore /etc/hosts from previous machine as needed | ||
- | |||
- | Disable virbro0 network connection if needed: http:// | ||
- | < | ||
- | # virsh net-destroy default | ||
- | # virsh net-undefine default | ||
- | # service libvirtd restart | ||
- | # ifconfig | ||
- | </ | ||
Then, edit the network connections and make sure the " | Then, edit the network connections and make sure the " | ||
Line 280: | Line 191: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
- | |||
[[http:// | [[http:// | ||
Line 419: | Line 329: | ||
* For other run-level info, see [[https:// | * For other run-level info, see [[https:// | ||
- | |||
- | |||
- | ---- | ||
- | |||
- | USB HEADSET: | ||
- | |||
- | Plugin to right-side lower USB jack on HP Pavilion P7-1235, type dmesg at root prompt to see if it was found by system | ||
- | |||
- | [37013.137134] usb 8-1: New USB device found, idVendor=046d, | ||
- | [37013.137145] usb 8-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 | ||
- | [37013.137151] usb 8-1: Product: Logitech USB Headset | ||
- | [37013.137160] usb 8-1: Manufacturer: | ||
- | [37013.399267] input: Logitech Logitech USB Headset as / | ||
- | 1: | ||
- | [37013.449648] hid-generic 0003: | ||
- | Headset] on usb-0000: | ||
- | |||
- | Right-click the speaker icon in the top panel and choose Sound Preferences. | ||
- | Sound effects tab: Sound theme: No Sounds\\ | ||
- | Hardware tab: Highlight Headset H390, Profile: Analog Stereo Output + Analog Mono Input \\ | ||
- | Input tab: choose Headset H390 Analog Mono \\ | ||
- | Output tab: choose Headset H390 Analog Stereo, Connector is Headphones | ||
- | |||
- | Settings are saved to $HOME/ | ||
- | |||
- | See Linux Mint [[https:// |
centos_8_migration_notes.txt · Last modified: 2022/06/08 16:03 by juckins