User Tools

Site Tools


howto:installweatherbug

I wanted to install weatherbug for Linux on my EeePC 701SD, but it depends on versions of some packages that are not yet in the lenny section of the Debian repository.

I made my own deb packages and put them online. The following script gets those packages, and then gets the weatherbug package and sets everything up.

Before you run this script, you need to have a debian repository in your /etc/apt/sources.list file. If you don't, add the line

deb http://http.us.debian.org/debian/ lenny main

to your sources.list file, then run 'apt-get update'.

DON'T run the following script without adding a debian repository. Doing so will leave your system in a bad state.

Then copy and run the following script:

#!/bin/sh

# Script name: install-weatherbug.sh

# Abbreviations for site locations.
LOC1='http://unclechromedome.home.comcast.net/packages'
LOC2='http://wdownload.weatherbug.com/linux'

if [ -f ./apt.conf ] ; then
  mv apt.conf apt.conf.orig
fi

# Use our own apt.conf file
cat > ./apt.conf <<-EOF
apt {
  get {
    assume-yes "true";
    force-yes "true";
  };
};

dpkg {
  options {
    "--force-overwrite";
    "--force-confdef";
    "--force-confold";
    "--ignore-depends=libgnomeui-0";
  };
};
EOF

# Get rid of whiptail for now to avoid dialog boxes.
WHIPTAIL=`which whiptail`
if [ -n ${WHIPTAIL} ] ; then
  sudo mv ${WHIPTAIL} ${WHIPTAIL}.orig
fi

cat > whiptail <<-EOF
#!/bin/sh

exit
EOF

chmod 755 whiptail
sudo mv whiptail /usr/bin

# Get the debian packages.
echo Getting required debian packages...
wget -q ${LOC1}/libatk1.0-0_1.33.6-eeepc-1_i386.deb
wget -q ${LOC1}/libgnomeui-0_2.24.5-eeepc-1_i386.deb
wget -q ${LOC2}/weatherbug-1.0-1.deb

# Do the installation. This takes a while.
sudo dpkg -i libatk1.0-0_1.33.6-eeepc-1_i386.deb
sudo dpkg -i libgnomeui-0_2.24.5-eeepc-1_i386.deb
sudo apt-get -c apt.conf -f install
sudo dpkg -i weatherbug-1.0-1.deb

# Clean up.

rm -f apt.conf
rm -f *deb

if [ -f apt.conf.orig ] ; then
  mv apt.conf.orig apt.conf
fi

sudo rm /usr/bin/whiptail

if [ -f ${WHIPTAIL}.orig ] ; then
  sudo mv ${WHIPTAIL}.orig ${WHIPTAIL}
fi
howto/installweatherbug.txt · Last modified: 2011/02/03 06:58 by unclechromedome