1-VNC如何配置
1.1 jetson 搭建vnc server
sudo apt update
sudo apt install vino
sudo ln -s ../vino-server.service /usr/lib/systemd/user/graphical-session.target.wants
编辑:org.gnome.Vino.gschema.xml
sudo vim /usr/share/glib-2.0/schemas/org.gnome.Vino.gschema.xml
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>
添加之后build :
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
在终端中配置VNC(123456是密码):
gsettings set org.gnome.Vino prompt-enabled false
gsettings set org.gnome.Vino require-encryption false
gsettings set org.gnome.Vino authentication-methods "['vnc']"
gsettings set org.gnome.Vino vnc-password `(echo -n '123456'|base64)`
设定开机启动vnc:
添加vino-server.desktop 文件
mkdir -p ~/.config/autostart
vim ~/.config/autostart/vino-server.desktop
[Desktop Entry]
Type=Application
Name=Vino VNC server
Exec=/usr/lib/vino/vino-server
NoDisplay=true
设定分辨率:
sudo vi /etc/X11/xorg.conf
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Tegra0"
SubSection "Display"
Depth 24
Virtual 1920 1080 # Modify the resolution by editing these values
EndSubSection
EndSection
最后重启设备,就可以了,通过vnc 客户端进行登录
1.2-vnc 客户端
https://www.realvnc.com/en/connect/download/viewer/
1.3-备注
经过1,2 步就可以,下面都是一些备注,没有问题,可以不看。
在设定账号密码的时候,也可以通过图形界面进行
界面配置 DeskSharing
ubuntu 18.04 非嵌入式设备,也是类似
2-chromium 安装
////////arm 系统安装browser/////////////////
1. 升级软件
apt-get update
2. 安装pip
apt-get install python3-pip
3. 安装selenium
pip3 install selenium
4.. 安装chromedriver
sudo apt-get install chromium-chromedriver
非root用户:
chromium-browser -lang=en-US --noerrdialogs --start-fullscreen www.baidu.com
--disable-gpu
启动不diable gpu :
chromium-browser -lang=en-US --noerrdialogs --start-fullscreen www.baidu.com
Error: Can't initialize nvrm channel
上面的这个问题在nvidia 原生的系统中就有jetpack4.6
3-pillow安装
sudo apt-get install libjpeg8 libjpeg62-dev libfreetype6 libfreetype6-dev
python3 -m pip install -i https://mirrors.aliyun.com/pypi/simple pillow
-i 后接国内源即可,我这里用的是阿里源,因为既有python2又有python3,
我这里用python3 -m pip install方式安装,如果报权限问题的错误,前面加sudo或在后面加--user
其他例子:
pip install -i http://e.pypi.python.org --trusted-host e.pypi.python.org --upgrade pip
清华:https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 :https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学:http://pypi.hustunique.com/
山东理工大学:http://pypi.sdutlinux.org/
豆瓣:http://pypi.douban.com/simple/
note:新版ubuntu要求使用https源,要注意
4-设定jetson 固定IP
sudo touch /etc/network/interfaces.d/eth0
sudo vim /etc/network/interfaces.d/eth0
auto eth0
iface eth0 inet static
address 172.31.8.77
netmask 255.255.255.0
gateway 172.31.8.254
sudo vim /etc/network/interfaces
文件最后添加:source interfaces.d/eth0
重启机器: 设定了固定IP
REF:
https://blog.csdn.net/weixin_43181350/article/details/106491056
https://www.jianshu.com/p/e670a9a26989