-rw-r--r-- 1.4K Jun 1, 2012 · C252F40 · ~1 min

How to install Sublime Text 2 on Ubuntu 12.04 with Unity

sublime text 2 ubuntu unity шпаргалки

Sublime Text 2 runs without installation, but doesn’t integrate with the system at all. You can’t even associate certain file types with it out of the box. How to install Sublime and integrate it with the system:

  1. Unpack the Sublime archive
  2. Move Sublime to /usr/lib:
    sudo mv Sublime\ Text\ 2 /usr/lib/
  3. To launch the editor from the terminal with the «sublime» command:
    sudo ln -s /usr/lib/Sublime\ Text\ 2/sublime_text /usr/bin/sublime
  4. To create a Unity launcher that shows up properly in the dock:
    sudo sublime /usr/share/applications/sublime.desktop
    and paste in the following:
    [Desktop Entry]
    Version=1.0
    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=/usr/lib/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
  5. If you want to set file associations so that certain file types open in Sublime:
    sudo sublime /usr/share/applications/defaults.list
    and in that file replace every gedit.desktop with sublime.desktop

After this, everything will look as if it’s native.

Original in English.

[↵] open page kak-ustanovit-sublime-text-2-v-ubuntu-12-04-i-unity.md
-rw-r--r-- 618B Jun 1, 2012 · 730C519 · ~1 min

Connecting via SFTP using a Public Key (.pem)

шпаргалки sftp amazon ec2

Another quick reference. I had to connect to Amazon EC2 using a public .pem key. Had to google around and ask people to figure out how to connect via SFTP and access the server’s file system right from the file manager.

To connect over ssh:

chmod 600 public_key.pem && ssh -i public_key.pem user@server

For SFTP on Ubuntu:

edit the ssh config (create it if it doesn’t exist)

nano ~/.ssh/config

and put this in:

Host AnyName
IdentityFile /path/to/public_key.pem

Done. Then in Nautilus: File → Connect to Server, choose SSH and put user@server in the Server field, then hit Connect.

[↵] open page podklyuchenie-po-sftp-s-pomoshch-yu-public-key-pem-.md
-rw-r--r-- 2.3K May 31, 2012 · 67BB0B8 · ~2 min

A Key is A Key — the design of the Long Long Slow Slow album

a key is a key

A Key is a Key

On the second day of SKIF, the Danish band A Key is a Key gave us their album. When they handed it to me I was a bit lost — by size, it was a vinyl (the small format). Immediately the thought: where am I going to play vinyl? But it’s not that simple…

[↵] open page a-key-is-a-key-oformlenie-al-boma-long-long-slow-slow.md
makoni@arm1:~/blog$ cd ../page-28/ // ← previous cd ./page-30/ // more posts →