Below is copied from CentOS 7 Migration Notes so modify as needed.
Other fixes:
Disable WiFi
LAN connection with
# nmcli radio wifi off
-
For migrating a system from a different OS, take note of this info first:
Get inventory of users
/
* Check that PHP is working correctly, localhost/index.php tries to open a file
* check httpd.conf
* /
Clear all history from Firefox before testing phpmyadmin
-
MySQL / MariaDB Database and users
export MySQL databases with mysqldump
list of installed perl modules
Copy the following to accessible location for restore after upgrade
users' $HOME
crons should be in each user's $HOME/crontab
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/hosts
/etc/httpd/conf/httpd.conf
Samba users, passwords, shares (for security cameras)
/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
nxnode-3.5.0-9.x86_64.rpm
nxserver-3.5.0-11.x86_64.rpm
skype-4.3.0.37-fedora.i586.rpm
verify services that should be installed/running in chkconfig
Note firewall rules
Must-Have functionality:
Customize MATE Desktop displays
Adjust System > Preferences > Look and Feel > Appearance
Under Fonts tab, set all to size 8
Click Details, set resolution to 96 dpi, Smoothing Grayscale, Hinting Slight, Subpixel order RGB
Firefox has large bullets for password masking. Theme setting?
-
Set up gnome-terminal preferences
General: Font Monospace 9, No terminal bell
Colors: Use colors from system theme
Scrolling: unlimited
Edit > Keyboard Shortcuts > Reset and Clear > F2
-
Adjust System > Preferences > Personal > Startup Applications
Change setting on screensaver
System Monitor (needs mate-system-monitor and mate-applets RPMs):
Right-click top panel > Add to Panel
In the "Find an item to add to the panel:" search box, enter "System Monitor" and click Add
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
-
On initial config screen, ensure the network connection is activated
You can also disable SELinux
Manually set mount points for /boot, /, swap
* Make sure /boot is 1024MB large
Let system create mount points automatically
After they are suggested, change from LVM to Standard Mount
May want to increase the boot and "efi" boot partitions from 500MB to 750MB and 200MB to 500MB
Used default "xfs" filesystem
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 change the system hostname
# 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
Reboot
Add 2nd hard drive to /etc/fstab following these notes
Prepare to run the local dnf installer script
CPAN packages to install:
Ensure Adobe Flash plugin is installed
Ensure Apache is installed and running
Upgrade PHP to version 7.2
Migrate /etc/php.ini from old server and relax settings due to test env:
;max_execution_time = 30
max_execution_time = 3600
;max_input_time = 60
max_input_time = 3600
;memory_limit = 128M
memory_limit = 1024M
;display_errors = Off
display_errors = On
;post_max_size = 8M
post_max_size = 250M
;upload_max_filesize = 2M
upload_max_filesize = 250M
;date.timezone =
date.timezone = "America/New_York"
;session.gc_maxlifetime = 1440
session.gc_maxlifetime = 7200
# systemctl restart httpd.service
Install and Secure MySQL (mariadb)
Database work:
Setup ddclient:
Setup duckdns:
crontab is
~/duckdns/duck.sh >/dev/null 2>&1
Setup ydns:
crontab is
~/ydns/updater.sh -V -u <snip> -p <snip> -H juckins.ydns.eu >>~/ydns/updater.log 2>&1
Firewall notes:
rsync /var/www/html/
Restore and test crons
Backup /etc/selinux/config and change from enforcing to permissive
Restore /etc/hosts from previous machine as needed
Disable virbro0 network connection if needed: http://www.cyberciti.biz/faq/linux-kvm-disable-virbr0-nat-interface/
# virsh net-destroy default
# virsh net-undefine default
# service libvirtd restart
# ifconfig
Then, edit the network connections and make sure the "Ethernet" tab for the active connection, such as enp0s3, has the "Device" set to that interface. Reboot to test.
Download sample .png, .gif, .jpg images and test /usr/bin/display for any errors
Install Google Chrome
Install Google Chrome (Alt)
Fix Google Chrome fonts:
http://www.binarytides.com/gorgeous-looking-fonts-ubuntu-linux/
# dnf install google*fonts
Install Oracle Java (note, this is not the default CentOS, it will not auto-update)
Adobe Reader - use evince instead
Install NX/NoMachine v3
Install 3 RPMs noted above
Edit /etc/ssh/sshd_config and comment out line "AuthorizedKeysFile .ssh/authorized_keys" because NX uses authorized_keys2
/bin/systemctl restart sshd.service
To start up MATE, edit /usr/NX/etc/node.cfg to be:
CommandStartGnome "/etc/X11/xinit/Xsession mate-session" (note "xinit" was added to path)
To fix keyboard mapping, open terminal and run this command:
-
NX/NoMachine Troubleshooting:
Had v3 RPMs installed; removed and installed v4 to test. Failed. Removed v4 RPMs.
Upon reinstalling the 3 v3 RPMs, could not authenticate to target server.
Removed nxclient, nxnode, nxserver v3 RPMs again.
rm -rf /usr/NX completely
Reinstalled the 3 v3 RPMs. Authentication fixed
Start/stop server with the following:
/usr/NX/bin/nxserver –status
/usr/NX/bin/nxserver –stop
/usr/NX/bin/nxserver –start
NX for work VPN
Removed nxclient-3.5.0-7.x86_64.rpm, nxnode-3.5.0-9.x86_64.rpm, nxserver-3.5.0-11.x86_64.rpm
-
Installed opennx-0.16-724.el6.centos.1.x86_64.rpm
Tried connecting to remote machine as shadow session and it also failed; ensured the remote machine had a normal session established first using the same user
VPN connections
Percona toolkit: percona-toolkit-2.2.11-1.noarch.rpm
Restore Thunderbird profile
Restore Firefox profile
Restore VirtualBox and all machines
Test ASMAD for processing end-to-end
Install Skype rpm (skype-4.3.0.37-fedora.i586.rpm) following these steps:
dnf install alsa-plugins-pulseaudio.i686 qt.i686 1:qt-x11.i686 libXScrnSaver.i686 libXv.i686
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm
dnf localinstall http://download.skype.com/linux/skype-4.3.0.37-fedora.i586.rpm
Skype Tips
SSH issues
Cannot ssh to yourself passwordlessly with default /etc/ssh/sshd_config
Comment out the following line, like this:
#AuthorizedKeysFile .ssh/authorized_keys
This allows you to NX into the CentOS7 machine
Update to openssh seems to require RSA keys now and authorized_keys file instead of DSA keys and authorized_keys2 file
Set "PermitRootLogin no"
But MATE does not work, tried KDE with dnf group install "KDE Plasma Workspaces" and seems to work better but still no icons on the screen
But need to configure custom desktop to use /etc/X11/xinit/Xsession mate-session
Also tried /usr/bin/startxfce4 but still general odd behavior
-
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 and splash screen
My saved splash images with varying resolutions are in /root/downloads/splash
As of CentOS 7.2 cannot get custom splash image to appear at boot (with UEFI)
cd /etc/default
cp grub grub.YYYYMMDD
vi grub
remove "rhgb quiet" from the GRUB_CMDLINE_LINUX call
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"
add this line: GRUB_BACKGROUND="/boot/grub2/splash.png"
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
-
-
-
-
-
Tried part about making a special font
Tried installing all grub2* rpms
Tried 640x480 small splash image
GRUB_CMDLINE_LINUX_DEFAULT="video=1024x768"
GRUB_GFXMODE=1024x768
GRUB_GFXPAYLOAD_LINUX=keep
Set default GRUB entry
If GRUB2 no longer finds other OS to boot (such as Windows 10) use SourceForge Boot Repair Disk
Install ClamAV
Set up local printer(s)
-
RPM #1: brhl2170wlpr-2.0.2-1.i386.rpm
RPM #2: cupswrapperHL2170W-2.0.2-1.i386.rpm
Use 'lpstat' and 'lpq' to ensure it's a known destination printer
-
dnf install cups
service cups start
systemctl enable cups
Use System > Administration > Print Settings
Or use web browser:
# dnf install httpd
# /bin/systemctl start httpd.service
# dnf install system-config-firewall
# firewall-config (or System > Administration > Firewall)
# systemctl enable httpd
-
Firewall Notes
firewall-cmd --get-active-zones
firewall-cmd --zone=public --add-port=8080/tcp --permanent
firewall-cmd --reload
Managing runlevel settings
# systemctl isolate graphical.target
# systemctl set-default graphical.target
# systemctl isolate multi-user.target
# systemctl set-default multi-user.target
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, idProduct=0a44
[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: Logitech
[37013.399267] input: Logitech Logitech USB Headset as /devices/pci0000:00/0000:00:10.1/usb8/8-1/8-
1:1.3/input/input85
[37013.449648] hid-generic 0003:046D:0A44.004B: input,hidraw3: USB HID v1.00 Device [Logitech Logitech USB
Headset] on usb-0000:00:10.1-1/input3
Right-click the speaker icon in the top panel and choose Sound Preferences. Or, navigate to System > Preferences > Hardware > Sound
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/.config/pulse
See Linux Mint Sound settings keep switching output against my will and possibly HDMI + Sound + Mint 18