-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alternative docker solution with no vnc required (with NVIDIA driver) #1
Comments
Good Job. I notice that you use the unofficial docker image to start your docker. I am considering building a new docker image from the Nvidia image(in 2023, we don't have much time to build images based on official ones for different hardware platforms) to enhance students' experience on coding in docker and fully use your hardware. |
I tried it on windows. Though I can find the driver using nvidia-smi, there are still bugs when running rviz |
Follow up! This time I only followed some of the tutorials and it worked quite smoothly (Don't know why).
|
I wrote this issue in case someone needs it and is willing to f**k things up like me. In general, I am not using the docker image and method TA provided which is definitely not recommended by the teaching team. I personally still have doubts about the method below but it is the most rapid way for me to start my assignment, so I just go with it. I DO NOT TAKE ANY RESPONSIBILITY if the below method has problems and issues and affect others from submitting their assignment. So please think carefully before adopting the following method. You may reply to this issue if something went wrong, I will try my best to reply if I have time.
My machine setting:
I am using ubuntu 22.04 but should also work for windows and other ubuntu distribution.
Install Docker
Follow the guide bellow to install docker
https://docs.docker.com/engine/install/
Install Nvidia Container
Check whether your NVIDIA driver is setup properly.
You can follow the link below if it is not:
https://www.cyberciti.biz/faq/ubuntu-linux-install-nvidia-driver-latest-proprietary-driver/
Follow the guide bellow to install Nvidia-container
https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html
Docker run
Replace
<CONTAINER NAME>
(eg: elec5660-test)Replace
<WORKSPACE ON YOUR COMPUTER>
(eg: /home/name/elec5660/proj2phase1)Add ros setup.bash to .bashrc or source it for every terminal
Start rviz
should be able to start rviz normally now.
If you cannot connect to display, on your own computer terminal (not in docker), execute
xhost +
Install cmake
sudo apt install cmake
Project code management
In docker
(remember to source ros setup.bash)
should build successfully.
HAPPY CODING!
The text was updated successfully, but these errors were encountered: