Archive

Archive for the ‘Howto’ Category

Acer Aspire Timeline 4810T laptop and ethernet under Debian 5.0.2 (Lenny)

August 17th, 2009 Quail 1 comment

Last week I bought a new laptop and found the Ethernet does not work. Here is how I got it to work.

$ lspci
…..
01:00.0 Ethernet controller: Attansic Technology Corp. Device 1063 (rev c0)
…..

First off we need to install compiling tools and the kernel headers

# apt-get install build-essential linux-headers-`uname -r`

Now to download the AR81Family Linux Driver for the Ethernet card.

Change directories to were you downloaded the drivers too
Example:

$ cd ~/Desktop/atheros/

I found the driver package was compressed funny and had to do

$ gunzip AR81Family-linux-v1.0.0.10.tar.gz

and then

$ tar xvf AR81Family-linux-v1.0.0.10.tar

to get the drivers uncompressed.
Read more…

Categories: Debian, Hardware, Howto, Linux Tags:

ALSA and pogo.com java games sound problems

September 22nd, 2008 Quail 2 comments

Couple weeks ago I upgraded my mothers computer from Microsoft XP to Linux Debian Lenny (testing). Everything is working except sound with pogo.com java games. After couple weeks searching for a fix and reading ALSA documention and tinkering around.

the problematic soundcard is

$ lspci
...
00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 70)
...

This is what I ended up with to get the sound to work with the pogo.com java games. First I created the ~/.asoundrc file, and this what I added to the ~/.asoundrc file.

!defaults.pcm.card 0
defaults.ctl.card 0
defaults.pcm.device 0
defaults.pcm.subdevice -1
defaults.pcm.dmix.device defaults.pcm.device
defaults.pcm.dsnoop.device defaults.pcm.device

After saving the file we have to restart ALSA

# /etc/init.d/alsa-utils restart
Shutting down ALSA…done.
Setting up ALSA…done.

Note: this fix may not work for everyone.

Categories: Debian, Gnome, Hardware, Howto, Linux Tags:

VLC and Bluetooth Headset

August 11th, 2008 Quail No comments

I use a bluetooth headset with VLC when I am using my laptop to listen to music or video streams etc. The headset works when I add alsadev=bluetooth in ~/.vlc/vlcrc

Under the section ‘# ALSA Device Name (string)’ change it

From:

# ALSA Device Name (string)
# alsadev=default

To:

# ALSA Device Name (string)
# alsadev=default
alsadev=bluetooth

Refer to this blog post for setting up bluetooth headset here

Notes:
Problems I have come across is when you change the Audio device back to ‘default’ through Settings => Preferences => Audio => Output modules => ALSA, you have to do the above method again when you like to use bluetooth headset again.

Categories: Hardware, Howto Tags:

Setting up Debian APT for testing and unstable

August 4th, 2008 Quail No comments

In this quick brief how to I am going to explain how to to setup Debian for default version of ‘testing’ and being able to install package from ‘unstable’ without having to run Debian ‘unstable’ by default.

First off we are going to edit or create the /etc/apt/apt.conf file:

# nano /etc/apt/apt.conf

and we are going to append this to the file:

APT::Default-Release "testing";

Now we have to edit our /etc/apt/sources.list file and add the ‘unstable’ repository to it.

# nano /etc/apt/sources.list

Here is an example of what my /etc/apt/sources.list file looks like:

deb http://security.debian.org/ testing/updates main contrib non-free
deb http://ftp.au.debian.org/debian/ testing main contrib non-free
deb http://ftp.au.debian.org/debian/ unstable main contrib non-free

Now we have to refresh / update our packages lists by:

# apt-get update

Now we can install packages from the Debian ‘unstable’ repository by doing for example:

# apt-get install -t unstable linux-image-2.6.26-1-686

Here is a brief explanation of what the ‘-t’ option does from the apt-get man page

       -t, --target-release, --default-release
           This option controls the default input to the policy engine, it creates a default pin at priority 990 using the specified release string. The preferences file may further override this
           setting. In short, this option lets you have simple control over which distribution packages will be retrieved from. Some common examples might be -t ´2.1*´ or -t unstable. Configuration Item:
           APT::Default-Release; see also the apt_preferences(5) manual page.

To learn more about apt-get

$ man apt-get

Note: to change linux-image-2.6.26-1-686 package to the package you are after out of the ‘unstable’ repository.

Categories: Debian, Howto Tags:

Bluetooth audio under Debian lenny/sid

June 28th, 2008 Quail No comments

This is a quick how to setting up bluetooth audio under Debian.

First off we need to install a couple packages:

# apt-get install bluez-utils bluez-gnome bluez-audio

Now we need to run ‘hcitool scan‘ to get the address of the bluetooth device. For example,

$ hcitool scan
Scanning ...
	00:00:00:00:00:00	Nokia BH-501

Now to get the audio part to work:

Modify or create your ~/.asoundrc to contain

pcm.bluetooth {
    type plug
    slave {
       	pcm "bluetooth_hw"
    }
}

pcm.bluetooth_hw {
         type bluetooth
         device 00:11:22:33:44:55
         profile "auto"
}

Where 00:11:22:33:44:55 is the bluetooth address of your headset that you got from ‘hcitool scan‘ output

Now to test the bluetooth headset audio is working with ‘arecord‘ and ‘aplay‘ for example,

$ arecord -Dplug:bluetooth -f S16_LE | aplay -Dplug:bluetooth -f S16_LE
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
Aborted by signal Interrupt...
Aborted by signal Interrupt...

Finally configure your audio applications to use the alsa device ‘bluetooth’.

Example fro setting up Skype to use the bluetooth headset:
Right click on the Skype icon on the gnome-panel and go Options => Sound Devices and change the ‘Sound In’ and ‘Sound Out’ to ‘bluetooth’ and click apply.

And for other applications have a read here

Categories: Debian, Hardware, Howto Tags:

Using NVIDIA Linux graphics drivers with Linux 2.6.25

May 16th, 2008 Quail No comments

Nvidia closed source driver has to be modified (for all (71.86.04, 96.43.05, 169.12 and 171.06) but the latest driver (173.08)) in order to run on 2.6.25 as detailed here.

When you apply the patch and generate the custom executable, the install works as advertised.

Categories: Hardware, Howto, Linux Tags:

Gnome System Monitor causes Xorg to consume 100% CPU

April 29th, 2008 Quail 1 comment

With Gnome System Monitor 2.22 under Debian testing (Lenny) I had the problem when I clicked on the Resources tab the CPU usage would got to 100% on my laptop and desktop.

Well I have been able to fix the problem on my laptop which has and Intel video card by adding Option “AccelMethod” “EXA” to the Device section in my xorg.conf file.

Example:

Section "Device"
        Identifier      "Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller"
        Driver          "intel"
        BusID           "PCI:0:2:0"
        Option           "AccelMethod"  "EXA"
EndSection

When I have worked out how to fix the problem on my desktop using a Nvidia video card I will post the solution.

Thanks goes out to MistaED for pointing out to me that this a problem with the way Cairo rendering is done.

Categories: Debian, Gnome, Howto, Xorg Tags:

TeamSpeak and Urban Terror under Linux

February 11th, 2008 Quail 4 comments

For the people that want to run TeamSpeak and Urban Terror together on the one machine here is quick howto to stop TeamSpeak hogging the audio.

1) You need to install alsa-oss

sudo apt-get install alsa-oss

2) goto Applications => Internet, right click on TeamSpeak and add launcher to Panel or Pesktop
3) Right click on the TeamSpeak launcher on Panel or Desktop and goto Properties => Launcher
4) In the command section add ‘aoss‘ in front of ‘teamspeak‘, eg – ‘aoss teamspeak
5) close the Properties window and launch TeamSpeak from your modified launcher

enjoy :-)

Notes:
Thanks to MatthewV with his help with testing :-)

This HowTo should work with other games but I have only tested it with Urban Terror

Reference:
Ubuntu alsa-oss

Categories: Gaming, Gnome, Howto, Linux, Ubuntu Tags:

Making Me TV for Ubuntu based system

November 18th, 2007 Quail No comments

Compiling
Firstly, there’s a bunch of development libraries and tools that need to be installed,

sudo apt-get install build-essential autotools-dev automake libxml-parser-perl pkg-config libgnome2-dev libgnomeui-dev libxtst-dev libxine-dev libxml2-dev libglade2-dev cdbs libglibmm-2.4-dev libgtkhtml3.8-dev debhelper fakeroot intltool libtool

Next, you’ll want to get the latest version of the source from the Launchpad download page. Extract the source,

tar zxvf me-tv*.tar.gz

Now, compile Me TV,

cd me-tv-*
./autogen.sh
make

The binary should be created at src/me-tv. This binary alone isn’t much use without an existing installation of Me TV because it requires some files to be installed on the system.

Building a deb package
If compiling works then you should be able to build the deb package,

dpkg-buildpackage -rfakeroot

This will have created the deb package for under the me-tv-* directory

Installing the deb package
To install the deb package you created

sudo dpkg -i me-tv_*.deb

References
Official Me TV Home Page
Me TV 0.4.0 and Ubuntu 7.10

Categories: Gnome, Howto, Me TV, Ubuntu Tags:

Diff and Patch

October 29th, 2007 Quail No comments

These examples is going to how to create a diff file with the differences between the original source directory and the patched directory. And how to patch the original source directory with the changes done in the patched directory.

Creating the diff file:

diff -Nuar source -orig/ source -patched/ > patch-file.diff

The patch is ‘applied’ using the ‘patch‘ command.
cd into the original directory (without the changes)

patch -p 1 < ../patch-file.diff

The ‘-p 1‘ option removes 1 path/directory from the top of the patch.

Categories: Howto, Linux Tags:
-->

Bad Behavior has blocked 33 access attempts in the last 7 days.