I love the terminal. And to quote one guy on another forum (I don't remember where) "Chicks dig guys with terminals." B-)
Also, the terminal is significantly more RP friendly than X (differ if you must, but I really feel that it's inherent because of the amount of RAM)
I spend about 80% of my time on the RP in the terminal without ever starting X.
So, here's how to play youtube without ever having to boot X!
BTW, this requires omxplayer for the RP.
Advantages:
- Don't have to boot X
- Hardware Acceleration
- What the heck?? Who needs Flash or HTML5??
So here's how:
First, we need several dependencies: youtube-dl and python-setuptools. Problem: youtube-dl isn't in the ARM repos. Not sure why... it's python...
So, we have to download it here: https://github.com/rg3/youtube-dl/raw/2012.02.27/youtube-dl
- Code: Select all
wget https://github.com/rg3/youtube-dl/raw/2012.02.27/youtube-dl
Then we have to manually install it:
- Code: Select all
chmod +x youtube-dl
cp youtube-dl /usr/bin/youtube-dl
Now we need to install python's setup tools. And BTW, don't worry, this is all small stuff. You won't clutter up your SD card.
- Code: Select all
sudo apt-get install python-setuptools
Next we need to download and extract yt which is an awesome python console utility for playing youtube videos.
- Code: Select all
wget http://pypi.python.org/packages/source/w/whitey/whitey-0.1.tar.gz
tar -zxvf whitey-0.1.tar.gz
But DON"T INSTALL YET! We need to tell yt to use omxplayer not mplayer because that doesn't work on the RP.
Navigate to whitey's /src/yt/ directory, and edit __init__.py as follows: The line that has the mplayer command in it, change mplayer to omxplayer, and remove the argument switches.
Or, you can download my edited version here: https://dl.dropbox.com/u/33311875/__init__.py and replace the file completely.
Next, navigate up two directories so that you are in the main whitey folder, and then install:
- Code: Select all
sudo python setup.py install
Then you should be able to just run ~$ yt and watch the magic happen! The interface is really quite intuitive IMHO.
NOTE: If you don't have omxplayer, it's getting easier and easier to install these days. Just follow the instructions on this comment: http://www.raspberrypi.org/phpBB3/viewtopic.php?p=74221#p74221