Which Khadas SBC do you use?
‘’
VIM3
‘’
Which system do you use? Android, Ubuntu, OOWOW or others?
‘’
Ubuntu 20.04 官方镜像
‘’
Which version of system do you use? Khadas official images, self built images, or others?
‘’
Khadas official images
‘’
Please describe your issue below:
‘’
apt更新源的时候无法链接。
以及无法安装vnc服务。
‘’
Post a console log of your issue below:
‘’
无法找到这个包
使用的是如下的blog
Khadas Blog | How To Install VNC Server On Ubuntu Mate
‘’
ivan.li
October 24, 2022, 6:21am
#2
@pigpigfang 可以使用下面命令,去安装VNC服务。
$ sudo apt-get install gnome-session-flashback
$ sudo apt-get install tigervnc-standalone-server
那这个源的问题是什么呢?
为什么每次update都链接不上呢
ivan.li
October 27, 2022, 9:39am
#4
你的Ubuntu版本对‘‘vnc4server’’包是不支持的(从你提供的第二张图片)
我现在还是不能使用tigervnc,试图放弃。这个vnc对摄像头的调试还是挺重要的,建议写下较为详细的blog,感谢。
ivan.li
October 27, 2022, 11:32am
#6
@pigpigfang
一.安装依赖与VNC Server
$ sudo apt-get install gnome-session-flashback
$ sudo apt-get install tigervnc-standalone-server
二.配置VNC使用环境
$ sudo ufw disable
Firewall stopped and disabled on system startup
$ sudo ufw status
Status: inactive
设置VNC远程连接密码 (习惯设为khadas )
$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
$ vim ~/.vnc/xstartup
1 #!/bin/sh
2
3 unset SESSION_MANAGER
4 unset DBUS_SESSION_BUS_ADDRESS
5 export XKL_XMODMAP_DISABLE=1
6 export XDG_CURRENT_DESKTOP="GNOME-Flashback:GNOME"
7 export XDG_MENU_PREFIX="gnome-flashback-"
8 [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
9 [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
10 xsetroot -solid grey
11 vncconfig -iconic &
12 gnome-session --session=gnome-flashback-metacity --disable-acceleration-check &
$ sudo chmod +x ~/.vnc/xstartup
三.开启VNC服务端
$ vncserver -localhost no
Cleaning stale pidfile '/home/khadas/.vnc/localhost:1.pid'!
New 'localhost:1 (khadas)' desktop at :1 on machine localhost
Starting applications specified in /home/khadas/.vnc/xstartup
Log file is /home/khadas/.vnc/localhost:1.log
Use xtigervncviewer -SecurityTypes VncAuth -passwd /home/khadas/.vnc/passwd :1 to connect to the VNC server.
查看端口号 (为客户端连接做准备)----以下内容作参考
$ vncserver -list
X DISPLAY # RFB PORT # PROCESS ID
:1 5901 4323
四.现在可以打开你的客户端远程连接khadas
补充:
1.客户端下载:vnc view下载地址
2.连接格式:#示例192 .168.1.172:5091
ps:有可能会遇到The connection closed unexpectedly(可以尝试解决这个小问题,有时间会更新)
1 Like
@ivan.li the connection closed unexpectedly这个问题怎么解决啊