How to add JAVA_HOME on Ubuntu?

On Ubuntu, we can add JAVA_HOME environment variable in /etc/environment file. Note /etc/environment system-wide environment variable settings, which means all users use it. It is not a script file, but rather consists of assignment expressions, one per line. We need admin or sudo to modify this it. Further Reading Ubuntu – EnvironmentVariables 1. JAVA_HOME 1.1 …

Read more

VirtualBox – Ubuntu slow and laggy UI

To solve the Ubuntu UI slow performance issue on VirtualBox, increase the “Video Memory” and “Enable 3D Acceleration” Environment VirtualBox 5.1.14 Ubuntu 16 Solution 1. Shutdown VM, clicks “Settings” 2. Display –>> Screen tab –>> Increase the “Video Memory” to Max, and checked the “Enable 3D Acceleration” Done. References What is ‘Ubuntu Unity’ (for the …

Read more

VirtualBox – No backlight on CMSTORM keyboard

This article shows you how to enable the backlight feature (Screen Lock key) on a CMSTORM keyboard. Environment VirtualBox 5.1.14 Ubuntu 16 1. Solution – Quick To fix it quickly, run the following command in a terminal, and press the “Screen Lock key” again, the backlight should be enabled. Terminal $ xmodmap -e ‘add mod3 …

Read more

How to install mongoDB on Ubuntu

This guide shows you how to install MongoDB on Ubuntu. Ubuntu 12.10 MongoDB 2.2.3 1. Add 10gen package to source.list.d Ubuntu 12 comes with a “mongo” package, but not the latest version. $ sudo apt-cache search mongodb mongodb mongodb-clients mongodb-dev mongodb-server It’s recommended to add 10gen package to /etc/apt/sources.list.d, as it contains the latest stable …

Read more

How to access Windows shares in Ubuntu

Problem Ubuntu doesn’t has build-in tool for browsing or accessing the Windows share in network. Is there any ways to access the Windows share in Ubuntu? Solution Ubuntu has smb installed by default, you can use smb to access the Windows shares. 1. File Browser Open “Computer – File Browser”, Click on “Go” –> “Location…” …

Read more

How to install Apache Http server on Ubuntu

There is two ways to install Apache Http server on Ubuntu : Use apt command to install it automatically. Configure and build the source code, and install it manually. 1. Install it automatically 1. Search Apache package with “apt-cache search” command apt-cache search apache 2. Get Apache package name “apache2”, issue the “apt-get” install command. …

Read more

How to Enable Mouse Wheel Scrolling in Ubuntu (VMware)

Problem Ubuntu…beside Default VI is suck, here is another issue for me. My mouse wheel scrolling is not working in Ubuntu8.04. However i installed Ubuntu in vmware, but i do not think it is vmware cause of this issue. Solution Here i find some useful information regarding Mouse Wheel Scrolling malfunction issuse, please check Ubuntu …

Read more

How to install Tomcat on Ubuntu

This tutorial shows you how to install Tomcat on Ubuntu, with help of the buith-in apt-get command. 1. apt-get install 1.1 Find an available Tomcat package to install $ sudo apt-cache search tomcat //… tomcat7 – Servlet and JSP engine tomcat7-admin – Servlet and JSP engine — admin web applications tomcat7-common – Servlet and JSP …

Read more

How to set environment variable on Ubuntu

On Ubuntu, there are two system-wide environment variables, both files need admin or sudo to modify it. /etc/environment – It is not a script file, purely assignment expressions, one per line. /etc/environment PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" JAVA_HOME=/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 LD_LIBRARY_PATH=/usr/local/lib:/usr/lib/postgresql/8.3/lib /etc/profile.d/*.sh – Files with .sh extension in the /etc/profile.d/ folder. /etc/profile.d/myenv.sh export JAVA_HOME=JAVA_HOME=/usr/lib/jvm/adoptopenjdk-11-hotspot-amd64 export LD_LIBRARY_PATH=/usr/local/lib:/usr/lib/postgresql/8.3/lib export PATH=$PATH:$JAVA_HOME/bin Further Reading: Ubuntu …

Read more