嵌入式设备Linux(ubuntu)安装远程控制软件

sudo apt update && \
sudo apt upgrade -y && \
sudo apt install -y libturbojpeg \
vino && \
sudo ln -s ../vino-server.service  /usr/lib/systemd/user/graphical-session.target.wants && \
gsettings set org.gnome.Vino prompt-enabled false && \
gsettings set org.gnome.Vino require-encryption false

打开文件

sudo vim /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml

将以下内容写入文件同级部分

<key name='enabled' type='b'>
  <summary>Enable remote access to the desktop</summary>
  <description>
   If true, allows remote access to the desktop via the RFB protocol.Users on remote machines may then connect to the desktop using a VNC viewer.
   </description>
   <default>false</default>
</key>

设置为Gnome编译模式

sudo glib-compile-schemas  /usr/share/glib-2.0/schemas

桌面共享设置:
1.勾选"Allow other users to view your desktop".
2.勾选"Allow other users to control your desktop".
3.勾选"Require the user to enter this password:“,并且输入密码,该密码用来远程控制.
4.勾选"Automatically configure UPnP router to open and forward ports”.
5.勾选"Always".

开机启动VNC配置

vim ~/openvino.sh

写入以下内容

#!/bin/bash
export DISPLAY=:0
gsettings set org.gnome.Vino enabled true
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
xrandr --fb 1920x1080
/usr/lib/vino/vino-server &

赋予权限

chmod 755 ~/openvino.sh

最后在开机启动中加入该文件,其他电脑即可使用vnc控制.
PS:如果设置以上内容后,远程分辨率不是设置的1920x1080,可执行以下操作:
打开文件

sudo gedit /etc/X11/xorg.conf

在最后添加以下内容:

Section "Screen"
    Identifier "Default Screen"
    SubSection "Display"
        Virtual 1920 1080
    EndSubSection
EndSection

保存文件后重启

reboot
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

赫庆淳

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值