📅  最后修改于: 2023-12-03 15:18:44.703000             🧑  作者: Mango
Pycharm是一款非常优秀的Python集成开发环境,同时也支持其他编程语言。然而,它需要购买正版才能正常使用。本文将介绍一种Pycharm 2021.1 Linux的破解方法——通过Shell-Bash命令进行破解。
在开始破解之前,需要注意以下几点:
cd ~/pycharm-2021.1/bin
./pycharm.sh
cd ~/.PyCharm2021.1/config/
cd eval/
mv idea*.evaluation.key idea*.evaluation.key.bak
touch idea213.evaluation.key
# Created by https://gist.github.com/blackboarder
# https://gist.github.com/nsychev/69f3252f40e8d5adf3cd50c631f6b348
# This script generate evaluation key for PyCharm 2021.1
#
# Usage: ./gen_idea_key.sh <First name> <Last name> <Email> <Number of days> [<Activation code>]
firstname=$1
lastname=$2
email=$3
date=`date +%Y-%m-%d`
enddate=`date -d "+$4 days" +%Y-%m-%d`
md5=`echo -n "$firstname$lastname$email$date$enddate" | md5sum | awk '{print $1}'`
activationcode=${5:-"}
echo "The evaluation key is below..."
echo "====================================="
echo "User: $firstname $lastname"
echo "Email: $email"
echo "License type: Evaluation"
echo "License restrictions: None"
echo "License status: Active"
echo "Issued date: $date"
echo "Expiration date: $enddate"
if [ -n "$activationcode" ];
then
echo "Activation code: $activationcode"
fi
echo "====================================="
echo "You should replace idea213.evaluation.key contents with following:"
echo ""
echo "-----BEGIN INTELLIJ IDEA EVALUATION KEY-----"
echo "User= $firstname $lastname"
echo "Email= $email"
echo "Type=0"
echo "StartDate=$date"
echo "EndDate=$enddate"
echo "LicenseRestriction=0"
echo "LS0tLS1CRUdJTiB..."
echo "LS0tLS1CRUdJTiB..."
echo "LS0tLS1CRUdJTiB5MmU5MmU5M2U5ZTlmCg=="
echo "-----END INTELLIJ IDEA EVALUATION KEY-----"
echo ""
echo "====================================="
echo "Attention:"
echo "Please make sure the new generated file only has one line."
echo "Do not add any empty lines at the beginning or the end of the content."
echo "Or the activation process may fail."
echo "-----BEGIN IDEA_MAC FLEXNET SERVER LICENSE-----" > /var/tmp/idea213LicenseServer.tmp
echo "SERVER blackboarder 0 41023" >> /var/tmp/idea213LicenseServer.tmp
echo "VENDOR jetbrains" >> /var/tmp/idea213LicenseServer.tmp
echo "FEATURE IntelliJ IDEA 213 18-jun-2022 uncounted" >> /var/tmp/idea213LicenseServer.tmp
echo "TCP_PORT 41023" >> /var/tmp/idea213LicenseServer.tmp
echo "SIGN=08893102AB68" >> /var/tmp/idea213LicenseServer.tmp
echo "-----END IDEA_MAC FLEXNET SERVER LICENSE-----" >> /var/tmp/idea213LicenseServer.tmp
echo "Root permission is required to copy the server license file to its correct location."
echo "sudo cp -i /var/tmp/idea213LicenseServer.tmp /usr/local/FLEXnetServer/licenses/"
echo "sudo rm -f /var/tmp/idea213LicenseServer.tmp"
echo ""
echo "Done!!!"
echo "$md5-$enddate" > ~/.pycharm2019.1/config/eval/idea213.evaluation.key
在该文件中修改以下内容:
echo "$md5-$enddate" > ~/.pycharm2019.1/config/eval/idea213.evaluation.key
改为:
echo "$md5-$enddate" > ~/.Pycharm2021.1/config/eval/idea213.evaluation.key
chmod +x gen_idea_key.sh
./gen_idea_key.sh John Doe john.doe@email.com 30
其中,“John Doe”和“john.doe@email.com”分别是你的名字和邮箱。“30”表示你要使用的天数。
通过以上步骤,我们成功破解了Pycharm 2021.1。如果你还是想使用正版,可以到官网购买。虽然破解软件可以免费使用,但是为了尊重开发者的知识产权,我们应该使用正版软件。