Skip to content

Instantly share code, notes, and snippets.

@Euro-pol
Last active September 3, 2023 11:05
Show Gist options
  • Save Euro-pol/539cf4bc8030d3443d8c73fe909a1c0b to your computer and use it in GitHub Desktop.
Save Euro-pol/539cf4bc8030d3443d8c73fe909a1c0b to your computer and use it in GitHub Desktop.
Guide to using Karma Client on Linux under Wine.

Hello 👋

I use Arch Linux on a daily drive but since there's literally no injectable ghost client that works, I decided to try running Karma on Wine and it surprisingly worked. Please note that this isn't an officially supported way to use Karma so please don't bother support with any bugs that may occur.

Warning

I am not responsible if your karma account gets suspened for using this. Since wine opens a debugger when you crash, karma can detect you for debugging and ban your account (this is not their issue, it's just protection).

Requirements

  • Karma Client
  • Linux Lunar Client
  • Some time

Installing Wine

Run the following commands depending on your package manager in your terminal.

# apt:
sudo apt install wine

# pacman (you need multilib enabled):
sudo pacman -S wine

Making a wineprefix

Make a directory for your wineprefix (Ex. ~/LunarWine/wineprefix)
Assuming you're in the folder LunarWine, run mkdir wineprefix and then WINEPREFIX="/home/user/LunarWine/wineprefix" winecfg When this screen pops up make sure to choose Windows 10 v Winecfg
Make sure to save the full path of the wineprefix since we will need it later (Ex. /home/user/LunarWine/wineprefix)

Preparing for Lunar Client

Now comes the tricky part. Since you have the linux version of Lunar Client installed, copy the ~/.lunarclient folder you have to the /wineprefix/drive_c/users/user/ folder. You must have ran the version you want before, else it won't appear in LCQT. After that, replace the /.lunarclient/offline/multiver folder with this one and put this in /.lunarclient/jre (these are both Windows platform specific dependencies).

Installing Lunar Client

Since the original launcher doesn't work on wine, we will have to use Lunar Client QT. Download Lunar client QT WINDOWS version here, and extract it to a folder.

Trying lunar client

Now, cd into the folder you extracted LCQT.
Remember that one wineprefix path you saved? Paste the following line in your terminal:export WINEPREFIX=<wineprefix> and change <wineprefix> to the path you saved (Ex: export WINEPREFIX=/home/user/LunarWine/wineprefix/)
After that, run wine64 lunar-client-qt.exe and cross your fingers. If everything works correctly, you should see a GUI like this appear.
LCQT Gui
Click "Launch" at the bottom corner (with 1.8 selected) and wait until it boots. If minecraft works correctly, proceed to the next step.

Running Karma Client

When lunar client launches, download your Karma client exe, put it in a folder, and open a new terminal window. As in the previous step, run export WINEPREFIX=<wineprefix> to be sure you're running Karma and Lunar in the same wineprefix. In that terminal, run wine64 <Karma EXE name> and you should see Karma client starting and injecting!

Extras

You can link your normal .minecraft to the wine version by running ln -s ~/.minecraft <wineprefix>/drive_c/users/user/AppData/Roaming/. (Linking syncs your normal .minecraft with the wine .minecraft)

If you have any issues or think I missed any steps, let me know in the comments of this gist or message me on discord (confirmedlol)/ping me in karma discord server/on my discord server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment