Jump to content

Quick note: PKHeX works in Linux


Eroldin

Recommended Posts

In the FAQ it is stated that PKHeX doesn't work in Linux. With the latest wine (8.12 at date of writing) however, it is possible to run PKHeX in Linux.
Instructions:

  1. Make sure you run the latest version of wine. Download it here.
  2. Install winetricks according the instructions according to your distribution. Update it with sudo winetricks --self-update
  3. Install dot.net 7 and dot.net desktop 7 with winetricks -q dotnet70 dotnetdesktop7

You can now run PKHeX in Linux.

temp.png

Edited by Eroldin
forgot link
  • Like 1
Link to comment
Share on other sites

  • 2 months later...

Cheers for the tips, I got PKHeX working great on my laptop running Pop! OS 22.04 LTS.

First I installed Wine as per the Ubuntu 22.04 instructions.

I couldn't seem to get Wineticks to install dot.net 7 and dot.net desktop 7, however I simply downloaded the 64bit installers from here: https://dotnet.microsoft.com/en-us/download/dotnet/7.0 and installed the .exe as you would on Windows.

After that I could run the PKHeX perfectly fine:

Screenshotfrom2023-09-2620-50-18.thumb.jpg.1d71a9b81fe47c7fd0b42f23051e451a.jpg

Link to comment
Share on other sites

  • 3 months later...

Having an issue here. I'm pretty sure I have .net installed because of this:
vokoscreenNG-2024-01-22_20-38-05_410.png.9fc3739eaa5abcb80ad0fbd09ed00108.png
But trying to execute PkHex through wine gives me this error:

vokoscreenNG-2024-01-21_21-20-38_091.png.2ba5805b3e20ad34e3122a9e2c3068b2.png

Is there something I'm doing wrong? How do I download .NET Desktop Runtime? I'm using a raspberry pi 5 btw. It has an Arm64 processor, just thought you should know in case that helps.

(Also, trying to install Desktop Runtime with Winetricks gave me this error:vokoscreenNG-2024-01-21_21-51-36_702.png.7f0162c69dff9117b393be63ddb40292.png)

Link to comment
Share on other sites

On 1/27/2024 at 3:38 PM, amidevous said:

I tried the command for Raspbian 12, but it didn't show up anywhere on my apps. My guess is that it doesn't solve the initial issue of needing .NET desktop runtime (or whatever it's called)

Link to comment
Share on other sites

what is the version number of the package there were several problems at the beginning when creating the packages
I had to redo several times and on certain distribution I believe that it is not updated

please check your package version pkhex_24.01.12-73 or update

try temporary manual command to solve problem

#install the prerequisites according to your system

#Ubuntu/Debian/Raspbian with official repository (not use winehq repository or winehq-* package)

sudo apt-get -y install wine winetricks wget zenity make

# or

sudo apt-get -y install wine-stable winetricks wget zenity make

sudo winetricks --self-update

#fedora install rpm fusion free and rpm fussion non free repository (not use winehq repository or winehq-* package)

#https://rpmfusion.org/Configuration/

sudo dnf install https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

sudo dnf -y install wine winetricks wget zenity make

sudo winetricks --self-update

#for Mac OSx install xcode and homebrew require

#visit https://developer.apple.com/download/applications/
#and https://brew.sh/
#for last information
#if your computer is not compatible with the latest version of xcodes
#you can download an older version that will be compatible by simply changing the version number in the final url example
#actual latest version
#https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_15.3_beta/Xcode_15.3_beta.xip
#https://developer.apple.com/services-account/download?path=/Developer_Tools/Xcode_15.2/Xcode_15.2.xip
#but my mac is only compatible with version 13 this url will be functional
#https://download.developer.apple.com/Developer_Tools/Xcode_13.2/Xcode_13.2.xip
#to know the compatibility of the xcodes development tools version visit this page
#https://developer.apple.com/documentation/xcode-release-notes/

brew install wget

brew install zenity

brew install --cask wine-stable

brew install winetricks

#once the prerequisites are installed you can install by executing the following command

wget "https://bitbucket.org/amidevous/pkhex/raw/master/update.sh" -qO update.sh

chmod +x update.sh

./update.sh

rm -f update.sh


#clean all $HOME folder for reset

rm -rf $HOME/.local/share/pkhex

#when the new version is published you must delete the /opt/pkhex directory with administrator rights

sudo rm -rf /opt/pkhex

 

enjoy just start with your desktop menu in game

or use command line pkhex


source code is available here for the packages

https://build.opensuse.org/project/show/home:amidevousgmail:pkhex

and on my git for all Unix distributions (Linux and Mac OSX)

https://bitbucket.org/amidevous/pkhex

I am also working on a new graphical launcher in Zenity

so there will be a new version with a menu and options to simplify problem solving this will also allow you to replace wine with proton and to be able to choose another version of proton if it does not launch with the programmer version

There will also be a configuration with gettext for menu translation

If you have any problems please open a ticket here

https://bitbucket.org/amidevous/pkhex/issues

do not hesitate to participate in the project on bitbucket

 

contrary to what is indicated, the version and 23.10.11 which works in net7, net 8 does not seem to work on net8
the program launches but immediately displays an error and closes

 

after that it's the fault of the developers who do anything

he should have left in net7 and waited at least 2 years

Guaranteed net8 compatibility with wine on all platforms

before changing net7 code to net8

 

I think using proton should correct this problem

 

I also invite Unix users to sign this petition

https://form.jotform.com/240362297964061

 

add winehq inssue

https://bugs.winehq.org/show_bug.cgi?id=56304

 

 

Edited by amidevous
Link to comment
Share on other sites

Thanks to the work of Fabian Maurer

https://gitlab.winehq.org/wine/wine/-/merge_requests/5064/diffs

PKHex is now compatible with version 24.01.12 on Unix

to update your version execute the following commands

rm -rf $HOME/.local/.share/pkhex
wget "https://bitbucket.org/amidevous/pkhex/raw/master/update.sh" -qO update.sh
chmod +x update.sh
./update.sh
rm -f update.sh

I will update the package on the deposits probably Monday
from the moment you have the dependencies to install
this command will always allow PKHex to be updated on Unix distributions

a big thank you to Fabian Maurer

Edited by amidevous
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...