Qengineering / Jetson-Nano-Ubuntu-20-image

Jetson Nano with Ubuntu 20.04 image
https://qengineering.eu/install-ubuntu-20.04-on-jetson-nano.html
BSD 3-Clause "New" or "Revised" License
702 stars 74 forks source link

Can we get an Headless image? #88

Closed KalanaRatnayake closed 4 months ago

KalanaRatnayake commented 4 months ago

Hey all!

Thanks for your hard-work on Jetson Nano related stuff.

I have started working with your bare image for setting up a Jetson Nano we have at the lab for robotic applications (hoping to run ROS2 applications). I was setting it up and when looking at htop/jtop it shows around a usage between 1GB - 2GB RAM usage.

Screenshot from 2024-05-15 05-07-46

Above image is an newly setup nano today and it has a usage of about 1.5GB usage.

I tired to go headless (As I heard GNOME takes about 800MB), disabling the desktop and temporarily and permanently (had to re-flash the SD card after this) but didn't manage to reach the tty terminal. Wanted to try to free up more usable ram (I usually do Ubuntu server on Raspberry pi)

Are there Ubuntu server images pre-setup like this for jetson nano? Or any other way to achieve this.

Sorry if I am asking to drive a car without wheels.

Qengineering commented 4 months ago

Here are the instructions.

sudo chown root:root / /lib
sudo apt purge ubuntu-desktop -y && sudo apt autoremove -y && sudo apt autoclean
sudo apt-get remove nautilus nautilus-* gnome-power-manager gnome-screensaver gnome-termina* gnome-pane* 
sudo apt-get remove gnome-applet* gnome-bluetooth gnome-desktop* gnome-sessio* gnome-user* gnome-shell-common
sudo apt-get remove zeitgeist-core libzeitgeist* gnome-control-center gnome-screenshot && sudo apt-get autoremove
sudo apt-get remove --purge libreoffice*
sudo apt-get remove libreoffice-core
sudo apt-get remove snapd lightdm cups chromium*

You end up with a headless OS consuming ~ 420 MB. Below is a screen dump of Putty connected to the Jetson Nano running jtop.

image

Remember. Login: jetson Password: jetson

KalanaRatnayake commented 4 months ago

Thank you and much appreciated. Hope to test this tomorrow and will leave an update.

KalanaRatnayake commented 4 months ago

Hey All,

Ran some test on various combinations that we can use ROS on Jetson Nano using this Ubuntu image. you can find details here https://github.com/AIResearchLab/JetsonNano-ROS2.

Keep up the good work and Thanks

Qengineering commented 4 months ago

Thanks for all the work. I've made a link to your repo in the README.md. https://github.com/Qengineering/Jetson-Nano-Ubuntu-20-image/tree/main#ros