<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sonipriya Paul on Medium]]></title>
        <description><![CDATA[Stories by Sonipriya Paul on Medium]]></description>
        <link>https://medium.com/@sonipriyapaul?source=rss-795230bfb2fa------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*nYExCS3cL-M5VvMlalIphQ.jpeg</url>
            <title>Stories by Sonipriya Paul on Medium</title>
            <link>https://medium.com/@sonipriyapaul?source=rss-795230bfb2fa------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 08:41:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sonipriyapaul/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Setting up the Jetson TX1 headless for remote access for absolute beginners [like me!!]]]></title>
            <link>https://medium.com/@sonipriyapaul/setting-up-the-jetson-tx1-headless-for-remote-access-for-absolute-beginners-like-me-aa5e043722b5?source=rss-795230bfb2fa------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa5e043722b5</guid>
            <category><![CDATA[robotics]]></category>
            <category><![CDATA[jetson-tx1]]></category>
            <category><![CDATA[jetsons]]></category>
            <category><![CDATA[headless]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Sonipriya Paul]]></dc:creator>
            <pubDate>Mon, 15 Jan 2024 20:23:57 GMT</pubDate>
            <atom:updated>2024-01-15T21:00:07.846Z</atom:updated>
            <content:encoded><![CDATA[<p>Most of the times we see many videos on how you can effectively and efficiently work with a system from the software aspect after the successful set up, but barely did I find any video for absolute newbies like me where they showed step by step how to set up the system from scratch. Coming from a software background and being detached from academics and experimentations for almost 3 years, made it difficult to implement this project I was working on — sometimes it can take a toll on your confidence when you start questioning your capabilities. After figuring it out, (painfully, exhaustively and with generous help from my fellow PhD researcher) I realized that it was no big deal at all once you understand the robotics aspect of it. So here I wanted to put togther an article which might be a very basic topic, but it is for students like me who had less experience with hands-on projects and faced a gap as well in their academic career, to provide a healthy foundation for a confident start.</p><p>Here, we specifically talk about Jetson TX1 but before I shifted to Jetson TX1 I worked a little bit with Nano which had more video materials on YouTube but I shifted to TX1 because Nano doesn’t have built-in WiFi so you have to add it yourself. [I did not need this aspect to be of any significance later on so use whatever you want to!]</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zaBUn2zgMHU99rGL1MJbWg.png" /><figcaption>Jetson TX1 board</figcaption></figure><p><em>Note: Here I have shared details about TX1 and its set up but I think it should be quite the same for other Jetsons too! You will have to try it out for yourself!</em></p><p>Step 1:</p><p><strong>Flash the SD card with the appropriate image for the Jetson TX1 module</strong> — Flashing an SD card for the NVIDIA Jetson TX1 involves installing the operating system and other necessary files to prepare it for use with the Jetson module. Here are the general steps to flash the SD card for Jetson TX1:</p><p>Prerequisites:</p><p>SD card with sufficient capacity (at least 16 GB).</p><p>Download the Jetson TX1 SD Card Image: Visit the NVIDIA Jetson Download Center and download the appropriate JetPack version for the Jetson TX1. URL below:</p><p><a href="https://developer.nvidia.com/embedded/downloads#?tx=$product,jetson_tx1">Jetson Download Center</a></p><p>The JetPack package includes the SD card image. After the package is downloaded, the image should be in .iso format. Flash the SD card using Etcher and it should take about 10 minutes. You can download Balena Etcher from the link below:</p><p><a href="https://etcher.balena.io/">balenaEtcher - Flash OS images to SD cards &amp; USB drives</a></p><p>Once the flashing is done, insert the SD card in the Jetson TX1.</p><p>[This step is to basically giving the processing unit (in our case the TX1) an operating system. This OS includes all the necessary system files, libraries, and drivers to run the Jetson hardware and provide a platform for running applications. Think of it as installing Windows on your Mac! <em>[Don’t do that]</em>]</p><p>Step 2:</p><p><strong>Setup the host computer to access Jetson TX1 headless</strong> — Develop an SSH connection over the same network through Ethernet. Connect the ethernet to the Jetson TX1 and connect your personal computer with the same network through WIFI.</p><p>Steps after Jetson is connected to a stable internet to set up an effective seamless SSH connection:</p><p>1. Identify the IP address for Jetson TX1 and the host computer and make it static so it is not needed to modify the SSH command every time a connection needs to be established.</p><p>2. Generate an SSH key pair on the host computer to share it with Jetson. Commands used:</p><p>a. SSH key generation —</p><pre>ssh-keygen -t rsa</pre><p>b. Copy ID from host computer to Jetson —</p><pre>ssh-copy-id username@JetsonTX1IP</pre><p>c. Test the SSH connection —</p><pre>ssh username@TX1IP</pre><p>d. If a password is asked disable password authentication and enforce key-based authentication in the SSH configuration file –</p><p>i. OpenSSH (most Linux distributions):</p><pre>sudo nano /etc/ssh/sshd_config</pre><p><em>(or any other text editor like vim)</em></p><p>ii. Locate the line that starts with PasswordAuthentication. If the line is commented out (prefixed with #), remove the # to uncomment it. It should look like this:</p><pre>PasswordAuthentication yes</pre><p>iii. Change the value of PasswordAuthentication to no</p><pre>PasswordAuthentication no</pre><p><em>[If the line is not present, it can be added]</em></p><p>iv. Save the changes based on the editor used; in nano it is ctrl+o</p><p>v. Restart the ssh —</p><pre>sudo systemctl restart ssh</pre><p>e. Test by sending a file from TX1 to host to see if any password is asked — scp or rsync either can be used; using rsync :-</p><pre>/path/to/rsync -r &quot;/path/to/the/file&quot; hostusername@hostIP:&quot;path/to/the/destination/folder&quot;</pre><p><em>[Note: Entire path is necessary for any command line tool used]</em></p><p>Step 3:</p><p><strong>Start OpenCV code remotely on the Jetson TX1 from host computer: </strong>The above is only test whether SSH connection is working seamlessly. The same has been replicated in a separate piece of code where the SSH connection is generated using the “paramiko” library. Code is in repository.</p><p><strong><em>[Note: Video streaming cannot be started through SSH unless X11 forwarding is supported or while generating SSH connection, ssh -X was used but in my case it still did not work (I don’t exactly know why so if anyone knows please do let me know) so I commented out the “cv2.imshow()” and it executed properly and the files were saved according to the OpenCV code which was based on timestamps.]</em></strong></p><p>Step 4:</p><p><strong>Setup a cron job to schedule file transfer after a specified interval: </strong>Cron is a time-based job scheduler in Unix-like operating systems, and it allows you to schedule and automate tasks at specific intervals. Steps to set it up:</p><ol><li>In the Ubuntu terminal of TX1 open crontab</li></ol><pre>crontab -e</pre><p><strong>2.</strong> Define the cronjob for eg in my case it looked something like this:</p><pre>1 * * * * /usr/bin/rsync - r &quot;/path/of/the/videos/&quot;hostname@hostIP:&quot;/path/to/destination&quot;</pre><p>Here 1 represents at an interval of 1 hour.</p><p><a href="https://crontab.guru/">Crontab.guru - The cron schedule expression generator</a></p><p><em>Please refer to the website above for a better understanding on how to write cron job expressions.</em></p><p><strong>3.</strong> Save and exit.</p><p><strong>4.</strong> Verify the cronjob — In the terminal execute the command and see if the changes were made.</p><pre>crontab -l</pre><p><strong>Key points to remember:</strong></p><p>1. Update pip and install all dependencies. Update python and make sure to mention the entire path to python of the latest version.</p><p>2. Generating key multiple times when once the SSH connection is not established creates overwriting of keys which can cause problem in the systems to identify the right key. It is important to remove the previous keys first and then create a new one to pair. It can be done using these command lines in order:</p><pre>cd ~/.ssh/</pre><pre>ls</pre><pre>rm id_rsa id_rsa.pub</pre><p>[<em>replace id_rsa with the name of your keys</em>]</p><p>Additionally, I believe you can also use:</p><pre>rm -f ~/.ssh/known_hosts</pre><p>This removes all the known hosts you would have in the known_hosts you file created before.</p><p>3. If there are lot of issues that are being encountered because of package dependencies or missing packages or packages not being located, use command</p><pre>sudo apt autoremove</pre><p>to remove all package and their dependencies and download again. Best to use everything through a virtual environment.</p><p>4. If there is an error that goes along the line “****** is in use” or some package not being able to be accessed because it is used by another tool, disable the auto update on the Ubuntu system, kill all the running processes and try again.</p><p>Note: Please refer to my repository here for the extended Python scripts on GitHub for this particular project. The link is below:</p><p><a href="https://github.com/PaulThe4/TX1HeadlessSetupWithUSBCamera.git">GitHub - PaulThe4/TX1HeadlessSetupWithUSBCamera: Remote access of TX1 server through headless setup using SSH</a></p><p><em>[P.S. If there is any other issue encountered or any modification that should be made in the document, please let me know so I can update this document for future reference purposes. Also, unfortunately I do not have any real time pictures to share to understand the set up even better. I would be exhausted enough from incessantly trying to figure out things to hone my photography skills. I beg your pardon!]</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa5e043722b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>