ESXi Upgrade by Using ESXCLI   In the ESXi direct console (DCUI), open System customization and in Troubleshooting options, hit Enable ESXi Shell and Enable SSH. This configuration enables SSH and ESXi Shell permanently until you manually disable them. Enter the IP address of your ESXi host in a web browser. Log into the VMware Host Client by using your ESXi root credentials. In the web...

Read More
linux

If you're on the 10.40.24.0 network, the route target would be 10.40.24.250. If you're on the 10.40.28.0 network, it's 10.40.28.250, and so on. The 10.40.28.0 network is used in this experiment.   Edit the /etc/netplan/01-netcfg.yaml file. Here is an example from skayal.com. network: version: 2 renderer: networkd ethernets: eth0: addresses: [ 10.40.28.108/24 ] gateway4: 10.40.28.1 nameservers: search: [ skayal.com ] addresses: - 208.82.128.10 - 208.82.128.2 routes: - to: 10.10.0.0/16 via: 10.40.28.250 - to: 10.20.0.0/16 via: 10.40.28.250   Save your changesnetplan tryYou should see the routes...

Read More
mysql

* Take dump of all databases:
# mysqldump --skip-lock-tables -A > alldb.sql * * Check where MySQL keeps its files(in my case it's /var/lib/mysql/):
# mysql -NBe "SELECT @@datadir" * /var/lib/mysql/ * * Stop MySQL
# mysqladmin shut * * Move old MySQL files to safe place 
# mv /var/lib/mysql /var/lib/mysql.old * * Create new system database
# mkdir /var/lib/mysql * # sudo apt-get install mysql-server * * Start MySQL
# /etc/init.d/mysql start * * Restore the dump
#...

Read More
mysql

sudo -i service mysql stop killall -KILL mysql mysqld_safe mysqld apt-get --yes purge mysql-server mysql-client apt-get --yes autoremove --purge apt-get autoclean deluser --remove-home mysql delgroup mysql rm -rf /etc/apparmor.d/abstractions/mysql /etc/apparmor.d/cache/usr.sbin.mysqld /etc/mysql /var/lib/mysql /var/log/mysql* /var/log/upstart/mysql.log* /var/run/mysqld updatedb exit...

Read More
apache2

Enable TLS 1.2 only in Apache Edit the virtual host section for your domain in the Apache SSL configuration file on your server and add set the SSLProtocol as follows. This will disable all older protocols and your Apache server and enable only TLSv1.2  SSLProtocol -all +TLSv1.2 Sample Apache virtual host with SSL : <VirtualHost *:443> ServerName www.example.com DocumentRoot /var/www/html SSLEngine...

Read More
mariadb

Prepare MariaDB for Upgrade To prepare MariaDB for Upgrade, logon to the database server as root with the root password and run the commands below sudo mysql -u root -p Then run the commands below to set innodb_fast_shutdown to 0 mysql> SET GLOBAL innodb_fast_shutdown = 0; Backup Your Databases It’s always important to backup your databases before attempting to upgrade To back up, run the commands below against each database you wish...

Read More