Skip to content

Instantly share code, notes, and snippets.

@h3ssan
Last active March 3, 2025 04:54
Show Gist options
  • Save h3ssan/9510fbb2291d41b090cf52adb2edd1c4 to your computer and use it in GitHub Desktop.
Save h3ssan/9510fbb2291d41b090cf52adb2edd1c4 to your computer and use it in GitHub Desktop.
Reset all JetBrains products trial in Linux

In some cases, only these lines will work

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    rm -rf ~/.config/$product*/eval 2> /dev/null
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null
done

But if not, try these

for product in IntelliJIdea WebStorm DataGrip PhpStorm CLion PyCharm GoLand RubyMine; do
    echo "[+] Resetting trial period for $product"

    echo "[+] Removing Evaluation Key..."
    rm -rf ~/.config/$product*/eval 2> /dev/null

    # Above path not working on latest version, Fixed below
    rm -rf ~/.config/JetBrains/$product*/eval 2> /dev/null

    echo "[+] Removing all evlsprt properties in options.xml..."
    sed -i 's/evlsprt//' ~/.config/$product*/options/other.xml 2> /dev/null

    # Above path not working on latest version, Fixed below
    sed -i 's/evlsprt//' ~/.config/JetBrains/$product*/options/other.xml 2> /dev/null

    echo
done

echo "Removing userPrefs files..."
rm -rf ~/.java/.userPrefs 2> /dev/null

If not works on Mac OS, then run the following code:

rm -rf ~/Library/Preferences/com.apple.java.util.prefs.plist
@slaenov
Copy link

slaenov commented Dec 19, 2024

@h3ssan, Grand tks for you. It works for goland 2024.3.1 you srcipt i mean, - JetBrains trial reset.md (second part of it). OS Ubuntu Ubuntu 22.04.5

@Muxammad1106
Copy link

I really need your help I don’t understand how to use mac m3 pro
do this it says that the trial trial has ended

@jibusayone
Copy link

On Ubuntu go to ~./.java/.userPrefs, if you type ls there you'll notice a folder with some random characters. Delete this folder and the folder called jetprofiles. It`s done.

that won't work on newer versions of jetbrains products, it still says your trial has ended, because it sends your UID to their servers to check if you already used the trial. you have to change your user id to get it to work. there is no need to delete any configs. deleting the ~/.java/.userPrefs directory is not recommended, it might reset your licenses for other java apps if there are any.

  1. quit all jetbrains products
  2. open ~/.java/.userPrefs/jetbrains/prefs.xml
  3. find and edit the user_id_on_machine entry (e.g. i changed the last character and it worked)
  4. start an IDE and press the start trial button

you can also delete the ~/.java/.userPrefs/jetbrains folder and change JetBrains.UserIdOnMachine in ~/.java/.userPrefs/prefs.xml if the above method didn't work for you.

Thank you! Changing the user_id_on_machine entry on ~/.java/.userPrefs/jetbrains/prefs.xml worked for me (PyCharm 2024.3).

@exploreTiny
Copy link

pycharm2024.3 on ubuntu20 work for me

@ericm48
Copy link

ericm48 commented Feb 14, 2025

For me the Ubuntu 22.04 scripts worked fine. Am curious, for those that did get it to reset, did you use the original email address or a different one? I used a new one.

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