Rough Book

random musings of just another computer nerd

Tag: youtube

How to stop YouTube sucking on Ubuntu/Linux

Recently I’ve noticed that YouTube’s performance on my machines have been terrible. It’s constantly buffering, or it will stop randomly in the middle of a video. I’ll get a few seconds of playback and then 10-30 seconds of buffering. It’s pretty terrible. On Windows I have been able to use the helpful workaround from here and performance has definitely increased. On top of that, I’m also using the SmartVideo plugin on Chrome (it’s also available for FireFox). But on my Linux boxes, I’m still having the same problem in spite of having the SmartVideo plugin. There is a Linux alternative to guide from above, but it uses ipfw program which is not natively available on Ubuntu/Linux (at least from my understanding) due to it being a BSD program. I didn’t want to compile it and install it from source, so I decided to use ufw instead, which is the “Uncomplicated Firewall” that comes with Ubuntu. It was pretty simple to convert the rules over. But first you will need to enable it (if you haven’t already). You can do that with:

sudo ufw enable

Then you can enable logging also, if you want:

sudo ufw logging on

If you SSH into your machine or if you use your machine as a webserver, you will need to enable a few more rules:

sudo ufw allow ssh/tcp
sudo ufw allow http/tcp
sudo ufw allow 8080/tcp

And of course, you can add the rules that will prevent your ISP from caching YouTube:

sudo ufw deny from 173.194.55.0/24
sudo ufw deny from 206.111.0.0/16

You can then use ufw status to verify that your rules are in place:

 ~ ⮀ $ ⮀sudo ufw status
Status: active

To                         Action      From
--                         ------      ----
22/tcp                     ALLOW       Anywhere
80/tcp                     ALLOW       Anywhere
8080/tcp                   ALLOW       Anywhere
Anywhere                   DENY        173.194.55.0/24
Anywhere                   DENY        206.111.0.0/16
22/tcp                     ALLOW       Anywhere (v6)
80/tcp                     ALLOW       Anywhere (v6)
8080/tcp                   ALLOW       Anywhere (v6)

Veterans Day

Yesterday was Veterans Day, so I made a video. It’s basically a montage with the Smallville theme in the background. You can view it here and download it here.

My Clip on NBC Nightly News

A while back, I uploaded clip I made on to my website. It was just a clip of us soldiers being silly. Anyway, after I came back from war, I uploaded that clip to YouTube. My initial comments were something like “lyk yeah whatevr that is so stupied”. I didn’t take those seriously, especially since it came from someone that couldn’t spell “stupid” correctly. I forgot about the clip until I received an email some months later from both NBC, and LMNOTV. NBC asked me if they could use my clip on their NBC Nightly News. I was surprised that my little clip would generate so much interest, and I went ahead and agreed. LMNOTV said that they might air my clip on their “My War Diary” show later this year. I’m going to send them a few more clips and pictures as well.

But anyway, check out NBC Nightly News tonight, and you may see my clip. Oh, and if you’re coming here because you saw my clip on NBC Nightly News, here are links to all my posts dealing with my experiences:

All original content on these pages is fingerprinted and certified by Digiprove
%d bloggers like this: