1.iguge谷歌助手
iguge.xyz
2.
99.Nvidia_TX2常见问题
换源
代码语言:javascript复制sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo gedit /etc/apt/sources.list
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-updates main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-security main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial-backports main restricted universe multiverse
deb http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main universe restricted
deb-src http://mirrors.ustc.edu.cn/ubuntu-ports/ xenial main universe restricted
sudo apt-get update
输入法
代码语言:javascript复制sudo apt-get install fcitx-googlepinyin
在settings -> language support 里将 keyboard input method system 设置为fcitx
在settings-> Text Entry 里,添加输入源, 搜索 google-pinyin,添加。
Qt安装
代码语言:javascript复制sudo apt-get install qt5-default qtcreator -y
固定IP
代码语言:javascript复制1-----
ubuntu固定IP
https://www.cnblogs.com/qilai/p/11285445.html
1.1
先获取网卡名称,输入ifconfig,如下图,我们的网卡名称为 ens33
ifconfig
1.2
修改网卡配置文件
sudo gedit /etc/network/interfaces
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.1.5
netmask 255.255.255.0
# dns-nameserver 8.8.8.8
dns-nameserver 8.8.8.8
sudo /etc/init.d/networking restart
DNS
gedit /etc/resolv.conf
00:04:4b:de:e4:19
00:e0:63:31:1f:33
ifconfig eth0 up
GPIO设置
代码语言:javascript复制gedit /etc/udev/rules.d/99-galaxy-u3v.rules
##添加
SUBSYSTEM=="gpio*", PROGRAM="/bin/sh -c 'chown -R root:gpio /sys/class/gpio && chmod -R 770 /sys/class/gpio'"
gedit /etc/rc.local
##添加
sudo chmod 770 /sys/class/gpio/unexport /sys/class/gpio/export
sudo echo 246 > /sys/class/gpio/export
sudo chmod -R 777 /sys/class/gpio/gpio246
sudo echo out > /sys/class/gpio/gpio246/direcion
sudo echo 0 > /sys/class/gpio/gpio246/value
6-----
GPIO
5 GND 245 246 246 247 248
导出引脚
echo 246 > /sys/class/gpio/export
chmod 777 -R /sys/class/gpio
设置/查看 方向(4种---in out high low)
echo out > /sys/class/gpio/gpio246/direcion
cat /sys/class/gpio/gpio246/direcion
设置/查看 输出值
echo 1 > /sys/class/gpio/gpio246/value
echo 0 > /sys/class/gpio/gpio246/value
cat /sys/class/gpio/gpio246/value
取消导出引脚
echo 245 > /sys/class/gpio/unexport
ls -lL /sys/class/gpio/
gedit /etc/udev/rules.d/99-galaxy-u3v.rules
gedit /etc/rc.local
仍然存在的问题
新导出的引脚没有访问权限
sudo chmod 770 /sys/class/gpio/unexport /sys/class/gpio/export
sudo echo 245 > /sys/class/gpio/export
sudo echo 246 > /sys/class/gpio/export
sudo chmod -R 777 /sys/class/gpio/gpio245
sudo chmod -R 777 /sys/class/gpio/gpio246