Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Launching apps from terminal

  1. #1
    Join Date
    Mar 2013
    Location
    Czech Republic
    Beans
    188
    Distro
    Xubuntu 14.04 Trusty Tahr

    Launching apps from terminal

    Hi, I know names of some packages and if I want to run them, I type e.g. "leafpad" and it will start. But how can I find launching names of other programs?
    I'm asking, because it is easy to write: "sudo leafpad"
    Thanks.

  2. #2
    Join Date
    Mar 2013
    Beans
    40

    Re: Launching apps from terminal

    Searching the package database from the terminal should bring you hits. For example, if you wanted to find out LibreOffice Calc's name, you'd write:
    Code:
    apt-cache search LibreOffice Calc
    The resulting list will likely contain the package's name, which you can use to start the process.

    Also, you should not run graphical applications with sudo, as it messes up file ownsership (files you edit with it will be owned by root) and has security implications. Use gksudo instead (or kdesudo if you are using Kubuntu).

  3. #3
    Join Date
    Mar 2013
    Location
    Czech Republic
    Beans
    188
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Launching apps from terminal

    Thanks, but when I do the code as you said, there is too many commands and I don't know which one of them works..
    Code:
    vilem@vilix-X201EP:~$ apt-cache search LibreOffice Writer
    libreoffice-base-core - office productivity suite -- shared library
    libreoffice-filter-binfilter - office productivity suite -- legacy filters (e.g. StarOffice 5.2)
    libreoffice-writer - office productivity suite -- word processor
    accessodf - Libreoffice extension to check accessibility of ODF documents
    bibus - bibliographic database
    bibus-doc-en - Bibus bibliographic database documentation
    libreoffice - office productivity suite (metapackage)
    libreoffice-templates - Additional set of templates for LibreOffice
    libreoffice-writer2latex - Writer/Calc to LaTeX converter extension for LibreOffice
    libreoffice-writer2xhtml - Writer/Calc to XHTML converter extension for LibreOffice
    libwriter2latex-java - OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- library
    libwriter2latex-java-doc - OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- javadoc
    writer2latex - OpenOffice.org Writer/Calc to LaTeX/XHTML converter
    writer2latex-manual - OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- manual
    libobasis4.0-en-us-writer - Writer language module for LibreOffice 4.0, language en_US .1.2
    libreoffice4.0-writer - Writer brand module for LibreOffice 4.0 .1.2
    libobasis4.0-writer - Writer module for LibreOffice 4.0 .1.2
    libobasis4.0-librelogo - LibreLogo toolbar for LibreOffice 4.0 Writer .1.2

  4. #4
    Join Date
    Mar 2013
    Beans
    40

    Re: Launching apps from terminal

    If there are many results, discard the ones that start with "lib" first, as they are programming libraries. Then, check the descriptions on the right—in this case, you should go for libreoffice-writer, whose description is "office productivity suite -- word processor". Similarly, if you wanted to run an imaginary program "Foobar", you'd select an entry like "foobar-program - florbish for grommicking".

  5. #5
    Join Date
    Mar 2013
    Location
    Czech Republic
    Beans
    188
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Launching apps from terminal

    Thank you very much TK999

  6. #6
    Join Date
    Mar 2013
    Beans
    40

    Re: Launching apps from terminal

    No probs

  7. #7
    Join Date
    Mar 2013
    Location
    Czech Republic
    Beans
    188
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Launching apps from terminal

    Anyway, I can't still run it.
    Code:
    vilem@vilix-X201EP:~$ apt-cache search LibreOffice Writer
    libreoffice-base-core - office productivity suite -- shared library
    libreoffice-filter-binfilter - office productivity suite -- legacy filters (e.g. StarOffice 5.2)
    libreoffice-writer - office productivity suite -- word processor
    accessodf - Libreoffice extension to check accessibility of ODF documents
    bibus - bibliographic database
    bibus-doc-en - Bibus bibliographic database documentation
    libreoffice - office productivity suite (metapackage)
    libreoffice-templates - Additional set of templates for LibreOffice
    libreoffice-writer2latex - Writer/Calc to LaTeX converter extension for LibreOffice
    libreoffice-writer2xhtml - Writer/Calc to XHTML converter extension for LibreOffice
    libwriter2latex-java - OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- library
    libwriter2latex-java-doc - OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- javadoc
    writer2latex - OpenOffice.org Writer/Calc to LaTeX/XHTML converter
    writer2latex-manual - OpenOffice.org Writer/Calc to LaTeX/XHTML converter -- manual
    libobasis4.0-en-us-writer - Writer language module for LibreOffice 4.0, language en_US .1.2
    libreoffice4.0-writer - Writer brand module for LibreOffice 4.0 .1.2
    libobasis4.0-writer - Writer module for LibreOffice 4.0 .1.2
    libobasis4.0-librelogo - LibreLogo toolbar for LibreOffice 4.0 Writer .1.2
    vilem@vilix-X201EP:~$ libreoffice-writer
    libreoffice-writer: command not found
    vilem@vilix-X201EP:~$ libreoffice4.0-writer
    libreoffice4.0-writer: command not found
    Yes, I have libreoffice 4.0 installed and it normaly works while launching from menu.
    Last edited by ViliX64; March 13th, 2013 at 06:04 PM.

  8. #8
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    4,244
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Launching apps from terminal

    If you want to run graphical apps like leafpad, or gedit, or what have you, don't use sudo.
    Use gksudo, or in kde kdesudo.

    https://help.ubuntu.com/community/RootSudo
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

  9. #9
    Join Date
    Oct 2008
    Beans
    3,509

    Re: Launching apps from terminal

    Quote Originally Posted by ViliX64 View Post
    Hi, I know names of some packages and if I want to run them, I type e.g. "leafpad" and it will start. But how can I find launching names of other programs?
    I'm asking, because it is easy to write: "sudo leafpad"
    Thanks.
    Drag the application launcher from the dash or menu into a gedit/leafpad window and look at the
    Exec= line.
    Last edited by stinkeye; March 13th, 2013 at 06:41 PM.

  10. #10
    Join Date
    Mar 2013
    Location
    Czech Republic
    Beans
    188
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Launching apps from terminal

    stinkeye.. nice tip! I thought about that, but I could not find any menu editor, with whole commands..

Page 1 of 2 12 LastLast

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
  •