MySQL not starting on Ubuntu 18.04

MySQL did not start on Ubuntu 18.04 server. This is fresh server, i removed all MySQL packages, removed configuration files.

Reinstalled MySQL.

Still MySQL fail to start with some error related to

Full error here

Initially i was thinking the problem is with Ubuntu 18.04 mysql package. So i set up another fresh Ubuntu 18.04 server, installed MySQL 5.7 and it worked prefectly fine.

Now i checked the permission for the folders. For this i enabled shell access for MySQL user.

Now i change to this user with command

I chaged to /var/log/mysql folder, it worked fine, i can write to the file /var/log/mysql/error.log. Tested with

It is not a permission problem. I checked the /var/log foler, found this is not an actual folder, a symlink to another folder.

This is caused by AppArmor. I disabled AppArmour with

Start MySQL with

I get some error related to data directory, i checked folder /var/lib/mysql and found it was empty. I created MySQL data folder with command

On restarting MySQL again, MySQL worked fine. But i can’t login as user root. When you initialize MySQL data folder, MYSQL generate and store temporary password in /var/log/mysql/error.log, to find the password, i run

You need to change this temporary password as it is set as expired by default. This can be done with command

Set a new secure password when it ask.

Fixing AppArmor

We need to tell AppArmour to allow MySQL to use /mnt/log/mysql folder for logging. To do this, edit file.

Added following to it.

Now restart AppArmor.

Now MySQL will work properly.


Install ionCube on Ubuntu 18.04

Download ioncube loader

Find extension diretcory and copy .so file to php extension diretcory. To find php extension directory run

For PHP 7.2, run

Enable ioncube

for Apache, run

for php-fpm, run

Install Node.js on Ubuntu/Debian

To install Node.js on Ubuntu, first setup repository as per your version requirments.

For NodeJs v11.x

Node.js v10.x

Node.js v9.x

Node.js v8.x

Node.js v6.x

Now install node.js with

Some npm modules may need to compile and install native extenion, if you need it

See Node.Js


AMD Ryzen 3 2200G on Ubuntu 18.04

New PC i have purchased have AMD Ryzen 3 2200G CPU. This come with Vega 8 iGPU.

If you boot Ubuntu 18.04 on this PC, it fail to boot with some graphics errors. To boot, you need to select advanced option, then recovery, once you get in the menu with differnt options, select continue. This will boot PC with out hardware acceleration.

You can also set “nomodeset” in /etc/default/grub


Replace with

Now run

But doing this disable hardware acceleration. Proper way is to install AMD drivers. You can use open source or AMD propritery, i dedided to go with AMD propritery drivers.

Install Latest Kernel

Support for Vega 8 iGPU only available in latest kernel. So you need to install latest kernel from ubuntu mainline.

Go to;O=D

Find the latest kernel, it will be listed on top of the page. At the time of writing this post, it is “v4.19-rc5”

Click on this folder. You need to download 3 files with name generic for amd64 and install it.

Install it with

Install AMDGPU PRO driver

I don’t really know how to find latest driver from AMD site. It only lists Windows deivers. I had to use google to find link to latest AMD driver.

With some googling, i found a driver released on August 17th , 2018

On this page, you have download links for differnt linux distributions, for Ubuntu, i run

amdgpu-pro-install is actually a symlink to amdgpu-install, but you should run “amdgpu-pro-install” to install the driver as it will run amdgpu-install with –pro switch.

Now reboot your PC, your iGPU will work.

Before installing new kernel, glxinfo reported following

After install new kernel and AMDGPU Pro driver, i have

With latest mainline kernal (no AMDGPU PRO)

If you don’t install newer kernel, amdgpu-pro-install install will FAIL, i get some segmentation fault.

Apache AH00144: couldn’t grab the accept mutex

On Ubuntu 18.04 server, apache crashed. On checking apache error log, found following

To fix the error, edit file


Replace with

Restart Apache

See Apache


Ubuntu 18.04 Remove Trash Icon from Desktop

First find the Trash related settings with gsettings command.

To disable the Trash Icon on desktop, run

Method 2

If you have gnome tweaks tool installed, go to Desktop, you have option to disable Trash Icon.

Ubuntu 18.04 remove trash

See Ubuntu 18.04

Ubuntu 18.04 hot corner

Enable Hot Corner in Ubuntu 18.04

Hot Corner is a Gnome Feature that allows you to see all open windows (same as clicking Super key or clicking on Activites) by moving mouse to top left corner.

Ubuntu 18.04 hot corner

To see if hot corner is enabled or disabled, run

To enable hot corner, run

EDIT: After using enable hot corner for a day, i found my mouse reach this corner accidetly multiple times. Seeing activites page unexpectedly when you want someting else is confusing. For Ubuntu, it is better to keep it disabled.

To disable, run

See Ubuntu 18.04

Ubuntu Google Hangout Icon

Separate Google Hangout icon in Ubuntu 18.04

On Ubuntu 18.04, when you install google hangout plugin in google chrome, it shows samne as Google Chrome Icon. It act like you have opened 2 windows, it is hard to switch between as every time you click on Google chrome icon in side bar, it ask you to select which window to switch to.

Ubuntu Google Hangout Icon

On Ubuntu 16.04, it shows same icon, but windows won’t combine in side bar, so you can click them seperately. To make Hangout show differnt icon in Ubuntu 18.04, first find ID of Google Hangout plugin. Go to Menu > More Tools > Extensions.

You need to enable “Developer mode” to see Extension ID, this can be done on extension page top-right side.

Google Hangout Plugin id

In this cause, we found ID of Google Hangout Extension as “nckgahadagoaajjgafhacjanaoiihapd”. This can change, so always find ID of extension you have installed.

Now create a file (make sure you replace GOOGLE_HANGOUT_PLUGIN_ID with ID you found in step above).

Add following to the file

Save and exit. Here is what i have on my computer.

Now if you start Google Hangout, it will show as differnt application. But Hangout won’t show generic icon.

To get hangout show proper icon, right click and save following icon file

Google Hangout Icon for Ubuntu 18.04

Rename it as “chrome-GOOGLE_HANGOUT_PLUGIN_ID-Default.png”. Make sure to replace “GOOGLE_HANGOUT_PLUGIN_ID” with your actial plugin id. In my case, the name of the file is “chrome-nckgahadagoaajjgafhacjanaoiihapd-Default.png”

Put the icon file in following location.

Now restart your computer or restart Gnome Shell, you will have new shiny icon for google hangout.

Google Hangout Separate Icon Ubuntu 18.04

See Ubuntu 18.04