Archive for the ‘Linux’ Category:
My 2009 predictions
I have never done this before but I thought I would take a swing and making some predictions at what I think is going to happen this year with technology.
Computers:
1. Smaller, faster, better. Duh. That is obvious but I think there will be some big improvements in “alternate” input for computers. Apple is rumored to release a multi-touch imac. Windows 7 has multi-touch support and is just waiting for hardware/software to take advantage of it. In 2009 I expect to see the biggest improvements in multi-touch software. Games will probably be first, with the iPod touch and iPhone helping with lots of ideas, and then we will get some cool browser and media solutions. I for one would love to see cooliris with some multi-touch support. After multi-touch will probably come touchless input but I don’t think that will gain a lot of ground in 2009.
2. GNU Linux will gain at least 1% (double) market share (putting it up to 2%) before the end of the year spearheaded by Ubuntu. At this point I believe every major computer retailer (except Apple of course) offers GNU Linux on at least 1 model line, and when people see the boot speed and stability improvements of the next Ubuntu release more and more people are going to start “giving it a shot”.
3. 2009 will be the year of Microsoft solutions. I know Apple is gaining on Microsoft’s market share and they still will for a good part of 2009. But I don’t think market share ever really tells a full story. All I hear about now is how Apple is the coolest thing since super cooled capacitors, but I sense a bit of a change in the wind. I think Windows 7 will launch in 2009 and will greatly restore faith in Microsoft as a company. I also think that the next version of Windows Mobile will finally catch Microsoft up in the mobile platform market. The Windows Mobile OS won’t surpass what is currently out with Android or iPhone but it will make it respectable in what it can do and how it looks. I also think that the Windows Home Server market will gain popularity and the Xbox line will continue to grow. Finally, I think Zune sales will skyrocket (mainly cause Zune media player will be in Windows Mobile 6.5). Right now the Zune is in spot 3 behind Scandisk and Apple. I think as more and more people become unhappy with their iPods but they don’t want to upgrade to iPod touches or iPhones they will turn to the Zune. Last I checked Zune had 5% market share, but by the end of the year I see that number doubling to 10% of the mp3 player market. A big jump but it is truly a worthy mp3 player in my book.
Video games:
1. The Wii will crash. They have enjoyed a crazy amount of sales for far too long and they haven’t come out with any good software for months. I am so glad this day will finally come because I haven’t liked the Wii from the start. They will quickly be outsold for a few months by the Xbox 360 and the Wii will drop in price (my guess is to ~$180). Either way it will be hard to recover and it will probably just die out until Nintendo unveils the Wii HD or something ridiculous. By this time the Wii will not be “the console to have” and most people will finally see the console for what it truly is.
2. The PS3 will jump in sales. I already see this at my work. Two of my co-workers who previously bought Wii’s finally want to either A. Play real video games again or B. Watch Blu-ray movies. Their obvious choice was the PS3. Although the price is a big jump, people will finally realize all the features you get out of a PS3 and will start buying them mainly for Blu-ray players and eventually for gaming systems. The PS3 will also start to gain popularity because the Xbox 360 will run out of juice (aka. storage space) and the PS3’s potential will finally start to be tapped into. Sony will begin to push out better programming tools and maybe even Valve will come to the dark side and program their own crap for the PS3.
3. Online systems will be key this year. Xbox Live is fantastic but costs money. More and more people are getting tight on money and Xbox Live will probably suffer because of that. The PSN has been mediocre at best, but at the cost of free I think more people will sign up for this than ever before. Also Nintendo will realize the error in their ways in not offering a online service and will make plans for it with the Wii HD.
4. I think the PS3 will offer 3D gaming to some extent. Most people don’t realize their Samsung HDTV can display the 3D content and the market is ripe for the picking. I think the PS3 will be the only console that can really handle the amount of power it will take and storage space to contain 3D content.
Other:
1. February 17th will be a very dark day for a lot of people. Best Buy will be crowded as hell, and people will be very upset their antenna doesn’t work anymore. The biggest impact will be in low income/minority neighborhoods. There will probably be some bill passed to make sure they are not forgotten about in the future. HDTV sales will continue to decline until after February 17th when they will get a small kick in the pants until the economy levels out.
2. Because of the DTV transition online television distribution systems will benefit. Hulu, Vudu, Boxee, Apple TV, Windows Media Center will all see a lot more users than ever before. It is going to be a big quantity over quality issue but the amount of free content online will win in the end. After online distribution systems gain some ground they will start to push better quality to the users.
3. Displays are going to rock. Not just TV’s either. Laptop displays, computer monitors, projectors are all going to improve. OLED will make a big push (”organic” isn’t just for your foods) and I think we will probably see some sort of built in projector for a laptop this year. Pocket projectors will also finally become something worth looking at.
4. The internet will have a new awesome site. There will be some new MySpace/Facbook site for 2009 and it will include all the other sites in one. It will finally truly be able to combine your online accounts (at least social accounts) in one place. I have a feeling this site will be run in some way by Google (or at least bought by Google in the end). I think the first step to this will be Google NOT buying Facebook. If they do buy them then there would be no point in making an all inclusive social site. Their new site will easily tie in with YouTube, Blogger, Google Calendar, etc. The next step would be for Google to buy Twitter.com. As more people don’t have time to blog, they will turn to Twitter to allow them to blog on the go.
Well that is it. I know it was a heck of a lot of reading and I thank you for reading it (or at least skimming it). I will hopefully follow up 1 year from today to see how these predictions were met.
Let me know your predictions in the comments or if you agree/disagree with any of mine.
Compile Lirc on an AOpen mp945-dr with Ubuntu
I recently traded in my Mac Mini for a AOpen mp945-dr to see if it would work any better with MythTV and Boxee. I started off with Ubuntu 8.10 installed but found some random problems with video not displaying every time the computer would start so I went back to 8.04. On problem I had with both installations was that the remote sensor did not work out of the box. I did some digging and found that Lirc does work with this machine but the latest development branch was not included in Ubuntu for stability reasons. Here are the steps I had to take to get the remote sensor working.
As a overview we are going to:
1. Download the tools needed to compile software in Ubuntu.
2. Download the latest version of Lirc using CVS
3. Compile Lirc source
4. Test it real fast to make sure it works.
1. Download the needed compiling tools.
sudo su
apt-get install libtool autoconf automake linux-headers-`uname -r`-generic cvs
This will download and install the compiling tools.
2. Download Lirc
First lets make a folder to put it in
mkdir ~/lirc
cd ~/lirc
Then we will download the newest source from sourceforge. We are using a tool called CVS to read more about it check out here.
cvs -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc login
cvs -z8 -d:pserver:anonymous@lirc.cvs.sourceforge.net:/cvsroot/lirc co lirc
Because we ran that command while in the ~/lirc folder everything downloaded there so we just need to run the commands to configure everything before we build it.
./autogen.sh
./setup.sh
In the graphical interface I selected Driver config > USB > mceusb2 (new)
Then continue with compiling
make
make install
modprobe lirc-mceusb2
Because Ubuntu does things slightly different we need to copy a couple files to where Lirc expects them to be.
cp /lib/modules/`uname -r`-generic/misc/lirc_dev.ko /lib/modules/`uname -r`-generic/ubuntu/media/lirc/lirc_dev
cp /lib/modules/`uname -r`-generic/misc/lirc_mceusb2.ko /lib/modules/`uname -r`-generic/ubuntu/media/lirc/lirc_mceusb2
Then we can continue with installing the new Lirc into the running kernel.
rmmod lirc_mceusb2
rmmod lirc_dev
lsmod|grep lirc
/etc/init.d/lirc restart
Everything should be compiled and in place now.
4. To test it out run
irw
and then push some buttons on the remote. You should see the commands you press displayed in the terminal. If you see that then you can just push Ctrl+C to stop irw and you should be all set to go.
I had to change this tutorial slightly from where I originally posted it in the Ubuntu forums so that it would be more universal. If you have problems please leave a comment and check out the original thread here.
I hope this helps.
Open files as root (the easy way)
I ran across a couple of tips in Linux to open a file as root without having to use a terminal. The first is a shortcut on your desktop. To make this one just right click on your desktop and then select “Create Launcher…”. When the dialog box pops up you can put in whatever you want for “Name” and “Comment” but for “Command” just put in the following command.
gksudo “gnome-open %u”
Now to open a file as root all you have to do is open the file location and drag the file to that shortcut. The system will probably ask you for your root password and then open the file as root.
A easier way is to browse to ~/.gnome2/nautilus-scripts/ and create a new file called “Open as root”. Edit the file and put
#!/bin/sh
gksudo “gnome-open $NAUTILUS_SCRIPT_SELECTED_URIS”
inside the file. Right click on the file and go to properties -> permissons then check the box that says “Allow executing file as a program”. Now all you have to do is right click on a file you want to open as root, go to scripts and click “Open as root”.
I just wanted to pass these along cause I thought they were very helpful.
Well that was stupid…easy MythTV fixes
Just a real quick tip for anyone having problems watching live TV or recording shows in MythTV. After a fairly fresh install I could not watch live TV. My screen would go black for a second and I would be kicked back to the main menu. I also was not able to record shows. The recording would show up on the schedule but nothing would happen when the time to record would actually come. So my tip is check your log files!!! They are stored in /var/log/mythtv (at least they are in ubuntu). You should have mythbackend.log*, mythwelcom.log, and mythfrontend.log* in that directory. The log files are incremented making the highest number the oldest file and the one without a number your newest file. So check the newest file first.
As for my problem I checked my frontend log first, but I didn’t see much information besides the fact that I changed skins. So I decided to check the backend. Here is what I found.
2008-11-23 10:26:22.432 TFW, Error: Opening file '/media/mythtv/recordings/1941_20081123102621.mpg'.
eno: Permission denied (13)
2008-11-23 10:26:22.436 TVRec(1) Error: RingBuffer '/media/mythtv/recordings/1941_20081123102621.mpg' not open...
2008-11-23 10:26:22.437 TVRec(1) Error: CreateLiveTVRingBuffer() failed
2008-11-23 10:26:22.438 TVRec(1) Error: Failed to create RingBuffer 1
Now this may not be too obvious to most people but take a look at “Permission denied (13)”. DOH! I forgot to give my user permissions to the directory I set up to record my shows in (as well as my live TV folder).
sudo chmod 777 /media/mythtv/*
and now I am able to watch live TV and record whatever shows I feel like.
Just thought I would save you the hassle if this happens to you.
Why the Mac Mini sucks for MythTV/PVR
I bought the mac mini for a few reasons:
1. It is very small and very quiet
2. It looks good with my AV equipment
3. There are a lot of accessories that match the looks of the mini
4. It came with good enough specs for video playback and recording
The main problem I had was dealing with the small/slow hard drive. So I wanted to upgrade that but here are some of the things I ran into.
First of all, the Mac Mini had almost everything I wanted (and some things I didn’t care about) built in. I wouldn’t need to add any features to the device unlike other small computers I was looking at. Most other small computers came with almost everything I needed except one or two thing, built in IR for a remote or firewire. These were requirements for me. I know I could have used a USB -> IR adapter but I wanted this computer to look a little less DIY than my last MythTV. And not having firewire seemed too complicated to try and add my own through expensive adapters.
My goal for the Mac Mini was to upgrade the internal hard drive and use an external 1 TB drive.
The reason for this was storage and speed. The internal hard drive in the Mac Mini is only 5400 rpm and while that works fine for web pages and word documents, when reading and writing large media files all day it just would not be fast enough for the task. One option was to install the OS on the internal hard drive and use a external hard drive just for storage over USB but the CPU overhead of USB and the read/write speeds would just not cut it (internal SATA II is over 6 times faster than USB 2.0/Firewire 400). There also is no firewire 800 port so that wouldn’t work either. I tried following a walk through that someone else already did with a mini hard drive upgrade but apparently Apple has updated their device since this was done and adding a hard drive the same way is no longer possible. If this worked for you on a post Nov 2007 Mac Mini please let me know in the comments. The problem I had was the Mac Mini would never detect any hard drive outside of the chassis. I tried with multiple cables, hard drives (2.5″ and 3.5″) but never once was able to get OSX or Ubuntu installed on the bigger hard drive.
To break it down, the reasons the Mac Mini actually sucks for building your own PVR are these.
1. Slow (low storage) hard drive
2. Expensive features that are not needed but you don’t have a option but pay for. (OSX, iLife, Apple tax, etc.)
3. Hard to upgrade processor and memory
And these are the reasons I picked the AOpen over the Mac Mini.
Mac Mini uses a older 945GM chipset with 667 Mhz vs. GM45 chipset with 1066 Mhz, it uses a more power hungry 65nm (T5600/T7200) processor vs. 45nm (T8100 or any socket p processor you want), and GMA950 GPU vs. GMA X3100. Not really big deals considering both should have the ability to play back most 1080p content. But having updated specs just make things a little easier, and the ability to upgrade helps make the PVR future proof…well almost.
For anyone interested, here are some pictures of the steps I took to make the Mac Mini NOT work with an external eSATA 1 TB hard drive.
![]() |
Sata to eSATA adapter. I was sent the wrong adapter and Microbarn would not accept the fact that this was a female SATA to male eSATA cable when I needed male to male. Even after sending them this picture. P.S. don’t order this, order this. |
![]() |
Adapter plugged into the Mac Mini SATA riser card with a male to male sata adapter I had to buy extra thanks to Microbarn. Maybe I just don’t understand male and female connectors. |
![]() |
SATA cable run inside the case. This wasn’t as hard as I thought it would be. See the picture above for what it looked like coming out of a slightly modified Kensington lock hole. |
Let me know how a Mac Mini is working out for you as a PVR or what other machine you bought as a substitute in the comments.
MythTV…another build
So I have really been missing the ability to record/rewind/pause TV. I haven’t had a full time MythTV box for over a year and a half. I sold my old MythTV computer and had been saving the money till something perfect came out to use as a fast and quiet MythTV computer and samba server. I actually bought a Mac mini about 2 months ago in an effort to get it working with a external hard drive for speed and storage. Needless to say, Apple did a good job of making the Mac mini too annoying to try and get it to work the way I wanted it to. I will post a little on my experience there later.
So I returned the mini and found the AOpen mp45-dr. It is about the same size as the mac mini (technically smaller) and it came bare bones. This is great because I could either get the same specs as the mini for cheaper or I could improve the parts I wanted to improve and not get the “features” I didn’t need (like internal wifi or internal laptop hard drive). Unfortunately, the mp45 had one thing I really needed to complete my HTPC, firewire. I looked around to see if I could get firewire out of the eSATA port or one of the two internal PCIe mini ports but I couldn’t find anything that would work the way I wanted and I needed firewire to record premium HD shows from my cable STB. So I found the mp945-dr which is just the older model of the same computer. It looks almost exactly the same but has a slightly slower video card, no eSATA port, and slower chipset (which included a slower FSB). When I really looked at it though, the parts it came with would be plenty for what I needed and so I used the money from my MythTV sale (and a few other side projects) and bought the AOpen mp965-dr.
Here is my build.
AOpen mp965-dr (from Buy.com)
Intel Core 2 Duo T8100 (from newegg)
2GB Kingston Ram (from newegg)
WinTV-HVR-950 Tuner (from newegg)
1TB ministack v3 (from other world computing)
Sata -> eSATA cable (from mwave)
I also already had a HDHomerun tuner and firewire cable for a tuner from my STB.
I am excited to get this up and running again and will post my build as time goes on. Here is a quick rundown/reference to the sections I will be writing. I will update these later with links.
Part 1: Setting up the hardware
Part 2: Choosing the software
Part 3: Setting up software
Part 4: Using the machine day to day
Buying a NAS part III
Ok, it has been quite a while since my first two articles on this (Part 1 and Part 2) and I wanted to post a little update on my situation. I haven’t worked on my linkstation hard drive because I decided to go a slightly different route. Ultimately, I want something that has some sort of RAID set up for backup purposes but at this time I don’t have the time, money, or space for such a device. Instead I decided to use my MythTV computer as my network storage device on top of its current PVR functions. Because MythTV will be a full computer it will have a lot more features and options I can use to configure and set up the NAS exactly as I want. This will also mean that I only have to have one device on at all times instead of my originally planned 2 devices which will save a bit of money in power bills. I finally have a computer that is going to work for my new MythTV setup (more on that to come) so as I get that configured I hope to post some more how-to’s on my quest for the perfect cheap NAS solution.
Just so I get some of my goals in place here are my current needs for the NAS setup.
-
1. Separate users to allow read only access to certain folders and write permissions to others.
2. At least 500 GB.
3. Upnp server to allow easy playback on my PS3, XBMC, WMP, etc.
4. Under $300. While this is still a goal it is going to be quite skewed with my budget for my MythTV computer. I will try to add all the cost up correctly though.
Two more items were on my list from my first posting so I will echo them here as well.
-
5. Be able to connect to a ethernet network without adapters. This won’t be a problem at all because my MythTV computer will be plugged into the network at all times.
6. Low power consumption. While the MythTV computer will draw more power than my original Linkstation, the ability to get rid of the Linkstation in favor for just having one device will defiantly save power over having both devices turned on at all times.
So I haven’t given up on getting my NAS up and running but my plans changed a little. For now the Linkstation still gets used every day and it is helping a lot with temporary storage. I will keep the site update with my install notes and what has worked for me.
How-to tether Windows Mobile to Ubuntu
Another random site I found the other day had this little tip on tethering your Windows Mobile phone to Ubuntu.
Seems pretty straight forward. I haven’t tried it yet but I don’t think it would be too complicated.
apt-get install subversion
svn co https://synce.svn.sourceforge.net/svnroot/synce/trunk/usb-rndis-lite
cd usb-rndis-lite/
make
sudo ./clean.sh
sudo make install
Then you just need to go to internet sharing on your phone and plug it in. Whenever I have a chance to give it a try I will let you know if it works for me.
If you get a chance to try it leave me a comment and let me know.
Ubuntu CPU scaling
I ran across a good article on how to scale your processor in Ubuntu. For me this was turned on by default and it really helped my battery life on my laptop and now it is nice to know how to configure it.
Here is the link to the full page. I am going to echo the text here just in case the website becomes non-existent like so many good sites do.
CPU Scaling is a feature built into most modern (mobile) CPUs that allows them to scale up or down in how fast they run and how much energy they suck down based on demand. If you have a fairly modern mobile computer there’s a very good chance that your CPU(s) can handle frequency scaling.
Why should you care? Well, you can control this to tell you computer how much power and how fast it should allow it’s CPU(s) to operate. This can save some energy and thus battery life at the expense of a little performance – which is great for extending the use time of your laptop when it’s unplugged.
Can your CPU(s) handle scaling? There’s an easy way to find out. Open up a terminal session (Applications -> Accessories ->Terminal) and type or paste the following into it:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies
On my machine I get back
1667000 1333000 1000000
Those are in Hertz, so my machine is capable of 1.66Ghz, 1.33Ghz and 1.00 Ghz.
Now that you know your CPU(s) can handle scaling, let’s see what modes are available. In the terminal, type or paste:
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
Again, I get:
powersave ondemand userspace conservative performance
Powersave will keep the CPU constantly at the lowest frequency. Ondemand will set the CPU at the lowest frequency (in my case, 1.00Ghz) until use of the CPU increases, then it will automatically bump it up to the highest frequency (with me, 1.66Ghz). Userspace means that a different program will be used to control the CPU’s scaling. Conservative is where your CPU will go up as needed, starting at the lowest frequency, and then bumping up to the next available until it maxes out. Performance simply sets the CPU(s) at the highest available frequency and keeps it there.
The lower your frequency, the less power you use. So, if you’re bent on extending your battery life to the max, you’d want to keep your CPU(s) at their lowest frequency – but you’ll do this at the expense of computing power. In my case my 1.66Ghz processors would effectively be 1.00Ghz processors.
Now, how do you actively control this? It’s fairly easy. Right click on an empty space in your taskbar (where your applets and such things as Applications, Places and System are located) and choose “Add to panel”. From there, find the CPU Frequency Scaling Monitor. Double click on this and it will appear in your taskbar. Right click on it and choose Properties and you can set various options like have it show your CPU frequency as a frequency (i.e. 1.33Ghz) or as a percentage. If you have multiple CPU’s or a dual/quad core machine you can also choose which CPU to monitor.
To configure this applet to actually allow you to control how your CPU(s) scale, you’ll have to had back to the terminal.
Type this:
sudo dpkg-reconfigure gnome-applets
This will throw up a nifty blue screen asking you to say Yes. Do so. Then it will ask if you want to install cpufreq-selector with SUID root. Say yes. Once you’ve done this, go back to your CPU Frequency Scaling Monitor in your taskbar and left click it. You should now be presented with a bunch of options from which you can choose the one you want. You can also directly set the frequency at which your CPU(s) will run at, which can be handy if you want to scale up or down for a short bit and then manually change it again.
As you can see, I’ve got mine set to Ondemand, allowing the frequency to scale up through three different settings (1 GHz, 1.33 GHz or 1.66 GHz) as needed.
While this will take effect immediately, it will only be in effect until you reboot at which time your default settings will come back. To change the default head back into your terminal and type:
gconf-editor
From there head to apps -> gnome-power-manager -> cpufreq. Find the settings policy_ac and policy_battery and change them to whichever setting you want for the default.
For those with multiple cores or processors who happen to be a bit needy in the info department (like myself) you can add an applet for each CPU. Just add as many applets as you have CPUs and then right click on them, choose Preferences and use the drop down to choose which CPU that particular applet is monitoring.
Now you know a lot more about CPU Frequency Scaling then you may have when you started reading this article and you know how to set it on your computer.
All credit goes to arsgeek at Hubpages.
While I didn’t use the applets the whole article is very well written and has lots of information.
Make Ubuntu better with brainstorming
It has been a while since my last update but I have been really busy with lots of stuff. Here is a quick update I have for now.
I will start with saying that the Ubuntu developers saw it fit to ask its users for good ideas to put into the operating system. The best way to do this of course is to put it online and let people come and suggest whatever they want. Well brainstorm.ubuntu.com was launched last week and let me tell you there are a lot of great ideas on there. I actually think I learned more by looking at the ideas that were posted and going through the comments to see what people said you can do right now to fix it than if I had just gone to the Ubuntu forums and searched for hours and hours.
That being said here are a couple of things I found that make Ubuntu a little better in my opinion.
First is the fix for when Ubuntu has to scan your hard drive at boot time (every 30th time a volume is mounted). This is very annoying to say the least. Especially if you have more than one hard drive in your computer. My computer is scanning itself once every eight times I turn on my machine. That not only slows down productivity but it also just makes me not want to use my desktop. Some people say you can easily turn off the scan but I am a bit too paranoid for that. So I found a couple quick fixes to make scanning more manageable. The first one, the one I am currently using, is called AutoFsck. All AutoFsck does is it warns you when you go to shut down your computer that Ubuntu will want to scan at next boot. It then prompts you if you want to restart now, have the scan run, and then have the computer shut itself off. Or you can choose just to let the scan run as it normally would. While restarting and scanning seems to waste even more time than scanning at startup, it still makes it easier because if I am shutting down my computer, chances are I am done using it and it can stay on scanning as long as it needs to. The second tool is called Bonager. This one works a little different by letting you know how many mounts you have left before a scan will be forced and if you want to you can schedule the scan for the next boot.
The second thing I found is called Gnome Control Center. It is actually really old and as far as I know is installed by default but isn’t configured to show up in the menu. To enable it you can go to the Ubuntu preferences and find the main menu option. When it comes up select System on the left and then check the Control Center box. You can remove Administration and Preferences to make the menu smaller and more usable. The Gnome CC lets you manage everything that was in the other two lists in a single window. In my opinion this is far better and makes things easier to find. The find feature helps for that too.
That is all I got for right now. I have a few things I am working on but nothing to post here. I am looking forward to the April release of Ubuntu 8.04 and am excited to see what the Mythbuntu team does for that release.
Until I have some more news let me know if you find any other helpful tips from brainstorm.ubuntu.com



