Ubuntu17.04下安裝sublime text3
通過ppa安裝,打開終端,輸入以下命令:
sudo add-apt-repository ppa:webupd8team/sublime-text-3
sudo apt-get update
sudo apt-get install sublime-text-installer
卸載 sublime text 命令:
sudo apt-get remove sublime-text-installer
裝完了以後可以激活它,在終端輸入subl回車,或點擊開始搜索本地程序“sublime”回車,打開sublime,在Help裏輸入license key:
import urllib.request,os,hashlib; h = ‘df21e130d211cfc94d9b0905775a7c0f‘ + ‘1e3d39e33b79698005270310898eea76‘; pf = ‘Package Control.sublime-package‘; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( ‘http://packagecontrol.io/‘ + pf.replace(‘ ‘, ‘%20‘)).read(); dh = hashlib.sha256(by).hexdigest(); print(‘Error validating download (got %s instead of %s), please try manual install‘ % (dh, h)) if dh != h else open(os.path.join( ipp, pf), ‘wb‘ ).write(by)
重啟軟件後可以在Preference菜單下找到Package Control命令,單擊運行Packeage Control,搜索Install Package並進入該選項,此時即可為Sublime Text 3安裝所需插件
本文出自 “愛不懂事丿” 博客,請務必保留此出處http://cylin.blog.51cto.com/4735971/1943321
Ubuntu17.04下安裝sublime text3