Ubuntu16.04环境下开发环境配置——集成IDE(Pycharm)的破解与安装

一、下载Pycharm

    百度关键词“Pycharm”,打开Pycharm主页选择Professional版本进行下载,注意下载的版本架构需要与操作系统相对应。因为Professional的Pycharm比Community版本强大,所以这里选择Professional进行配置,后面程序的调试会带来很大方便。

二、解压安装包文件

    下载解压缩文件

yuhuiliu@sinc-server:/media/yuhuiliu$ sudo tar -zcvf pycharm-professional-2018.1.2.tar.gz

     因为之前在配置自己笔记本电脑环境时,解压了整个文件到u盘,这时为加快安装,直接在sinc-server工作站上插上u盘,

挂载u盘到/media的文件夹上。

 

  • 查看u盘的设备名称和详细信息
yuhuiliu@sinc-server:~$ sudo fdisk -l
[sudo] yuhuiliu 的密码:
Disk /dev/sda: 278.9 GiB, 299439751168 bytes, 584843264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x69ee9dfc

设备       启动     Start    末尾    扇区  Size Id 类型
/dev/sda1            2048    206847    204800  100M  7 HPFS/NTFS/exFAT
/dev/sda2          206848 363079679 362872832  173G  7 HPFS/NTFS/exFAT
/dev/sda3  *    363079680 526166015 163086336 77.8G 83 Linux
/dev/sda4       526166016 584841215  58675200   28G 83 Linux


Disk /dev/sdb: 278.9 GiB, 299439751168 bytes, 584843264 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x94d108af

设备       启动 Start    末尾    扇区   Size Id 类型
/dev/sdb1        2048 584839167 584837120 278.9G  7 HPFS/NTFS/exFAT




Disk /dev/sdc: 14.4 GiB, 15476981760 bytes, 30228480 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xcad4ebea

设备       启动 Start   末尾   扇区  Size Id 类型
/dev/sdc4  *      256 30228479 30228224 14.4G  7 HPFS/NTFS/exFAT

 

  • 挂载u盘到/media下
yuhuiliu@sinc-server:~$ mount /dev/sdc4 /media/yuhuiliu/
mount: only root can do that
yuhuiliu@sinc-server:~$ sudo mount /dev/sdc4 /media/yuhuiliu/
yuhuiliu@sinc-server:~$ cd /media/yuhuiliu/
yuhuiliu@sinc-server:/media/yuhuiliu$ ls
ch9-10-14.7z
data.zip
mentohust_0.3.4-1_amd64.deb
mentohust_0.3.4-1_amd64.zip
openwrt-15.05.1-ar71xx-generic-tl-wr842n-v2-squashfs-factory.bin
openwrt-15.05.1-ar71xx-generic-tl-wr842n-v2-squashfs-sysupgrade.bin
OPENWRT.zip
preliminary_contest_data
preliminary_contest_data.zip
pycharm-2018.1.2
System Volume Information
userFeature_0.csv
userFeature_1.csv
教程重要说明.txt
新建文件夹
新建文件夹 (2)
迅雷下载

 

 

 

  • 拷贝文件到运行的路径下

yuhuiliu@sinc-server:/media/yuhuiliu$ cp -r pycharm-2018.1.2 ~/tools/

 

 

 

  • 切换到运行路径下
yuhuiliu@sinc-server:/media/yuhuiliu$ cd ~/tools/pycharm-2018.1.2/
yuhuiliu@sinc-server:~/tools/pycharm-2018.1.2$

三、破解Pycharm

    参见:https://blog.csdn.net/feixuedongji/article/details/79908671

Hint:选择这一永久破解方法需要配置java的运行环境(参见:https://blog.csdn.net/williamyi96/article/details/78268595)

 

  • 终端运行 sudo java -jar JetbrainsCrack-2.7-release-str.jar ,查看详细信息
***************************************************
*              Jetbrains Crack v2.7               *
*                                                 *
*  rover12421@163.com                             *
*  QQ Group: 126896013                            *
*  https://plus.google.com/117387751303563410161  *
*                                                 *
*                                    2018/02/02   *
*                                                 *
***************************************************


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":"Rover12421",
"assigneeEmail":"rover12421@163.com",
"licenseRestriction":"By 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"},
{"code":"GO","paidUpTo":"2099-12-31"},
{"code":"RD","paidUpTo":"2099-12-31"}
],
"hash":"2911276/0",
"gracePeriodDays":7,
"autoProlongated":false}
6. If show error msg : "Error opening zip file or JAR manifest missing : JetbrainsCrack.jar"
please modify the jar file path to absolute path in "bin/*[idea|clion|...][64].vmoptions" file.

 

  • 修改.vmoptions文件

        bin文件夹下发现pycharm64.vmoptions,编辑,在最后一行加上JetbrainsCrack.jar的绝对路径,如下:

-javaagent:/home/yuhuiliu/tools/pycharm-2018.1.2/bin/JetbrainsCrack-2.7-release-str.jar 保存即可,使用gedit打开编辑。

yuhuiliu@sinc-server:~/tools/pycharm-2018.1.2$ sudo gedit bin/pycharm64.vmoptions

        修改如下:

四、安装Pycharm

yuhuiliu@sinc-server:/media/yuhuiliu$ sh pycharm-2018.1.2/bin/pycharm.sh

    这里因为是在个人用户下进行配置即可,故可不需要sudo超级权限。

随便填入上面的一个code,就可以激活成功。

"code":"II","paidUpTo":"2099-12-31"

就可以直接使用Pycharm

方便pycharm在命令行下的使用,使用 export PATH="/home/yuhuiliu/tools/pycharm-2018.1.2/bin:$PATH"命令配置环境变量,再用source ~/.bashrc激活环境变量,如下:

yuhuiliu@sinc-server:~/tools/pycharm-2018.1.2$ export PATH="/home/yuhuiliu/tools/pycharm-2018.1.2/bin:$PATH"
yuhuiliu@sinc-server:~/tools/pycharm-2018.1.2$ source ~/.bashrc
yuhuiliu@sinc-server:~/tools/pycharm-2018.1.2$ cd ~
yuhuiliu@sinc-server:~$ pyc
pycc                 pycharm.sh           pycodestyle
pycharm64.vmoptions  pycharm.vmoptions    pycompile
pycharm.png          pyclean

 

 

 

 

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值