阅读293 返回首页    go 阿里云 go 技术社区[云栖]


轻量应用服务器 常见应用安装与配置:用VNC搭建Ubuntu VNC可视化界面




1. 创建Ubuntu服务器

访问轻量应用服务器购买页面,选择Ubuntu镜像,并选择套餐、购买时长,确认订单支付并确认。

image

2. 安装配置软件

创建服务器成功后,点击服务器列表页的Ubuntu轻量应用服务器卡片的远程连接按钮

image


连接成功后开始安装软件。

VNC的安装与配置

安装之前先输入


apt-get update

获取最新套件的信息。

输入以下命令安装VNC,安装过程中需要输入Y来确认


apt-get install vnc4server


image


启动VNC


vncserver


image


并设置密码


image


看到 New ‘iZbp1idfrdpf1c3its2hpkZ:1 (root)’ desktop is iZbp1idfrdpf1c3its2hpkZ:1字样的时候,说明启动成功。


image


gnome 桌面环境安装与配置

安装x-windows的基础


sudo apt-get install x-window-system-core

安装登录管理器


sudo apt-get install gdm

安装Ubuntu的桌面


sudo apt-get install ubuntu-desktop

安装gnome配套软件


sudo apt-get install gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal

修改VNC配置文件


vi ~/.vnc/xstartup

修改为


#!/bin/sh
# Uncomment the following two lines for normal desktop:
export XKL_XMODMAP_DISABLE=1
 unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
unset DBUS_SESSION_BUS_ADDRESS
gnome-panel &
gnmoe-settings-daemon &
metacity &
nautilus &
gnome-terminal &

杀掉原桌面进程,输入命令(其中的:1是桌面号):


vncserver -kill :1

输入以下命令生成新的会话:


vncserver :1

开启VNC服务需要用到的5900和5901端口,具体可查看防火墙功能说明。


image


3. 本地使用VNC连接

本地安装VNC后,使用ip地址:1的方式连接


image

输入之前设置的VNC密码后点击连接

image


连接成功即可看到Ubuntu桌面的界面了


image

最后更新:2017-09-11 15:02:57

  上一篇:go  轻量应用服务器 常见应用安装与配置: 使用ECShop镜像搭建小型电商网站
  下一篇:go  轻量应用服务器 常见应用安装与配置 : 使用WordPress搭建个人手机博客