1. Download the Sublime Text for Linux version from the official website.
2. Extract the .bz2 format file to the location where you must can find.
3. Move the sublime folder to /opt/
sudo mv Sublime\ Text\ 2 /opt/
4. At some point you'd want to be able to call Sublime Text from the Terminal by just typing 'sublime'. To do that, we'll just create a symbolic link in '/usr/bin' like this:
sudo ln -s /opt/Sublime\ Text\ 2/sublime_text/ usr/bin/sublime
5. Create a launcher in Unity. To do this, we create a .desktop file in '/usr/share/applications/sublime.desktop'
Edit the config files below:
sudo sublime /usr/share/applications/sublime.desktop
paste the following content in the file:
[Desktop Entry]
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
OK, you have installed the MOST powerful editor in the world....lol
Showing posts with label Unix/Linux. Show all posts
Showing posts with label Unix/Linux. Show all posts
Tuesday, August 27, 2013
Thursday, March 28, 2013
Ubuntu Apt Error
昨天装wps装毁了...结果apt update就error了,怎么修复呢?
如下:
sudo gedit /var/lib/dpkg/status
Delete the WPS-office block
然后一切似乎就科学了~
sudo apt-get update
sudo apt-get upgrade
如下:
sudo gedit /var/lib/dpkg/status
Delete the WPS-office block
然后一切似乎就科学了~
sudo apt-get update
sudo apt-get upgrade
Sunday, February 24, 2013
Ubuntu Sublime Python Env
1) Change Environment Path
Find the file named "Python.Sublime-build":
{
"cmd": ["python", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
Change the Python path to yours in the Environment like:
{
"cmd": ["/home/hiddenghost/pyenv/bin/python", "-u", "$file"],
"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
"selector": "source.python"
}
2) Python Project Configuration Example
With the project name --> "*.sublime-project"
{
"folders":
[
{
"path": "/home/hiddenghost/Documents/hiddenghost"
}
],
"build_systems":
[
{
"name": "Run Tests",
"env":
{
"PYTHONPATH": "/home/hiddenghost/pyenv/bin/python:/home/hiddenghost/pyenv/lib/python2.7/site-packages"
},
"working_dir": "/home/hiddenghost/Documents/hiddenghost",
"cmd": ["/home/hiddenghost/pyenv/bin/python", "$file"],
"selector": "source.python"
}
]
}
Thursday, March 8, 2012
Funny Tips
1) GNU:是 Stallman 选择用来描述自由软件基金会(Free Software Foundation, FSF)所开发的一个完全类似 Unix 操作系统的项目名称,其实际上是一个递归的缩写—'GNU's Not Unix'...
2) Hurd:对于GNU来说,Richard Stallman选择使用一个成为Mach的微内核,并结合了一组服务器,他称这写服务器为'Hurd'(这一名称由GNU的主要内核成员Thomas Bushnell杜撰而来).其也是一个间接的递归:
HURD—HIRD of Unix-Replacing Daenons.
HIRD—HURD of Interfaces Representing Depth.
2) Hurd:对于GNU来说,Richard Stallman选择使用一个成为Mach的微内核,并结合了一组服务器,他称这写服务器为'Hurd'(这一名称由GNU的主要内核成员Thomas Bushnell杜撰而来).其也是一个间接的递归:
HURD—HIRD of Unix-Replacing Daenons.
HIRD—HURD of Interfaces Representing Depth.
Subscribe to:
Posts (Atom)