nvidia tx1 固定ip以及开启samba
nvidia tx1 固定ip方法
sudo vim /etc/network/interfaces
添加以下内容:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 192.168.9.203
netmask 255.255.255.0
dns-nameserver 8.8.8.8
保存后重启服务
sudo /etc/init.d/networking restart
sudo reboot
以下部分属于开启samba
sudo apt-get install samba
如果报错,请更换清华源
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-updates multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-backports main restricted universe multiverse
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security main restricted
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security universe
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/ bionic-security multiverse
sudo apt-get update
然后再重新安装samba
安装好samba后,修改配置文件
sudo vim /etc/samba/smb.conf
在末尾添加
[Home Share]
path = /home/nvidia/
browseable = yes
writeable = yes
guest ok = yes
public=yes
create mask=0775
directory mask=0775
available = yes
保存后 重启板卡
然后输入
sudo chown -R nobody /home/nvidia/*
开启文件夹读取权限。然后就可以子搜索里面输入板卡ip,进入共享文件夹。
需改文件夹及其子文件夹的权限:
sudo chmod -R 777 ./demo/
更新默认python版本
sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 100
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 150
把两个版本的python加入到alternatives列表中,然后运行以下命令配置
sudo update-alternatives --config python
每天快乐敲代码,快乐生活