PyCharm的破解&桌面快捷&初始化設定
我沒有錢,貧窮使我……
照著https://blog.csdn.net/sinat_41029600/article/details/80594993操作的。
首先是在jetbrain官網下載Ubuntu版本的PyCharm pro
/opt目錄下建立PyCharm資料夾cd /opt
mkdir PyCharm
解壓到該資料夾sudo tar zxvf pycharm-professional-2018.3.tar.gz -C /opt/PyCharm
其實不建議帶引數v,解壓條目好多好多……
進入到其中的bin目錄下cd pycharm-2018.3/bin
執行pycharm.sh ./pycharm.sh
然後出現了 Gtk-Message: 14:30:24.429: Failed to load module “canberra-gtk-module”
ctrl C 結束程序。先安裝module “canberra-gtk-module”
sudo apt-get install libcanberra-gtk-module
但是又出問題了:
正在處理用於 libc-bin (2.27-3ubuntu1) 的觸發器 …
在處理時有錯誤發生:
initramfs-tools
E: Sub-process /usr/bin/dpkg returned an error code (1)
然後參考了https://blog.csdn.net/mingtiannihao623/article/details/78810661
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old
sudo mkdir /var/lib/dpkg/info
sudo apt-get update
sudo apt-get -f install
sudo mv /var/lib/dpkg/info/* /var/lib/dpkg/info_old
sudo rm -rf /var/lib/dpkg/info
sudo mv /var/lib/dpkg/info_old /var/lib/dpkg/info
再來
sudo apt-get install libcanberra-gtk-module
ok 。 然後才是開始破解……
在http://idea.lanyus.com/ 點選下載
然後移到bin目錄下
sudo mv JetbrainsIdesCrack-3.4-release-enc.jar /opt/PyCharm/pycharm-2018.3/bin
修改pycharm64.vmoptions和pycharm.vmotions,在最後一行加上
-javaagent:../bin/補丁檔名
我編輯的時候是會有警告的,根據當年弄sublime的subl的經驗,可以不用管它。
然後就再來 ./pycharm.sh
就打開了,選擇activecode(啟用碼),然後輸入教程的啟用碼,點選ok,就真的ok了。(CSDN複製會有一條大尾巴,要記得刪掉……)
開啟pycharm,open之前在虛擬環境建立的專案,就可以看到這個介面,這個字型,還是不舒服。
File --> settings -->
開啟就是theme,改成黑的還怪好看的~
列表項有Editor,點選有Font選項,可以把字型大小改一下,預設的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AQDAgWgMA0GCSqGSIb3DQEBCwUAA4ICAQC9WZuYgQedSuOc5TOUSrRigMw4/+wuC5EtZBfvdl4HT/8vzMW/oUlIP4YCvA0XKyBaCJ2iX+ZCDKoPfiYXiaSiH+HxAPV6J79vvouxKrWg2XV6ShFtPLP+0gPdGq3x9R3+kJbmAm8w+FOdlWqAfJrLvpzMGNeDU14YGXiZ9bVzmIQbwrBA+c/F4tlK/DV07dsNExihqFoibnqDiVNTGombaU2dDup2gwKdL81ua8EIcGNExHe82kjF4zwfadHk3bQVvbfdAwxcDy4xBjs3L4raPLU3yenSzr/OEur1+jfOxnQSmEcMXKXgrAQ9U55gwjcOFKrgOxEdek/Sk1VfOjvS+nuM4eyEruFMfaZHzoQiuw4IqgGc45ohFH0UUyjYcuFxxDSU9lMCv8qdHKm+wnPRb0l9l5vXsCBDuhAGYD6ss+Ga+aDY6f/qXZuUCEUOH3QUNbbCUlviSz6+GiRnt1kA9N2Qachl+2yBfaqUqr8h7Z2gsx5LcIf5kYNsqJ0GavXTVyWh7PYiKX4bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38AknZlD+PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==
然後,還忘了‘桌面快捷’,我找到之前發過的sublime的配置,發現sublime的安裝包本身就有sublime.desktop,但是pyharm是沒有的 ,所以建立!
[Desktop Entry]
Type=Application
Name=Pycharm
GenericName=Pycharm3
Comment=Pycharm3:The Python IDE
Exec=sh /opt/PyCharm/pycharm-2018.3/bin/pycharm.sh
Icon=/opt/PyCharm/pycharm-2018.3/bin/pycharm.png
Terminal=pycharm
Categories=Pycharm;
Exec & Icon 需要配置自己的路徑,然後接下來的操作就是跟配置sublime的一樣了吧,試試。然而不行,有圖示,但是不能執行。然後開啟pycharm.sh是可以正常開啟的
檢視屬性
然後,複製命令,在終端執行,果然出現了報錯
看起來應該是因為配補丁的時候配的是相對路徑,改成絕對路徑。點選?還是沒反應?
再來命令列執行
Already running, 那麼就是點選有效了,搞定。
順便也知道了桌面圖示的真正原理,就是一句命令……