Sunday, March 29, 2009

Howto setup wifi on Acer One Netbooks - 2009 My 1st blog post of the year!

Acer netbooks & the AR242X WIFI CHIPSET:
Hold the kennel at version: Ubuntu 8.10, kernel 2.6.27-7-generic

Edit this file: /etc/modprobe.d/blacklist
add
blacklist ath_pci
blacklist ath_hal

Edit this file: /etc/sources/sources.list

Look for this entry: do as directed, you may have to uncomment the back port server addresses.



## Uncomment the following two lines to add software from the 'backports'
repository.
##N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://ca.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse
deb-src http://ca.archive.ubuntu.com/ubuntu/ intrepid-backports main restricted universe multiverse

next step:

sudo apt-get install linux-backports-modules-intrepid

then reboot.

Worked for me.

Monday, June 30, 2008

Bash shell scripting "IF THEN" logic

UBUNTU LINUX bash shell script file. Usage of the DU and LS commands. This file is an example of scripting logic "IF THEN" & script command arguments.
project:pitch-forks filename: Script
-------------------------------------

#!/bin/bash
if [[ $1 = "" ]]; then
echo "Usage: $0 size listing"
echo "Ubuntu Linux bash script by Johnny Buckallew Stroud 2008,"
echo "open public information. "
exit
fi

if [[ $2 = "size" ]]; then
du -h $1
exit
fi

if [[ $2 = "listing" ]]; then
ls -l $1
exit
fi

ls -l $1
du -h $1