Category Archives: Setup

How to migrate wordpress

Export the WordPress database.

Export your WordPress installation’s database.

  1. Create an SSH account if needed
  2. Connect to the server via SSH
  3. Export the wordpress database to an SQL file using mysqldump
  4. Download the SQL file to the local computer using the server’s file manager, sftp etc.

Continue reading How to migrate wordpress

Mint 19 Setup Tutorial 🏅

Basic installation

1 – Preparation and installation

  1. Download rufus
  2. Download latest stable cinnamon version ISO
  3. Use Rufus to create a bootable USB
  4. Boot the system with the USB. You can try to press F10 while booting in order to activate the boot menu. If it does not work you will have to enter the BIOS (you should google for the keyboard shortcut according to the manufacturer).

⚠️ Warning ⚠️

If you have Windows already installed, Linux might not be able to detect the previous installation, You should make sure that Windows and Linux use the same mode (either BIOS or UEFI). See multiboot article for more. Always double check you are using the same mode when you multi-boot.

If windows are detected properly or you are not using Windows at all, you can install Mint and proceed to the next steps.

Continue reading Mint 19 Setup Tutorial 🏅

Upgrade to gcc 6.3+ in Ubuntu

To upgrade gcc to gcc6 use the following commands:

sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install gcc-6 -y

 

To set the new gcc as default use the following:

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 60 --slave /usr/bin/g++ g++ /usr/bin/g++-5

Once you have executed the previous command, g++ may not be available.

So you can execute the following to create a link:

sudo ln -s /usr/bin/g++-5 /usr/bin/g++

 

Simple SSL configuration for Apache-Tomcat

For the official instructions (Tomcat 8), read this page

The following instructions are for development servers only:

Step 1: Create a keystore file to store the server’s private key and self-signed certificate:

For Windows:

"%JAVA_HOME%\bin\keytool" -genkey -alias tomcat -keyalg RSA

For Unix/Linux:

$JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA

You will be asked for various information. Remember the password you typed at this step.

At the end of the procedure, keytool will create a file named “.keystore” to your home directory. By default it is hidden. This file should be moved to Apache-Tomcat home directory and can be renamed (eg to “keystore”).

Step 2: Disable APR:

Edit server.xml and comment out the following line:

<!--
    Listener
    className="org.apache.catalina.core.AprLifecycleListener"
    SSLEngine="on"
/-->

Step 3: Activate the SSL connector

Edit server.xml and add (or uncomment and modify) the following lines:

<Connector 
    port="8443" 
    SSLEnabled="true" 
    protocol="org.apache.coyote.http11.Http11NioProtocol"
    maxThreads="150" 
    scheme="https" 
    secure="true"      
    keystoreFile="keystore" 
    keyAlias="tomcat"
    keystorePass="12345678"
    clientAuth="false" 
    sslProtocol="TLS" />

You will have you replace “12345678” with your password.

You will also have to replace “keystore” with the full path to the keystore file generated at Step 1.

Step 4: Restart Tomcat

Do not forget to restart Apache-Tomcat

 

 

Install latest Qt to Ubuntu

  1. sudo mkdir opt/Qt         (notice Q has to be uppercase)
  2. Download open source Qt run file from official site
  3. execute .run file
  4. install at opt/Qt

Have more than 1 versions of qt?

sudo update-alternatives –install /usr/bin/qmake qmake /opt/Qt/ 10

Repeat for each version but with a different number.

To select which version to use as default, run:

sudo update-alternatives –config qmake

references:

http://jpnurmi.kapsi.fi/blog/2008/03/16/how-to-switch-qt-version-in-ubuntu/