Media Player for Car

August 9th, 2008

I'm going to post miscellaneous information here regarding the Car-X and CarMedia iBus based media players.

Here is how to convert the video to fit on the 16x9 screen properly:

There is actually a solution to this issue without using a different solution for 16:9 display.

The easiest way to correct the aspect ratio would be to resize the video horisontally by 75%. This can be achieved in the following way:

1. Uninstall all video playback codecs from your CarPC Windows installation
2. Install a recent version of ffdshow from here. WMP and Car-X will now use this for decoding MPEG-4, DIVX and XVID. Make sure you include the AVS rendering option.
3. Install a recent version of AviSynth from http://www.avisynth.org/
4. Now, open ffdshow Video decoder configuration and select AviSynth checkbox. Make sure "Add ffdshow video source" is selected and paste the following code into the textbox:


global x=0
x=Width*75
x=x/100
BiLinearResize(x,Height)

5. This corrects the aspect ration for all content played, and all you have to do now is to choose a suitable zoom level to fill more or less of the screen.

Miscellaneous bash one liners

April 26th, 2008

bash script to monitor file/dir listing in a directory

while ((1)); do ls -l | wc -l; sleep 30; done

Commands to determine/change drive UUID's

April 26th, 2008

Use one of these to determine drive UUID's.

vol_id /dev/sdc1
ls -l /dev/disk/by-uuid
blkid /dev/sda1

And use this to change the UUID change uuid of an ext3 partition

uuidgen
tune2fs /dev/hdaX -U numbergeneratedbyuuidgen
verification with
vol_id /dev/hdaX
Change uuid of an ext3 partition

Adding drivers to PE images

January 28th, 2008

Recently I've had a need to perform work on newer systems which have SATA drives in them. Unfortunately, my trusty Super WinPE disks haven't been working since the SATA drivers aren't included on the disk. After some searching, I've found a couple of methods which should work and settled on this one (from here):

Copy the .sys file to i386\system32\drivers. If there are related .dll files (unlikely) copy these to i386\system32.

Navigate to i386 folder and open txtsetup.sif. Add controller information to the [HardwareIdsDatabase] section. Only the PCI Vendor and Device ID are required (normally contained in the inf file)

Example: PCI\VEN_8086&DEV_2652 = "iaStor"

Now add the controller information to [SCSI.Load] in order to have it load during the boot process.

Example: iaStor = iaStor.sys,4

Many of the WinPE bootable images end up reporting significantly larger image sizes if edited. It turns out that some iso creating programs allow for optimizing the image. This means that if there are multiple copies of the same file in the image, links will be created for all but 1 file so the data is only written to the drive one time. The Super WinPE disk I normally use balooned from 4.7 gig to 22 gig after I injected the drivers. Using the optimize option in UltraISO (under file->properties) resolved this issue.

NIC Bonding

October 21st, 2007

Steps for setting up NIC bonding in debian/ubuntu

1. install ifenslave-2.6
2. make changes below
3. ran update-modules
4. run modprobe bonding
5. restart the network

/etc/network/interfaces

auto lo
iface lo inet loopback
# NIC Bonding Interface
auto bond0
iface bond0 inet static
hwaddress ether 00:04:7B:30:4A:AC
address 192.168.0.22
netmask 255.255.255.0
gateway 192.168.0.1
dns-nameservers 192.168.0.1
up infenslave bond0 eth0 eth1
down ifenslave -d bond0 eth0 eth1

/etc/modprobe.d aliases (made the following add/remove)

# alias net-pf-10 ipv6
alias bond0 bonding
alias eth0 e100
alias eth1 e100
options bonding mode=0 miimon=100

/etc/modutils/actions

probeall bond0 eth0 eth1 bonding