TEXT 43
Installing Davinci Resolve on Linux By pagetelegram on 4th January 2023 05:50:01 AM
  1. How to Install Davinci Resolve (and Studio) on Linux [examples here have worked for my Debian distribution instances and on older system hardware and NVidia GPU.]
  2.  
  3. Description:
  4. Davinci Resolve requires the latest NVidia's drivers to operate. Linux comes with open source drivers for Nvidia GPUs that are not supported by Davinci Resolve. You will need to not only uninstall the open source Nvidia drivers but to also blacklist Linux from reinstalling them. Then you will need to boot in console as root or superuser from sudo account to install the Nvidia drivers. Before that you want to make sure you have what is required to recompile your Linux kernel with the dev and headers. The NVidia driver installer will compile it's video driver into your Linux kernel/ Then you can run the Davinci Resolve installer after a reboot.
  5.  
  6. Caution & Consideration:
  7. Upgrading kernel to the latest version after setup will overwrite the Nvidia drivers and render your system being stuck in a login loop trying and failing to load Xwindows (your GUI environment.) If this happens you will want to reboot and type 'E' for edit when Grub loads; then you want to add '3' to the end of the Linux header boot image argument as run level 3. This will temporarily give you console mode only so you can go ahead and recompile the latest NVidia driver for your new Linux kernel version as root or superuser.
  8.  
  9. Also when purchasing the Studio version, I have preferred the dongle over the serial number. If for example your serial number leaks out then you risk on losing your ability to run Studio version. Using a dongle ensures you have access so long as you have your USB dongle handy for the Studio version. All things serial number abuse aside: it is more convenient to not have to enter a serial number every time you install Davinci Resolve on a system. If you go the Dongle route, save the packaging that your Davinci Resolve software came in: you will need this has it contains the serial number that you need to include in download requests for newer versions of Davinci Resolve Studio from the BlackMagic main website, download request area.
  10.  
  11. System specifications:
  12. Make sure your system processors have at least 4 cores and with SSE4.1 support or newer. I run a 12 year old Xeon 6 core unit with 12 threads, 32gb of system memory and a 1050ti NVidia GPU with 4gb of memory; I am able to render high quality 1080p content with near real time preview off my timelines also with smooth scrubbing (including timelines embedded.) You want at least 1000 CUDAs in your GPU.
  13.  
  14. Steps [still may need some corrections; feedback is welcome]:
  15.  
  16. 1. If you have a NVidia GPU, Download NVidia driver from (choose production branch):
  17. https://www.nvidia.com/en-us/drivers/unix/
  18.  
  19. 2. Download your preferred version of Davinci Resolve (or Studio if you have license or dongle) at:
  20. [Free & Studio $$$]: https://www.blackmagicdesign.com/products/davinciresolve
  21.  
  22. 3. Now that you have the proprietary packages you need downloaded, mostly everything else is done in console mode before installing Davinci Resolve. Reboot your system and when grub comes up, hit "E' to edit grub boot specifications. Navigate to where the Linux img is loaded and at the very end of that line, add a space and the number 3 for run level 3 (console mode.) This option does not save to grub so it is ideal for one time use. Hit [F-10] key to save per boot instance and boot to console.
  23.  
  24. 4. Making sure you have root user as some Debian like distros such as Ubuntu do not have a root user as default.
  25. Skip this step if you already have a root user active and know it.
  26. sudo passwd root
  27. [set a strong password for root]
  28. then
  29. su
  30. [enter root password]
  31.  
  32. 5. Make sure you are root or superuser:
  33. su
  34. [enter root password]
  35.  
  36. 6. Install necessary kernel dev and header packages so that the NVidia installer has what it needs to recompile its driver in the system kernel.
  37. sudo apt install linux-headers-$(uname -r) build-essential
  38.  
  39. 7. Blacklist Nouveau nvidia driver:
  40. bash -c "echo blacklist nouveau > /etc/modprobe.d/blacklist-nvidia-nouveau.conf" && bash -c "echo options nouveau modeset=0 >> /etc/modprobe.d/blacklist-nvidia-nouveau.conf"
  41.  
  42. 8. Uninstall Nouveau nvidia driver:
  43. apt purge nouveau
  44.  
  45. 9. Update the kernel:
  46. update-initramfs -u
  47.  
  48. 10. Reboot back to grub pressing 'e' to edit and one last time add ' 3' to the end of where the linux img is loaded.
  49.  
  50. 11. Go to where you downloaded the NVidia installer, ie where [$USER] is the user whence you downloaded the driver:
  51. cd /home/$USER/downloads/
  52.  
  53. 12. Type './NVid' then press [TAB] key to auto-complete and press [ENTER] key.
  54.  
  55. 13. Let the installer run. If successful then reboot normally. Log in your system.
  56.  
  57. 14. Insert USB key dongle (or have your serial number handy) and open a terminal window, go to where you downloaded Davinci Resolve and type:
  58. DaVinci [TAB] and add '--install' and press enter. Input your sudo password when prompted during the install. [sic: I have to double check actual installer name]
  59.  
  60. How to run Davinci Resolve:
  61. Open a run dialogue or run a terminal and enter:
  62. /opt/resolve/bin/resolve
  63.  
  64. Handy scripts to have:
  65.  
  66. The free version of Davinci Resolve and Studio versions on Linux do not yet decode AAC audio from MP4 h264 codec files. I have a modified script I use to batch convert media files of a specific container extension to a format that Davinci Resolve likes:
  67.  
  68. Create 'bmdr' and paste code between "Start" and "End" markers below:
  69. nano ./bmdr
  70.  
  71. ************* Start ****************
  72.  
  73. #!/bin/bash
  74.  
  75. # usage: bmdr [extension]
  76. # Hashed together by Jason Page of Page Telegram with original script from Oliyan of Telegram shared as public domain.
  77. # This script converts using ffmpeg all files of a specific extension in
  78. # a folder to native video format for BlackMagic's Davinci Resolve in Linux.
  79.  
  80. # Do the conversion and put converted files sub folder 'transcoded'
  81. mkdir transcoded; for i in *.$1; do ffmpeg -i "$i" -vcodec mjpeg -q:v 2 -acodec pcm_s16be -q:a 0 -f mov "transcoded/${i%.*}.mov"; done
  82.  
  83. cd transcoded
  84.  
  85. # Remove spaces in these file names
  86. sed 's/^/file './ /' files.txt
  87. sed -e 's/$/'/' -i files.txt
  88. # Clean up
  89. rm ./files.txt
  90.  
  91. ************* End ****************
  92.  
  93. You want to make this script executable and somewhere in global system path. For example:
  94.  
  95. chmod +x ./bmdr
  96. sudo cp ./bmdr /usr/bin
  97.  
  98. Then you can run this script from anywhere within your bash shell. If you get errors related to missing components, make sure you have ffmpeg installed, ie:
  99. sudo apt install ffmpeg

Bin is for source code and general debugging text.

Login or Register to edit, delete and keep track of your pastes and more.

This bin is created for anyone to paste text related to anything of public interest or letters to public officials. Anything else posted that is not a public interest matter may be deleted. If you would like such letter to be faxed to Congress, please refer to services offered at pagetelegram.com
Raw Paste

Login or Register to edit or fork this paste. It's free.

.guestmsg{display:none!important;}