Page 1 of 8 123 ... LastLast
Results 1 to 10 of 74

Thread: HOWTO: Install & run latest CVS amsn

  1. #1
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    HOWTO: Install & run latest CVS amsn

    Hello,

    This howto will guide you through installation of the latest amsn..

    so first we need tcl/tk/imlib libraries

    Code:
    sudo apt-get install build-essential tcl8.4-dev tk8.4-dev imlib11-dev esound-clients
    then you need to have CVS downloader so
    Code:
    gedit ~/amsn-installer
    paste in the file
    Code:
    #!/bin/sh
    ###########################################
    # Install aMSN CVS version & themes       #
    #					  #
    # Require : tar, wget, unzip		  #
    #					  #
    # Description : Easy install aMSN CVS &   #
    #		new themes		  #
    #					  #
    # Infos : routes-linux.scooba.org	  #
    # Author : mazzaru[AT]wanadoo[dot]fr	  #
    ###########################################
    
    VERSION="1.3"
    #--------COLOR-------------------
    COLOROFF="\033[1;0m"
    GREENCOLOR="\033[1;32m"
    REDCOLOR="\033[1;31m" 
    LILACCOLOR="\033[1;35m" 
    #--------PATH--------------------
    WGET=`which wget`
    UNZIP=`which unzip`
    SKINS_PATH=~/.amsn/skins/
    BIN_PATH=~/msn/amsn
    QUIT_MESS=`echo ""
    echo -e "Binary amsn locate at : ${GREENCOLOR}${BIN_PATH}${COLOROFF}"`
    #-------Themes url---------------
    URL_TUX=http://aleron.dl.sourceforge.net/sourceforge/amsn/Tux.zip
    URL_MSN=http://heanet.dl.sourceforge.net/sourceforge/amsn/MSN.zip
    URL_FLUOX=http://heanet.dl.sourceforge.net/sourceforge/amsn/Fluox.zip
    URL_AMAC=http://heanet.dl.sourceforge.net/sourceforge/amsn/aMac.zip
    URL_CRYSTOLA=http://heanet.dl.sourceforge.net/sourceforge/amsn/crystola.zip
    #---------------------------
    URL_PING=google.com
    URL_AMSN_CVS=http://amsn.sourceforge.net/amsn_cvs.tar.gz
    HEADER=`clear 
    echo -e "\t ${LILACCOLOR}+------------------------------+"
    echo -e "\t |   ${GREENCOLOR}aMSN Install script ${VERSION} ${LILACCOLOR}   |" 
    echo -e "\t ${LILACCOLOR}+------------------------------+"
    echo -e "${COLOROFF}"`
    #--------END----------------
    
    #Display a warning message for newbies, usually login always as root.
    if [ $UID -eq 0 ]
    then
    	echo""
    	echo -e "${REDCOLOR}Don't run this script as root !! ;)${COLOROFF}"
    	echo -e "\a"
    	exit 1 
    fi
    
    ping -c 2 ${URL_PING} > /dev/null
    if [ "$?" -ne "0" ]
    then
    	ALERT=`echo -e "${REDCOLOR}Bad Internet Connection${COLOROFF}"`
    fi
    
    FUNC_INSTALL_THEMES(){
    
    while [ ! -z $1 ]
    do
    	ARCHIVE=`echo $1 | awk -F/ '{print $6}'`
    	DIR=`echo $ARCHIVE | awk -F. '{print $1}'`
    	if [ -e ${SKINS_PATH}${DIR} ]
    	then
    		echo -e "${DIR}........${LILACCOLOR}already install${COLOROFF}"
    		shift
    	else
    		${WGET} -q $1
    		${UNZIP} ${ARCHIVE} > /dev/null
    		rm -f ${ARCHIVE}*
    		mv ${DIR} ${SKINS_PATH}
    		echo -e "${DIR}........${GREENCOLOR}install${COLOROFF}"
    		shift
    	fi
    done
    }
    
    FUNC_DEPENDS(){
    
    TCL=`locate libtcl8`
    TK=`locate libtk8`
    
    if [ ! -e ${TCL} ]
    then
    	ALERT=`echo -e "${REDCOLOR}Error depedencies : you must install tcl >= 8.3 first. ${COLOROFF}"
    	echo "With Mandrake (root) : urpmi tcl"
    	echo "With Debian (root) : apt-get install tcl"
    	echo ""`
    	FUNC_MAIN
    fi
    if [ ! -e ${TK} ]
    then
    	ALERT=`echo -e "${ALERT}"
    	echo ""
    	echo -e "${REDCOLOR}Error depedencies : you must install tk >= 8.3 first. ${COLOROFF}"
    	echo "With Mandrake (root) : urpmi tk"
    	echo "With Debian (root) : apt-get install tk"
    	echo ""`
    	FUNC_MAIN
    fi
    FUNC_INSTALL_AMSN
    
    }
    
    
    
    FUNC_TEST_AMSN(){
    
    if [ ! -e ~/msn ]
    then
    		ALERT=`echo -e "$HOME/msn ${REDCOLOR}not exist, install aMSN first${COLOROFF}"`
    		FUNC_MAIN
    else
    	echo "Waiting..."
    	echo ""
    	FUNC_INSTALL_THEMES $URL_TUX $URL_MSN $URL_FLUOX $URL_AMAC $URL_CRYSTOLA
    	echo ""
    	echo ""
    	echo -en "Run amsn just for testing ? (y/n) [ ${GREENCOLOR}default : n${COLOROFF} ] : "
    	read ON 
    		case $ON in
    			[yY]*)FUNC_RUN_AMSN;;
    			    *)echo "${QUIT_MESS}" ; exit 0;;
    		esac
    fi
    }
    
    FUNC_RUN_AMSN(){
    
    if [ ! -e ${BIN_PATH} ]
    then
    	ALERT=`echo -e "${HOME}/msn ${REDCOLOR}not exist, install aMSN first${COLOROFF}"`
    	FUNC_MAIN
    else
    	${BIN_PATH}
    	FUNC_MAIN
    fi
    
    }
    
    FUNC_INSTALL_AMSN(){
    
    cd ~/
    echo ""
    echo "aMSN CVS downloading please wait..."
    # -q = mode quiet (cf. man wget)
    ${WGET} -q ${URL_AMSN_CVS} 
    echo ""
    echo "Installing aMSN CVS version"
    tar zxf amsn_cvs.tar.gz	-C ~/		#Extract without verbose mode (-v)
    rm -f ~/amsn_cvs.tar.gz*		#Archive can be removed
    mkdir -p ${SKINS_PATH}
    echo ""
    echo -ne "Install correct, would you like install themes ? (y/n) [ ${GREENCOLOR}default : n${COLOROFF} ] : "
    read ON
    
    case $ON in
    	[yY]*)FUNC_TEST_AMSN;;
    	    *)echo "${QUIT_MESS}" ; exit 0;;
    esac
    }
    
    FUNC_MAIN(){
    
    echo -e "${HEADER}"
    echo "This script installing aMSN and/or themes : "
    echo ""
    echo "${ALERT}"
    echo ""
    select CHOIX in "Install themes only" "Install the last aMSN version" "Run aMSN" "Quit"
    do
    	case $REPLY in
    		1)FUNC_TEST_AMSN;;
    		2)FUNC_DEPENDS;;
    		3)FUNC_RUN_AMSN;;
    		*)exit 0;;
    	esac
    done
    }
    
    #script start here (call FUNC_MAIN function)
    FUNC_MAIN
    
    #######
    # EOF #
    #######
    run the file..
    Code:
    chmod +x ~/amsn-installer
    ~/amsn-installer
    press 2 to install (you can choose to install Themes or not)
    anyway now go to ~/msn to compile it
    Code:
    cd ~/msn
    ./configure && make

    now to avoid amsn hanging on logging in..
    Code:
    gedit ~/amsn
    paste into the file
    Code:
    #!/bin/bash
    export LD_ASSUME_KERNEL=2.2.5
    /home/USER_NAME/msn/amsn&
    and then chmod it
    Code:
    chmod +x ~/amsn
    now all you have left to do is to create a launcher in gnome panel but remember to use /home/USER_NAME/amsn as a launcher and not/home/USER_NAME/msn/amsn and to use esdplay $sound in amsn configuration to have sounds

    Hope that helps
    Last edited by Gandalf; October 14th, 2005 at 12:51 AM.
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  2. #2
    Join Date
    Oct 2005
    Location
    Estonia / Sweden
    Beans
    2,332
    Distro
    Ubuntu Development Release

    Re: HOWTO: Install & run latest CVS amsn

    Quote Originally Posted by Gandalf
    press 4 to install
    its more like a 2

  3. #3
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: HOWTO: Install & run latest CVS amsn

    Quote Originally Posted by meborc
    its more like a 2
    oops yeah sowwy i'll correct it
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  4. #4
    Join Date
    Dec 2004
    Location
    Antigua, W.I.
    Beans
    99
    Distro
    Ubuntu 6.06

    Re: HOWTO: Install & run latest CVS amsn

    Great how to. However, I followed the instructions to the letter and each time I run aMSN, it seems that everything is OK, but I as soon as I log on, it crashes in two seconds. WHat's up with that?
    'Ecce est percipi' Bishop George Berkeley, Principles of Human Knowledge
    'Let us not waste our time in idle discourse' Samuel Becket,Waiting For Godot

  5. #5
    Join Date
    Apr 2005
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: HOWTO: Install & run latest CVS amsn

    It doesn't download any themes

  6. #6
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: HOWTO: Install & run latest CVS amsn

    Quote Originally Posted by GavinX
    Great how to. However, I followed the instructions to the letter and each time I run aMSN, it seems that everything is OK, but I as soon as I log on, it crashes in two seconds. WHat's up with that?
    Are you sure you are running /home/USER_NAME/amsn ??
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  7. #7
    Join Date
    Apr 2005
    Beans
    645
    Distro
    Dapper Drake Testing/

    Re: HOWTO: Install & run latest CVS amsn

    Quote Originally Posted by Rob2687
    It doesn't download any themes
    did you get any errors?
    [My Blog] | [My Sites] | [My Ubuntu Guides]

    doc.gwos.org, the real successor of Ubuntu Guide

  8. #8
    Join Date
    May 2005
    Location
    Stockholm, Sweden
    Beans
    50
    Distro
    Ubuntu UNR

    Re: HOWTO: Install & run latest CVS amsn

    Thank you!

    Working great for me except for the themes. I wanted this for a long time...

  9. #9
    Join Date
    May 2005
    Location
    Stockholm, Sweden
    Beans
    50
    Distro
    Ubuntu UNR

    Re: HOWTO: Install & run latest CVS amsn

    By the way. I did not get any error messages about the themes. It just get coming back to the first stage in the install where I was promted to choose 1,2,3 or 4,

  10. #10
    Join Date
    May 2005
    Location
    Stockholm, Sweden
    Beans
    50
    Distro
    Ubuntu UNR

    Re: HOWTO: Install & run latest CVS amsn

    I post my output:
    stoffe@Ubuntu:~$ ~/amsn-installer

    +------------------------------+
    | aMSN Install script 1.3 |
    +------------------------------+

    This script installing aMSN and/or themes :



    1) Install themes only 3) Run aMSN
    2) Install the last aMSN version 4) Quit
    #? 2

    aMSN CVS downloading please wait...

    Installing aMSN CVS version

    Install correct, would you like install themes ? (y/n) [ default : n ] : y







    +------------------------------+
    | aMSN Install script 1.3 |
    +------------------------------+

    This script installing aMSN and/or themes :

    /home/stoffe/msn not exist, install aMSN first

    1) Install themes only 3) Run aMSN
    2) Install the last aMSN version 4) Quit
    #? 1













    +------------------------------+
    | aMSN Install script 1.3 |
    +------------------------------+

    This script installing aMSN and/or themes :

    /home/stoffe/msn not exist, install aMSN first

    1) Install themes only 3) Run aMSN
    2) Install the last aMSN version 4) Quit
    #? 1













    +------------------------------+
    | aMSN Install script 1.3 |
    +------------------------------+

    This script installing aMSN and/or themes :

    /home/stoffe/msn not exist, install aMSN first

Page 1 of 8 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •