zoukankan      html  css  js  c++  java
  • install sublime for linux

    Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

    Python API, that available for Windows and C, C#, HTML, JavaScript, Groovy, LaTeX and the list goes on. The user interface is much similar to most famous editor called “vim“.

    Install Sublime Text in Linux

     

    Install Sublime Text in Linux

    By default there is no official repository available for yum” or “Linux systems.

    But due to high volume of users requests, the PPA forUbuntu users. So, here in this article we will show you two methods to install Sublime Text.

    At the time of writing this article, Sublime Text 3 beta is available to registered Sublime Text users only at a license costs 

    • The first method is using source RHEL, Fedora, Ubuntu and The Second method is using Debian, Linux Mint.

    Method 1: Installing from Source Tarball

    The latest stable version can be downloaded from Sublime Text website or you can use the following “ On 32-Bit Systems

    # cd ~
    # wget http://c758482.r82.cf2.rackcdn.com/Sublime Text 2.0.2.tar.bz2
    # tar vxjf Sublime Text 2.0.2.tar.bz2
    On 64-Bit Systems
    # cd ~
    # wget http://c758482.r82.cf2.rackcdn.com/Sublime Text 2.0.2 x64.tar.bz2
    # tar vxjf Sublime Text 2.0.2 x64.tar.bz2

    Once unpacked, you will get a directory called “/opt” location.

    # sudo mv Sublime Text 2 /opt/

    Next create a symbolic link to call “sublime”. To do, create a symbolic link under “# sudo ln -s /opt/Sublime Text 2/sublime_text /usr/bin/sublime

    For Ubuntu Unity Lancher

    If you are using Sublime Text” to the Unity launcher. Create a “/usr/share/applications”.

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

    Then Copy and Paste the following content into it. Save and close.

    [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

    Install Sublime Text in Ubuntu

     

    If you would like to open all your text files with “defaults.list” file and replace all occurrences of “sublime.desktop” as shown.

    # sudo sublime /usr/share/applications/defaults.list

    Install Sublime Text in Fedora

     

    Method 2: Installing Sublime Text Using PPA

    Add Sublime Text using following steps.

    # sudo add-apt-repository ppa:webupd8team/sublime-text-2
    # sudo apt-get update
    # sudo apt-get install sublime-text

    Sublime Text 3 Beta is released, if you would like to install # sudo apt-get install sublime-text-installer

    Start Sublime Text

    To sublime” as shown.

    # sublime

    Install Sublime Text in Debian


    That’s It! If you are using any other editor, please do tell us via comment section.

  • 相关阅读:
    使用logstash迁移elasticsearch
    cratedb 4.2.1单机安装
    es6.8.5集群部署(使用x-pack ssl方式)
    es从6.5升级到6.8(单节点)
    elasticsearch-6.8.5单机部署(当生产环境使用)
    mysql_upgrade升级(主从模式,先升级从库)
    mysql_upgrade升级(直接本地升级)
    主从数据不一致导出同步错误(从库记录存在导致写入报主键重复)
    12C下使用logminer
    mysql主库磁盘空间爆满导致从库错误
  • 原文地址:https://www.cnblogs.com/ximotao/p/5247069.html
Copyright © 2011-2022 走看看