Content here
Hello World Project (continue)
After following the Building the Project from Source, continue on Classifying Images with ImageNet.
As I’m using ssh for remote access from my Mac to the Jetson machine, it is critical to set the environment correctly.
Host Machine (Jetson) Settings
First, edit the file /etc/ssh/sshd_config
with sudo permission, adding the following to the beginning:
UseDNS no
X11Forwarding yes
AllowTcpForwarding yes
AllowAgentForwarding yes
TCPKeepAlive yes
PasswordAuthentication no
ChallengeResponseAuthentication no
Note: Only by adding the line
X11Forwarding yes
is enough for activating the remote X11 function, others are optinoal.
Then execute the following commands:
sudo systemctl restart sshd
sudo apt update
sudo apt install x11-apps
Now the Jetson is ready.
Client Machine (Mac) Settings
First install the XQuartz for the Mac, a X11 support for macOS. After the installation, logout/reboot and login again to activate the support.
The following solution was found here:
Run:
quartz-wm --help
which will output something like
usage: quartz-wm OPTIONS
Aqua window manager for X11.
--version Print the version string
--prefs-domain <domain> Change the domain used for reading preferences
(default: org.xquartz.X11)
The last line shows the defaults
domain. In this case, check it with
defaults read org.xquartz.X11
and change it with
defaults write org.xquartz.X11 enable_iglx -bool true
restart XQuartz now (by either killing it, logging out and in again or rebooting).
Client Machine (Mac) Checking
Start the ssh connection with -X
option for enabling the X11 forwarding, and type in xeyes
for start a lightweight X11 app. If XQuartz is launched and shows a pair of eyes, the X11 environment is all set.
Document Info
- Author: Paul Tian
- Link: https://paultian.com/2023/10/03/jetson-nano-dev-2/
- Copyright: Attribution-NonCommercial-NoDerivatives (CC 4.0)