packet capture with ssh and tcpdump on a remote host and display with wireshark 
#> mkfifo /tmp/shark
#> ssh USER@HOST 'sudo tcpdump -i eth0 -w - -p -n -s 0' > /tmp/shark

In an other session
#> wireshark -k -i /tmp/shark

Then go back to first session and enter the ssh password.

[ view entry ] ( 1060 views )   |  print article
Grub Error 2: Bad file or directory type 
grub prior 0.97 only supports a inode size of 128 Bytes

To format a partition set inode size of 128 Bytes:

#> mkfs.ext3 -I 128 /dev/sda6

[ view entry ] ( 705 views )   |  print article
ugly rename hack 
find -name 'Pic*' -exec sh -c 'mv $1 "$(echo $1 | sed s/\\./_/g | sed s/^_/\\./g | sed s/_-//g)"' {} {} \;

[ view entry ] ( 749 views )   |  print article
hardy ubuntu-vm-builder with kvm and virtio 
First get ubuntu-vm-builder from http://packages.ubuntu.com/intrepid/ubuntu-vm-builder

#> dpkg -i ubuntu-vm-builder_0.6_all.deb

I suggest to use approx for caching packages

#> sudo apt-get kvm libvirt-bin

#> sudo adduser `id -un` libvirtd (and relogin)

To have a working virio inside the guest i patched:
--- /usr/share/ubuntu-vm-builder/templates/libvirt.tmpl.orig
+++ /usr/share/ubuntu-vm-builder/templates/libvirt.tmpl
@@ -18,13 +18,14 @@
<interface type='network'>
<mac address='%MAC%'/>
<source network='default'/>
+ <model type='virtio'/>
</interface>
<input type='mouse' bus='ps2'/>
<graphics type='vnc' port='-1' listen='127.0.0.1'/>
%loop%
<disk type='file' device='disk'>
<source file='%img%'/>
- <target dev='hd%curdisk%'/>
+ <target dev='hd%curdisk%' bus='virtio'/>
</disk>
%/loop%
</devices>

#> ubuntu-vm-builder
Read More...

[ view entry ] ( 2050 views )   |  print article
Two usb video capture stick with em28xx driver 
get http://mcentral.de/hg/~mrec/em28xx-new/ ... tip.tar.gz and untar
cd em28xx-new-*
make
find /lib/modules/$(uname -r) -name "em28xx*" -type f | xargs rm -rf
find /lib/modules/$(uname -r) -name "tvp5150.ko" -type f | \
xargs rm -rf
mkdir -p /lib/modules/$(uname -r)/empia
cp *.ko /lib/modules/$(uname -r)/empia
cp tvp5150/tvp5150*.ko *.ko /lib/modules/$(uname -r)/empia
strip -d /lib/modules/$(uname -r)/empia/*.ko
depmod -a

/etc/modprobe.d/local
options em28xx card=14 vbi_mode=0 alt=4
options em28xx card=43 vbi_mode=0 alt=2
These two options lines are really working

With alt i use a lower bandwidth for usb

For Kernel >= 2.6.27 card indexes changed, no alt setting is needed and only one option line in /etc/modprobe.d/local is working:

options em28xx card=9,38

[ view entry ] ( 694 views )   |  print article

<<First <Back | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | Next> Last>>