Results 1 to 5 of 5

Thread: What is the proper way to install applications like a text editor?

  1. #1
    Join Date
    Aug 2013
    Beans
    40

    What is the proper way to install applications like a text editor?

    When you download an application like sublime text editor or any application that can run by just pressing on the file type "executable (application/x-executable)". What is the proper why to install it? I already created a desktop icon so I can run it from there, but should a global variable be set so you can run it from the command line in any directory? And if so what is the proper terminology so I can search on how to set the variable?

  2. #2
    Join Date
    Sep 2006
    Beans
    8,367
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: What is the proper what to install applications like a text editor?

    The best way is to look for the application in the repository using the Software Center or Synaptic. The next best way is to look for it in a PPA and add that, then use the Software Center or Synaptic. After that, the next best way is to look for a package (.deb) built for your version of Ubuntu on your type of hardware (AMD64 or i386 or PPC) and then install that.

    What type of file did you download and what does the site you got it from say about system requirments?

  3. #3
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    5,003

    Re: What is the proper what to install applications like a text editor?

    Im guessing you got sublime from here

    https://launchpad.net/~webupd8team/+...filter=precise

    So I installed it using the commands:

    Code:
    sudo add-apt-repository ppa:webupd8team/sublime-text-2
    sudo apt-get update
    sudo apt-get install sublime-text
    On my desktop it created its own launcher in my menu. What desktop are you running?

  4. #4
    Join Date
    Nov 2011
    Beans
    1,937
    Distro
    Ubuntu

    Re: What is the proper what to install applications like a text editor?

    The key thing is that the application has been compiled and packaged for Ubuntu, and, usually, your specific release of Ubuntu.

    The packages, which all have a '.deb' file extension, contain scripts and other material to ensure correct installation, including creation of icons.

    If you find these packages in the official Ubuntu repositories -- where Software Center and Synaptic point -- you should be fine.

    Other repositories can be added to the list that Software Center and Synaptic use. The most common are the PPA's mentioned earlier. Care needs to be taken using them. They are not official.

    If, as is common in Windows, downloaded software is installed manually -- from something that is not a .deb package prepared for Ubuntu -- you have the responsibility for putting all the pieces in the right places, finding and installing any required dependencies, then their dependencies, etc. The system that tracks software on your machine and handles updates will be unaware of those files, so you would need to update them manually.

    Learn to use the Ubuntu repositories and all other software packaged for Ubuntu. Together with the update and dependency resolution capabilities, they provide a convenience that Windows cannot.

  5. #5
    Join Date
    Jun 2008
    Location
    Tennessee
    Beans
    3,421

    Re: What is the proper way to install applications like a text editor?

    If you have something that's a "ready to run" binary file in a tar or zip archive, it's kind of up to you where to put it. I'd recommend this though:

    - Copy the directory to /usr/local/share/myapplication (you'll need to do this as root or with sudo).
    - Make a symlink to the executable file in /usr/local/bin/. Try to launch the file by the executable name from a command prompt. If you get a bunch of errors, it might be expecting to be in the actual directory, so I make a little script to cd to that directory and then launch the file.
    - Finally you can make a .desktop file that runs the executable. If you want this to show up in regular menus and such, put the .desktop file in /usr/share/applications/

    Of course, as others mentioned, it's better to get a .deb file when you can because all that stuff is typically done for you.

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •