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

Find

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

http://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;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

https://www.amd.com/en/support/kb/release-notes/rn-prorad-lin-18-30

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

Find

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

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

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.

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

Enable Native Notification in Google Chrome

To enable/disable native notification in Google chrome, go to

Google Chrome Native Notification

Once native notification is enabled/disabled, you will be asked to restart browser.

On Ubuntu 18.04, i disable Native Notification as it is buggy, come can’t control how long notification shown if you use native notification. With chrome provided notification, you can use javascript to disable notification after predefined time. On Ubuntu 16.04, native notification is disabled by default.

Chrome

Install Unity Desktop in Ubuntu 18.04

After installing Ubuntu 18.04, i have several small issues with new Gnome desktop, most of it i solved with plugins. But i decided to switch back to Unity desktop as for a while until i am ready to Gnome desktop.

To install Unity Desktop in Ubuntu 18.04, run

You will be asked to select display manager. Select lightdm.

To make it look like Ubuntu 16.04, i copied old wallpaper used by Ubuntu 16.04