03-14-2009 19:23
Hello SL Linux users. After reading today's quicktip on the SL blog(https://blogs.secondlife.com/community/community/tnt/blog/2009/03/14/quicktip-getsecondlifecom--download-sl-with-one-click), I decided to write up a little script to easily download and extract the latest stable viewer via the get.secondlife.com site without needing to fire up a web browser or manually specify the version numbers. Please note that while this script is written with GNOME users in mind, it's a pretty trivial task to write up a version using the kdialog command or a pure command-line script without any GUI. Also when copy/pasting, please omit the tags in the code as it is put there by the forum software:
From: someone

#!/usr/bin/env bash
#Second Life Updater Script for Linux
#created by Antonius Misfit
#hereby released into the public domain


(
echo "50";sleep 1
echo "# Downloading client tarball...";sleep 1
wget http://secondlife.com/get/?os=linux
echo "70";sleep 1
echo "# Extracting tarball...";sleep 1
tar jxvf $HOME/SecondLife*.tar.bz2
echo "99";sleep 1
echo "# Extraction complete"
echo "100";sleep 1
)|
zenity --progress --title="Second Life Updater for Linux" --text="Updating SL" --percentage=0

if [ "$?" = -1 ] ; then
zenity --error --text="Update canceled."
fi