Install Sublime Text 3 for Ubuntu From Tarball

Install sublime text 3 using terminal on ubuntu 18.04

#Download version 3179 with the following code on terminal.

wget https://localhost/smartupworld/download/sublime/sublime_text_3_build_3176_x64.tar.bz2

#Get application access from terminal –

sudo ln -s /opt/sublime_text_3/sublime_text /usr/bin/subl

#Add Sublime Text 3 to launcher. Create and edit with the following code –

sudo subl /usr/share/applications/sublime_text.desktop

#And post the following code on sublime_text.desktop –

[Desktop Entry]
Version=1.0
Name=Sublime Text 3

GenericName=Text Editor

Exec=sublime3
Terminal=false

Type=Application
Categories=TextEditor;IDE;Development
X-Ayatana-Desktop-Shortcuts=NewWindow

[NewWindow Shortcut Group]
Name=New Window
Exec=sublime -n

[Desktop Entry]
Version=1.0
Type=Application
Name=Sublime Text
GenericName=Text Editor
Comment=Sophisticated text editor for code, markup and prose
Exec=/opt/sublime_text_3/sublime_text %F
Terminal=false
MimeType=text/plain;
Icon=/opt/sublime_text_3/Icon/48×48/sublime-text.png
Categories=TextEditor;Development;
StartupNotify=true
Actions=Window;Document;

[Desktop Action Window]
Name=New Window
Exec=/opt/sublime_text_3/sublime_text -n
OnlyShowIn=Unity;

[Desktop Action Document]
Name=New File
Exec=/opt/sublime_text_3/sublime_text –command new_file
OnlyShowIn=Unity;

#Add Sublime to Open with menu in Nautilus –

cp -it ~/.local/share/applications /usr/share/applications/sublime_text.desktop

sudo update-desktop-database

#Activate the program with the following code –

—– BEGIN LICENSE —–
sgbteam
Single User License
EA7E-1153259
8891CBB9 F1513E4F 1A3405C1 A865D53F
115F202E 7B91AB2D 0D2A40ED 352B269B
76E84F0B CD69BFC7 59F2DFEF E267328F
215652A3 E88F9D8F 4C38E3BA 5B2DAAE4
969624E7 DC9CD4D5 717FB40C 1B9738CF
20B3C4F1 E917B5B3 87C38D9C ACCE7DD8
5F7EF854 86B9743C FADC04AA FB0DA5C0
F913BE58 42FEA319 F954EFDD AE881E0B
—— END LICENSE ——

# Get the files from the following link and post them on Sublime –
https://localhost/smartupworld/download/sublime/settings

Leave a Reply