Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Saturday, June 17, 2017

Install Python 3.6 (and IDLE/pip) on Ubuntu 17.04


To install Python 3.6 on Ubuntu 17.04, enter the command:
$ sudo apt-get install python3.6

Install IDLE for Python 3.6, idle-python3.6:
$ sudo apt install idle-python3.6


To install package using pip for Python 3.6:

- Download get-pip.py from https://pip.pypa.io/en/latest/installing/

- Install pip for Python 3.6
$ sudo python3.6 get-pip.py

- Install package:
$ sudo python3.6 -m pip install <package>
reference: Python documenet - Installing Python Modules - ... work with multiple versions of Python installed in parallel

Saturday, May 20, 2017

Install Ubuntu 17.04 on Windows 10/Oracle VirtualBox


This video show how to install Install Ubuntu 17.04 on Windows 10 with Oracle VirtualBox 5.1. Basically, the steps is very straightforward.


But...after setup, I cannot google in the browser. And it was found some sites can be reached, some sites cannot. Even cannot run apt-get update. After some searching, I found it's related to DNSSEC in /etc/systemd/resolved.conf.

To fix it, edit the file /etc/systemd/resolved.conf:
$ sudo nano /etc/systemd/resolved.conf

uncomment #DNSSEC=allow-downgrade and replace allow-downgrade with off .


Save and Exit
Reboot

This video show how:


reference:
This page have a good explanation: Hectic Geek - Websites Not Loading (dns issue) After Installing Ubuntu 17.04? [fix]

Install Guest Addition:
The Guest Additions are designed to be installed inside a virtual machine after the guest operating system has been installed. They consist of device drivers and system applications that optimize the guest operating system for better performance and usability. (https://www.virtualbox.org/manual/ch04.html)

It's strongly recommended to install Guest Addition. In case of Ubuntu 17.04, simple click Devices on VirtualBox menu bar, and click Insert Guest Addition CD image...



Share folder between host Windows 10 and guest Ubuntu 17.04:
Starting with version 4.0, VirtualBox can mount shared folders automatically, at your option (link). This video show how to set auto-mount share folder in host Windows 10, and also add user to vboxsf group in guest Ubuntu to access the share folder. (Guest Addition is need)


Friday, April 22, 2016

Install Ubuntu 16.04 LTS on VirtualBox/Windows 10


- Visit Ubuntu web site to download the ISO of Ubuntu 16.04 LTS desktop.


Follow the steps in this video to install Ubuntu 16.04 LTS on VirtualBox/Windows 10.


After Ubuntu installed, it's strongly recommend to install Guest Additions Module, such that your virtual Ubuntu can be re-size and  fit your screen.




Install Ubuntu-MATE 16.04 on VirtualBox/Windows 10

Ubuntu-MATE is another community developed Ubuntu based operating system that beautifully integrates the MATE desktop.


glmark2 test on VirtualBox/Ubuntu-MATE 16.04


glmark2-es2 test on VirtualBox/Ubuntu-MATE 16.04


On ASUS Notbook Aspire E 15, E5-573
CPU: Intel Core i5-5200U
with 3D Acceleration enabled in VirtualBox.


Sunday, October 25, 2015

Setup Hardware Devices debugging for Android Studio on Ubuntu 15.10

This video show how to setup /etc/udev/rules.d/51-android.rules in Ubuntu (behind VirtualBox) to enable hardware device debugging in Android Studio.


The development platform is 64-bit Ubuntu-GNOME 15.10 running in VirtualBox, with Android Studio installed with Ubuntu Make (umake).

To enable hardware device debugging in Ubuntu, you have to create /etc/udev/rules.d/51-android.rules file to add device IDs for your debugging devices. (refer: Android Developers Document Using Hardware Devices - Setting up a Device for Development)

Create /etc/udev/rules.d/51-android.rules file with sudo right, add the line and save:
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", MODE="0666", GROUP="plugdev"
where "18d1" is the USB Vendor ID for Google, Nexus 7 in my case.

Run the command:
$ sudo chmod a+r /etc/udev/rules.d/51-android.rules

This video show how to, behind VirtualBox.

Saturday, October 24, 2015

Install Android Studio on 64-bit Ubuntu 15.10 with Ubuntu Make (umake)

Ubuntu Make is a command line tool which allows you to download the latest version of popular developer tools (include Android Studio) on your installation, installing it longside all the required dependencies (which will only ask for root access if you don't have all the required dependencies installed already), enable multi-arch on your system if you are on a 64 bit machine, integrate it with the Unity launcher… Basically, one command to get your system ready to develop with!


To install Android Studio on Ubuntu:

- Add the Ubuntu Make ppa:
$ sudo add-apt-repository ppa:ubuntu-desktop/ubuntu-make
$ sudo apt-get update

- Install Ubuntu Make:
$ sudo apt-get install ubuntu-make

- Install android-studio:
$ umake android

Once finished, it will also install Java 7 (1.7.0_85 currently) on your system.

updated@2016-04-20:
if you have error of "ERROR: We were expecting to find a license on the download page, we didn't.", read Install Android Studio 2.0 on 64-bit Ubuntu 15.10 with Ubuntu Make (umake)

This video show how to install Android Studio on 64-bit Ubuntu-GNOME (run on VirtualBox) with Ubuntu Make.


Next:
Setup Hardware Devices debugging for Android Studio on Ubuntu 15.10

Install Android Studio on Ubuntu 15.10 using ubuntu-developer-tools-center


remark:
ubuntu-developer-tools-center is now named Ubuntu Make officially.
Please check the updated "Install Android Studio on 64-bit Ubuntu-GNOME 15.10 with Ubuntu Make".



To install Android Studio on Ubuntu 15.10 using ubuntu-developer-tools-center
- install java (refer "Install Oracle java8 on Ubuntu 15.10 via PPA")
- Enter the command in Terminal:
$ sudo apt-get install ubuntu-developer-tools-center
$ udtc android

This video show installing Android Studio on 64-bit Ubuntu 15.10 (run in VirtualBox) using ubuntu-developer-tools-center.

Install Oracle java8 on Ubuntu 15.10 via PPA


To install Oracle java8 on Ubuntu 15.10 via PPA, enter the command:
$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get install oracle-java8-installer



Download and Install JDK8 on Ubuntu 15.10 using update-alternatives, and also set JAVA_HOME


This post show how to Install JDK8 on Ubuntu 15.10 (running in VirtualBox hosted on Windows 10).

To download Oracle JDK:
- visit Java SE Downloads page.
- Click to download Java Platform (JDK).
- Accept agreement and sselect download file, jdk-8u65-linux-x64.tar.gz.

Download and unpack in your local storage. /home/eric/jdk1.8.0_65 folder for me.

Setup java and javac update-alternatives:
Run the command:
$ sudo update-alternatives --install /usr/bin/javac javac /home/eric/jdk1.8.0_65/bin/javac 1
$ sudo update-alternatives --install /usr/bin/java java /home/eric/jdk1.8.0_65/bin/java 1

$ sudo update-alternatives --config javac
$ sudo update-alternatives --config java

Where /home/eric/jdk1.8.0_65 is the folder of jdk.

Check the video.


Set JAVA_HOME also:

Setup JAVA_HOME and path to JDK on Linux (Ubuntu in this example), edit the file .bashrc
$ nano .bashrc

Add the line:
export JAVA_HOME=<path to jdk>
export PATH=$JAVA_HOME/bin:$PATH

Where <path to jdk> is the path to the installed JDK.




Alternatively, you can install also Install Oracle java8 on Ubuntu 15.10 via PPA.

Friday, October 23, 2015

Install Ubuntu GNOME 15.10 on Windows 10/VirtualBox

Ubuntu GNOME is an official flavor of Ubuntu, featuring the GNOME desktop environment. This video show how to install Ubuntu GNOME 15.10 on Windows 10 with VirtualBox. (Basically, it's same as Install Ubuntu 15.10 on Windows 10/VirtualBox).


Download Ubuntu GNOME 15.10 and install on VirtualBox.


Insert Guest Additions CD Image to improve display resolution.


Create shared folder between guest Ubuntu GNOME 15.10 and host Windows 10.

To share folder, setup Shared Folder in VirtualBox Setting of the guest, assign a machine folder in host. Then run the command in guest Ubuntu Linux
$ sudo mount -t vboxsf vbShare mntShare

where:
vbShare is the shared folder in host, and assigned as Shared Folder in VirtualBox Setting of the guest.
mntShare is the folder in guest Ubuntu Linux.


remark@2015-11-14:
Starting with version 4.0, VirtualBox can mount shared folders automatically. This post show how to create share folder between host Windows (D:\vbShare) and guest Ubuntu Linux (/media/sf_vbShare), and add current user to the vboxsf group.

Install Ubuntu 15.10 on Windows 10/VirtualBox


Ubuntu 15.10 is now available, this video show how to install it on Windows 10 with VirtualBox.


With Addition CD Image installed, we can improve screen resolution and share folder between guest Linux and host running Windows.


This video show how to, and the screen reesolution improved.


To share folder, setup Shared Folder in VirtualBox Setting of the guest, assign a machine folder in host. Then run the command in guest Ubuntu Linux
sudo mount -t vboxsf vbShare mntShare

where:
vbShare is the shared folder in host, and assigned as Shared Folder in VirtualBox Setting of the guest.
mntShare is the folder in guest Ubuntu Linux.




Related:
- Install Ubuntu GNOME 15.10 on Windows 10/VirtualBox

Related features:
Record screen video of VirtualBox guest OS
Share Clipboard and Drag'n'Drop between VirtualBox guest Linux and host Windows


Tuesday, September 1, 2015

Install Ubuntu MATE 15.04 on Windows 10/VirtualBox

Ubuntu MATE 15.04 run on Windows 10/VirtualBox
This video show installing 32-bit Ubuntu MATE 15.04 PC (Intel x86) on 64-bit Windows 10/VirtualBox.


Download links:
Oracle Virtual Box: https://www.virtualbox.org/wiki/Downloads
Ubuntu MATE 15.04: https://ubuntu-mate.org/vivid/

Related:
Install Ubuntu Linux on Windows 10/VirtualBox

Install Ubuntu Linux on Windows 10/VirtualBox

Install Ubuntu 14.04 LTS on Windows 10/VirtualBox:
Ubuntu run in Windows 10/Oracle VirtualBox
This video show how to install Ubuntu 14.04 on Windows 10/Oracle VirtualBox.


Download links:
Oracle Virtual Box: https://www.virtualbox.org/wiki/Downloads
Ubuntu Desktop: http://www.ubuntu.com/download/desktop

Set resolution of Ubuntu run in VirtualBox


After installed, your guest Ubuntu will run in low resolution.
To fix it"
- click "Devices" on the VirtualBox menu
- click "Insert Guest Additions CD image..."
- follow the steps
- reboot your guest Ubuntu OS.


Install Ubuntu 15.04 (Vivid Vervet) on Windows 10/VirtualBox:



Download link: http://releases.ubuntu.com/15.04/


Related:
Install Ubuntu MATE 15.04 on Windows 10/VirtualBox
Install 32-bit/64-bit Lubuntu 15.04 (Vivid Vervet) Desktop on Windows 10/VirtualBox
Install Ubuntu 15.10 on Windows 10/VirtualBox
Install Ubuntu GNOME 15.10 on Windows 10/VirtualBox


Monday, July 21, 2014

Install Oracle JDK 8 on Ubuntu 14.04

This post describe how to download and install Oracle JDK 8 on Ubuntu 14.04, and also update alternatives to correct the links.

Download Oracle JDK from http://www.oracle.com/technetwork/java/javase/downloads/index.html.

Accept License Agreement and download the corresponding .tar.gz file, jdk-8u11-linux-i586.tar.gz in my case.

Unpack the downloaded tarball (.tar.gz) and move unpacked folder to where you want, /home/u/jdk1.8.0_11/ in my case.

Run the following commands in terminal to update the alternatives of javac and java. Where /home/u/jdk1.8.0_11/ is the installed folder of jdk.

$ sudo update-alternatives --install /usr/bin/javac javac /home/u/jdk1.8.0_11/bin/javac 1
$ sudo update-alternatives --install /usr/bin/java java /home/u/jdk1.8.0_11/bin/java 1

$ sudo update-alternatives --config javac
$ sudo update-alternatives --config java

After installed and setup

Step-by-step:

Sunday, July 20, 2014

Install Cinnamon on Ubuntu 14.04

Against Unity, Cinnamon can seem fairly performance orientated.



To install Cinnamon on Ubuntu 14.04, enter the commands in Terminal:

$ sudo add-apt-repository ppa:lestcape/cinnamon
$ sudo apt-get update
$ sudo apt-get install cinnamon




reference: OMG!Ubuntu! - How to Install Cinnamon from a PPA on Ubuntu 14.04


Note for using RecordMyDesktop on Cinnamon:

By default, the bottom bar will disappear when running RecordMyDesktop to record your screen activity. To fix it, run with Extra Options of --no-frame.

- Click Advanced button.


- Select Misc tab.
- Enter "--no-frame" in Extra Options box.


Edit /etc/default/grub to set GRUB_CMDLINE_LINUX="acpi=off"/"pci=noacpi" options

As mentioned, Ubuntu 14.04 is installed on my old/legacy PC, with option "acpi=off". In my legacy Fujitsu M2010 Netbook, it display in 800x600 only. Alternatively, it can be set "pci=noacpi" to recognize the true resolution of 1024x600, but cannot set brightness and always in dark.

The default generated /etc/default/grub file is:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX="acpi=off"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"


To set option "pci=noacpi", modify to GRUB_CMDLINE_LINUX="pci=noacpi" in /etc/default/grub. Like this:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
#GRUB_CMDLINE_LINUX="acpi=off"
GRUB_CMDLINE_LINUX="pci=noacpi"

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"

After the file /etc/default/grub edited, run the following command to update /boot/grub/grub.cfg
$ sudo update-grub

And restart to make the new setting take effect.


Install gnome-session-flashback

To install gnome-session-flashback, to make your Ubuntu run on classic desktop, enter the command in Terminal:

$ sudo apt-get install gnome-session-flashback


After installed, logout your session. You can get more options of GNOME Flashback (Compiz) and GNOME Flashback (Metacity) in login. Select GNOME Flashback (Metacity) for best performance.

Saturday, July 19, 2014

Install Ubuntu 14.04 on old/legacy PC, with "Disabling IRQ #9"

This post describe how to install Ubuntu 14.04 on a old/legacy Netbook, Fujitsu M2010 Netbook with CPU of Intel Atom N280 and GMA 950 graphics processor.

Prepare a Installation/Live-USB of Ubuntu, 14.04 LTS, 32-bit Desktop version.

With the default options, the boot-up sequency will stop in "Disabling IRQ #9".


To by pass it, we can make it boot with option "acpi=off".
- Press F6 while the Live-USB booting, untill you see the selection page.
- Press F6 and select option of "acpi=off".
- Then follow the normal installation steps.


Once finished, remove USB and restart the system. Suppose it can be run with "acpi=off" in the new setup.


Then, the first thing you should do is updating your system, just search and run "System Updater".


Up to here, it run the new Ubuntu UI very slow! You can install other lightweight desktop to improve the performance greatly.
- Install gnome-session-flashback
- Install lubuntu-desktop
Install Cinnamon on Ubuntu 14.04

With option of "acpi=off", my legacy Fujitsu M2010 always show in 800x600. Alternatively, it can be set "pci=noacpi" to recognize the true resolution 1024x600. But with this setting, the display brightness cannot be set and in little bit dark!
-  Edit /etc/default/grub to set GRUB_CMDLINE_LINUX="acpi=off"/"pci=noacpi" options

Anybody know how to fix it, please advise.

Thursday, April 17, 2014

What's New in Ubuntu 14.04 LTS

Released on April 17, 2014, Ubuntu 14.04 is the latest Long Term Support release of the world's most popular open-source operating system.

See What's New in Ubuntu 14.04 LTS