Red Hat based distros such as Mandriva use loop-aes and losetup that have some default options that are different from a debian based distribution such as Ubuntu which use dm-crypt. To mount my "old-school" encrypted volumes I had to use the loopaes script from Gary Larson. (I also had to install the hashalot package that the script needed.)
Category Archives: Technology
Unlocking my Cingular / AT&T phone
AT&T allows some customers to "unlock" their phones. This allows the use of a SIM card from a different provider (for example, VodaFone) while traveling. (It also allows you to use the phone with another GSM provider in the US after your AT&T contract is finished, which is one reason AT&T and other carriers lock the phones they subsidize.)
I don't know exactly what makes a customer "eligible" to have a phone unlocked, but I suspect that you have to have made several payments on time and be in good standing. When I am under a new contract with a subsidized phone I typically wait a few months (in this case, about 6) before calling in to ask to have my phone unlocked. I've had T-Mobile unlock three phones (under 2 different contracts) for me in the past, but this was the first time I tried it with AT&T.
I suspect that AT&T has an official policy of making it difficult to unlock your phone. Here is my experience:
D-link DWL-G122 with WPA under Linux
The D-Link DWL-G122 USB 802.11g (revision B1) wifi adaptor works great for open or WEP encrypted networks and is supported by Ubuntu out of the box. Unfortunately, the open source driver doesn't support WPA2 (and only supports WPA via non-standard iwpriv settings, and even then, the support is flaky).
I was able to get it to connect to a WPA network once, following Jermey's instructions. But the network connection was not reliable (as in, I never got it to connect again).
To make it work with the standard wpa_supplicant package, I had to break down and use ndiswrapper to wrap the windows XP drivers. (I also had to blacklist the default rt2570 kernel module). Hopefully the Open Source rt2x00 kernel module will start to support this device (and others based on this chipset) in the future for WPA/WPA2 security.
Even after I used the ndiswrapper, it would only connect to a WPA Personal / TKIP access point. (I could not get it to work with the AES or AES+TKIP settings on WPA or to work with WPA2 at all.)
To make the ubuntu system auto-load wpa_supplicant on boot, Continue reading
Screen Scraping Amazon Album Art for MythTV
I wanted to get Album Art for all of my (newly ripped) songs on my MythTV box.
Thierry has a nice perl script which finds album art on Amazon and automatically downloads it, but unfortunately for me the music plugin for MythTV has upgraded their database schema and the script no longer worked. I am using the trunk SVN code, so it's a bit more up-to-date than the latest packaged release, but this means that scripts designed for the packaged versions may not work. (This specific script had a problem finding the correct directory to store the album art, so all the album art was stored in the root directory, overwriting itself with each album.)
Luckily, I know just enough SQL and Perl to be dangerous, so I whipped up a few changes to his code that fixed my problem (after exploring the new database format). The updated script is here if anybody needs it.
UPDATE: I also added features that allow you to run the script multiple times (if an albumart.jpg file already exists, it will skip that album) and improved the searching (if "album by artist" is not found, it will try searching by "album" name only).
Updated New File: amazon_album_art_scraper.txt (Thanks to Mike Wilson for updates to Amazon’s HTML!)
OLD FILE: Amazon Album Art Scraper Script
Saving a mms streaming video to a file using mencoder
Copying a streaming video to a file using mencoder.
I wanted to watch Randy Pausch's last lecture on my home media PC as opposed to my laptop. It has MythTV, which can be used to watch any file on the hard disk. Unfortunately, you can't just download the a file, as his lecture is hosted by a streaming server. The specific URL is:
mms://wms.andrew.cmu.edu/001/pausch.wmv
wget won't work, so I had to use mencoder to download the stream and copy it to a file on my hard disk. The command line I used was:
mencoder mms://wms.andrew.cmu.edu/001/pausch.wmv -o randy.wmv -oac copy -ovc copy
(The -oac and -ovc are the output audio and video codec specfiers, and I have set it to just copy. If you would prefer the file be transcoded to a different format, you could specify a specific codec (xvid with ogg vorbis sound, for example) and mencoder would transcode the file (possibly losing some quality) at the same time.
Encrypted home directory under Ubuntu linux 7.04 & 7.10
Using directions from Felipe Alfaro Solana, I set up an encrypted home directory in Ubuntu 7.04. I only had one problem, that exhibited an error message as follows:
Command failed: Incompatible libdevmapper 1.02.08 (2006-07-17)(compat) and kernel driver
This was caused by the dm_mod module not being loaded. I fixed it for the session by issuing a modprobe dm_mod command, and fixed it forever by adding dm_mod to my /etc/modules file.
Listing of Atlanta/Decatur Digital OTA Channels
A list of the channels easily avaliable with a small amplified Radio Shack antenna from the Decatur Area:
- 2-1 -WSB-DT – ABC
- 2-2 (Blank, no signal)
- 5-1 WAGA – Fox HD
- 5-2 WAGA – Fox SD
- 11-1 WXIA-D NBC-HD
- 11-2 WXIA-D (NBC Weather, All the time!)
- 14-(1,2,3,4) – Ion subchannels.
- 17 – WTBS-HD – TBS
- 30-1 – PBS
- 36- WATL-D -MyATL
- 43-1 WUPA – CW
- 46-1 – WGCL-HD CBS
Parts for a MythTV box
I've built a MythTV home media PC, attempting to keep the costs down. It's already cost $539, which is more than a Tivo HD ($299), and very close to a Tivo Series 3 ($575). The advantages over buying a TVIO include:
- DVD / CD playback and archiving to HD.
- Cheaper subscription costs (Free over the air, or 20-40$ a year from Schedules Direct).
- Automatic commercial detection.
- Open Platform, which allows for easy network mounting of file-systems, administration, and customization.
Pairing with a iOne Libra N1 bluetooth presenter
Upgrading the miniPCI wireless card in a Thinkpad X31
A few years ago when I first bought it, I installed a Lucent Technologies Prism based mini-pci wifi card in my IBM/Lenovo Thinkpad X31 laptop because the prism chipset had good linux support. But, it does not support WPA2 encryption. I decided the easiest fix was to upgrade to an Intel Pro/Wireless 2100 Lan adapter, which is now supported and works with the wpa_supplicant program to support WPA2 encryption.
The only problem I ran into durring the procedure was that my laptop BIOS had a "whitelist" of approved cards (those sold by IBM) and when I booted it after installing the new card a warning message came up as follows:
ERROR
1802: Unauthorized network card is plugged in – Power off and remove the miniPCI network card.
and, the laptop wouldn't boot. (I just LOVE vendor lock in….)
Luckily, somebody had already figured out how to disable the BIOS whitelist and I found the following program in the Linux Kernel Mailing List archive here: http://lkml.org/lkml/2004/6/13/69