I have a NVIDIA jetson TX1 board. I want to install caffe on that. Based on Caffe prerequisites I installed CUDA toolkit from https://developer.nvidia.com/cuda-downloads. Later I found that this board has its own installtion description. It needs 10GB space and I do not have it since I have given some to Caffe prerequisites installations.
Now I need to remove this CUDA toolkit completely.
I did not find a sure way till now. Can you please help me?
I am using ubunto 14.4.+ NVIDIA jetson TX1
If you installed CUDA 7.5 using the .run :
From the manual:
4.6. Uninstallation
To uninstall the CUDA Toolkit, run the uninstallation script provided in the bin directory of the toolkit. By
default, it is located in /usr/local/cuda-7.5/bin:
$ sudo /usr/local/cuda-7.5/bin/uninstall_cuda_7.5.pl
To uninstall the NVIDIA Driver, run nvidia-uninstall:
$ sudo /usr/bin/nvidia-uninstall
If you installed CUDA 7.5 using the .deb package:
$ sudo apt-get purge cuda-7.5
(I think the package name is cuda-7.5, if it does not work, try with cuda-7-5 or just cuda)
Try:
sudo apt-get --purge -y remove 'cuda*'
sudo apt-get --purge -y remove 'nvidia*'
sudo reboot
It removes any installed cuda and nvidia packages and then you can install any specific version that you like from:
https://developer.nvidia.com/cuda-toolkit-archive.
To add up on mhaghighat's answer.
You can do this.
sudo apt purge -y '*cuda*'
sudo apt purge -y '*cudnn*'
reboot
Since you only asked about removing cuda, I assume you dont need to reinstall nvidia, so no need to remove that. Beware purge is a powerful command, use it with caution.
Related
I download ROS Noetic but when I paste this line on Terminal, it can't found.
$ sudo apt-get install ros-indigo-ar-track-alvar
How can I solve this problem?
As I know, this package is avaliable for Noetic but I can't install it.
That command is trying to install the package for Indigo, not Noetic. Make sure your package names include the ROS distro you’re targeting.
sudo apt install ros-noetic-ar-track-alvar
Edit based on comment: It does appear there is a noetic build for this package, but it doesn't look like it's officially tracked on the ROS wiki. If it isn't supplied via apt you will need to build the package from source. The Noetic source can be found here on GitHub.
Some sites say OpenCV could be installed on RHEL from the system repository:
sudo yum install opencv opencv-devel opencv-python
I run RHEL UBI container redhat/ubi8 and tried to install OpenCV - package is not found.
Then I install EPEL repos from https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm, same result. The only opencv-related package is libfreenect-opencv.
I understand I could compile OpenCV from the scratch, but I'd like to go with already compiled package.
You need to enable CodeReady Linux Builder Repository on RHEL 8:
subscription-manager repos --enable codeready-builder-for-rhel-8-x86_64-rpms
I don't know why nvidia-smi doesn't work
what I need to do for fix it?
I think my library and driver version is match but nvidia-smi dosen't recognize it
test
I was facing same problem and I'm posting here my solution.
In my case NVRM version was 440.100 and driver version was 460.32.03. My driver was updated by sudo apt install caffe-cuda and I didn't notice that time but I checked it from /var/log/apt/history.log.
By following my NVRM version I just used sudo apt install nvidia-driver-440 but it installed 450.102, I don't know why it installed other version and nvidia-smi is showing 450.102.04.
Anyhow after rebooting my PC everything including cuda is working fine now.
I didn't remove/purge anything related to nvidia driver. Version 460.32.03 was uninstalled automatically by running sudo apt install nvidia-driver-440
For me, this solution from NVIDIA forums solved the issue.
Run sudo apt purge nvidia* libnvidia*
Then sudo apt install nvidia-driver-520
I tried following this guide to install ROS, but even after adding ROS source.list and its key
sudo apt install ros-melodic-desktop-full
gave error.
E: Unable to locate package ros-melodic-desktop-full
Then I ran this command
sudo apt search ros
to see if any such package exists. I couldn't find ros-melodic-desktop-full but I found another similar package ros-desktop-full.
So I installed it instead. The installation went smooth without giving any errors.
Next step in the guide is to set-up ROS environment variable, but I have no such directory
/opt/ros
So how do I setup the environment variable?
P.S.
I also installed some tools and dependencies with this command
sudo apt install python3-rosdep python3-rosinstall python3-rosinstall-generator python3-wstool build-essential
and initialized rosdep
sudo rosdep init
rosdep update
The ros-desktop-full package you installed is part of the official Ubuntu release.
ROS Melodic (and in the future, Noetic) is published by the OSRF in a separate repository (packages.ros.org). These packages install to /opt/ros/. However, some ROS packages have also been ported to Debian, which is how they found their way to Ubuntu (which derives from Debian).
The Debian packages are fully functional, but they do not install to /opt/ros. Instead, everything is integrated in the operating system itself. This means that you need to set up your personal workspace slightly differently.
Given that most tutorials assume that you use the OSRF packages, I suggest you either wait for the Noetic release (scheduled for the end of May 2020), then install ros-noetic-desktop-full, or downgrade to Ubuntu 18.04 LTS to use ROS Melodic.
From the documentation here, melodic is only supported on Ubuntu 18.04. The ROS version targeting Focal (20.04) is Noetic, but that one has not been released yet (see Distributions). I'm not sure what ROS version Ubuntu packages (the ros-desktop-full one you installed), but I was not successful in using it.
If you really do want to use Ubuntu 20.04, then I think your best option currently is to compile from source. Last time I checked the precompiled debs for Noetic are not yet available at http://packages.ros.org/ros/ubuntu (you can track release progress at github issue 21513). No idea if compiling Noetic from source is easy or hard, but I was able to compile ROS2 foxy from source without too much trouble though.
Our new website in Joomla 3 needs at least PHP v5.3 to run the Akeeba Next Generation Installer. Any my server is running a PHP 5.2. I have tried adding the line
AddHandler application/x-httpd-php53 .php
on my .htaccess but instead it downloads the index.php file.. Hosting provided is Doteasy. How do we go upgrading the PHP?
Any help would be much appreciated. THanks.
This isn't going to work. You'll need to have php installed to the version. Do you have SSH access to the server? if you do what platform is it? Most web servers run on Linux and if that's the case you'll need to upgrade php on the linux server. On Windows you'll need to
uninstall and install php to the latest.
a,
if it is centos or fedora, you need to have the correct repo enabled and you need to issue
To install, first you must add the Webtatic EL yum repository information corresponding to your CentOS/RHEL version to yum:
CentOS/RHEL 7.x:
rpm -Uvh https://mirror.webtatic.com/yum/el7/epel-release.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
CentOS/RHEL 6.x:
rpm -Uvh https://mirror.webtatic.com/yum/el6/latest.rpm
CentOS/RHEL 5.x:
rpm -Uvh https://mirror.webtatic.com/yum/el5/latest.rpm
Now you can install php by doing:
yum install php54w
If you would like to upgrade php to this version it is recommended that you check that your system will support the upgrade, e.g. making sure any CPanel-like software can run after the upgrade.
Unless you know what you are doing, it is risky upgrading an existing system. It’s much safer to do this by provisioning a separate server to perform the upgrade as a fresh install instead.
If you know what you are doing, you can upgrade PHP by:
yum install yum-plugin-replace
yum replace php-common --replace-with=php54w-common
It will likely give you a message “WARNING: Unable to resolve all providers …”. This is normal, and you can continue by tying “y“. You will be given a chance to see what packages will be installed and removed before again being given a chance to confirm.
or
if its a debian ubuntu linux dist you need to issue
*this will be the easiest option. For PHP 5.4.x run the command:*
sudo add-apt-repository ppa:ondrej/php5-oldstable
or for PHP 5.5.x run:
sudo add-apt-repository ppa:ondrej/php5
And then update your packages:
sudo apt-get update
sudo apt-get upgrade