Ubuntu 22.04 and NVIDIA graphics cards

77 views
Skip to first unread message

James H Phelan

unread,
Aug 9, 2024, 1:29:13 PM8/9/24
to HomeBrew Robotics Club, Kim Bonassin

Team,

Have a young friend shopping for a gaming computer but he's also interested in robotics an AI.

Is there any trick to getting Ubuntu (particularly 22.04 Jammy) to work with an NVIDIA graphics card?

What about ROS2?

Specific suggestions?

I've asked for the specs on the one he has in mind and will share when I get them.

As always appreciate your collective wisdom!

RoverDoc

-- 
James H Phelan
"Nihil est sine ratione cur potius sit quam non sit"
Leibniz

William Henning

unread,
Aug 9, 2024, 1:55:15 PM8/9/24
to hbrob...@googlegroups.com, Kim Bonassin
google for gt210 ubuntu drivers (or whichever model you have)

add the appropriate repo

install the appropriate propriatory driver, for gt210 it was nvidia 370

the nuveau waylad drivers suck for older nvidiz gpu's

--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hbrobotics+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hbrobotics/85037901-3f1a-473a-9954-df062c88612f%40hal-pc.org.

Chris Albertson

unread,
Aug 9, 2024, 1:55:26 PM8/9/24
to hbrob...@googlegroups.com, Kim Bonassin
Not much of a trick.  During the installation process, you are asked if you want to install “third party drivers”.  Answer “yes”.  This lets the GUI use the Nvidia GPU

Later go to the Nvidia website and get the latest CUDA drivers for stuff like AI, TensorFlow and numpy.

As for which Nvidia GPU card to buy. — The amount of VRAM really matters if the goal is to run LLMs locally.  8GB is very minimal 16 or 24 is best if you can afford it.  But for running non-LLM-based AI such as object recognition or behavior cloning, those models are tiny by today's standards and 8GB is why more than enough


Marco Walther

unread,
Aug 9, 2024, 1:55:40 PM8/9/24
to hbrob...@googlegroups.com, Kim Bonassin
On 8/9/24 10:29, 'James H Phelan' via HomeBrew Robotics Club wrote:
> Team,
>
> Have a young friend shopping for a gaming computer but he's also
> interested in robotics an AI.
>
> Is there any trick to getting Ubuntu (particularly 22.04 Jammy) to work
> with an NVIDIA graphics card?

Works fine with my NVIDIA RTX 2000 Ada;-) (Thinkpad P16 Gen2) Ubuntu
re-publishes the Nvidia drivers (sometimes with some lag). So, it should
be well integrated.

>
> What about ROS2?

ROS2 @ Ubuntu 22.04 works fine. Adding the GPU-use might require
additional work. That really depends on which packages he wants to use
with the GPU.

>
> Specific suggestions?

Don't expect good battery life;-) Especially when you try to push the
GPU/CPU mine would be more of a 'portable'. You can move between power
plugs;-) With moderate CPU-load, I get maybe 3-4h out of it, both
pushed, I would expect < 1h.

Good luck;-)
-- Marco

>
> I've asked for the specs on the one he has in mind and will share when I
> get them.
>
> As always appreciate your collective wisdom!
>
> RoverDoc
>
> --
> James H Phelan
> "Nihil est sine ratione cur potius sit quam non sit"
> Leibniz
>
> --
> You received this message because you are subscribed to the Google
> Groups "HomeBrew Robotics Club" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to hbrobotics+...@googlegroups.com
> <mailto:hbrobotics+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/hbrobotics/85037901-3f1a-473a-9954-df062c88612f%40hal-pc.org <https://groups.google.com/d/msgid/hbrobotics/85037901-3f1a-473a-9954-df062c88612f%40hal-pc.org?utm_medium=email&utm_source=footer>.

James H Phelan

unread,
Aug 9, 2024, 4:50:26 PM8/9/24
to hbrob...@googlegroups.com

William,

Thanks!

The lookup worked for my old Dell Inspiron 17 with GeForce GT 750M which driver appears to be installed.

RoverDoc

James H Phelan
"Nihil est sine ratione cur potius sit quam non sit"
Leibniz

Chris Albertson

unread,
Aug 9, 2024, 5:26:46 PM8/9/24
to hbrob...@googlegroups.com


On Aug 9, 2024, at 1:50 PM, 'James H Phelan' via HomeBrew Robotics Club <hbrob...@googlegroups.com> wrote:

William,

Thanks!

The lookup worked for my old Dell Inspiron 17 with GeForce GT 750M which driver appears to be installed.

The hard part happens as soon as you want to run someone else’s code.   Maybe the software uses some version of Tensorflow and you have some other version and the two TensorFlows require different driver versions.  But some driver versions require certain hardware revisions.   It is not hard to get into a dependency problem where one package can not be updated but you need to update to run something else.  Everyone who has done much Python programming has been through this.   Hence the invention of Python virtual environments


James H Phelan

unread,
Aug 9, 2024, 5:41:28 PM8/9/24
to hbrob...@googlegroups.com, Kim Bonassin

Team,

This is the system my young friend is looking at:

IPASON Gaming PC Desktop Ryzen7 5700X3D (8 Core up to 4.1GHz) ,NVIDIA RTX 4060 Ti, 1TB NVME SSD, 32GB DDR4 RAM , 650 PSU , Windows 11 Home 64-bit

https://www.newegg.com/p/3D5-001U-001H2

James H Phelan
"Nihil est sine ratione cur potius sit quam non sit"
Leibniz
--

Chris Albertson

unread,
Aug 9, 2024, 7:13:08 PM8/9/24
to hbrob...@googlegroups.com, Kim Bonassin
It comes with Windows 11 but he can either dual-boot to Linux or run Linux in a VM for most robotics and AI work.  With 32GB RAM, he would have no trouble at all with Linux in a VM.   The GPU is fast and 8GB VRAM is enough for exploring AI and software development.

People here wewre posting about very old and entry-level GPS and I had doubts.  NBut the RTX4060 Ti is modern and a good value and capble of runing reduced sized LLMs locally at close to real-time speed.


Message has been deleted

Sergei Grichine

unread,
Aug 9, 2024, 10:31:18 PM8/9/24
to hbrob...@googlegroups.com
Have a second SSD and put Ubuntu there, in dual-boot configuration. It will save you the hassle of re-partitioning the original Windows 11 drive. Choose a boot drive directly from UEFI/BIOS Boot menu, if you don't want  to mess with GRUB. Works for me well.

On Fri, Aug 9, 2024 at 6:49 PM A J <aj48...@gmail.com> wrote:
As long Ubuntu version can support Nvidia 550 drivers it should work.


--
You received this message because you are subscribed to the Google Groups "HomeBrew Robotics Club" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hbrobotics+...@googlegroups.com.


--
Best Regards,
-- Sergei

andy

unread,
Aug 10, 2024, 12:14:52 AM8/10/24
to hbrob...@googlegroups.com
I also use the ssd trick, the 250 gb storage will handle most projects.

Have used the VM ROS1 and understand that Windows has some type
of Linux kernel.

Nvidia may have docker or vm for hardware accelerated graphics for ROS2.



You received this message because you are subscribed to a topic in the Google Groups "HomeBrew Robotics Club" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/hbrobotics/TPPWOz7TLVM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to hbrobotics+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hbrobotics/CA%2BKVXVOitVh6sMx%2BWcQcejzy%2BgfCvdBi6RYB_iN%2BECfeg3EJnQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages