M5 Audio
December 1st, 2009Here are a number of links for M5 Audio related material.
Adding AUX input:
http://www.bimmerboard.com/forums/posts/689645/
http://www.bimmerfest.com/forums/showthread.php?t=78198
http://www.bimmerfest.com/forums/showthread.php?t=76934&page=2
http://www.bimmerfest.com/forums/showthread.php?t=76934&page=3
http://www.bimmerfest.com/forums/attachment.php?attachmentid=39246&d=1099212144
http://www.frontx.com/pro/p090v1_030.html
http://www.frontx.com/cpx075_4.html
Radio:
http://www.bimmerboard.com/forums/posts/86059/
http://www.bimmerboard.com/forums/posts/498696/
Navigation:
http://www.bimmerboard.com/forums/posts/678035
M5 Sirius Install Tips:
http://www.m5board.com/vbulletin/e39-m5-e52-z8-discussion/55196-00-02-m5-sirius-install-tips.html
SecureCRT terminal settings
August 27th, 2009With UTF-8 encoding becoming the default, I've been noticing strange characters appearing when connected to newer linux distros via SecureCRT. Turns out this is due to a combination of settings. This site details a solution.
http://www.andremiller.net/content/getting-midnight-commander-line-drawing-work-putty
Basically, change the character set translation to UTF-8 and the line drawing to UTF-8 and the font to one that supports UTF-8 line characters (Lucida Console, Courier new work - others may as well).
Here's a link for improvements to putty/SecureCRT:
http://dag.wieers.com/blog/improving-putty-settings-on-windows
How to reinstall grub on an existing partition
June 12th, 2009Here's how I reinstalled grub on my Ubuntu installs:
grub> find /grub/stage1
(hd0,0)
grub> root (hd0,0)
grub> setup (hd0)
Checking if "/boot/grub/stage1" exists... no
Checking if "/grub/stage1" exists... yes
Checking if "/grub/stage2" exists... yes
Checking if "/grub/e2fs_stage1_5" exists... yes
Running "embed /grub/e2fs_stage1_5 (hd0)"... 17 sectors are embedded.
succeeded
Running "install /grub/stage1 (hd0) (hd0)1+17 p (hd0,0)/grub/stage2 /grub/menu.lst"... succeeded
Done..
Additional Information
"error 15: file not found" on startup
Ubuntu how to re-install grub using chroot
cpio
June 12th, 2009I've been using cpio to do file backups for a while now but only recently had to restore from them. Here's the command I use for duplicating a filesystem to another filesystem:
find . -print -xdev | cpio -pdm /media/sdb3
Here is is with gzip to a file
find . -print -xdev | cpio -ocv | gzip -c > filename.cpio.gz
Here is the extract
cpio -idmv --no-absolute-filenames < filename.cpio
Here is extract with gzip
gunzip -c < filename.cpio.gz | cpio -idmv --no-absolute-filenames
And here is how to ssh to a remote machine and copy a filesystem from the remote to the current directory on the local
ssh root@minimyth2 "find / -depth -print -xdev | cpio -oaV" | cpio -imVd --no-absolute-filenames
MythTV Backend Upgrade - Kubuntu 7.04 to 9.04
June 11th, 2009Last weekend I finally decided to upgrade the MythTV backend from .20 to .21. In Ubuntu, this means also upgrading the OS in order to get access to the upgraded packages. I honestly expected this to be sort of a no-brainer which was much of the reasoning for going with Ubuntu in the first place. This system is fairly important so minimal downtime and NO data loss are both concerns so I started the process off by backing up the system (not something I normally do). That saved my a** in this case. The first issue was my own fault - coming from a Debian background, I updated the apt sources file to point to the 8.10 LTS repository and did an upgrade which blew up part way through upgrading libc6 and left the system in a state where I couldn't use apt or really much of anything else without segfaults. Restore from backup, research, and find out that Ubuntu does not support upgrading directly from 7.04 to 8.10. It needs to go 7.04->7.10->8.04->8.10 - OK. Unfortunately, it seems that the repositories from 7.10 and earlier have been dropped to make space for the new releases. Crap! So, I download the 7.10 alternate CD and try (4 times) to do upgrades from there to no avail. Finally a day and a half later and no closer to upgrading than when I started, I decide to do a 9.04 install from scratch and configure the system up from nothing. I had a basic MythTV backend system up and running in half a day with this approach. I'm going to detail out much of the process here for future reference.
Boot from livecd (I used knoppix 6.0 but any should do)
Manually partition drive
/boot 250M (be sure to make this bootable)
/swap 4G
/ 40G
/var/video remainder of drive
Reboot from KUbuntu cd and install OS
Remove the Network Manager - it prevented the IP Bonding from working properly
Set up network Bonding
Install all Myth packages
Import myth database from previous system
Copy video FS from previous system
Set up UDEV for the serial devices and network interfaces
Set up MythStatus
Copy over GRUB Screens and update menu.lst
Set up SAMBA (copy old samba config files)
Copy backup scripts
Copy files from
/pub
/home
/usr/local
/root
Copy crontabs
Configure Mythweb
