Jetson TX2使用记录
一、配置
- 使用WE载板时,使用A3设备树
- 通过配置wifi连接为所有用户均可用来设置ubuntu不登陆也自动连接WiFi
二、工具
1. 安装jtop
- 使用
sudo apt-get install python-pip
安装pip - 使用
sudo -H pip install -U jetson-stats
安装jtop - 执行
jtop
打开jtop工具
2. 安装文件同步工具
- 使用samba文件共享,使用
sudo apt-get install samba samba-common
安装; - 使用
sudo smbpasswd -a user_name
添加用户名和密码; - 在
/etc/samba/smb.conf
中新增:
[share]
comment = share folder
path = /home/smartsat/share
valid users = smartsat
public = yes
writable = yes
create mask = 0777
- 使用命令
sudo service smbd restart
重启Samba。
3. I2C
apt-get install libi2c-dev i2c-tools
。
- 检测IIC总线数量:
i2cdetect -l
- 查看IIC总线挂载设备:
i2cdetect -r -y 1
4. ssh
使用OEM安装的ubuntu,在没有以太网连接时配置,会导致ssh工具没有办法生成密钥,需要在登录系统后,重新配置密钥:
sudo rm /etc/ssh/ssh_host_*
sudo dpkg-reconfigure openssh-server
5. 模块温度
- 查看模块温度类型
cat /sys/devices/virtual/thermal/thermal_zone*/type
- 查看模块温度
cat /sys/devices/virtual/thermal/thermal_zone*/temp
三、自启动
1. 自启动优化
根据实际使用情况进行禁用,蓝牙、VNC、电话调制相关服务。
2. 自启动设置
1) 设置WiFi开机自动连接
2) 设置开机自动登录(用以远程)
- 先进入Unity桌面,设置自动登录,然后调整桌面管理器:
sudo dpkg-reconfigure lightdm
为lightdm; - 切换到LXDE桌面。
3) 应用软件自启动
- 更新/lib/systemd/system/rc-local.service:rc-local.service文件中写入以下内容:
[Unit]
Description=/etc/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.local