GaimPreferences
From Inveneo
InveneoPuppyLinux | Customisation
Gaim is used as the chat client of choice.
We can customise it's preferences to enhance the user's initial experience.
Set to connect to #Inveneo on Freenode:
(thanks to jmarsden!)
/mnt/home/puppy/puppy-unleashed/rootfs-complete/usr/sbin/gaim-autosetup.sh
#!/bin/sh
IRCHOST='irc.freenode.net'
IRCCHANNEL='#inveneo'
IRCPORT=6667
PREFIX='InveneoUser-'
GAIMCONFIGDIR=~/.gaim
PROMPT="Enter the IRC Nickname you wish to use"
XDIALOGOPTIONS="--stdout --no-buttons --title $0"
# Exit if either of the two files we are generating already exists
if test -f $GAIMCONFIGDIR/accounts.xml
then
exit 1
fi
if test -f $GAIMCONFIGDIR/blist.xml
then
exit 2
fi
# Generate a semi-random IRC username
USERNAME=$PREFIX`(date ;cat /proc/cpuinfo)|md5sum|sed -e's/^\(......\).*$/\1/'`
# Prompt for Nick if -v option used
if test "$1" = "-v"
then
NEWNAME=`Xdialog $XDIALOGOPTIONS --inputbox "$PROMPT" 0 0 "$USERNAME"`
if test "$?" -eq 0
then
USERNAME=`echo $NEWNAME |tr -cd 'A-Za-z0-9[-\`{-}'` # See RFC 2812 2.3.1
fi
fi
# Create the two config files
cat >$GAIMCONFIGDIR/accounts.xml <<EOF
<?xml version='1.0' encoding='UTF-8' ?>
<accounts version='1.0'>
<account>
<protocol>prpl-irc</protocol>
<name>$USERNAME@$IRCHOST</name>
<settings>
<setting name='username' type='string'>$USERNAME</setting>
<setting name='encoding' type='string'>UTF-8</setting>
<setting name='realname' type='string'>$USERNAME</setting>
<setting name='port' type='int'>$IRCPORT</setting>
</settings>
<settings ui='gtk-gaim'>
<setting name='auto-login' type='bool'>1</setting>
</settings>
</account>
</accounts>
EOF
cat >$GAIMCONFIGDIR/blist.xml <<EOF
<?xml version='1.0' encoding='UTF-8' ?>
<gaim version='1.0'>
<blist>
<group name="Buddies">
<setting name="collapsed" type="bool">0</setting>
<chat proto="prpl-irc" account="$USERNAME@$IRCHOST">
<component name="channel">$IRCCHANNEL</component>
<component name="password"></component>
<setting name="gtk-autojoin" type="bool">1</setting>
</chat>
</group>
</blist>
<privacy>
<account proto="prpl-irc" name="$USERNAME@$IRCHOST" mode="1">
</account>
</privacy>
</gaim>
EOF
Is this needed?
Set to use Firefox as Browser:
/mnt/home/puppy/puppy-unleashed/rootfs-complete/root0/.gaim/prefs.xml
<pref name='browsers'> <pref name='place' type='int' value='0' /> <pref name='command' type='string' value='/usr/local/bin/defaultbrowser %s' /> <pref name='browser' type='string' value='custom' /> </pref> <pref name='irc'> <pref name='quitmsg' type='string' value='http://inveneo.org/' /> </pref>

