23
© 2014 IBM Corporation Connect to Bluemix VM with VNC (Ubuntu Desktop) Joseph Chang Senior IT Specialist IBM Cloud Group Document number

Connect to blumix vm with vnc

Embed Size (px)

Citation preview

© 2014 IBM Corporation

Connect to Bluemix VM with VNC(Ubuntu Desktop)

Joseph Chang

Senior IT Specialist

IBM Cloud Group

Document number

© 2014 IBM Corporation

Reference:

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-14-04

2

Take me to BluemixClick Here

© 2014 IBM Corporation

Prerequisite

Launch the Bluemix VM dashboard.

Make sure you already have a Ubuntu 14.04 instance with public IP address.

Make sure you have the key for access VM.

3

I will use this instance for illustration.

Here is my key.

© 2014 IBM Corporation

The key we need.

4

The .pem is generate by bluemix.

The .ppk is generate by PuttyGen.

© 2014 IBM Corporation

If you don’t know how to get here , learn it from this slide.

http://www.slideshare.net/JosephChang8

5

© 2014 IBM Corporation

Install VNC Server

6

© 2014 IBM Corporation

Connect to Ubuntu console with Putty

7

© 2014 IBM Corporation

Install TighVNC

8

sudo apt-get update sudo apt-get install xfce4 xfce4-goodies tightvncserver

We can get the XFCE packages, along with the package for TightVNC, directly from Ubuntu's software repositories using apt:

When it’s done. You will see….

© 2014 IBM Corporation

Configure VNC server

9

For the first time you run “vncserver”, your got prompt to set up the password.

Take note for the two passwords, we will use them when login from desktop.

© 2014 IBM Corporation

Install xutils

10

sudo apt-get install xutils xbase-clients xfonts-base xfonts-75dpi xfonts-100dpi

When the configuration is done. You may see the error. Don’t worry, it’s easy to fix.Just enter the following command:

© 2014 IBM Corporation

Check point

11

When font installation done. You should see the message.

Type “ls –al” command, you should see .vnc directory in you HOME directory.

© 2014 IBM Corporation

Start VNC Server

12

Start the server by enter “vncserver”

Check if the vncserver is running with ps.

© 2014 IBM Corporation

Launch VNC Viewer

13

Now we back from cloud to the Desktop

© 2014 IBM Corporation

Create a secure socket

Launch a Windows Command Prompt and issue the following command:

14

ssh -L 5901:127.0.0.1:5901 -N -f -i myAccessKey.pem [email protected]

< your key>< your VM IP>

© 2014 IBM Corporation

Launch VNC

15

If you don’t have VNC Viewer, see Appendix-1 for downloading.

© 2014 IBM Corporation

Input the password

16

Use the password in page 9.

© 2014 IBM Corporation

Congratulation !!

17

© 2014 IBM Corporation

Appendix -1 Install Web Browser

18

The default browser doesn’t work . Let’s install by ourself.

© 2014 IBM Corporation

Install firefox

sudo apt-get install firefox

19

Back to the putty and issue the command

When installation done, go to Application Menus-> Setting -> Preferred Applications

Select Mozilla Firfox as the default brower

© 2014 IBM Corporation

Now we have the Firefox Brower,

20

* If you prefer google chrome, go ahead do it by yourself.

© 2014 IBM Corporation

Appendix -2 Download VNC Viewer

21

© 2014 IBM Corporation

Download Real VNC Viewer

22

https://www.realvnc.com/download/vnc/

© 2014 IBM Corporation

Thank you

23

Take me to BluemixClick Here