0

Amazon EC2 中使用 Ubuntu桌面

Posted in Linux at 八月 16th, 2011 / No Comments »

创建实例并选择系统镜像(AMI)
登陆AWS Management Consloe,切换到Amazon EC2,左上角有个Region,可以选择你要建立的实例位于哪里。有美国东岸、西岸、欧洲、新加坡,根据自己需要选择,我选的是新加坡的。选定后,点Launch instances,选择AMI(也就是系统镜像),在Community AMIs里面,类别是EBS images。输入099720109477可搜索到Ubuntu官方提供的镜像。我选择的是最新的:ebs/ubuntu-images-testing/ubuntu-lucid-daily-i386-server-20110812 (ami-80146fd2)

开放必要端口:
在Security Groups里面,添加上SSH、VNC需要的端口,VNC:1的端口是5901。

连接服务器:
以Linux为例。Windows可用Putty连接,Key Pair需要转换之后才能用,教程请网上搜索。
ssh -i xxx.pem ubuntu@your Public DNS
xxx.pem就是你创建的Key Pair,Public DNS就是Instances信息下面的:ec2-******.us-west-1.compute.amazonaws.com

对服务进行配置:
sudo apt-get update
sudo apt-get install ubuntu-desktop
使用VNC连接:
sudo apt-get install vnc4server
vncserver :1
输入VNC密码
使用vncviewer连接ec2-******.us-west-1.compute.amazonaws.com:1后,可以看到X window 的desktop. 在X window的终端窗口中输入以下命令启动 gnome 桌面:
nohup gnome-session &

http://bitnami.org/article/how-to-install-ubuntu-desktop-on-ec2-ebs

http://lanhl.com/2011-amazon-ec2-ubuntu-lamp-wordpress.html

Published in Linux

No Responses to “Amazon EC2 中使用 Ubuntu桌面”

Leave a Reply

请输入算式结果(看不清请点击图片)
(必须)