zoukankan      html  css  js  c++  java
  • kali linux 2.0安装sublime text 2

    参考原文:

    http://www.codeproject.com/Articles/582849/InstallingplusSublimeplusTextplus-plusonplusLinuxp

    sublime不能从软件源里直接安装,但可以通过第三方源来安装,下面介绍两种方法:

    第一种方法

    Download the Sublime Text 2 & Extract it:

    32位:

    $ wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1.tar.bz2

    tar vxjf "Sublime Text 2.0.1.tar.bz2"   

    64位:

    $ wget http://c758482.r82.cf2.rackcdn.com/Sublime%20Text%202.0.1%20x64.tar.bz2

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

    Add a Sym link:

    $ sudo ln -s "~apps/Sublime Text 2/sublime_text" /usr/bin/sub1

    这种方法虽然可以用,但以后的更新版本不方便升级,所以推荐另一种方法。

    第二种方法:

    这种方法需要添加ppa源,如果不能添加请参考附录里的方案

    Add the Sublime Text 2 Repository to your Synaptic Package Manager:

    $ sudo add-apt-repository ppa:webupd8team/sublime-text-2

    Update:

    $ sudo apt-get update

    Install Sublime Text 2:

    $ sudo apt-get install sublime-text

    If you are installing the Sublime Text 3 Beta as discussed in the update above, use this command instead of apt-get install sublime-text:

    $sudo apt-get install sublime-text-installer

    Create alias files (if not present):

    $ sudo cp /usr/bin/sublime-text /usr/bin/sublime-text

    $ sudo cp /usr/bin/sublime-text /usr/bin/sub1

    现在就可以使用sublime text了。

    附录:在debian下添加ppa

    参考原文

    https://blog.anantshri.info/howto-add-ppa-in-debian

    1.Download file

    $ wget http://blog.anantshri.info/content/uploads/2010/09/add-apt-repository.sh.txt

    2.Save this file in /usr/sbin/

    $ cp add-apt-repository.sh.txt /usr/sbin/add-apt-repository

    3.  Change permissions to execute

    $ chmod o+x /usr/sbin/add-apt-repository

    4.  Change ownership to root

    $chown root:root /usr/sbin/add-apt-repository

    5.  Now when ever you need to execute command type

    $ sudo add-apt-repository ppa:ppa-name

  • 相关阅读:
    POJ 3259 Wormholes【BellmanFord】
    POJ 2960 SNim【SG函数的应用】
    ZOJ 3578 Matrixdp水题
    HDU 2897 邂逅明下【bash博弈】
    BellmanFord 算法及其优化【转】
    【转】几个Java的网络爬虫
    thinkphp 反字符 去标签 自动加点 去换行 截取字符串 冰糖
    php 二维数组转 json文本 (jquery datagrid 数据格式) 冰糖
    PHP 汉字转拼音(首拼音,所有拼音) 冰糖
    设为首页与加入收藏 兼容firefox 冰糖
  • 原文地址:https://www.cnblogs.com/scplee/p/4975585.html
Copyright © 2011-2022 走看看