0

I want sublime text editor open via sublime command, i've all ok for install sublime text 2, but when type sublime in terminal then showing me error, see below, anyone know how i can fix this ?

root@tmdwc:~# sublime
(sublime:22192): Gtk-WARNING **: cannot open display:
muru
  • 207,228

1 Answers1

0

If you download sublime text 2 from here, you will get Sublime Text 2.0.2.tar.bz2

After unpacking archive with command

tar xfvj Sublime\ Text\ 2.0.2.tar.bz2

you will get directory Sublime Text 2, go to dir

cd  /path_to_dir/Sublime Text 2

and start text editor with command

./sublime_text

If you want to start text editor only with command sublime create sim link in /usr/bin

cd /usr/bin
sudo ln -s /path_to_dir/Sublime\ Text\ 2/sublime_text sublime

This link will allow to run text editor with command sublime

First part of problem is solved.

Exporting X Display via ssh you can have with option -X

ssh -l username ssh_server -X

With this command probably you will get your text editor in you display.

2707974
  • 10,758