Tag Archives: ubuntu

Install Oracle Java 8 on Ubuntu Linux

To install Oracle JDK 8 on Ubuntu you can choose one of two methods:
A. Automatic installation:

sudo apt-get install python-software-properties
sudo add-apt-repository ppa:webupd8team/java

sudo apt-get update

sudo apt-get install oracle-java8-installer

sudo update-alternatives --config java
sudo update-alternatives --config javac
sudo update-alternatives --config javaws

B. Manual installation:

Download oracle jdk at http://www.oracle.com/technetwork/java/javase/downloads/index.html

Extract archive into /usr/local/jdk1.8.0_65

sudo update-alternatives --install  /usr/bin/java java /usr/local/jdk1.8.0_65/bin/java 1
sudo update-alternatives --install  /usr/bin/javac javac /usr/local/jdk1.8.0_65/bin/javac 1
sudo update-alternatives --install  /usr/bin/javaws javaws /usr/local/jdk1.8.0_65/bin/javaws 1

sudo update-alternatives --set  java /usr/local/jdk1.8.0_65/bin/java
sudo update-alternatives --set  javac /usr/local/jdk1.8.0_65/bin/javac
sudo update-alternatives --set  javaws /usr/local/jdk1.8.0_65/bin/javaws

Thanx to http://stackoverflow.com/a/31869659

Xrdp configuration to connect existing session

The RDP protocol is very convenient to manage windows and linux servers. But if you use Xrdp as terminal server, you may notice new session always creates when connection established.

The CentOS (RedHat) rdp server implementation is more useful, because can connect to existing session by default. But Ubuntu (Debian) always creates new session if you configure it as “port=-1” setting in xrdp.ini file:


But if you set port to certain value, connection problem occurs.
To fix the problem I recommend to create two different xrdp configurations in xrdp.ini file:



So, for the first connection you have to use “new-session” configuration, and the next one will be used “existing-session” configuration by default.
Make sure, you are connecting to 5910 port (in my case).

Keyboard layout configuration with setxkbmap in Linux


To get worked keyboard layout well follow next steps:

1. Install x11-xkb-utils package:

# apt-get install x11-xkb-utils

2. Add the line to your ~/.xinitrc file:

setxkbmap -layout 'us,ru' -option 'grp:ctrl_shift_toggle'

Help with grp:

  • grp: toggle – switch right Alt;
  • grp: shift_toggle – two keys shift;
  • grp: ctrl_shift_toggle – ctrl shift;
  • grp: alt_shift_toggle – alt shift;
  • grp: ctrl_alt_toggle – ctrl alt;
  • grp: caps_toggle – switching on CapsLock;
  • grp: lwin_toggle – switch on the left “Win” key on a Windows keyboard ( for the X Window older than 4.2) ;
  • grp: rwin_toggle – switching from the right “Win” key on a Windows keyboard ( for the X Window older than 4.2) ;
  • grp: menu_toggle – switching on the ” Context Menu ” on the Windows keyboard ( for the X Window older than 4.2) ;
  • grp: lctrl_toggle – switch on the left Control key
  • grp: rctrl_toggle – switching from the right Control key
  • grp: switch – switch on the right Alt only at the time of pressing
  • grp: lwin_switch – switch on the left Windows key only at the moment of pressing
  • grp: rwin_switch – switch on the right key Windows only at the moment of pressing
  • grp: win_switch – switching on any key Windows only at the moment of pressing

So simple, good luck!

See also,

Install Pantheon shell on Ubuntu Linux

Today i’am going to show you how to install great minimalistic and beautiful Linux shell named Pantheon on Ubuntu.

First of all, install Ubuntu minimal from https://help.ubuntu.com/community/Installation/MinimalCD

After that, see below.

1. Install util for repositories managing:

apt-get install python-software-properties

2. Install Pantheon shell:

apt-add-repository -y ppa:elementary-os/stable
apt-get update
apt-get install elementary-desktop

3. Check installed gala and switchboard packets:

apt-get install gala
apt-get install switchboard-plug-pantheon-shell

4. Install Pantheon tweaks:

apt-add-repository ppa:versable/elementary-update
apt-get update
apt-get install elementary-tweaks

5. Reboot.

And you’ll got this:

See also http://www.binarytides.com/install-pantheon-ubuntu/
Here is txt file for VirtualBox installation: pantheon install

Install full Ubuntu on USB flash drive


This is a repost of the forum topic! Link below.

Here I’m going to explain on how to install a fully working linux specifically Ubuntu 12.04 LTS on USB Flash drive

Pro’s of installing linux in a USB flash drive

1. Linux is a great OS which can run on a variety of computers without the need of additional drivers unlike windows where you have to install drivers every time you install the OS. So you can say it’s a very good OS having very good mobility. ( Now it is challenged by ‘windows to go’ feature of windows 8 which is going to be released very soon)

2. Linux requires very less hardware to run.

3. In linux, drivers do not conflict unlike windows so it’s easy to use same linux installed on USB flash drive to work with different computer.

4. You can carry your personal and customized OS with you anywhere you want on a USB.

5. Various application can be installed on it like avast antivirus, Gparted etc…. which can rescue a broken system.


Con’s of installing linux in a USB Flash drive

1. As USB flash drives are slow than Hard Disks so the OS will run really slow. Mind it, it will be annoyingly slow.

2. Installing OS on USB may eat your USB Flash drive soon as Flash drives have limited write cycles.

3. Browsing may seem very slow as browsers waits to read cache from filesystem.


Now as you have seen the pro’s and con’s now we will proceed on installing linux.

If you have not downloaded ubuntu then download from www.ubuntu.org

After downloading burn the downloaded image on CD or DVD and boot from it.

You need at least 4 GB Flash Drive but 8 GB is recommended.


Here is step by step procedure

1. Boot from live CD in ubuntu.

2. Insert the USB flash drive in USB Port.

3. On desktop double click on icon ‘install ubuntu 12.04′

4. Click on continue and it will ask if you want to unmount the flash drive click on yes

5. Choose something else when ask to where to install ubuntu.

6. Next you will see your hard disk partitions and flash drive. Click on flash drive partition and then click on change. Change the partition type to ext4 and mount as to ‘/’. Click on ok to close the dialogue box.

7. In last you will see a drop down menu on where to install the the boot loader. Initially it will be showing sdc,sdd but on drop down you must select sdc1 or sdd1. Failing this step you may render your computer unbootable.

8. Then click on install and linux will be installed on your USB Flash drive.


Thanx to Gauravs90 !