I broke the law: Installed Davinci Resolve 18.6 on Debian 12!

This is a continuation of my previous topic for @Skywalker71.

Now I show how I installed Davinci Resolve 18.6 on my Debian system, but intentionally don’t give a step-by-step instruction.

First a Debian system needs to be installed of course, I assume this is done already.
Davinci can be downloaded from here, it is a .run file.

From here you can grab the newest, just like any older version. I tell about the version 18.6, that’s proven to work.
Make sure to download the free version, unless you have a licence for the studio.

For my comfort, I transform the official installer into a .deb file for that I use the makeresolvedeb script from Daniel Tufvesson.

How to use it, it’s there on that site. Not a rocket-science.
(You may need to install some dependencies for the script before it can work.)
After that installing Davinci Resolve is as easy as dpkg -i davinci.deb or the like, you’ll see.

Congrats, Davinci Resolve is installed! :smiley:
But it doesn’t work yet, as the OpenCL “dialect” it speaks is not “understood” by Debian :thinking:

I ask die-hard Debian lovers and maybe developers now to look the other way, because the Debian wiki says: Don’t break Debian!

And this is exactly, what I did in order to use Davinci on Debian 12 with the Radeon card.
(Subtitle may be: “Don’t try this at home!” :rofl: )

So Davinci requires an OpenCL dialect, which Debian 12 cannot talk using mesa_opencl, as it still does not cope with the Navi23 cards, which family my RX6600XT belongs to.
So what I did was to bring a FrankenDebian alive :slight_smile:

My general advice is that before installing anything, it is wise to take a system snapshot.
So when things go wrong, it can be restored in 5 minutes, and show can go on.
Taking a system snapshot is especially a good idea before dangerous installations, and installing AMDGPU OpenCL drivers is really something like that :slight_smile:
For that purpose I use Systemback, but Timeshift could be used too.

I made quite a few iterations on what and how to install, the first attempt was to install rocm 5.7.2
as this was reported to work on Pop OS.

After multiple trial and error I found that the 5.7.3 version works in my case.
For that grab the amd_gpu_install package:

https://repo.radeon.com/amdgpu-install/5.7.3/ubuntu/jammy/

Install it, that just places a script basically.

(Remember what Dabian wiki says: installing software from random websites is a bad habit .

I broke the law…

Execute the installer script that package brought using these pramateters:
sudo amdgpu-install --usecase=opencl --no-dkms

Remember what Dabian wiki says:
Don’t use GPU manufacturer install scripts
ooops I did it again…

But the script will fail, because there are some dependencies, and in lack of those packages the install fails.
These are:

  • libpython3.10_3.10.4-3_amd64.deb
  • libmpdec3_2.5.1-2build2_amd64.deb
  • libpython3.10-minimal_3.10.4-3_amd64.deb
  • libpython3.10-stdlib_3.10.4-3
  • amd64.deb python3.10_3.10.4-3_amd64.deb
  • python3.10-minimal_3.10.4-3_amd64.deb

(Now I just hope I did not forget something…)

You need to grab these, and install on Debian.
Remeber Debian wiki: * Ubuntu, Mint or other derivative repositories are not compatible with Debian!

I’m really a bad guy now. But after all, it works.

You can hunt for those packages on Launchpad, for example:

After you have these dependencies installed, the amd install script finishes succesfully.
Passing the parameters to the script I showed you, causes a minimal impact on install size, and gets only what’s important for Davinci. (My very first attempt drew in more than 20GB of packages, basically doubling the size of my installation… I save you this trouble :grin: )

I have a “home repository” in which I collected packages I install onto our computers, such as Zoom, Discord, etc… I have my version of Davinci in that repository, so I just install it via
apt install davinci-resolve
also have those dependencies collected, so the install script does not fail, just installs those deps when necessary.

This is how I got DR on Debian working - sure I made some ugly deeds, but noone can deny it works:

4 Likes

Brilliant. There are a lot of steps and some knowledge needs to be acquired.
Debian is indeed a “Universal Operating System” in the sense that it can be used to build anything, even if you have to bend its rules a bit.

Congratulations Laszlo.

4 Likes

Thank you @nevj !

And I forgot to mention the user running Davinci needs to be a member of groups “render” and “video”, otherwise OpenCL doesn’t work as expected.

But that would have come out when everything is installed succesfully, Davinci still reports “unsupported gpu processing mode” or similar…
:wink:

3 Likes

Why does it break the law. Is it an unregistered copy without license

Promise not to tell

I do the same occasionally

4 Likes

I was just kidding :slight_smile:
I did the opposite that Debian wiki suggests, even worse I did it 3 times :slight_smile:

4 Likes

Just love you brother (and I am not gay :joy::joy::joy:). Anyway, I am honoured that you have done it in response of my need. As I was having trouble on installing Debian from the Live USB, I have made downloaded the unofficial non-free DVD image and burned it onto a DVD. I totally forgot that I have an external DVD writer and a bunch of blank DVDs. So, I used one of them and voila!!! Right now, I am installing Debian 12 and it has just finished. :heart_eyes: But, now I think, I may have found the cause of that ‘Disk Descriptor Error’. May be it was caused by my WiFi adapter which was connected at the time of each installation. May be it was drawing more power than it should and the Live USB was not getting the power those distros were expecting. Fedora may bypassed it, but for others, including Debian, they may expected more power for the Live USB which might help the USB drive to make them understand its presence. I am not sure but I will give it a try for one last time.

As for @kovacslt, be prepared for bombardment of questions. :joy::joy::joy::heart:

3 Likes

You are most welcome! :smiley:

Oh, and I immediately assumed you mean that love in the christian way :wink:

3 Likes

I am wayyyyy above any religion. :joy::joy::rofl::rofl::wink:
I will come back later with a bunch of questions.:wink:

Eager to read those :wink:

2 Likes

I broke it too! Installed in on Pop…under ur guidance!!

2 Likes

Still ill suggest u to try Pop…Itll allow u to get perfect working drivers.

2 Likes

I am at experimental phase, so I think I should take a look at it. :slightly_smiling_face:

1 Like

I am back and with some questions as promised.:smile:

First report.
As Debian was successfully installed, I thought why shouldn’t I try Mint? That also based on Debian at core because Ubuntu, on which it was made, based on Debian. This time I use Ventoy Live USB and plug out the WiFi adapter and my doubt has been proven. The infamous ‘Disk Descriptor Error’ was occurred due to that device. This time I first tested Debian-unofficial-11.x-non-free Live version and it booted without any error. I did not install it though. Then I start to install Linux Mint, with a YouTube tutorial running on my mobile.
Now, came the problem. The SSD I am using for Linux is 500GB drive. So, earlier I partitioned it into two halves, 200GB and 300GB, using Windows Disk Management tool, which actually came down to 214.xGB and 285.4GB. In the 214GB, I am experimenting with Linux and the 285.4GB has NTFS. Now Debian and Fedora, gave me no trouble on selecting the partition. But AVLinux and Mint are not so advanced. They are following the old traditional method of partitioning which is quite dangerous for me like novice. But, assuming something may go wrong, I did not put any important file in the NTFS partition. So, I clicked on ‘Something else’ in the partitioning page and started partitioning, without knowing anything about partitioning in Linux, of course. :roll_eyes: Then after watching some YouTube videos and after some trial and error, I got it figured out. But, here, some question came to my mind. In a video, it was shown that I have to make an ‘EFI partition’, a ‘Swap partition’, a ‘Home partition’ and last a ‘Root partition’. But when I did that after creating the ‘Home partition’ the rest of the SSD space showed as ‘UNUSABLE’ and I could not create a ‘ROOT’ partition. But after some trial and error and with the help of another video, when I created, first the ‘EFI’ partition, 2nd a ‘SWAP’ partition and then the rest of the free space as the ‘Root’ ( / ) then the install went smoothly. The question is WHY?!

To make this clear:
When I talk about “Debian” I mean Debian stable.
Ubuntu draws from Debian testing, which is not the stable branch.

We aren’t oracles of Delphi, so we just guess the answer lies somewhere in

What video, what help?
For investigating partitioning questions/problems I’d ask for output of
sudo parted -l
But in this case the problem seems to be solved, so who knows what was the problem?

2 Likes

You dont have to have a separate /home partition, and if you are just experimenting it is easier not to make one.
Why? Installers can be quite confusing… especially the partitioning step.
Installers also sometimes make assumptions that result in mistakes.
It is worth learning to use a gparted DVD to do the partitioning BEFORE you install.
Then you only need to do a mount of ‘/’ during the install at the partitioning step.
I like to limit what the installer does, because they can be unreliable.

4 Likes

Yes. It seems very surprising that the two YouTube videos I mainly concentrated because of simple way of showing, one is on Mint 21 and another is on Mint 22. In the Mint 21 video, all four partitions were successfully made and no space was marked as USELESS. First I followed that video and ended up with that USELESS partition. But in the Mint 22 video, only three partitions were made with no HOME partition and when I followed that, the installation went smoothly. It is very surprising that with a version change the installation procedure also has been changed which is quite problematic and supports your pount, "installers can be unreliable”. And another thing, I installed Mint by deleting the previous installation of Debian 12 which I installed using the ‘Replace partition’ option. I just selected which partition I want to replace and it did the rest on its own. But, when I went for the manual partitioning in Mint, it showed all the partitions in the disk and very surprisingly, there were only two partitions created by the Debian installer - ‘EFI’ and ‘ROOT’. No ‘Home’ or ‘Swap’ partition. Don’t all Linux distros follow a basic rule regarding partitioning? If not, then it will be a really difficult thing to guess which distro follows which rule. There should be an universal rule on some basic functions.

Debian auto installer is superbly easy. In fact it is the most easy installer in my experience. Is there any ‘Driver Manager’ like Mint has? It would be very much convenient. Today I am going back to Debian as it seems, Fedora is not very capable of handling legacy Nvidia driver. I am not obsessed with any distro. I just need a distro which will be stable, easy to use, supports most of the drivers, not dependent on one developer and has a vast community to help so that I wouldn’t need to change it afterwards. I am not a distro hopping person. I just need to replace Windows and the applications I use in it, that’s all and I need to learn a lot from all of you, specially from you, @kovacslt as your professional life, as you have stated, is just a mirror of my professional life. I don’t know, whether our personal life is also a mirror or not but it seems I got my mirror image across the globe, at least by profession. May be we were siblings in another life. Who knows? :blush::hugs::heart:

1 Like

Ok, I portray now the fortune teller :grin:
You have a legacy, MBR partition scheme on that disk, It is impossible to create more than 4 primary partions on it.
You need GPT partition scheme for that.
OR create an extended partition, in that you can create multiple logical partitions.
This is what I read from the coffee grounds :rofl:

4 Likes

You will be hopping until you find the One And Only distro, which you like the most.
For me it is Debian.
For you it may be something other.
While you are hopping, go get crossplatform alternatives! Install them on your Windows! Use them (or try to) every time you are not in a hurry!
The final switch over is going to be painless so, a rather a relief.

2 Likes

I think I have to start re-learning. This Windows b******t has made me forget everything I learned from MS-DOS era. That time we used FDISK to create Primary and Logical partitions. At that time, there was no GPT. We create 1 Primary partition and rest logical partitions. This is now added to the list of the reasons for which I want to leave Windows. :expressionless: