这里记录一下如何在 CentOS 下安装 Sublime Text (2/3),并且做一些必要的配置

0. 添加 repo 并安装

  1. [[email protected].io]# rpm -v --import https://download.sublimetext.com/sublimehq-rpm-pub.gpg
  2. [[email protected].io]# yum-config-manager --add-repo https://download.sublimetext.com/rpm/stable/x86_64/sublime-text.repo
  3. [[email protected].io]# yum install sublime-text
  4. [[email protected].io]# subl # 打开 sublime text

1. 神秘的操作

  1. # cat /etc/hosts
  2. 0.0.0.0 license.sublimehq.com
  3. 0.0.0.0 45.55.255.55
  4. 0.0.0.0 45.55.41.223
  5. 127.0.0.1 www.sublimetext.com
  6. 127.0.0.1 sublimetext.com
  7. 127.0.0.1 sublimehq.com
  8. 127.0.0.1 telemetry.sublimehq.com

填写一个必要的码,怎么用自行探究:

  1. BEGIN LICENSE —–
  2. ZYNGA INC.
  3. 50 User License
  4. EA7E-811825
  5. 927BA117 84C9300F 4A0CCBC4 34A56B44
  6. 985E4562 59F2B63B CCCFF92F 0E646B83
  7. 0FD6487D 1507AE29 9CC4F9F5 0A6F32E3
  8. 0343D868 C18E2CD5 27641A71 25475648
  9. 309705B3 E468DDC4 1B766A18 7952D28C
  10. E627DDBA 960A2153 69A2D98A C87C0607
  11. 45DC6049 8C04EC29 D18DFA40 442C680B
  12. 1342224D 44D90641 33A3B9F2 46AADB8F
  13. —— END LICENSE ——

如果提示升级,点取消即可。