Sublime 2 Installation for Linux

系统 2082 0

Linux

You can download the package and uncompress it manually. Alternatively, you can use the command line.

For i386

        
          cd ~

wget http://c758482.r82.cf2.rackcdn.com/Sublime\ Text\ 2.0.1.tar.bz2

tar vxjf Sublime\ Text\ 2.0.1.tar.bz2
        
      

For x64

        
          cd ~

wget http://c758482.r82.cf2.rackcdn.com/Sublime Text 2.0.1 x64.tar.bz2

tar vxjf Sublime\ Text\ 2.0.1\ x64.tar.bz2
        
      

Now we should move the uncompressed files to an appropriate location.

        
          sudo mv Sublime\ Text\ 2 /opt/
        
      

Lastly, we create a symbolic link to use at the command line.

        
          sudo ln -s /opt/Sublime\ Text\ 2/sublime_text /usr/bin/sublime
        
      

In Ubuntu, if you also want to add Sublime Text to the Unity luncher, read on.

First we need to create a new file.

        
          sudo sublime /usr/share/applications/sublime.desktop
        
      

Then copy the following into it.

        [Desktop Entry]

Version=2.0.1

Name=Sublime Text 2

# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.

# From Ubuntu's language-pack-kde-XX-base packages, version 9.04-20090413.

GenericName=Text Editor



Exec=sublime

Terminal=false

Icon=/opt/Sublime Text 2/Icon/48x48/sublime_text.png

Type=Application

Categories=TextEditor;IDE;Development

X-Ayatana-Desktop-Shortcuts=NewWindow



[NewWindow Shortcut Group]

Name=New Window

Exec=sublime -n

TargetEnvironment=Unity
      

If you’ve registered your copy of Sublime Text, but every time you open it you’re asked to enter your license, you should try running this command.

        
          sudo chown -R username:username /home/username/.config /sublime-text-2
        
      

Just replace username with your account’s username. This should fix the permission error in the case that you opened up Sublime Text as root when you first entered the license.

Sublime 2 Installation for Linux


更多文章、技术交流、商务合作、联系博主

微信扫码或搜索:z360901061

微信扫一扫加我为好友

QQ号联系: 360901061

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描下面二维码支持博主2元、5元、10元、20元等您想捐的金额吧,狠狠点击下面给点支持吧,站长非常感激您!手机微信长按不能支付解决办法:请将微信支付二维码保存到相册,切换到微信,然后点击微信右上角扫一扫功能,选择支付二维码完成支付。

【本文对您有帮助就好】

您的支持是博主写作最大的动力,如果您喜欢我的文章,感觉我的文章对您有帮助,请用微信扫描上面二维码支持博主2元、5元、10元、自定义金额等您想捐的金额吧,站长会非常 感谢您的哦!!!

发表我的评论
最新评论 总共0条评论