Ubuntu 8.10 (Intrepid Ibex) in LG E500-SP23P laptop

I’ve done a fresh install of Ubuntu 8.10 (intrepid ibex) in my LG E500-SP23P laptop and I’ll document my troubles and my thoughts about the new Ubuntu version.
I’ve switched to Ubuntu since it’s 5.10 version and in this laptop since its 7.04. My previous version was 7.10 and some of the problems that I had in installing it then, I saw them in this new version too…
This laptop has the following specs:
Processor

  • Code Name: Meron
  • Processor: Intel Core 2 Duo Processor T7500
  • FSB: 800Mhz
  • Speed: 2.2Ghz
  • Cache: 4Mb L2 Cache
Graphic Card
  • NVIDIA® GeForce® 8400M 128Mb VRAM -TurboCache até 384/896Mb
Wireless Card
  • Atheros AR5007EG Wireless (802.11b/g)
Sound Card
  • Audio card Intel Corporation 82801G (ICH7 Family) High Definition
After installing it I’ve noticed that wireless didn’t work. In 7.10 it also didn’t work, so I expected that it should be fixed by now. After some googling I’ve find out how to solve this.
Another problem that I’ve faced was that I couldn’t activate Desktop Effects. I’ve went to System/Apperance and in the “Visual Effects” tab activated “Extra”. Here ubuntu showed me the option to activate the proprietary driver, and I choosed “Enable”.
Activate proprietary driver
Activate proprietary driver
So I choose to “Enable” and another error showed up:
Enable to enable driver
Enable to enable driver
Another problem that I had (I also had in 7.10 version and never could fix it) is that if I plugin headphones, I continue to ear sound from the front speakers.
I haven’t fix this yet, when (if) I do, I’ll let you know ;)
References:

Ubuntu beep for console

If you need to run alot of scripts in your console you’ll find that it’s terrible to wait for those scripts to finish.
I’ve found the “beep” application that allows you to send a sound signal when you run “beep” in the console. With this application I no longer need to stare at the console waiting for that script to finish, because when the script finishes you’ll receive a system beep sound.

So lets say I want to run the script “backup.sh” and receive a beep signal when the script finishes:

$ ./backup.sh ; beep

To install the beep application in ubuntu just run this command in the console:

$ sudo apt-get install beep

“Multithreading” with Bash script

Actually is not Multithreading, but the ability to run scripts in parallel and synchronization also ;)

In Linux systems each process has an associated “process identification number” (PID) that you can monitor using the “ps” application. If you want to run a process in background you just need to append the caracter “&” to the command and it will free the console for you.

So basically the script below, executes commands, gathering all PIDs and in the end it waits for them to finish:

#!/bin/bash

function jobidfromstring()
{
local STRING;
local RET;

STRING=$1;
RET=”$(echo $STRING | sed ‘s/^[^0-9]*//’ | sed ‘s/[^0-9].*$//’)”

echo $RET;
}
runmultitask()
{
JOBLIST=””
TASKLIST[0]=””
i=0

for TASK in “$@”
do
$TASK &
LASTJOB=`jobidfromstring $(jobs %%)`
JOBLIST=”$JOBLIST $LASTJOB”
TASKLIST[$i]=$TASK
i=$(($i+1))
done

i=0
for JOB in $JOBLIST ; do
wait %$JOB
echo “${TASKLIST[$i]} – Job $JOB exited with status $?”
i=$(($i+1))
done
}

runmultitask “your parallel” “your parallel”