简体   繁体   English

似乎无法在 vnc 中获得 ubuntu-desktop / gnome GUI?

[英]Can't seem to get ubuntu-desktop / gnome GUI in vnc?

Currently i'm installing a gui on my vps but i can't seem to get the actual desktop layout like it should be in vnc.目前我正在我的 vps 上安装一个 gui,但我似乎无法获得实际的桌面布局,就像它应该在 vnc 中一样。

in installed (sudo apt-get install) these things: ubuntu-desktop, gdm, tightvncserver在安装(sudo apt-get install)这些东西:ubuntu-desktop、gdm、tightvncserver

when i login a only get a cmd box in the theme of gnome.. there is no start-menu or anything like that.当我登录时,只得到一个 gnome 主题的 cmd 框。没有开始菜单或类似的东西。 How do i fix this?我该如何解决? My current ~/.vnc/xstartup file is: [code]#!/bin/sh我当前的 ~/.vnc/xstartup 文件是:[code]#!/bin/sh

Uncomment the following two lines for normal desktop:对于普通桌面,取消注释以下两行:

unset SESSION_MANAGER取消设置 SESSION_MANAGER

exec /etc/X11/xinit/xinitrc执行 /etc/X11/xinit/xinitrc

gnome-session --session=gnome-classic & gnome-session --session=gnome-classic &

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic & x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & x-window-manager & gnome-session & [/code] [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid gray vncconfig -iconic & x-terminal-emulator -geometry 80x24 +10+10 -ls -title "$VNCDESKTOP 桌面" & x-window-manager & gnome-session & [/code]

The reason i want a GUI is because i want to be able to view the live cmd of a java service.我想要 GUI 的原因是因为我希望能够查看 Java 服务的实时 cmd。 The cmd prints (in windows) who has been logged in on the server (from a game i run). cmd 打印(在 Windows 中)谁已登录到服务器(来自我运行的游戏)。

Thanks in advance.提前致谢。

try尝试

sudo apt-get install vino

you can configure it with你可以配置它

vino-preferences

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM