Christopher Juckins

SysAdmin Tips, Tricks and other Software Tools

User Tools

Site Tools


centos_7_migration_notes

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
centos_7_migration_notes [2018/12/18 10:34]
juckins
centos_7_migration_notes [2019/05/05 18:42] (current)
juckins
Line 2: Line 2:
  
 RHEL5/6/7 Cheatsheet: {{:​rhel_5_6_7_cheatsheet_201410.pdf|}} RHEL5/6/7 Cheatsheet: {{:​rhel_5_6_7_cheatsheet_201410.pdf|}}
- 
-19 November 2017 (32-bit): 
-  * [[https://​wiki.centos.org/​SpecialInterestGroup/​AltArch/​i386|32-bit Wiki]] 
-  * [[http://​mirror.centos.org/​altarch/​7/​os/​i386/​|32-bit repository]] 
-  * Installed OS as per my usual routine below, including the bash script of packages 
-  * Follow instructions to [[http://​www.advancedclustering.com/​act_kb/​installing-nvidia-drivers-rhel-centos-7/​|disable nouveau driver]] ​ 
-  * [[https://​devtalk.nvidia.com/​default/​topic/​765530/​cuda-setup-and-installation/​unable-to-load-the-kernel-module-nvidia-ko-/​|Then remove nouveau from the initrd image]]: 
- 
-<​code>​ 
-# echo -e "​blacklist nouveau\noptions nouveau modeset=0"​ > /​etc/​modprobe.d/​disable-nouveau.conf ​ 
-# mv /​boot/​initramfs-$(uname -r).img /​boot/​initramfs-$(uname -r)-nouveau.img 
-# dracut /​boot/​initramfs-$(uname -r).img $(uname -r) 
-</​code>​ 
- 
-  * Reboot 
-  * NVIDIA driver available from [[https://​www.geforce.com/​drivers/​results/​123708|their download page]] 
-  * You will have to run the script below after each kernel upgrade 
- 
-<​code>​ 
-# sh NVIDIA-Linux-x86-304.137.run (choose yes to configure X file) 
-# systemctl isolate graphical.target 
-# systemctl set-default graphical.target 
-</​code>​ 
- 
-  * <​del>#​ yum group install "GNOME Desktop"​ "​Graphical Administration Tools"</​del>​ 
-  * GNOME does not work well with graphics card; X keeps restarting 
- 
-<​code>​ 
-# yum -y groups install "KDE Plasma Workspaces" ​ 
-</​code>​ 
- 
-  * <​del>#​ echo "exec startkde"​ >> ~/​.xinitrc</​del>​ 
-  * <​del>#​ startx</​del>​ 
  
 Other fixes: Other fixes:
  
-  * # yum -y install gstreamer* +  * Disable WiFi LAN connection with ''​# nmcli radio wifi off''​
-  * # rpm -ivh gstreamer1-libav-1.0.6-1.fc19.i686.rpm +
-    * From [[https://​www.rpmfind.net/​linux/​rpm2html/​search.php?​query=gstreamer1-libav&​submit=Search+...|rpmfind.net]] +
-  * # nmcli radio wifi off+
   * [[https://​unix.stackexchange.com/​questions/​152691/​how-to-disable-beep-sound-in-linux-centos-7-command-line|Disable bell]]   * [[https://​unix.stackexchange.com/​questions/​152691/​how-to-disable-beep-sound-in-linux-centos-7-command-line|Disable bell]]
-  * KDE won't start as of 18 Dec 2017 - "​kstartupconfig4 does not exist or fails. the error code is 2" 
- 
  
 13 December 2016: 13 December 2016:
Line 94: Line 56:
 Restarting Services: http://​www.putorius.net/​2014/​07/​restarting-services-in-red-hat-7-or.html Restarting Services: http://​www.putorius.net/​2014/​07/​restarting-services-in-red-hat-7-or.html
  
-For migrating a system, take note of this info first:+For migrating a system ​from a different OS, take note of this info first:
   * Make a test user on CentOS6 and one on CentOS7   * Make a test user on CentOS6 and one on CentOS7
     * Compare hidden files to see if anything changed between OSs     * Compare hidden files to see if anything changed between OSs
-  * <fc #ff0000>ensure all scripts make their own log file directory</​fc> ​+  * ensure all scripts make their own log file directory
     * $log_dir = "/​var/​tmp/​check_disk_space";​     * $log_dir = "/​var/​tmp/​check_disk_space";​
     * mkdir ("​$log_dir",​ 0755);     * mkdir ("​$log_dir",​ 0755);
     * should crons write to /tmp and then have a daily script that checks cron logs for errors?     * should crons write to /tmp and then have a daily script that checks cron logs for errors?
   * users   * users
-  * <fc #ff0000>database ​users</fc>+  * <color #ed1c24>MySQL / MariaDB Database and users</color> 
 +    * [[https://​www.tecmint.com/​transfer-mysql-databases-from-old-to-new-server/​|Migrate with rsync]] 
 +    * [[https://​www.linode.com/​docs/​databases/​mysql/​create-physical-backups-of-your-mariadb-or-mysql-databases/​|Migrate with tar]]
     * [[http://​www.uptimemadeeasy.com/​linux/​mysql-migrate-users-server-server/​|Migrate MySQL users to new machine]]     * [[http://​www.uptimemadeeasy.com/​linux/​mysql-migrate-users-server-server/​|Migrate MySQL users to new machine]]
       * Don't forget to add semicolons with this:  # sed -i ‘/[^;] *$/​s/​$/;/​’ ./grantfile       * Don't forget to add semicolons with this:  # sed -i ‘/[^;] *$/​s/​$/;/​’ ./grantfile
-  * <fc #ff0000>export MySQL databases with mysqldump</fc>+  * export MySQL databases with mysqldump
     * [[https://​www.digitalocean.com/​community/​tutorials/​how-to-migrate-a-mysql-database-between-two-servers|Migrate MySQL database to new server]]     * [[https://​www.digitalocean.com/​community/​tutorials/​how-to-migrate-a-mysql-database-between-two-servers|Migrate MySQL database to new server]]
     * [[http://​dev.mysql.com/​doc/​refman/​5.7/​en/​copying-databases.html|Move MySQL databases to new server]]     * [[http://​dev.mysql.com/​doc/​refman/​5.7/​en/​copying-databases.html|Move MySQL databases to new server]]
Line 112: Line 76:
   * Copy the following to accessible location for restore after upgrade   * Copy the following to accessible location for restore after upgrade
     * users' $HOME     * users' $HOME
-    * crons+    * crons should be in each user's $HOME/​crontab
     * various processing log files from /var/tmp/     * various processing log files from /var/tmp/
     * /​etc/​ssh/​*key* or possibly the entire directory contents (this may prevent man-in-the-middle attack messages but testing needed)     * /​etc/​ssh/​*key* or possibly the entire directory contents (this may prevent man-in-the-middle attack messages but testing needed)
     * /etc/hosts     * /etc/hosts
-    * /​etc/​httpd.conf +    * /etc/httpd/conf/​httpd.conf 
-    * /​etc/​smb.conf +    ​* Samba users, passwords, shares (for security cameras) 
-      * Samba users, passwords, shares+      ​* /etc/samba/smb.conf 
 +      * /​var/​lib/​samba/​private/​passdb.tbd 
 +      * /​var/​lib/​samba/​private/​secrets.tbd 
 +      * Make sure service is running and will start at boot. 
 +      * Check output with: testparm -v
   * nxclient-3.5.0-7.x86_64.rpm   * nxclient-3.5.0-7.x86_64.rpm
   * nxnode-3.5.0-9.x86_64.rpm   * nxnode-3.5.0-9.x86_64.rpm
   * nxserver-3.5.0-11.x86_64.rpm   * nxserver-3.5.0-11.x86_64.rpm
-  * skype-4.3.0.37-fedora.i586.rpm+  * <del>skype-4.3.0.37-fedora.i586.rpm</​del>​
   * verify services that should be installed/​running in chkconfig   * verify services that should be installed/​running in chkconfig
   * Note firewall rules   * Note firewall rules
 +    * [[https://​serverfault.com/​questions/​655851/​is-there-a-simple-way-to-export-import-firewalld-settings|Export Firewall Rules to new server]]
  
 Note these installed perl RPMs: Note these installed perl RPMs:
 +
 +''#​ rpm -qa --qf "​%{NAME}\n"​ | grep -i perl | sort''​
 +
 <​code>​ <​code>​
-ImageMagick-perl-6.7.2.7-2.el6.x86_64 +ImageMagick-perl 
-mod_perl-2.0.4-11.el6_5.x86_64 +perl 
-perl-5.10.1-141.el6_7.1.x86_64 +perl-autodie 
-perl-AppConfig-1.66-6.el6.noarch +perl-Array-Diff 
-perl-Archive-Extract-0.38-141.el6_7.1.x86_64 +perl-Array-Unique 
-perl-Archive-Tar-1.58-141.el6_7.1.x86_64 +perl-B-Lint 
-perl-Array-Utils-0.5-1.el6.noarch +perl-Business-ISBN 
-perl-Authen-SASL-2.13-3.el6.noarch +perl-Business-ISBN-Data 
-perl-BSD-Resource-1.29.03-3.el6.x86_64 +perl-Carp 
-perl-CGI-3.51-141.el6_7.1.x86_64 +perl-CGI 
-perl-Class-Singleton-1.4-6.el6.noarch +perl-Class-ISA 
-perl-common-sense-3.5-1.el6.noarch +perl-common-sense 
-perl-Compress-Raw-Bzip2-2.052-1.el6.rf.x86_64 +perl-Compress-Raw-Bzip2 
-perl-Compress-Raw-Zlib-2.021-141.el6_7.1.x86_64 +perl-Compress-Raw-Zlib 
-perl-Compress-Zlib-2.021-141.el6_7.1.x86_64 +perl-constant 
-perl-Convert-ASN1-0.22-1.el6.noarch +perl-CPAN 
-perl-Convert-BinHex-1.119-10.1.el6.noarch +perl-Data-Dumper 
-perl-core-5.10.1-141.el6_7.1.x86_64 +perl-DBD-MySQL 
-perl-CPAN-1.9402-141.el6_7.1.x86_64 +perl-DBI 
-perl-CPANPLUS-0.88-141.el6_7.1.x86_64 +perl-devel 
-perl-Crypt-SSLeay-0.57-17.el6.x86_64 +perl-Digest 
-perl-DateTime-0.5300-2.el6.x86_64 +perl-Digest-MD5 
-perl-DBD-MySQL-4.013-3.el6.x86_64 +perl-Digest-SHA 
-perl-DBD-SQLite-1.27-3.el6.x86_64 +perl-Encode 
-perl-DBI-1.609-4.el6.x86_64 +perl-Encode-Locale 
-perl-DBIx-Simple-1.32-3.el6.noarch +perl-Env 
-perl-devel-5.10.1-141.el6_7.1.x86_64 +perl-Exporter 
-perl-Digest-HMAC-1.01-22.el6.noarch +perl-ExtUtils-Install 
-perl-Digest-SHA1-2.12-2.el6.x86_64 +perl-ExtUtils-MakeMaker 
-perl-Digest-SHA-5.47-141.el6_7.1.x86_64 +perl-ExtUtils-Manifest 
-perl-Email-Abstract-3.002-1.el6.noarch +perl-ExtUtils-ParseXS 
-perl-Email-Address-1.905-1.el6.noarch +perl-FCGI 
-perl-Email-Date-Format-1.002-5.el6.noarch +perl-File-BaseDir 
-perl-Email-MessageID-1.401-4.el6.noarch +perl-File-CheckTree 
-perl-Email-MIME-1.903-2.el6.rf.noarch +perl-File-DesktopEntry 
-perl-Email-MIME-Attachment-Stripper-1.316-2.el6.noarch +perl-File-Listing 
-perl-Email-MIME-ContentType-1.015-2.el6.noarch +perl-File-MimeInfo 
-perl-Email-MIME-Encodings-1.313-2.el6.noarch +perl-File-Path 
-perl-Email-Reply-1.202-4.el6.noarch +perl-File-ReadBackwards 
-perl-Email-Send-2.198-1.el6.rf.noarch +perl-File-Slurp 
-perl-Email-Simple-2.100-2.el6.rf.noarch +perl-File-Temp 
-perl-Error-0.17015-4.el6.noarch +perl-Filter 
-perl-ExtUtils-CBuilder-0.27-141.el6_7.1.x86_64 +perl-Font-AFM 
-perl-ExtUtils-Embed-1.28-141.el6_7.1.x86_64 +perl-GD 
-perl-ExtUtils-MakeMaker-6.55-141.el6_7.1.x86_64 +perl-Getopt-Long 
-perl-ExtUtils-ParseXS-2.2003.0-141.el6_7.1.x86_64 +perl-HTML-Element-Extended 
-perl-File-Fetch-0.26-141.el6_7.1.x86_64 +perl-HTML-Format 
-perl-Git-1.7.1-4.el6_7.1.noarch +perl-HTML-Parser 
-perl-GSSAPI-0.26-6.el6.x86_64 +perl-HTML-TableExtract 
-perl-HTML-Parser-3.64-2.el6.x86_64 +perl-HTML-Tagset 
-perl-HTML-TableExtract-2.10-7.el6.noarch +perl-HTML-Tree 
-perl-HTML-Tagset-3.20-4.el6.noarch +perl-HTTP-Cookies 
-perl-HTTP-Server-Simple-0.43-1.el6.rf.noarch +perl-HTTP-Daemon 
-perl-IO-All-0.39-4.el6.noarch +perl-HTTP-Date 
-perl-IO-Compress-Base-2.021-141.el6_7.1.x86_64 +perl-HTTP-Message 
-perl-IO-Compress-Bzip2-2.021-141.el6_7.1.x86_64 +perl-HTTP-Negotiate 
-perl-IO-Compress-Zlib-2.021-141.el6_7.1.x86_64 +perl-HTTP-Tiny 
-perl-IO-Socket-INET6-2.56-4.el6.noarch +perl-IO-All 
-perl-IO-Socket-SSL-1.31-2.el6.noarch +perl-IO-Compress 
-perl-IO-String-1.08-9.el6.noarch +perl-IO-HTML 
-perl-IO-stringy-2.110-10.1.el6.noarch +perl-IO-Socket-IP 
-perl-IO-Tty-1.08-4.el6.x86_64 +perl-IO-Socket-SSL 
-perl-IO-Zlib-1.09-141.el6_7.1.x86_64 +perl-IPC-System-Simple 
-perl-IPC-Cmd-0.56-141.el6_7.1.x86_64 +perl-JSON 
-perl-IPC-Run-0.84-3.el6.noarch +perl-JSON-XS 
-perl-IPC-System-Simple-1.21-5.el6.noarch +perl-libs 
-perl-JSON-2.15-5.el6.noarch +perl-libwww-perl 
-perl-JSON-XS-2.27-2.el6.x86_64 +perl-List-Compare 
-perl-LDAP-0.40-1.el6.noarch +perl-List-MoreUtils 
-perl-libs-5.10.1-141.el6_7.1.x86_64 +perl-Locale-Codes 
-perl-libwww-perl-5.833-2.el6.noarch +perl-Locale-Maketext 
-perl-libxml-perl-0.08-10.el6.noarch +perl-local-lib 
-perl-List-MoreUtils-0.22-10.el6.x86_64 +perl-LWP-MediaTypes 
-perl-Locale-Maketext-Simple-0.18-141.el6_7.1.x86_64 +perl-LWP-Protocol-https 
-perl-Log-Message-0.02-141.el6_7.1.x86_64 +perl-macros 
-perl-Log-Message-Simple-0.04-141.el6_7.1.x86_64 +perl-Module-Pluggable 
-perl-MailTools-2.04-4.el6.noarch +perl-Mozilla-CA 
-perl-MIME-Lite-3.027-2.el6.noarch +perl-Net-Daemon 
-perl-MIME-tools-5.427-4.el6.noarch +perl-Net-HTTP 
-perl-MIME-Types-1.28-2.el6.noarch +perl-Net-LibIDN 
-perl-Module-Build-0.3500-141.el6_7.1.x86_64 +perl-Net-SSLeay 
-perl-Module-CoreList-2.18-141.el6_7.1.x86_64 +perl-Newt 
-perl-Module-Load-0.16-141.el6_7.1.x86_64 +perl-parent 
-perl-Module-Load-Conditional-0.30-141.el6_7.1.x86_64 +perl-Parse-Yapp 
-perl-Module-Loaded-0.02-141.el6_7.1.x86_64 +perl-PathTools 
-perl-Module-Pluggable-3.90-141.el6_7.1.x86_64 +perl-PlRPC 
-perl-Net-DNS-0.65-5.el6.x86_64 +perl-Pod-Checker 
-perl-Net-LibIDN-0.12-3.el6.x86_64 +perl-Pod-Escapes 
-perl-Net-SSLeay-1.35-9.el6.x86_64 +perl-Pod-LaTeX 
-perl-Newt-1.08-26.el6.x86_64 +perl-podlators 
-perl-NTLM-1.09-1.el6.noarch +perl-Pod-Parser 
-perl-Object-Accessor-0.34-141.el6_7.1.x86_64 +perl-Pod-Perldoc 
-perl-Package-Constants-0.02-141.el6_7.1.x86_64 +perl-Pod-Plainer 
-perl-Params-Check-0.26-141.el6_7.1.x86_64 +perl-Pod-Simple 
-perl-Params-Validate-0.92-3.el6.x86_64 +perl-Pod-Usage 
-perl-parent-0.221-141.el6_7.1.x86_64 +perl-Scalar-List-Utils 
-perl-Parse-CPAN-Meta-1.40-141.el6_7.1.x86_64 +perl-Socket 
-perl-Pod-Escapes-1.04-141.el6_7.1.x86_64 +perl-Storable 
-perl-Pod-POM-0.25-2.el6.noarch +perl-String-CRC32 
-perl-Pod-Simple-3.13-141.el6_7.1.x86_64 +perl-Sys-Syslog 
-perl-Return-Value-1.666001-1.el6.noarch +perl-Test-Harness 
-perl-SGMLSpm-1.03ii-21.el6.noarch +perl-Test-Simple 
-perl-SOAP-Lite-0.710.10-3.el6.noarch +perl-Text-ParseWords 
-perl-Socket6-0.23-4.el6.x86_64 +perl-Text-Soundex 
-perl-Spiffy-0.30-12.el6.noarch +perl-Text-Unidecode 
-perl-String-CRC32-1.4-9.el6.x86_64 +perl-Thread-Queue 
-perl-Sub-Uplevel-0.2002-4.el6.noarch +perl-threads 
-perl-Template-Toolkit-2.22-5.el6.x86_64 +perl-threads-shared 
-perl-Term-UI-0.20-141.el6_7.1.x86_64 +perl-TimeDate 
-perl-Test-Harness-3.17-141.el6_7.1.x86_64 +perl-Time-HiRes 
-perl-Test-Simple-0.92-141.el6_7.1.x86_64 +perl-Time-Local 
-perl-Test-Warn-0.21-2.el6.noarch +perl-Types-Serialiser 
-perl-Text-Iconv-1.7-6.el6.x86_64 +perl-URI 
-perl-TimeDate-1.16-13.el6.noarch +perl-WWW-RobotRules 
-perl-Time-HiRes-1.9721-141.el6_7.1.x86_64 +perl-XML-LibXML 
-perl-Time-Piece-1.15-141.el6_7.1.x86_64 +perl-XML-NamespaceSupport 
-perl-Tree-DAG_Node-1.06-6.1.el6.noarch +perl-XML-SAX 
-perl-URI-1.40-2.el6.noarch +perl-XML-SAX-Base
-perl-version-0.77-141.el6_7.1.x86_64 +
-perl-WWW-Mechanize-1.72-1.el6.rf.noarch +
-perl-WWW-Mechanize-GZip-0.12-13.el6.noarch +
-perl-XML-Dumper-0.81-8.el6.noarch +
-perl-XML-Filter-BufferText-1.01-8.el6.noarch +
-perl-XML-Grove-0.46alpha-40.el6.noarch +
-perl-XML-LibXML-1.70-5.el6.x86_64 +
-perl-XML-NamespaceSupport-1.10-3.el6.noarch +
-perl-XML-Parser-2.36-7.el6.x86_64 +
-perl-XML-SAX-0.96-7.el6.noarch +
-perl-XML-SAX-Writer-0.50-8.el6.noarch +
-perl-XML-Twig-3.34-1.el6.noarch+
 </​code>​ </​code>​
  
Line 265: Line 225:
     * edit /​etc/​fail2ban/​jail.local to ban for longer than default of 1 hour     * edit /​etc/​fail2ban/​jail.local to ban for longer than default of 1 hour
     * Check logs: # cat /​var/​log/​fail2ban.log     * Check logs: # cat /​var/​log/​fail2ban.log
-  ​GMail as a Relay Server+    ​Ensure service is running: 
 +      * ''#​ systemctl enable fail2ban''​ 
 +      * ''#​ systemctl restart fail2ban''​ 
 +  * [[gmail_as_a_relay_on_linux|Set up Gmail Relay and test]]
   * Disable SELinux   * Disable SELinux
-  * VSFTP +  * VSFTP (for security cameras)
     * [[http://​www.liquidweb.com/​kb/​how-to-install-and-configure-vsftpd-on-centos-7/​|Config instructions]]     * [[http://​www.liquidweb.com/​kb/​how-to-install-and-configure-vsftpd-on-centos-7/​|Config instructions]]
     * [[https://​www.benscobie.com/​fixing-500-oops-vsftpd-refusing-to-run-with-writable-root-inside-chroot/​|500 writeable root error]]     * [[https://​www.benscobie.com/​fixing-500-oops-vsftpd-refusing-to-run-with-writable-root-inside-chroot/​|500 writeable root error]]
     * As root: setsebool -P allow_ftpd_full_access on      * As root: setsebool -P allow_ftpd_full_access on 
     * As root: systemctl restart vsftpd     * As root: systemctl restart vsftpd
 +    * As root: systemctl enable vsftpd
   * Samba   * Samba
-    * [[http://​www.unixmen.com/​install-configure-samba-server-centos-7/​|UnixMen.com - Samba on CentOS 7]] +    * [[samba_file_sharing|Samba ​File Sharing]] 
-    * [[https://​www.howtoforge.com/​samba-server-installation-and-configuration-on-centos-7|HowToForge - Samba on CentOS 7]] +  * <del>Skype</​del>​
-  * Skype+
   * Virtual Box   * Virtual Box
   * Working crontabs for each user   * Working crontabs for each user
Line 341: Line 304:
   * You can also disable SELinux   * You can also disable SELinux
   * <​del>​Manually set mount points for /boot, /, swap</​del>​   * <​del>​Manually set mount points for /boot, /, swap</​del>​
-  * * <del><fc #ff0000>Make sure /boot is 750MB or 1GB large</fc></​del>​+  * * <​del>​Make sure /boot is 1024MB ​large</​del>​
   * Let system create mount points automatically   * Let system create mount points automatically
     * After they are suggested, change from LVM to Standard Mount     * After they are suggested, change from LVM to Standard Mount
Line 378: Line 341:
  
 [[install_configure_cpan|CPAN packages]] to install: [[install_configure_cpan|CPAN packages]] to install:
-  * <fc #ff0000>​NOTE</​fc>: Do not update .bashrc for library locations or else they will go into the wrong path+  * <color #ed1c24>​NOTE</​color>: Do not update .bashrc for library locations or else they will go into the wrong path
     * [[http://​stackoverflow.com/​questions/​33636231/​installed-cpan-modules-in-problematic-location|Wrong location of perl libraries]]     * [[http://​stackoverflow.com/​questions/​33636231/​installed-cpan-modules-in-problematic-location|Wrong location of perl libraries]]
   * Array::​Utils   * Array::​Utils
 +    * //Note, this module is not needed. Was used in ASMAD compare_stops.pl and compare_origin.pl//​
     * Start up cpan as root (initial time)     * Start up cpan as root (initial time)
     * Run through the manual configuration process, accept the defaults     * Run through the manual configuration process, accept the defaults
Line 387: Line 351:
     * cpan Array::​Utils     * cpan Array::​Utils
   * Time::​Elapsed (cpan)   * Time::​Elapsed (cpan)
-    * //Note, this module ​may not be needed ​anymore. Was used in syncing to CDN.//+    * //Note, this module ​is not needed. Was used in syncing to CDN.//
     * As root, had to:     * As root, had to:
     * cd /​root/​.cpan/​build/​Time-Elapsed-0.31-N9mZvj/​lib/​Time     * cd /​root/​.cpan/​build/​Time-Elapsed-0.31-N9mZvj/​lib/​Time
Line 400: Line 364:
   * [[http://​serverfault.com/​questions/​357108/​what-permissions-should-my-website-files-folders-have-on-a-linux-webserver|Tips for users and permissions #1]]   * [[http://​serverfault.com/​questions/​357108/​what-permissions-should-my-website-files-folders-have-on-a-linux-webserver|Tips for users and permissions #1]]
   * [[http://​howtolamp.com/​lamp/​httpd/​2.4/​customizing/​|Tips for users and permissions #2]]   * [[http://​howtolamp.com/​lamp/​httpd/​2.4/​customizing/​|Tips for users and permissions #2]]
 +
 +[[centos_php7.2_upgrade|Upgrade PHP to version 7.2]]
  
 Migrate /​etc/​php.ini from old server and relax settings due to test env: Migrate /​etc/​php.ini from old server and relax settings due to test env:
Line 438: Line 404:
     * Ensure database on target server exists; create if necessary     * Ensure database on target server exists; create if necessary
       * Tables migrated should be MyISAM       * Tables migrated should be MyISAM
-      * Default database engine is InnoDB as of MySQL 5.5+      * Default database engine is InnoDB as<color #​ed1c24>​Red Highlighted Text</​color> ​of MySQL 5.5
       * [[https://​dev.mysql.com/​doc/​refman/​5.6/​en/​innodb-default-se.html|Perform some tests and queries]]       * [[https://​dev.mysql.com/​doc/​refman/​5.6/​en/​innodb-default-se.html|Perform some tests and queries]]
         * The exact number of rows of InnoDB tables cannot be shown         * The exact number of rows of InnoDB tables cannot be shown
-        * Need to monitor /​var/​lib/​mysql for growing logs +        * Need to monitor /var</fc>/lib/mysql for growing logs 
-        * <fc #ff0000>​CHECK</​fc>: [[http://​stackoverflow.com/​questions/​3927690/​howto-clean-a-mysql-innodb-storage-engine/​4056261#​4056261|Manage and Cleanup InnoDB Infrastructure]]+        * <color #ed1c24>​CHECK</​color>: [[http://​stackoverflow.com/​questions/​3927690/​howto-clean-a-mysql-innodb-storage-engine/​4056261#​4056261|Manage and Cleanup InnoDB Infrastructure]]
         * [[http://​dba.stackexchange.com/​questions/​8982/​what-is-the-best-way-to-reduce-the-size-of-ibdata-in-mysql|Similar Post 1]]          * [[http://​dba.stackexchange.com/​questions/​8982/​what-is-the-best-way-to-reduce-the-size-of-ibdata-in-mysql|Similar Post 1]] 
         * [[http://​pc-freak.net/​blog/​fix-mysql-ibdata-file-size-ibdata1-file-growing-large-preventing-ibdata1-eating-disk-space/​|Similar Post 2]]         * [[http://​pc-freak.net/​blog/​fix-mysql-ibdata-file-size-ibdata1-file-growing-large-preventing-ibdata1-eating-disk-space/​|Similar Post 2]]
Line 457: Line 423:
     * With PHP 5.6, the latest version of phpMyAdmin (4.6.4) is fully supported     * With PHP 5.6, the latest version of phpMyAdmin (4.6.4) is fully supported
   * Copy config from previous machine   * Copy config from previous machine
 +
 +Setup ddclient:
 +  * https://​sourceforge.net/​p/​ddclient/​wiki/​Home/​
 +  * yum -y install ddclient
 +  * Use /​etc/​ddclient/​* for configs from previous machine
 +
 +Setup duckdns:
 +  * crontab is <​code>​~/​duckdns/​duck.sh >/​dev/​null 2>&​1</​code>​
 +
 +Setup ydns:
 +  * crontab is <​code>​~/​ydns/​updater.sh -V -u <​snip>​ -p <​snip>​ -H juckins.ydns.eu >>​~/​ydns/​updater.log 2>&​1</​code>​
  
 Firewall notes: Firewall notes:
Line 471: Line 448:
  
 Restore /etc/hosts from previous machine as needed Restore /etc/hosts from previous machine as needed
- 
-[[gmail_as_a_relay_on_linux|Set up Gmail Relay and test]] 
  
 Disable virbro0 network connection if needed: http://​www.cyberciti.biz/​faq/​linux-kvm-disable-virbr0-nat-interface/​ Disable virbro0 network connection if needed: http://​www.cyberciti.biz/​faq/​linux-kvm-disable-virbr0-nat-interface/​
Line 553: Line 528:
 Test ASMAD for processing end-to-end Test ASMAD for processing end-to-end
  
-Install Skype rpm (skype-4.3.0.37-fedora.i586.rpm) following these steps:+<del>Install Skype rpm (skype-4.3.0.37-fedora.i586.rpm) following these steps: 
 +</​del>​
  
 <​code>​ <​code>​
Line 575: Line 551:
   * Additional tips: http://​ubuntuforums.org/​archive/​index.php/​t-941530.html   * Additional tips: http://​ubuntuforums.org/​archive/​index.php/​t-941530.html
   * systemctl restart sshd.service   * systemctl restart sshd.service
 +  * User accounts at remove machines connecting to the new machine will need their $HOME/​.ssh/​known_hosts either rebuilt or offending entries removed
  
-Update GRUB +Update GRUB and splash screen 
-  * <fc #ff0000>As of CentOS 7.2 cannot get custom splash image to appear at boot (with UEFI)</fc>+  * My saved splash images with varying resolutions are in /​root/​downloads/​splash 
 +  * <color #ed1c24>As of CentOS 7.2 cannot get custom splash image to appear at boot (with UEFI)</color>
   * cd /​etc/​default   * cd /​etc/​default
-  * make a backup copy of grub+  * cp grub grub.YYYYMMDD
   * vi grub    * vi grub 
     * remove "rhgb quiet" from the GRUB_CMDLINE_LINUX call     * remove "rhgb quiet" from the GRUB_CMDLINE_LINUX call
-    * add "​vga=0x317"​ to the GRUB_CMDLINE_LINUX call for better screen resolution+    * add "​vga=0x317"​ to the GRUB_CMDLINE_LINUX call for better screen resolution ​(try 0x34b for 1920x1200x8 or 0x34c for 1920x1200x16,​ or vga=ask to see all available resolutions)
     * comment out this line: GRUB_TERMINAL_OUTPUT="​console"​     * comment out this line: GRUB_TERMINAL_OUTPUT="​console"​
     * add this line: GRUB_BACKGROUND="/​boot/​grub2/​splash.png"​     * add this line: GRUB_BACKGROUND="/​boot/​grub2/​splash.png"​
       * Ensure it is rw-r-r permissions       * Ensure it is rw-r-r permissions
       * [[http://​192.168.1.14/​dokuwiki/​lib/​exe/​fetch.php?​media=splash.png|Upload this image]] to the directory noted above       * [[http://​192.168.1.14/​dokuwiki/​lib/​exe/​fetch.php?​media=splash.png|Upload this image]] to the directory noted above
-  * For VM/​BIOS-based installs, as root: grub2-mkconfig -o /​boot/​grub2/​grub.cfg+  * For VM/​BIOS-based installs, as root: grub2-mkconfig -o /​boot/​grub2/​grub.cfg ​(Dell XPS 8930)
   * For UEFI-based installs, as root: grub2-mkconfig -o /​boot/​efi/​EFI/​centos/​grub.cfg   * For UEFI-based installs, as root: grub2-mkconfig -o /​boot/​efi/​EFI/​centos/​grub.cfg
   * More info at [[https://​access.redhat.com/​documentation/​en-US/​Red_Hat_Enterprise_Linux/​7/​html/​System_Administrators_Guide/​sec-Customizing_the_GRUB_2_Configuration_File.html|Customizing the Grub2 Config File]] and [[https://​access.redhat.com/​documentation/​en-US/​Red_Hat_Enterprise_Linux/​7/​html/​Desktop_Migration_and_Administration_Guide/​GRUB.html|RHEL7 GRUB Guide]]   * More info at [[https://​access.redhat.com/​documentation/​en-US/​Red_Hat_Enterprise_Linux/​7/​html/​System_Administrators_Guide/​sec-Customizing_the_GRUB_2_Configuration_File.html|Customizing the Grub2 Config File]] and [[https://​access.redhat.com/​documentation/​en-US/​Red_Hat_Enterprise_Linux/​7/​html/​Desktop_Migration_and_Administration_Guide/​GRUB.html|RHEL7 GRUB Guide]]
centos_7_migration_notes.1545147242.txt.gz · Last modified: 2018/12/18 10:34 by juckins