diff --git a/davinci-resolve.mdwn b/davinci-resolve.mdwn new file mode 100644 index 0000000..639dbbe --- /dev/null +++ b/davinci-resolve.mdwn @@ -0,0 +1,91 @@ + + +1) Install rocky linux 8.6 + + +* upgrade to latest packages +``` +sudo dnf update +``` +* enable networking + +2) install amdgpu-pro + +* Remove nomodeset and rdblacklist=nouveau in grub config in /etc/default/grub and /boot/grub2/grubenv + +``` +sudo dnf install http://repo.radeon.com/amdgpu-install/6.3/rhel/8.10/amdgpu-install-6.3.60300-1.el8.noarch.rpm +sudo amdgpu-install --usecase=workstation --vulkan=pro --opencl=rocr +``` + +* Add user to video and render group: +``` +sudo usermod -a -G render +sudo usermod -a -G video +``` + +3) Install Davince Resolve Studio 19 + +* install xcb-util-cursor: +``` +sudo dnf install epel-release +sudo dnf install xcb-util-cursor +``` + +* download Davinci Resolve Studio 19 by going to [support center](https://www.blackmagicdesign.com/support/family/davinci-resolve-and-fusion), clicking the desired version, and finally `Downlod only` +* extract and run the installer +* apply crack (confirmed working with version 19.1.2 +``` +sudo perl -pi -e 's/\x00\x85\xc0\x74\x7b\xe8/\x00\x85\xc0\xEB\x7b\xe8/g' /opt/resolve/bin/resolve +``` + +4) Compile awesome wm + +Compiling awesome on Rocky Linux 8.10 requires the following dependencies (in order of build): +* lua +* lua-markdown +* lua-lgi +* lua-filesystem +* lua-ldoc +* lua-penlight +* xapian-xire +* doxygen (note: this ought to be fc29 version) +* libxdg-basedir +* xcb-util +* xcb-util-wm +* xcb-util-keysymx +* xorg-x11-util-macros +* xcb-util-xrm +* libxkb +* xcb-util-image +* xcb-util-renderutil + +To build these, you have to go through various iterations of fetching +source RPMs from [fedora 28 src repo](https://archive.fedoraproject.org/pub/archive/fedora/linux/releases/28/Everything/source/tree/Packages), +installing the builddeps and finally rebuilding using `rpbbuild`. Thus, +for lua, you would: +``` +wget https://archive.fedoraproject.org/pub/archive/fedora/linux/releases/28/Everything/source/tree/Packages/l/lua-5.3.4-10.fc28.src.rpm +sudo dnf builddep lua-*.src.rpm --nobest --refresh +rpmbuild --rebuild lua-.src.rpm +``` + +Specific notes: +* doxygen src rpm should come Fedora 29 +* lua-ldoc and lua-penlight depend on each other, thus you will need to temporarily activate the fc28 repo by adding this in `/etc/yum.repos.d/fedora.repo` +``` +[fedora] +name=Fedora 28 - x86_64 +metalink=https://mirrors.fedoraproject.org/metalink?repo=fedora-28&arch=x86_64 +enabled=1 +gpgcheck=0 +``` +Make sure to disable it after getting lua-ldoc or lua-penlight built. + +After building all of your dependencies, clean-up everything by rolling back to the transaction before you started installing build dependencies. Use `dnf history info ` to find that number and then `dnf history rollback ` + +To facilitate installing the built dependencies, you can use `createrepo` to create a repo in `/home/user/rpmbuild` and pointing a new dnf repo to this folder. + +Once everything is rolledback, you can install awesome and *just* it's runtime dependencies, and then refer to archlinux's [awesome-gnome](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=awesome-gnome) package to integrate awesome in gnome. + +5) Install git-annex standalone