Make LaCie Internet Space boot Debian

Prerequisites: Get clunc, install Debian, via either telnet/ssh or just put the harddisk in an existing Linux computer.

1. From terminal : ./clunc -i 192.168.2.77 -w 120
2. Boot LaCie NAS
3. Clunc shows prompt Marvell>>
4. Enter: boot;ext2load ide 1:1 400000 /boot/uImage;bootm 00400000 at prompt.

Posted in Linux | Tagged , , , | Leave a comment

HP Compaq CQ10 400SD Netbook and Ubuntu 10.04

So, what was needed to make the sound and wireless network work?

Wireless network

The chip is an RealTek 3090. Not yet supported out-of-the-box, so install this:

rt3090-dkms_2.3.1.3-0ubuntu0~ppa1_all.deb

(make sure dkms is already installed –>terminal: sudo apt-get install dkms )

Load the module:

sudo modprobe rt3090sta

Now sound, the chip is an Intel N10/ICH 7  Familty High Definition Audio Controller (Terminal: lspci | grep -i audio)

This one is even easier:

sudo apt-get install linux-backports-modules-alsa-lucid-generic

Done.

Posted in Linux | Tagged , , | Leave a comment

Wake on lan over Internet – Ubuntu 10.04 LTS

enable WOL on Network Card:
ethtool -s eth0 wol g

This only works once, so to keep this setting,
make a bash script and run it at boot:
--> file wakeonlanconfig:
#!/bin/bash
ethtool -s eth0 wol g
exit
--> chmod a+x wakeonlanconfig
--> update-rc.d -f wakeonlanconfig defaults

--> On your router, open ports 7-9 to be forwarded to
the PC to be WOL'ed. Make sure you select UDP as type,
and not (only) TCP!

I have given my router the same mac address as the PC to be
WOL'ed, but not sure whether that's necessary.

Then, goto a WOL website, such as:
--> http://www.wakeonlan.me
and fill in the details.
Done.

You can find your mac address like this:
--> ifconfig | grep HWaddr
it looks like 00:26:3c:2b:fa:42
Posted in Linux | Tagged , | Leave a comment

fancontrol working every now and then…

I had troubles with fancontrol on Ubuntu 10.04 LTS.
My config file /etc/fancontrol was set up to use hwmon1 as device, but after reboot, fancontrol didn’t work. Changing the config back to hwmon0 made fancontrol work again.
Problem was caused by a bug and a workaround is to blacklist k8temp. (Add a line in /etc/modprobe.d/blacklist.conf )

Posted in Linux | Tagged , | Leave a comment

GPU Hardware video acceleration for ATI / AMD (or NVidia) in Ubuntu 10.04 LTS Lucid Lynx

Enabling GPU Hardware video acceleration for ATI / AMD and Ubuntu.

Assuming a clean install Ubuntu 10.04 LTS Lucid Lynx and an ATI GPU (for NVidia, use vdpau-video instead of xvba-video) It’s probably not necessary to have a clean install, though.

  1. enable proprietary AMD driver: System –> Administration –> Hardware Drivers (or run: jocket-gtk)

  2. download vaapi files to a folder (i.e. /home/${USER}/Desktop )

    http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/i386/libva1-dbg_0.31.0-1+sds13_i386.deb
    http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/i386/libva-dev_0.31.0-1+sds13_i386.deb
    http://www.splitted-desktop.com/~gbeauchesne/libva/pkgs/i386/libva1_0.31.0-1+sds13_i386.deb

  3. either download a precompiled mplayer-vaapi from

    http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi

  4. or download the source at

    http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/mplayer-vaapi-latest-FULL.tar.bz2

  5. install the .debs (i.e.: sudo dpkg -i *.deb )

  6. if you build mplayer from source, run from a terminal:

    sudo apt-get build-dep mplayer
    tar xjf mplayer-vaapi-latest-FULL.tar.bz2
    cd mplayer-vaapi-latest
    ./checkout-patch-build.sh

  7. Running VA API enabled MPlayer

    cd mplayer-vaapi
    ./mplayer -vo vaapi -va vaapi <URI> (<URI> can be a pathname or an URL.)

Posted in Uncategorized | Tagged , , , | Leave a comment

PC Remote Universal

Marmitek PC Remote (UR86E)

Codetable

Humax 5050c : 485

Samsung LE32A456 : 104

Cambridge Audo 640A : 647

Posted in Notes-to-self | Tagged | Leave a comment

Samba / CIFS mounting and changing owner

Extensively described at http://opensuse.swerdna.org/susesambacifs.html#tempown

Add in /etc/fstab :

//RemoteIP/ShareName /LocalMountpoint cifs credentials=/etc/smbcredentials,uid=<youruser>,gid=<yourgroup> 0 0

/etc/credentials consists of 2 lines:

username=<serverusername>
password=<serverpassword>

Posted in Uncategorized | Leave a comment

Debian Lenny for ARM

http://people.debian.org/~aurel32/qemu/armel/

download all, gunzip the *qcow.gz files and run:

qemu-system-arm -M versatilepb -kernel vmlinuz-2.6.26-1-versatile -initrd initrd.img-2.6.26-1-versatile -hda debian_lenny_armel_small.qcow -append "root=/dev/sda1"
Posted in Uncategorized | Leave a comment

Building ARM cross compiler on Ubuntu

I’m using this site as the basis.

On Ubuntu 9.10 I encountered a build error for collect2.c :

--snip-- ... gcc/collect2.c:1537:
/usr/include/bits/fcntl2.h:51: error: call to ‘__open_missing_mode’ declared
with attribute error: open with O_CREAT in second argument needs 3 arguments

Solution was to add this ‘third argument’ to the code. File existed more than once in my source tree, so from your source tree root, issue a find . -name collect2.c will find yours. Update the files:
Change:
redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT);
to:
redir_handle = open (redir, O_WRONLY | O_TRUNC | O_CREAT, 0666);

Good luck :)

Posted in Linux | Tagged | Leave a comment

Linux TV continued

Using Video in on TV card and Line in on Soundcard:

Record:

mencoder -oac lavc -ovc lavc -lameopts mode=1:vbr=2:q=4 -lavcopts vcodec=mpeg4 -tv driver=v4l2:norm=pal:input=1:amode=1:adevice=/dev/dsp: -af volume=10 -o tv.avi tv://

Play

mplayer -tv driver=v4l2:norm=pal:input=1:width=352:height=240 -double -vo sdl tv:// :alsa:adevice=/dev/dsp:amode=1: -af volume 10

Posted in Uncategorized | Leave a comment