ROM Hack Is it possible to run pkhex on Linux using wine?

jimmyleen

Well-Known Member
OP
Member
Joined
Feb 28, 2016
Messages
1,171
Trophies
0
XP
704
Country
Now it wants me to run a script called gacutil.exe with winetricks, its just one problem the script can't be started with winetricks, and windows program loader can't open it either. I wish I could right click and use winetricks to open, start, and install anything that has to do with windows.
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
Alright, here you go. I made a Linux Mint VM and on a fresh install these commands in Terminal will set you up right.

Code:
sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update && sudo apt-get install -y wine1.7

wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && chmod +x winetricks

rm -r ~/.wine

export WINEARCH="win32" && ./winetricks msxml3 dotnet40 corefonts tahoma


Cancel Mono and Gecko as you don't need them for this.
When done, download PKHeX.exe, Right-Click .exe > Open With... > Other Application.
Select Wine Windows Program Loader and click Set as Default then OK.

Now whenever you double-click PKHeX.exe it should run just fine.

NOTE: rm -r ~/.wine may fail saying directory not found. That's okay.
 

jimmyleen

Well-Known Member
OP
Member
Joined
Feb 28, 2016
Messages
1,171
Trophies
0
XP
704
Country
Alright, here you go. I made a Linux Mint VM and on a fresh install these commands in Terminal will set you up right.

Code:
sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update && sudo apt-get install -y wine1.7

wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && chmod +x winetricks

rm -r ~/.wine

export WINEARCH="win32" && ./winetricks msxml3 dotnet40 corefonts tahoma


Cancel Mono and Gecko as you don't need them for this.
When done, download PKHeX.exe, Right-Click .exe > Open With... > Other Application.
Select Wine Windows Program Loader and click Set as Default then OK.

Now whenever you double-click PKHeX.exe it should run just fine.

NOTE: rm -r ~/.wine may fail saying directory not found. That's okay.


I'll try it

--------------------- MERGED ---------------------------

Now I have to figure out why Linux mint is giving this problem.

sudo: PAM authentication error: Module is unknown
 

DocKlokMan

Plugin Dev
Member
Joined
Apr 20, 2007
Messages
3,009
Trophies
2
Age
36
XP
4,571
Country
United States
I'll try it

--------------------- MERGED ---------------------------

Now I have to figure out why Linux mint is giving this problem.

sudo: PAM authentication error: Module is unknown
That one I'm not sure on. If you run:
~: cat /etc/pam.d/sudo > ~/Desktop/sudo.txt
What's the contents of the TXT file? Mine is:

Code:
#%PAM-1.0

auth       required   pam_env.so readenv=1 user_readenv=0
auth       required   pam_env.so readenv=1 envfile=/etc/default/locale user_readenv=0
@include common-auth
@include common-account
@include common-session-noninteractive
 
  • Like
Reactions: lordelan

jimmyleen

Well-Known Member
OP
Member
Joined
Feb 28, 2016
Messages
1,171
Trophies
0
XP
704
Country
That one I'm not sure on. If you run:
~: cat /etc/pam.d/sudo > ~/Desktop/sudo.txt
What's the contents of the TXT file? Mine is:

Code:
#%PAM-1.0

auth       required   pam_env.so readenv=1 user_readenv=0
auth       required   pam_env.so readenv=1 envfile=/etc/default/locale user_readenv=0
@include common-auth
@include common-account
@include common-session-noninteractive


I'm sorry for not responding sooner I had to take time this morning to replace my hard drive and re install linux mint.
 

jimmyleen

Well-Known Member
OP
Member
Joined
Feb 28, 2016
Messages
1,171
Trophies
0
XP
704
Country
Alright, here you go. I made a Linux Mint VM and on a fresh install these commands in Terminal will set you up right.

Code:
sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update && sudo apt-get install -y wine1.7

wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && chmod +x winetricks

rm -r ~/.wine

export WINEARCH="win32" && ./winetricks msxml3 dotnet40 corefonts tahoma


Cancel Mono and Gecko as you don't need them for this.
When done, download PKHeX.exe, Right-Click .exe > Open With... > Other Application.
Select Wine Windows Program Loader and click Set as Default then OK.

Now whenever you double-click PKHeX.exe it should run just fine.

NOTE: rm -r ~/.wine may fail saying directory not found. That's okay.


It worked, you are the man with the plan.

thank you

--------------------- MERGED ---------------------------

It worked, you are the man with the plan.

thank you


Edit: the mods can close this thread I got it all worked out.
 

Games&Stuff

Well-Known Member
Member
Joined
Oct 8, 2015
Messages
788
Trophies
0
XP
342
Country
United States

jimmyleen

Well-Known Member
OP
Member
Joined
Feb 28, 2016
Messages
1,171
Trophies
0
XP
704
Country
Some options like saving the .pk6 file don't work.


Do this instead it works better.


sudo add-apt-repository ppa:ubuntu-wine/ppa && sudo apt-get update && sudo apt-get install -y wine1.7

wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks && chmod +x winetricks

rm -r ~/.wine

export WINEARCH="win32" && ./winetricks msxml3 dotnet40 corefonts tahoma




Cancel Mono and Gecko as you don't need them for this.
When done, download PKHeX.exe, Right-Click .exe > Open With... > Other Application.
Select Wine Windows Program Loader and click Set as Default then OK.

Now whenever you double-click PKHeX.exe it should run just fine.

NOTE: rm -r ~/.wine may fail saying directory not found. That's okay.
 

jimmyleen

Well-Known Member
OP
Member
Joined
Feb 28, 2016
Messages
1,171
Trophies
0
XP
704
Country
Could anyone try mono? I would test it myself but no access to Linux right now. (mono is an opensource implementation of dotnet on linux and mac.)

For some reason mono does not work for me on Linux mint, maybe its missing something. But yeah I could never get the stupid thing to start no matter what I tried.

Edit: it might work on other OS's such as a Mac or anything unix based.

--------------------- MERGED ---------------------------

Game&Stuff what do you use to transfer saves to your Pokemon games?
 

Games&Stuff

Well-Known Member
Member
Joined
Oct 8, 2015
Messages
788
Trophies
0
XP
342
Country
United States
For some reason mono does not work for me on Linux mint, maybe its missing something. But yeah I could never get the stupid thing to start no matter what I tried.

Edit: it might work on other OS's such as a Mac or anything unix based.

--------------------- MERGED ---------------------------

Game&Stuff what do you use to transfer saves to your Pokemon games?
JK's save manager
 

Ev1l0rd

(⌐◥▶◀◤) girl - noirscape
Member
Joined
Oct 26, 2015
Messages
2,004
Trophies
1
Location
Site 19
Website
catgirlsin.space
XP
3,441
Country
Netherlands
For some reason mono does not work for me on Linux mint, maybe its missing something. But yeah I could never get the stupid thing to start no matter what I tried.

Edit: it might work on other OS's such as a Mac or anything unix based.

--------------------- MERGED ---------------------------

Game&Stuff what do you use to transfer saves to your Pokemon games?
Are you using the latest version?

An explanation on how to do that on Debian based distro's (Don't forget to install mono-complete after that!)

Then in a terminal try to run:

Code:
mono PKHeX.exe

or for Hackmons rename the file to PKHaX.exe and try to run:

Code:
mono PKHaX.exe

I will test it when I get home in a few hours.
 

jimmyleen

Well-Known Member
OP
Member
Joined
Feb 28, 2016
Messages
1,171
Trophies
0
XP
704
Country

jimmyleen

Well-Known Member
OP
Member
Joined
Feb 28, 2016
Messages
1,171
Trophies
0
XP
704
Country
Are you using the latest version?

An explanation on how to do that on Debian based distro's (Don't forget to install mono-complete after that!)

Then in a terminal try to run:

Code:
mono PKHeX.exe

or for Hackmons rename the file to PKHaX.exe and try to run:

Code:
mono PKHaX.exe

I will test it when I get home in a few hours.


Mono requires mscorlib.dll but Microsofts .Net website is not showing any search results for it.

--------------------- MERGED ---------------------------

I got mscorlib.dll and got mono to run but now its got more problems.

Edit: I think its best that I stick to wine.

* Assertion at domain.c:1551, condition `mono_defaults.monotype_class != 0' not met


Native stacktrace:

mono() [0x4b73d8]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f79385cd340]
/lib/x86_64-linux-gnu/libc.so.6(gsignal+0x39) [0x7f793822ecc9]
/lib/x86_64-linux-gnu/libc.so.6(abort+0x148) [0x7f79382320d8]
mono() [0x638575]
mono() [0x6386b6]
mono() [0x5a97b4]
mono() [0x424b36]
mono(mono_main+0x32c) [0x48bccc]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0x7f7938219ec5]
mono() [0x419c1a]

Debug info from gdb:

Could not attach to process. If your uid matches the uid of the target
process, check the setting of /proc/sys/kernel/yama/ptrace_scope, or try
again as the root user. For more details, see /etc/sysctl.d/10-ptrace.conf
ptrace: Operation not permitted.
No threads.

=================================================================
Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

Aborted
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    NinStar @ NinStar: It will actually make it worse