Contenu connexe Similaire à Connect to blumix vm with vnc (20) Connect to blumix vm with vnc1. © 2014 IBM Corporation
Connect to
Bluemix VM with VNC
(Ubuntu Desktop)
Joseph Chang
Senior IT Specialist
IBM Cloud Group
Document number
2. © 2014 IBM Corporation
Reference:
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-
vnc-on-ubuntu-14-04
2
Take me to Bluemix
Click Here
3. © 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.
4. © 2014 IBM Corporation
The key we need.
4
The .pem is generate
by bluemix.
The .ppk is generate
by PuttyGen.
5. © 2014 IBM Corporation
If you don’t know how to get here , learn it from this slide.
http://www.slideshare.net/JosephChang8
5
7. © 2014 IBM Corporation
Connect to Ubuntu console with Putty
7
8. © 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….
9. © 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.
10. © 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:
11. © 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.
12. © 2014 IBM Corporation
Start VNC Server
12
Start the server by
enter “vncserver”
Check if the
vncserver is
running with ps.
13. © 2014 IBM Corporation
Launch VNC Viewer
13
Now we back from
cloud to the
Desktop
14. © 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 ibmcloud@129.41.156.204
< your key>
< your VM IP>
15. © 2014 IBM Corporation
Launch VNC
15
If you don’t have VNC
Viewer, see Appendix-
1 for downloading.
16. © 2014 IBM Corporation
Input the password
16
Use the password
in page 9.
18. © 2014 IBM Corporation
Appendix -1 Install Web Browser
18
The default
browser doesn’t
work . Let’s install
by ourself.
19. © 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
20. © 2014 IBM Corporation
Now we have the Firefox Brower,
20
* If you prefer google chrome, go ahead do it by yourself.
21. © 2014 IBM Corporation
Appendix -2 Download VNC Viewer
21
22. © 2014 IBM Corporation
Download Real VNC Viewer
22
https://www.realvnc.com/download/vnc/
23. © 2014 IBM Corporation
Thank you
23
Take me to Bluemix
Click Here