Upgrading GLX to version 1.3 on Ubuntu 18.04 - linux

I have the following question: for the purpose of visualisation of some point clouds with GLFW library and Open3D, I would like to upgrade GLX to version 1.3 on Ubuntu 18.04. Having done some research on the Internet, I applied the most commonly advised solution:
sudo add-apt-repository ppa:xorg-edgers/ppa
sudo apt-get update
sudo apt-get upgrade
but to no avail - glxinfo | grep version still yields 1.2. Could it be driver-related? My graphics card is GeForce RTX 2070 and my driver is 460.32.03. I also seem to have the newest version of the Mesa library.
I am running out of ideas and will greatly appreciate any help!

Try to put
java -Dprism.order=sw -jar yourjar.jar
While executing it.

Related

Qt QML for Beaglebone Black

I am want to make a Qt Quick application with Python and use it on BeagleBone Black. I am using Debian on the board. As a newbie to the board I dont find article on internet very helpful to me. I will be really thankful for a easy and quick guide.
Thanks
I just made my QtQuick application run on a Beaglebone Black and AI. I've done it with C++, but probably my process helps you even though. I didn't cross compile, but I've built it on the Beaglebone itself. That was easier for me, since I had several issues with cross compiling.
update your BBB
1.1 sudo apt-get update
1.2 sudo apt-get upgrade
install x-window and GUI on BBB (https://aruljohn.com/blog/xwindow/)
2.1. apt-get install x-window-system
2.2 sudo apt-get install xfce4
install OpenGL (https://medium.com/geekculture/a-beginners-guide-to-setup-opengl-in-linux-debian-2bfe02ccd1e)
just follow these instructions. Installing GLFW befor the make i had to install:
sudo apt install libxinerama-dev
sudo apt install libxcursor-dev
sudo apt install libxi-dev
install your needed Qt libraries
4.1 apt-get install libqt5qml5 qml-module-qtquick-controls qt5-default qtdeclarative5-dev
if not yet done: sudo startx to start GUI desktop
optional: to test Qt and EGLFS (https://www.elinux.org/BeagleBoneBlack/SGX_%2B_Qt_EGLFS_%2B_Weston)
6.1 apt-get install qtquickcontrols5-examples
6.2 cd /usr/lib/arm-linux-gnueabihf/qt5/examples/quickcontrols/extras/dashboard
6.3 sudo qmake
6.4 sudo make
6.5 export QT_QPA_PLATFORM=eglfs
6.6 export QT_QPA_EGLFS_INTEGRATION=none
6.7 ./dashboard
Now you should see the dashboard opened on your screen.
send your Qt project to your BBB
7.1 sudo rsync -avz /home/sivo/desktop/Benchmark_Suite (or whatever your folder and project is called)
7.2 debian#192.168.178.129:/home/debian/Benchmark_Suite
7.3 qmake
7.4 make
7.5 ./Benchmark_Suite
That worked well for me. Hope for you as well. BTW: My Qt project was developed in Qt 5.15.
Good luck!

How to install CUDA 11.2 and cuDNN 8.1 on WSL2 for TensorFLow 2?

I am very much struggling to get NVIDIA's CUDA 11.2 and cuDNN 8.1 for TensorFlow 2 on my WSL2 machine.
I have followed their guide to install the latest CUDA 11.8 version and it works. The guide can be found here and is the standard guide recommended by NVIDIA.
Though, TF2 only supports certain CUDA/cuDNN combinations as shown here
Further, I have found the index of previously available WSL2 releases of CUDA and 11.2.0-1 is listed! You can see it for yourself here
Can anybody give me the commands to get CUDA 11.2 and cuDNN 8.1 on my WSL2 machine so that I can finally get back to coding in TensorFlow 2? I am thinking about something like this :
wget https://developer.download.nvidia.com/compute/cuda/repos/wsl-ubuntu/x86_64/cuda-wsl-ubuntu.pin
sudo mv cuda-wsl-ubuntu.pin /etc/apt/preferences.d/cuda-repository-pin-600
wget https://developer.download.nvidia.com/compute/cuda/11.8.0/local_installers/cuda-repo-wsl-ubuntu-11-8-local_11.8.0-1_amd64.deb
sudo dpkg -i cuda-repo-wsl-ubuntu-11-8-local_11.8.0-1_amd64.deb
sudo cp /var/cuda-repo-wsl-ubuntu-11-8-local/cuda-*-keyring.gpg /usr/share/keyrings/
sudo apt-get update
sudo apt-get -y install cuda
My specs :
OS : Windows 10 (WSL2 compatible 22H2 release, the latest one)
Processor : AMD Ryzen 7 5800H
RAM : 32GB
GPU : NVIDIA GeForce RTX 3070 Laptop GPU
WSL2 Distro : Ubuntu 20.04.5 LTS
I just read your question please follow.
Do you installed compatible Cuda versions with your target GPU device? Example: I use CuDa 11.6 and for the NVIDIA GeForce RTX 3070 Laptop GPU, 5120 compatible since 8.6, read from CuDA Nvidia GPU developer
Install Tensorflow then Tensorflow GPU, if it still does not recover your GPU you need to build it on your machine that is not a complex task but finding one existing on websites is a more convenient way Test build configuration
If you try to build it on Linux you need to install a compatibility version of Cuda and CuDNN Compatibility Matrix
Last I read this question multiple of times, you still can download target versions of CuDA archived CuDA and CuDNN archive link
That is because they question then screenshot added see TF2.11 and WSL2.0 related to my answers

Error: NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver

The NVIDIA-SMI is throwing this error:
NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA
driver. Make sure that the latest NVIDIA driver is installed and
running
I purged NVIDIA and installed it again following steps mentioned here.
My device specs are as follows:
Server with a Tesla M40
Running on Ubuntu 16.04
Kernel version Linux 4.4.0-116-generic x86_64
Driver: nvidia-384
Can someone please help in solving the error?
The issue might due to a confirmed "bug" in 4.4.0-116 patch. I ran into the same issue with nvidia-390. If you still want to use a newer version of Nvidia-driver, I followed the instructions here and managed to solve the problem. In general, use the following steps:
If you cannot login to the desktop and fall into to the fail-loop, press ctrl + alt + F1 to login into the command line mode.
Check if the version of gcc is outdated, if so, update it: gcc --version
If the gcc version is 5+, uninstall the nvidia driver first: sudo apt-get remove nvidia-390
Purge the 4.4.0-116 kernel: sudo apt-get purge linux-headers-4.4.0-116 linux-headers-4.4.0-116-generic linux-image-4.4.0-116-generic linux-image-extra-4.4.0-116-generic linux-signed-image-4.4.0-116-generic
Reinstall the kernel: sudo apt-get install linux-generic linux-signed-generic
Reinstall the nvidia-390: sudo apt-get install nvidia-390
Check if the problem is solved by modinfo nvidia-390 -k 4.4.0-116-generic | grep vermagic, make sure retpoline shows up this time
Reboot: sudo reboot
Hope this works for you and other people who run into the same issue. The post in the forum saved my weekend.
Note: this answer is from 2018 and works for Ubuntu 16.04, which is very much out-of-date. Don't try this on recent Ubuntu versions.
Try
Download the driver from here
sudo apt-get purge nvidia* - To remove your current installations
dpkg -i nvidia-diag-driver-local-repo-ubuntu1604_375.66-1_amd64.deb - installing what you downloaded earlier
sudo apt-get update
sudo apt-get install cuda-drivers
After this, go on and reboot your computer.
When it's up again, the nvidia-smi command should run smoothly
to download latest driver as of this answer:
sudo apt install libnvidia-compute-435 libnvidia-compute-435
sudo apt install libnvidia-gl-435 nvidia-dkms-435 nvidia-kernel-source-435
nvidia-utils-435 xserver-xorg-video-nvidia-435 libnvidia-ifr1-435
sudo apt install nvidia-driver-435
sudo reboot
and then:
nvidia-smi
If you're running this on Google Colab, just go to Runtime > Change Runtime Type > select GPU. That worked for me.

installing mpich2 always installs me mpich

I have mpif90 for MPICH version 3.0.4, but I want to remove it and install mpich2. There is a problem with the dislin library, so I need mpich2.
While on my debian distro sudo apt-get install mpich2 installs me mpif90 for MPICH2 version 1.4.1 (it is the right one I need), if I run (on Ubuntu where I already have MPICH version 3.0.4) sudo apt-get remove libmpich10 libmpich-dev and then sudo apt-get install mpich2 it still installs mpif90 for MPICH version 3.0.4
How can I do?
UPDATE 1
Thanks. But if I try to install it with dpkg -i mpich2_1.4.1-1ubuntu1_amd64.deb I first have to remove the previous version 3.0.4, because they are in conflict.
I remove it, I try to install the 1.4.1 but there are unsolved dependencies (libmpich2-3 -1.4.1 NOT INSTALLABLE, libcr0 NOT INSTALLED, libhwloc4, hwloc-nox). So as suggested I run apt-get -f install but it installs 3.0.4
On Debian it works fine, 64 bit, wheezy release. On Ubuntu 14.04, 64 bit, it doesn't work.
You are asking how you can downgrade vendor-packaged mpich-3.0.4 to mpich2-1.4.1
Debian and Ubuntu make upgrading really easy. Downgrading is a little tricky and might require pinning a package, rebuilding an old .deb for a newer platform, or you can just build MPICH2-1.4.1 from source.
Debian: https://packages.debian.org/wheezy/mpich2
Ubuntu: http://packages.ubuntu.com/precise/mpich2
Source: http://www.mpich.org/static/downloads/1.4.1/
A word of caution: if you ask anybody for help with MPICH2-1.4, the very first thing you are going to hear is "wow, that is 2 years old. can you try the latest version?"

Adobe Air native installer Linux - Dependency is not satisfiable

I created native installers for my air application successfully under MacOS and Windows.
With Ubuntu 10 I am able to create a .deb package, but when I launch it opens the Ubuntu software center showing error:
Dependency is not satisfiable: adobeair (>= 2.5.0.0)
I thought native installer should be able to download the proper adobe air version if available (2.5.1 seems available as deb package). If I install air for linux 2.5.1 from adobe website my application launches fine.
Did anyone experience the same issue?
Thanks in advance for any help
Paolo
Unfortunately, many years late "Adobe AIR for Linux is no longer supported." following what adobe page says. Using the "AIR archive" is possible to get unsupported versions, the 2.6.0 version is the most recent available. If you need to install a program that require a newer version of it, you might go to Virtual box with a Windows guest.
For version 2.6.0 the recommend steps for Ubuntu 16.10 are:
for 32bit machine
wget -O adobe-air_i386.deb http://drive.noobslab.com/data/apps/AdobeAir/adobeair_2.6.0.2_i386.deb
sudo dpkg -i adobe-air_i386.deb
sudo apt-get install -f && rm adobe-air_i386.deb
for 64bit machine
wget -O adobe-air_amd64.deb http://drive.noobslab.com/data/apps/AdobeAir/adobeair_2.6.0.2_amd64.deb
sudo dpkg -i adobe-air_amd64.deb
sudo apt-get install -f && rm adobe-air_amd64.deb
The recommend steps for Ubuntu 16.04/14.04/12.04/Linux Mint 18/17/13 (both extracted from here):
wget -O adobe-air.sh http://drive.noobslab.com/data/apps/AdobeAir/adobe-air.sh
chmod +x adobe-air.sh;sudo ./adobe-air.sh
What version of the adobeair package is available from the Ubuntu repositories?
A .deb is just an archive and the dependencies have to be available from the repositories the system is configured to use. It can't resolve the dependency by downloading it from some specific location you know of but the system is not configured to use.
If the needed version of the package is not available from the Ubuntu repositories then your only options are to reconfigure the system to use an additional repository that does have the needed dependency before you try to install your package, or download and manually install the dependency before you try to to install your package.
Try to install itdpkg -i --force-architecture adobeair.deb

Resources