分两步,首先安装jdk,然后安装并破解pycharm
一.安装jdk
参考:http://blog.csdn.net/yebhweb/article/details/55098189
下载jdk1.8.0_151,将其移动到~/opt/目录下并解压缩
然后修改配置文件
sudo gedit /etc/profile
在文件末尾追加
#set Java environment export JAVA_HOME=/home/hpc/opt/jdk1.8.0_151 export JRE_HOME=${JAVA_HOME}/jre export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib export PATH=${JAVA_HOME}/bin:$PATH
需要使用命令使环境变量立即生效
source /etc/profile
输入java -version,显示JDK版本说明恭喜你,环境变量配置正确。如有必要,可重启一下。
二.安装破解pycharm
同样的,下载pycharm-2017.3.4并移动到~/opt/目录下,然后解压
到http://idea.lanyus.com/网站找到最新的破解文件或者注册码
破解参考:https://www.aliyun.com/jiaocheng/132914.html
将破解文件移动到bin目录下
终端:java -jar JetbrainsCrack.2.6.2.jar 出现以下提示:(注意此处不加sudu,与链接中不同)
Usage:
1. Copy the jar file to bin directory.
2. Modify “bin/*[idea|clion|…][64].vmoptions” file.
Append “-javaagent:JetbrainsCrack.jar” to end line.
3. Run *[idea|clion|…].sh.
4. Entry any character.
5. If you need modify “licenseeName”, please modify and using key:
{
“licenseId”:”ThisCrackLicenseId”,
“licenseeName”:”Rover12421”,
“assigneeName”:”“,
“assigneeEmail”:”aliyunzixun@xxx.com”,
“licenseRestriction”:”For Rover12421 Crack, Only Test! Please support genuine!!!”,
“checkConcurrentUse”:false,
“products”:[
{“code”:”II”,”paidUpTo”:”2099-12-31”},
{“code”:”DM”,”paidUpTo”:”2099-12-31”},
{“code”:”AC”,”paidUpTo”:”2099-12-31”},
{“code”:”RS0”,”paidUpTo”:”2099-12-31”},
{“code”:”WS”,”paidUpTo”:”2099-12-31”},
{“code”:”DPN”,”paidUpTo”:”2099-12-31”},
{“code”:”RC”,”paidUpTo”:”2099-12-31”},
{“code”:”PS”,”paidUpTo”:”2099-12-31”},
{“code”:”DC”,”paidUpTo”:”2099-12-31”},
{“code”:”RM”,”paidUpTo”:”2099-12-31”},
{“code”:”CL”,”paidUpTo”:”2099-12-31”},
{“code”:”PC”,”paidUpTo”:”2099-12-31”},
{“code”:”DB”,”paidUpTo”:”2099-12-31”}
],
“hash”:”2911276/0”,
“gracePeriodDays”:7,
“autoProlongated”:false}
根据提示,在bin文件夹下发现pycharm64.vmoptions以及pycharm64.vmoptions,编辑,在最后一行加上JetbrainsCrack.jar的绝对路径,我的是
-javaagent:/home/hpc/opt/pycharm-2017.3.4/bin/JetbrainsCrack-2.7-release-str.jar
注意与windows环境下斜线的方向不同
接下来运行pycharm.sh,终端输入:./pycharm.sh
出现需要激活的界面,选择中间激活码一栏,看到刚才提示的黄色字体中的code部分了吗?随便选择一个,比如我直接输入:”code”:”II”,”paidUpTo”:”2099-12-31”,然后点击activate即可激活!