Results 1 to 7 of 7

Thread: Where is vlc in the root directory?

  1. #1
    Join Date
    Jan 2007
    Beans
    428

    Where is vlc in the root directory?

    How do I watch online TV using vlc?
    The file name to play is xxxx.m3u.
    The site says I can play it with vlc under linux.
    When I click on the link, the following screenshot pops. (I cannot post the screenshot. I don't know how to)
    I have "play with movie player" "play with other application" and "save" to choose from.
    I select "open with other application." Next window is the root directory. Where is vlc hidden?
    Last edited by paker; September 6th, 2009 at 02:12 AM. Reason: I cannot attach a screen shot.

  2. #2
    NoaHall is offline May the Ubuntu Be With You!
    Join Date
    Mar 2009
    Beans
    1,562
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Where is vlc in the root directory?

    Why not just type "vlc" in as a command.

  3. #3
    Join Date
    Mar 2007
    Beans
    763

    Re: Where is vlc in the root directory?

    did you install vlc?

    Code:
    sudo apt-get install vlc

  4. #4
    Join Date
    Jun 2009
    Location
    0000:0400
    Beans
    Hidden!

    Re: Where is vlc in the root directory?

    m3u is the file extension for a playlist, not a media file. Open it with gedit and you'll see its just a text file.

    http://en.wikipedia.org/wiki/M3U

    To actually answer your original question, any program installed to a directory in the $PATH variable can be found simply with the name alone -- you never need to worry about the path itself.

    If you actually find yourself ever needing the path of such a program, just use the whereis command. `whereis vlc` should resolve to /usr/bin/vlc. (can't check atm, borrowing a friend's macbook).

  5. #5
    Join Date
    Jan 2007
    Beans
    428

    Re: Where is vlc in the root directory?

    vlc was already installed.
    I could not just type in vlc. I had to select vlc from a folder tree.
    usr>bin>vlc. It worked. Mucho gracias.

  6. #6
    Join Date
    Oct 2005
    Location
    Albany, NY
    Beans
    828
    Distro
    Ubuntu

    Re: Where is vlc in the root directory?

    I'm guessing that you are using FireFox as a web-browser?

    The full path to the vlc executable is:
    Code:
    /usr/bin/vlc
    If you prefer the VLC version with the pretty skins:
    Code:
    /usr/bin/svlc
    That should answer your immediate question and let you use VLC, which I agree is an excellent choice. But since you asked, I'll take the brief liberty to use this as a teachable moment.

    1) Most applications that you can use as a non-root user can be found in /usr/bin. You can use Dolphin to browse over and look at it (it will take forever to load in Dolphin). My computer has over 1,500 files in this directory.

    2) If you are looking for a file, especially a system file, there are two good programs to use. locate, find. You can learn more by reading the man pages with "man locate" or "man find" at the terminal (drop the "").

    I'll spend a minute on locate.

    You could have used the locate command to find vlc in a single command (at a terminal prompt):
    Code:
    locate vlc
    You mileage may vary, but that generated several hundred possible options on my computer, because the string vlc occurs many many times on the computer. Fortunately, we can narrow this down. I know I am looking for a line that includes "bin" because I'm looking for an executable. So, I can use grep to filter out the rest of it.

    Code:
    locate vlc | grep bin
    This takes all the crap produced by the first command and "pipes" it over to the command grep, which ONLY returns lines that have the string "bin" in them.

    This command only returns 9 options, and it's easy to see which ones are interesting.

    Good Luck!
    Please Insert Funny Statement Here.

  7. #7
    Join Date
    Oct 2005
    Location
    Albany, NY
    Beans
    828
    Distro
    Ubuntu

    Re: Where is vlc in the root directory?

    Damn. Too slow.
    Please Insert Funny Statement Here.

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
  •