Skip to content

Instantly share code, notes, and snippets.

@h3ssan
Last active June 24, 2024 10:13
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
@TCAby
Copy link

TCAby commented May 7, 2024

thank you, bro! working well!

@rachha
Copy link

rachha commented May 15, 2024

the .config directory is empty

@h3ssan
Copy link
Author

h3ssan commented May 15, 2024

the .config directory is empty

@rachha which OS are you using?

@rachha
Copy link

rachha commented May 16, 2024

macOS Sonoma(14.0)

@h3ssan
Copy link
Author

h3ssan commented May 16, 2024

Hi again @rachha

The above script that you executed is a Linux based, try this script and let me know in case it worked.

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

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

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

    echo
done

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

@LinuxGik
Copy link

LinuxGik commented Jun 1, 2024

πŸ’₯ πŸ’₯ πŸ’₯ ❀️ ❀️ ❀️ πŸ’‹ πŸ’‹ πŸ’‹ πŸ’‹ πŸ’‹ πŸ’‹

@VlasenkoDmitry
Copy link

THX

@mohamedmoussasoli
Copy link

Screenshot 2024-06-05 at 10 46 34 PM Still gives me this after running this script for mac os

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

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

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

echo

done

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

@h3ssan
Copy link
Author

h3ssan commented Jun 5, 2024

Hi @mohamedmoussasoli ,

please try execute this code:

I did some changes

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

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

    rm -rf ~/Library/Application\ Support/JetBrains/$product*/eval

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

    sed -i '' '/evlsprt/d' ~/Library/Application\ Support/JetBrains/$product*/options/other.xml


    echo
done

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

Let me know if it works

@mohamedmoussasoli
Copy link

Hello @h3ssan
Thanks for your response, but still the same thing
I am using phpstorm 2024.1.2

@h3ssan
Copy link
Author

h3ssan commented Jun 5, 2024

@mohamedmoussasoli

Did you closed phpstorm before executing the code?

@shakedZeira
Copy link

Hi there, im using Clion 2019.3.2 and it doesn't work for me,
are there any specific versions of clion you tried?

@partho5
Copy link

partho5 commented Jun 8, 2024

2nd script worked for me. Ubuntu 22.

@shakedZeira
Copy link

@partho5 which version of Clion are you using?

@h3ssan
Copy link
Author

h3ssan commented Jun 9, 2024

Hi @shakedZeira ,

This script works for the latest version, try with 2024 versions

@arturoodev
Copy link

For mac not work :(

Hi @mohamedmoussasoli ,

please try execute this code:

I did some changes

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

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

    rm -rf ~/Library/Application\ Support/JetBrains/$product*/eval

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

    sed -i '' '/evlsprt/d' ~/Library/Application\ Support/JetBrains/$product*/options/other.xml


    echo
done

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

Let me know if it works

@mantegnous
Copy link

no work..

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