Close Menu
    X (Twitter)
    Hectic GeekHectic Geek
    • Apps
      • Apps for Mac
      • Apps for PCs
      • Best Apps
    • Concepts
      • Comparison
      • For Geeks
      • IT Careers
    • Gadgets
      • Accessories
      • Best Work Laptops
      • Budget Laptops
    • GNU/Linux
      • Ubuntu
    • How To
      • Virtualization
      • Windows
      • Windows How-To
    Hectic GeekHectic Geek
    Home » yt: YouTube Browser (Command-line) for Ubuntu Linux
    Ubuntu

    yt: YouTube Browser (Command-line) for Ubuntu Linux

    GayanBy GayanApril 11, 2012Updated:May 17, 20137 Comments4 Mins Read
    Twitter Reddit Telegram WhatsApp Email
    Share
    Twitter Reddit Telegram WhatsApp Email

    If you’re an addicted user of the free, online video sharing website “YouTube” 😉 and use GNU/Linux as the operating system, also happen to be using the command-line interface a lot too, then you might love this small, yet an awesome tool called “yt” (stands for “whitey”).

    It’s written in Python and is a “YouTube browser” that lets you search and play YouTube videos directly from the command-line!. It’s actually a front-end that uses both “youtube-dl” (YouTube video downloader) and “mplayer” as the video player.

    It’s not a new tool and has been there for sometime now according to the release history. But I’m glad that I just found it! ;-).

    Few main features …

    *. One thing “yt” lacks is the proper documentation.

    But then again, as you can see form the below screenshots, all of its features are controllable through keyboard shortcuts and it displays all of them on the main window. So it’s still a very intuitive application in my humble opinion.

    *. Shows information of individual videos such as: The Title, small Description, Duration, Size, original Uploader and few other details that I don’t actually know of.

    *. You can: search, sort (by: relevance, view count, publication date and ratings), view videos uploaded by a certain user, go to next/previous track lists etc using the keyboard shortcuts.

    *. If you use a desktop environment and use a Terminal emulator, then when you resize the Terminal’s window, “yt” will also resize its content to fit into the new size as well.

    That’s pretty much it at the moment.

    Installation in Ubuntu Linux ….

    1. As said, it mainly has two dependencies. So before you can start using it, first you’ll have to install those dependencies in Ubuntu (or in whatever the GNU/Linux distribution that you use).

    You might have them installed already, but just in case, open your Terminal window and enter the below commands to install them.

    sudo apt-get install mplayer youtube-dl

    2. Since it’s written in Python, you need another small utility to install it. For that, please use the below command.

    sudo apt-get install python-setuptools

    3. Now, go to this “yt” download page and get it and extract its content to your “Home” folder.

    4. Now open your Terminal window and “change directory” to that folder. If you don’t know how to do it, then use the below command (if you have a never version than the current one, then please rename the name accordingly).

    cd whitey-0.1

    5. Enter the below command to install it (finally! ;-)).

    sudo python setup.py install

    Now whenever you want to launch it, open your Terminal and enter the below command.

    yt

    You can quit the application by pressing “q” or “Ctrl” + “c” keys.

    If you want, you can search for a video upon launching the program (or you can use the built in search feature once it’s loaded as well). For instance, let’s say that I wanted to search for “ubuntu” and get videos for that term, then I’d use “yt” with the below format.

    yt ubuntu

    How to play a video?

    Simple. Just press the playlist item’s number on your keyboard and it should start playing it in full screen (you can escape “full-screen” by pressing the “f” key).

    For instance, to play the “3rd” item on the list, simply press “3” or to play the “5th”, press the number “5” etc. To stop playing a file, play the “q” key. As mentioned above, you can go up and down in a list (if the playlist items don’t fit into the Terminal window’s size) by using the “[” and “]” keys.

    Getting rid of the extracted folder from your “Home” (no worries, it won’t remove the installed app!)

    If you want to delete the extracted folder as keeping it in your pretty & well categorized “Home” folder (unlike mine ;-)) can be a bit of a distraction. For that, open your Terminal window and change your directly to that folder (as shown in step “4”) and enter the below command (otherwise, the file manager won’t be able to delete the folder).

    sudo python setup.py clean

    Now you can use “Nautilus” for deleting that folder.

    That’s it. Enjoy!.

    Share. Twitter Reddit Telegram WhatsApp Email
    Gayan

    An RHCE, 'Linux' user with 14+ years of experience. Extreme lover of Linux and FOSS. He is passionate to test every Linux distribution & compare with the previous release to write in-depth articles to help the FOSS community.

    Related Posts

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    Debian vs Ubuntu Server: A Brief Comparison for Beginners

    July 2, 2023

    CPU Based Simple System Stability and Benchmark Tester for Ubuntu Linux – systester

    June 16, 2023

    Typespeed: Typing Speed Testing Game for Ubuntu Linux

    March 12, 2023

    Debian vs Ubuntu in 2023- Which Linux OS is Right for You?

    January 6, 2023

    7 Comments

    1. nomad on May 31, 2012 4:46 pm

      How tastefully minimalist! Thank YOU

      Reply
      • Gayan on June 1, 2012 1:01 pm

        You are welcome!.

        Reply
    2. spiderbit on September 22, 2012 2:46 am

      if you trust pypy where anybody can upload his shit… you just can easier install and update it via pip:

      so the hole process to instlal should be: sudo pip install whitey

      Reply
      • Gayan on September 22, 2012 7:00 pm

        Thanks!.

        Reply
    3. thepelican3 on October 23, 2013 3:43 am

      how do you use youtube-dl with this interface 🙂

      Reply
      • Gayan on October 23, 2013 10:51 am

        Hi,

        Actually, ‘yt’ only uses ‘youtude-dl’ for temporarily downloading files to disk, while playing them, and doesn’t save them to disk permanently if I’m not mistaken (it’s been a long time since I used it, so …)

        Reply
    4. Lino on September 28, 2016 12:48 am

      hi! it seems that when I enter the name of a video, it says the “argument” isn’t recognized. Launching yt itself leads to youtube searching for a few seconds and then brings back to terminal.. any solution?

      Reply
    Leave A Reply Cancel Reply

    This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Latest Posts

    Transforming Geek Culture with Advanced Software Development

    April 8, 2024

    The Role of Technology in Enhancing Digital Signage Solutions

    February 21, 2024

    How to Check Linux CPU Usage?

    February 5, 2024

    Linux export Command: A Comprehensive Tutorial

    February 3, 2024

    [Fixed] HDMI No Signal to TV or Monitor on Windows 10/11

    November 7, 2023

    AlmaLinux vs Ubuntu – How to Select the Best One?

    October 22, 2023

    Subscribe to Updates

    Get the latest news and updates from Hectic Geek. We won't overload you or sell your data!

    Contact
    • About Us
    • Contact Us
    • Privacy Policy
    • Write for Us
    X (Twitter)
    © 2026 Hectic Geek.

    Type above and press Enter to search. Press Esc to cancel.