Repository navigation
TX2 Setup
Brian Keating edited this page Dec 29, 2018
·
20 revisions
How-to guide for setting up a Nvidia TX2 for computer vision and robotics.
- Plug in peripherals: mouse, monitor, keyboard. My USB monitor did not work -- you need an HDMI monitor. I had a hard time installing via wifi, it's best to connect TX2 directly to the router.
- Plug everything in, turn on the power
- The first boot will print installation instructions and put you in a terminal. Follow the on screen instructions
cd NVIDIA-INSTALLER,sudo ./installer.sh(password isnvidia). When it's done,sudo reboot now. - Install jetson jetpack using the instructions here. These instructions report the install of
JetPack-L4T-3.2. Near the end of the flashing-to-TX2 step, it'll get stuck on "determining target ip". Setup your wifi using the GUI to complete the installation. -
Update
sudo apt update. I had problem with cuda PUB_KEY as described here. The fix issudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F60F4B3D7FA2AF80before theupdate. DO NOT RUNsudo apt-get upgrade, IT BREAKS CUDA -
Change passwords of users
nvidiaandubuntufor security purposes (withpasswd) -
Turn off wifi power saving, it makes ssh connections slow and unstable.
sudo iw dev wlan0 set power_save offdoes it, but it gets reset when the wifi reconnects (eg, on boot). To make it permanent,sudo nano /etc/NetworkManager/conf.d/default-wifi-powersave-on.confand change the line towifi.powersave = 2. - Set up public key auth. Make sure you can ssh to/from laptop.
- Assign a static ip to the tx2 via the router
- Edit
/etc/hostnameon the tx2 to give it a better name. Takes effect on reboot - Edit
/etc/hostson laptop to give the tx2's IP address a human readable name - Disable
ubuntuaccount:sudo usermod --expiredate 1 ubuntu. You can re-enable them withsudo usermod --expiredate -1 ubuntu
Your default user is nvidia. I had a hard time changing the username...it's easiest to just keep it as nvidia and add to laptop .ssh/config:
Host tx2
User nvidia
Flashing the tx2 broke the apt update on my laptop, as described here. The fix is
sudo apt-get remove .*:arm64
sudo dpkg --remove-architecture arm64
Here's a convenient repo to install base ROS for you:
git clone https://github.com/jetsonhacks/installROSTX2.git
cd installROSTX2
./updateRepositories
./installROS.sh
I want to use the kinect, so sudo apt-get install ros-kinetic-openni-launch.
Add to .bashrc
source /opt/ros/indigo/setup.bash
export ROS_MASTER_URI=http://tx2:11311
sudo apt install python-pip
pip install --user typing
git clone https://github.com/pytorch/pytorch.git
git submodule update --init
cd pytorch
python setup.py install --user