Archive for the ‘Ubuntu’ Category

Install Android SDK Eclipse plugin on Ubuntu 10.04

Saturday, June 12th, 2010

Started to work on developing some Android applications on my Ubuntu 10.04 (Lucid) machine and ran into a few complications during installation of the Eclipse plugin. Started getting a dependency for “org.eclipse.gef” when trying to follow Google’s instructions.

Here is how I did it:
- Ensure Eclipse is installed (sudo apt-get install eclipse)
- Run Eclipse
- Select “Help” -> “Install New Software…”
>>>Repeat the following for the list of repositories<<
- Select "Add"
- Enter the Name and Location of the following
Name: Android Plugin
Location: https://dl-ssl.google.com/android/eclipse/
>>
Name: Data Tools
Location: http://download.eclipse.org/datatools/updates
>>
Name: Web Tools
Location: http://download.eclipse.org/webtools/updates/
>>
Name: EMF
Location: http://download.eclipse.org/modeling/emf/updates/releases/
>>
Name: GEF
Location: http://download.eclipse.org/tools/gef/updates/releases/
>>>
(You should now be in the “Install” Dialog after adding the above)
- Select “Android Plugin” from the “Work With:”
- Check “Developer Tools”
- Select “Next” button and follow to the end

Viola. Hopefully a working Android Plugin for you.

Use USB ATI TV Wonder 600 with Ubuntu (HDTV)

Sunday, May 2nd, 2010

Guide to using the USB ATI TV Wonder 600 device with Ubuntu “Lucid” 10.04 (probably applies to other versions as well)

The easy way:
sudo apt-get install me-tv

Run Me-Tv:
me-tv

Select the “US NTSC xxxxxx” frequency file and do a scan.

Tada… ;)


The hard way

From: http://linuxhacksandfixes.blogspot.com/2009/11/watch-tv-with-ati-tv-wonder-600-usb.html

Install the Linux Digital Video Broadcast (DVB) applications:
sudo apt-get install dvb-apps w-scan vlc mplayer

Change into the /lib/firmware folder:
sudo wget http://steventoth.net/linux/hvr1400/xc3028L-v36.fw

Create Channels for USA:
scan /usr/share/dvb/atsc/us-NTSC-center-frequencies-8VSB -o zap -a 0 | tee ~/channels.conf

You will get a bunch of “WARNING” messages.. Dont panic this is just the program letting you know it couldnt find content on that channel (it scans all known US frequencies for TV channels)

Watch HDTV!
vlc ~/channels.conf

Just a quick note here as using this device was actually my first time watching Broadcast HDTV. Using the included antenna is absolutely terrible and you will find the video breaking up constantly unless you are sitting on the transmission tower. Unlike analog television of years ago, you will either get crystal clear picture or nothing at all. If you are serious about using this for on the go tv, get a good portable antenna (if you find one let me know).

XBMC – HDMI audio too fast

Sunday, March 7th, 2010

Noticed a problem with the XBMC box I have in the family room that the audio / video appeared slightly too fast. I took out my watch and timed a minute of video and found it to off by almost 10 secs. Searching on the internet led me to find that the sample rate of the HDMI interface of 48000Khz was not being handled correctly by the default XBMC config.

Doing the following fixed the problem:
-Setup an ALSA plugin to resample the audio
– Create a file /etc/asound.conf file (make sure the card and device numbers are correct for your system.. Run aplay -l to find the right settings)

hdmi {
type hw
card 1
device 3
}

pcm.hdmiconv {
type plug
slave {
pcm "hw:1,3"
rate 48000
}
}

- In XBMC -> Settings -> System -> Audio -> Device -> Custom -> enter ‘hdmiconv’

- Reboot
- Fixed!

Ubuntu and Blueray

Saturday, December 26th, 2009

Well, I have been boycotting BlueRay discs for some time now, however, I do get them as gifts from time-to-time and need to play them.  Nowadays I will purchase HD movies streamed online from Amazon using their media library and my Roku, but I received a few more physical BD discs that I need to decrypt this Christmas…

At this point though it is more economicalfor me to re-purchase the titles on Amazon then to spend the time getting the discs decrypted, but for those looking for a challenge:

Here are a few links of interest in playing blue-ray discs from Ubuntu 9.10

The Main Ubuntu Blueray guide:
https://help.ubuntu.com/community/RestrictedFormats/BluRayAndHDDVD

BDRom decryption keys by Movie title:
http://forum.doom9.org/showthread.php?p=1293367#post1293367

DumpHD ( Open source ripping program )
http://forum.doom9.org/showthread.php?t=123111

MakeMKV ( Closed Source ripping program )
http://www.makemkv.com/forum2/viewtopic.php?f=3&t=224

MPX (Multipointer) works in Ubuntu Lynx!

Saturday, December 26th, 2009

Finally, the MPX subsystem is included in the alpha version of Ubuntu 10.04.   I was able to create three separate mouse pointers on my TabletPC as a test following this guide: http://alec.mooo.com/mpx.php

Why? Because I can ;) and because this is hopefully the beginning of multi-touch support throughout the Gnome Desktop environment.

Last night my wife and I shared the laptop for a while using both the bluetooth mouse and the internal trackpoint.

sharedscreen

Defragmenting an Ubuntu File System / Ext3fs?

Tuesday, October 27th, 2009

Not sure what I find more interesting. New York Times being queried and answering an issue involving Linux or that someone would feel compelled to ask about defragmenting a Flash disk.


http://gadgetwise.blogs.nytimes.com/2009/10/27/q-a-defragmenting-a-linux-system/

Problems with Ubuntu sound? – Try this

Monday, October 19th, 2009

Having issues with sound in Ubuntu (Pulse Audio), try this well written guide. Fortunately, most of this guide has been implemented in the latest version of Ubuntu 9.10, so wait it out until then or give this link a read.

http://ubuntuforums.org/showthread.php?t=789578

MAME for Ubuntu Jaunty Jackalope 9.04

Sunday, October 18th, 2009

100_4032Just thought I would jot down the steps needed to get Mame up and running on my newly upgraded arcade cabinet.

Get SDLMame Source Code (skip the bin package as that wont be compiled for your specific CPU unless you are running Amd64):
http://sdlmame.wallyweek.org/download/

Untar the source into a tmp folder:
tar zxvf sdlmame-source.tar.gz /usr/local/src

Install the following packages for ubuntu:
sudo apt-get install build-essential
sudo apt-get install libsdl-dev
sudo apt-get install libgtk2.0-dev
sudo apt-get install libgconf2-dev

Compile:
cd /usr/local/src/sdlmame-1xx
make
Go watch a movie it will take quite a bit of time before it is finished

Install:
sudo make install

Combine Multiple PDFs on Ubuntu

Monday, October 12th, 2009

pdftk a.pdf b.pdf c.pdf cat output abc.pdf

-or-

gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combinedpdf.pdf -dBATCH 1.pdf 2.pdf 3.pdf

Work around the Pandora 40 hour limit

Saturday, August 29th, 2009

Essentially on Ubuntu:

rm ~/.macromedia/Flash_Player/#SharedObjects/xxxxxx/pandora.com/*
*where xxxxx = some random foldername

Idea from:
http://dualcoremusic.com/nerdcore/634/pandora/