安装

#autocuftsel 用于vnc两段的复制粘贴

sudo apt-get install autocutsel

安装 vncserver
sudo apt-get install --no-install-recommends vnc4server
安装 gnome2 桌面
sudo apt-get install --no-install-recommends ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal -y

重点:

修改 ~/.vnc/xstartup
vi ~/.vnc/xstartup

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
autocutsel -fork
vncconfig -iconic &
#x-terminal-emulator -geometry 80x24++ -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager & dbus-launch gnome-panel &
dbus-launch gnome-settings-daemon &
metacity &
nautilus &
dbus-launch gnome-terminal &

参考

https://blog.csdn.net/Lasper_csdn/article/details/88552706

https://askubuntu.com/questions/41273/how-to-copy-paste-text-from-remote-system

最新文章

  1. [LoadRunner]LR11安装或破解时报错的解决方法
  2. 初识React Native,踩坑之旅....
  3. IPcamera
  4. C#位运算讲解与示例2
  5. PPTP VPN 一键安装包(图文,OpenVZ适用)[zz]
  6. 【Android UI设计与开发】6.底部菜单栏(三)使用Fragment+PopupWindow仿QQ空间最新版底部菜单栏
  7. 使用AndroidStudio dump heap,再用 Eclipse MAT插件分析内存泄露
  8. 【windows核心编程】线程局部存储TLS
  9. 32位和64位dll判断
  10. 修改CMD命令窗口编码并保存方法
  11. tcp/ip协议listen函数中backlog參数的含义
  12. PHP将数据导出Excel表中(投机型)
  13. BotVS配置托管者-基于阿里云
  14. ASP.NET网页发布以及相关问题的解决
  15. 【转】判断点在多边形内(matlab)
  16. Linux系统编程----孤儿进程
  17. [OC] 富文本 AttributedString 以及 用富文本解析html文本
  18. windows 获取用户的Sid的方法
  19. 【VMware vSphere】详解VDP安装步骤
  20. ESET免费申请

热门文章

  1. Android 8.1 MTK6739修改文档
  2. JSON文件转为Excel
  3. POJ 2299-Ultra-QuickSort-线段树的两种建树方式
  4. 十三、GPIO子系统
  5. MySql数据库 优化
  6. (一)Maven基础及第一个Maven工程
  7. 网络知识(1)TCP/IP五层结构
  8. OSI的七层网络模型
  9. HTML中关于 浮动 的简单说明
  10. FlowPortal BPM流程中调用封装好的API如何调试