Let's start from the background issue which seems to be a Wine problem:[NekoToo] wrote:
This is sort of unrelated but would anyone know how to install opentabletdriver on fedora linux like compile it from source, I've never really compiled something from source so I don't know how toEdit: Another problem I have once switching to the osu wine specific one my osu doesn't load backgrounds for beatmaps or the menu is there a fix to this? I was reading a post somewhere else about this and it has something to do with libjpeg but I have the 32 and 64 bit ones installed
Background fix
First of all, reboot your system to make sure Wine isn't running; then remove the current Wine version with this:
Open this link https://drive.google.com/drive/folders/1yPEEPg7LA4F4AHqKK2IQZ-YY01Wc6CdS and download the Wine 6.20 file
Let's then extract it and use it with:
sudo rm -rf /opt/wine-osu/Then I actually fixed by changing the Wine version to gonX's latest one (prerelease but still xD)
Open this link https://drive.google.com/drive/folders/1yPEEPg7LA4F4AHqKK2IQZ-YY01Wc6CdS and download the Wine 6.20 file
Let's then extract it and use it with:
cd ~/Downloads && tar -xf wine-osu-6.20_staging-1-x86_64.pkg.tar.zst
sudo cp -r ~/Downloads/opt/wine-osu/ /optReboot your system again and after this backgrounds should be fixed e.e
Installing OpenTabletDriver shouldn't be such a pain either:
Compiling OTD from source
Let's start from dependencies: (most of them should be already installed)
Follow these commands:
sudo dnf install libX11 libXrandr libevdev gtk3 bashLet's now install .NET 6 SDK which isn't available in repositories yet xd
Follow these commands:
cd && wget https://download.visualstudio.microsoft.com/download/pr/17b6759f-1af0-41bc-ab12-209ba0377779/e8d02195dbf1434b940e0f05ae086453/dotnet-sdk-6.0.100-linux-x64.tar.gz && mkdir dotnet
tar zxf dotnet-sdk-6.0.100-linux-x64.tar.gz -C dotnet/
export PATH=$PATH:$HOME/dotnetLast thing to do is to build OpenTabletDriver:
git clone https://github.com/OpenTabletDriver/OpenTabletDriver.git && cd OpenTabletDriver/
chmod +x build.shNow replace username with your own:
sudo env "PATH=$PATH:/home/username/dotnet/" ./build.sh
chmod +x generate-rules.sh
sudo env "PATH=$PATH:/home/username/dotnet/" ./generate-rules.sh
sudo mv ./bin/99-opentabletdriver.rules /etc/udev/rules.d/
Let's now create a script to launch OTD:
OTD Scripts
Let's start:
sudo nano /usr/bin/otdHere, you need to paste this: (change username with your own)
!/bin/bashSave with CTRL+O and exit with CTRL+X; now execute this one:
cd /home/username/OpenTabletDriver/OpenTabletDriver.UX.Gtk/bin/Release/net6.0/linux-x64
export PATH=$PATH:$HOME/dotnet
dotnet ./OpenTabletDriver.UX.Gtk.dll "$@"
sudo chmod +x /usr/bin/otdLet's now create a script to launch the OTD daemon:
sudo nano /usr/bin/otddaemonPaste this: (change username with your own)
#!/bin/bashNow just run this:
cd /home/username/OpenTabletDriver/bin
export PATH=$PATH:$HOME/dotnet
if [ $# -eq 0 ]
then
if [[ ! -v DISPLAY ]] && [[ ! -v WAYLAND_DISPLAY ]]
then
echo "DISPLAY and/or WAYLAND_DISPLAY is not set"
exit 64
fi
dotnet ./OpenTabletDriver.Daemon.dll -c ./Configurations
else
dotnet ./OpenTabletDriver.Console.dll "$@"
fi
sudo chmod +x /usr/bin/otddaemonOur two scripts are now finally set up; let's create the last one to launch both together:
sudo nano /usr/bin/opentabletdriverHere, just paste this:
#!/bin/bashSave with CTRL+O and exit with CTRL+X; now execute this one:
otddaemon &
P1=$!
otd &
P2=$!
wait $P1 $P2
sudo chmod +x /usr/bin/opentabletdriver
You're finally done! Launch OTD by typing:
opentabletdriverin your terminal e.e
Sorry if there is any error but it took me a lot to write this one haha