How to make sure I installed ROS correctly on TX2

I installed ROS on TX2, but I’m not sure if I installed ROS successfully. How can I determine this?

You can follow the tutorial here:
http://wiki.ros.org/ROS/Tutorials/InstallingandConfiguringROSEnvironment

When you run

printenv| grep ROS

you should get details about your instalation.
In my case it looks like:

ROS_ETC_DIR=/opt/ros/melodic/etc/ros
ROS_ROOT=/opt/ros/melodic/share/ros
ROS_MASTER_URI=http://localhost:11311
ROS_VERSION=1
ROS_PYTHON_VERSION=2
ROS_PACKAGE_PATH=/opt/ros/melodic/share
ROSLISP_PACKAGE_DIRECTORIES=
ROS_DISTRO=melodic

Addditionally, after

source /opt/ros/melodic/setup.bash

when you run be able to sucessfully run

roscore

.