首页新闻找找看学习计划

求教如何在ubuntu14.04服务器版(默认不带桌面)上安装桌面并配置vnc

0
悬赏园豆:20 [待解决问题]

RT。。我折腾一中午了啊。。已经install ubuntu-desktop了,并且安装了vnc4server,但vnc连上却只能这样。。请问怎么处理?

xstartup下面加gnome-session了啊。。

 

求教怎么处理。。

rip_1的主页 rip_1 | 初学一级 | 园豆:136
提问于:2016-01-30 13:36
< >
分享
所有回答(2)
0

目前只找到vnc和xfce的,我本地实验Ubuntu server 12.04,安装了Xface之后,缺少python-gi,安装其它东西都失败了,我就放弃了。下面是两个找到的资料,希望能有点帮助

How to Install and Configure VNC on Ubuntu 14.04

How To Install VNC Server On Ubuntu 14.04

wakasann | 园豆:317 (菜鸟二级) | 2016-01-30 14:30
0

To fix this issue, first of all, check if you have any Desktop Environment (eg, Unity, Gnome, KDE, xfce, lxde etc) installed on your system. You may use: echo $DESKTOP_SESSION or you can verify from env.

In my case, I have installed LXDE on Ubuntu server. It is important now to find the exact executable path of lxde, which is /usr/bin/startlxde in my case.

Replace the content of your ~/.vnc/xstartup and paste following lines:

#!/bin/sh

xrdb $HOME/.Xresources

xsetroot -solid grey

export XKL_XMODMAP_DISABLE=1

/usr/bin/startlxde

Note: Above code is only valid for lxde.

Source 

envoy | 园豆:210 (菜鸟二级) | 2016-01-30 14:49
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册