我是靠谱客的博主 飘逸香烟,最近开发中收集的这篇文章主要介绍[ubuntu] 远程桌面 之VNC 安装使用,觉得挺不错的,现在分享给大家,希望可以做个参考。

概述

1.试图在ubuntu上用图形化界面访问安装了ubuntu系统的rk3399

2. 参照https://www.cnblogs.com/penny772866/p/5927796.html 使用ssl/ssh vnc viewer,最后图形界面一直出不来

3. 换了途径用real vnc 的VNC Viewer:. https://www.realvnc.com/en/connect/download/viewer/linux/

       或者vinagre:sudo apt-get install vinagre
4. server 端需要装vncserver,sudo apt-get install vnc4server 。并且启动vncserver对应生成端口号.vncpasswd生成密码

  这样client端在vnc server:中输入如192.168.1.102:1,启动输入对应密码,就可以启动图形化界面了.

5 . 如果图形化界面显示不出来

       ~/.vnc/xstartup里需要加入如下:并且安装如下的软件

gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &

 完成之后测试:vncviewer localhost:1,会显示如下:

New 'mymachine:1 (mine)' desktop is mymachine:1

Starting applications specified in /home/mine/.vnc/xstartup
Log file is /home/mine/.vnc/mymachine:1.log

 

6. 遇到的问题:图形化界面显示不出 ,有显示 locale的错误

 

erl: warning: Setting locale failed.   
perl: warning: Please check that your locale settings:   
        LANGUAGE = "en_US:en",   
        LC_ALL = (unset),   
        LC_MESSAGES = "en_US.UTF-8",   
        LANG = "en_US.UTF-8"   
    are supported and installed on your system.   
perl: warning: Falling back to the standard locale ("C").   
locale: Cannot set LC_CTYPE to default locale: No such file or directory   
locale: Cannot set LC_MESSAGES to default locale: No such file or directory   
locale: Cannot set LC_ALL to default locale: No such file or directory   
(Reading database ... 21173 files and directories currently installed.)  
Removing bind9 ...  
 * Stopping domain name service... bind9                                        [ OK ]
Processing triggers for man-db ...   
locale: Cannot set LC_CTYPE to default locale: No such file or directory   
locale: Cannot set LC_MESSAGES to default locale: No such file or directory   
locale: Cannot set LC_ALL to default locale: No such file or directory 

问题原因:This is a common problem if you are connecting remotely, so the solution is to not forward your locale.

问题解决:Edit /etc/ssh/ssh_config and comment out SendEnv LANG LC_* line.

 

7. 在xubuntu下用vnc起来的图形界面里,xfce4 terminal 里tab键无法自动补全:

 

~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml
        Edit that file and replace switch_window_key with empty on that line. I used nano to edit the file. I then restarted VNC with sudo service vncserver restart. It just worked for me.
 

8.  遇到错误

Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal exited with status 8 

Error constructing proxy for org.gnome.Terminal:/org/gnome/Terminal/Factory0: Error calling StartServiceByName for org.gnome.Terminal: GDBus.Error:org.freedesktop.DBus.Error.Spawn.ChildExited: Process org.gnome.Terminal exited with status 9

解决方案:

        https://ubuntuforums.org/showthread.php?t=2295530

        locale-gen --purge

       dpkg-reconfigure locales 

       gnome-terminal 

       reboot  

 

9  不能拷贝粘贴的问题

        vncconfig -nowin&

        也有人通过autocutsel实现

最后

以上就是飘逸香烟为你收集整理的[ubuntu] 远程桌面 之VNC 安装使用的全部内容,希望文章能够帮你解决[ubuntu] 远程桌面 之VNC 安装使用所遇到的程序开发问题。

如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(31)

评论列表共有 0 条评论

立即
投稿
返回
顶部