Page 1 of 4 123 ... LastLast
Results 1 to 10 of 38

Thread: HOWTO: install freepops

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

    HOWTO: install freepops

    Hello,

    i've been fighting all day to get freepops working with ubuntu hoary, and finally i get it working, so it's cool to share it with others,

    Q. What is freepops
    Freepops is a webmail -> pop client, it allow to receive a lot of webmail using a pop client, like hotmail, gmail, aol etc.... check this page for all supported modules

    let's begin by preparing the system, to get it compiled i had to install the following packages,
    Code:
    sudo apt-get install bison flex libc6-dev libcurl3-dev libexpat1-dev libidn11-dev libssl0.9.7 zlib1g-dev debconf
    this way i could complie it without any problems,

    let's download now the sources,
    go to http://sourceforge.net/projects/freepops/ and download the sources,,

    NOTE: i use /usr/src to always keep a copy of the compiled sources in case i want to uninstall it
    NOTE2: this guide will presume that you have downloaded the build 0.0.27, if it isn't the case be sure you replace the version

    Code:
    cd ~
    wget http://mesh.dl.sourceforge.net/sourceforge/freepops/freepops-0.0.27.tar.gz
    sudo tar -xzvf freepops-0.0.27.tar.gz -C /usr/src
    cd /usr/src/freepops-0.0.27
    sudo ./configure.sh linux
    sudo make
    sudo make install
    now the freepops is installed and working, to run it manually you must run freepopsd with root (sudo freepopsd &), but it's better to run it automatically!

    so let's begin by building the automatic run script

    Code:
    sudo pico /etc/init.d/freepops
    paste into these contents
    Code:
    #! /bin/sh
    #
    #  TODO:
    #     To be in perfect debian style we should use start-stop-daemon also
    #     for chrooting.
    # 
    #
    
    ### some default values ###
    
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    
    DEFAULT_DAEMON=/usr/local/bin/freepopsd
    DEFAULT_PIDFILE=/var/run/freepopsd.pid
    DEFAULT_CHROOTED_DAEMON_OPTS=" -n -s nobody.nogroup"
    DEFAULT_DAEMON_OPTS=" -n"
    
    NAME=freepopsd
    DESC="freepops daemon"
    
    ### /etc/default/ loading ###
    
    # Include freepops defaults if available. Used variables are:
    # DAEMON, DAEMON_OPTS, CHROOTED_DAEMON_OPTS, PIDFILE, CHROOT
    # all have a DEFAULT_ here, except CHROOT that is empty if the 
    # daemon should run in the normal environment
    
    if [ -f /etc/default/freepops ] ; then
    	. /etc/default/freepops
    fi
    
    if [ -z "$DAEMON" ] ; then
    	DAEMON=$DEFAULT_DAEMON
    fi
    
    if [ -z "$PIDFILE" ] ; then
    	PIDFILE=$DEFAULT_PIDFILE
    fi
    
    if [ -z "$DAEMON_OPTS" ] ; then
    	DAEMON_OPTS=$DEFAULT_DAEMON_OPTS
    fi
    
    if [ -z "$CHROOTED_DAEMON_OPTS" ] ; then
    	CHROOTED_DAEMON_OPTS=$DEFAULT_CHROOTED_DAEMON_OPTS
    fi
    
    test -x $DAEMON || exit 0
    
    set -e
    
    ### helpers ###
    
    function start_freepopsd () {
    	if [ -z "$CHROOT" ] ; then
    		start-stop-daemon --start -b --quiet -m -p $PIDFILE \
    			--exec $DAEMON -- $DAEMON_OPTS
    	else
    		echo -n "(chroot) "
    		start-stop-daemon --start -b --quiet -m -p $PIDFILE \
    			-r $CHROOT --exec $DAEMON -- $CHROOTED_DAEMON_OPTS
    	fi
    
    }
    
    function stop_freepopsd () {
    	if [ -z "$CHROOT" ] ; then
    		start-stop-daemon --stop --quiet -p $PIDFILE 
    	else
    		echo -n "(chroot) "
    		start-stop-daemon --stop --quiet -p $PIDFILE 
    	fi
    	rm $PIDFILE
    }
    
    ### real code ###
    
    case "$1" in
      start)
    	echo -n "Starting $DESC: "
    	start_freepopsd
    	echo "$NAME."
    	;;
      stop)
    	echo -n "Stopping $DESC: "
    	stop_freepopsd
    	echo "$NAME."
    	;;
      restart|force-reload)
    	echo -n "Restarting $DESC: "
    	stop_freepopsd
    	sleep 1
    	start_freepopsd
    	echo "$NAME."
    	;;
      *)
    	N=/etc/init.d/freepops
    	echo "Usage: $N {start|stop|restart}" >&2
    	exit 1
    	;;
    esac
    
    exit 0
    then give it run permissions,
    Code:
    sudo chmod +x /etc/init.d/freepops
    add it to rc*.d runlevels
    Code:
    sudo update-rc.d freepops defaults
    now to restart, stop or start freepops type
    Code:
    sudo invoke-rc.d freepops { start | stop | restart }
    instead of
    Code:
    sudo freepopsd &



    A LITTLE BIT OF INFO ON HOW TO USE IT...
    _________________________________________
    when you install it, you must configure thunderbird, evolution, outlook or whatever pop client u use,

    SERVER
    ________
    server must be 127.0.0.1 if installed on the same PC, or PC's ip if installed on another,

    PORT
    _____
    you must use port 2000


    USERNAME
    ___________

    you must use your email as username, for example to receive account@hotmail.com mails, your username is account@hotmail.com, samething for gmail, etc...

    PASSWORD
    ___________
    well your password

    and now you can receive your mails on your pop client.....




    if you prefer not to install it, i have install it on my server, if you want to use it here's the config

    server : mail.siemens-mobiles.org
    port : 2000


    i hope this guide will be usefull to you!



    [TEMPORARY NOTE]
    hotmail has changed the way to login (html login forms, javascript etc...) 2 days ago, freepops has updated it's script ans it's working but it's not included in their build, you must update them manually,
    so let's replace them,

    Code:
    cd /usr/local/share/freepops/lua
    sudo mv hotmail.lua hotmail.lua_old
    sudo mv aol.lua aol.lua_old
    sudo mv mailcom.lua mailcom.lua_old
    sudo wget http://www.freepops.org/download.php?file=hotmail.lua
    sudo wget http://www.freepops.org/download.php?file=aol.lua
    sudo wget http://www.freepops.org/download.php?file=mailcom.lua
    now it will work!!!
    Last edited by Gandalf; May 22nd, 2005 at 05:30 AM.
    [My Blog] | [My Sites] | [My Ubuntu Guides]

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

  2. #2
    Join Date
    May 2005
    Location
    Santo Domingo, Dominican
    Beans
    631
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: HOWTO: install freepops

    Quote Originally Posted by Gandalf
    Hello,

    i've been fighting all day to get freepops working with ubuntu hoary, and finally i get it working, so it's cool to share it with others,

    Q. What is freepops
    Freepops is a pop->webmail client, it allow to receive a lot of webmail using a pop client, like hotmail, gmail, aol etc.... check this page for all supported modules

    let's begin by preparing the system, to get it compiled i had to install the following packages,
    Code:
    sudo apt-get install bison flex libc6-dev libcurl3-dev libexpat1-dev libidn11-dev libssl0.9.7 zlib1g-dev debconf
    this way i could complie it without any problems,

    let's download now the sources,
    go to http://sourceforge.net/projects/freepops/ and download the sources,,

    NOTE: i use /usr/src to always keep a copy of the compiled sources in case i want to uninstall it
    NOTE2: this guide will presume that you have downloaded the build 0.0.27, if it isn't the case be sure you replace the version

    Code:
    cd ~
    wget http://mesh.dl.sourceforge.net/sourceforge/freepops/freepops-0.0.27.tar.gz
    sudo tar -xzvf freepops-0.0.27.tar.gz -C /usr/src
    cd /usr/src/freepops-0.0.27
    sudo ./configure.sh linux
    sudo make
    sudo make install
    now the freepops is installed and working, to run it manually you must run freepopsd with root (sudo freepopsd &), but it's better to run it automatically!

    so let's begin by building the automatic run script

    Code:
    sudo pico /etc/init.d/freepops
    paste into these contents
    Code:
    #! /bin/sh
    #
    #  TODO:
    #     To be in perfect debian style we should use start-stop-daemon also
    #     for chrooting.
    # 
    #
    
    ### some default values ###
    
    PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
    
    DEFAULT_DAEMON=/usr/local/bin/freepopsd
    DEFAULT_PIDFILE=/var/run/freepopsd.pid
    DEFAULT_CHROOTED_DAEMON_OPTS=" -n -s nobody.nogroup"
    DEFAULT_DAEMON_OPTS=" -n"
    
    NAME=freepopsd
    DESC="freepops daemon"
    
    ### /etc/default/ loading ###
    
    # Include freepops defaults if available. Used variables are:
    # DAEMON, DAEMON_OPTS, CHROOTED_DAEMON_OPTS, PIDFILE, CHROOT
    # all have a DEFAULT_ here, except CHROOT that is empty if the 
    # daemon should run in the normal environment
    
    if [ -f /etc/default/freepops ] ; then
    	. /etc/default/freepops
    fi
    
    if [ -z "$DAEMON" ] ; then
    	DAEMON=$DEFAULT_DAEMON
    fi
    
    if [ -z "$PIDFILE" ] ; then
    	PIDFILE=$DEFAULT_PIDFILE
    fi
    
    if [ -z "$DAEMON_OPTS" ] ; then
    	DAEMON_OPTS=$DEFAULT_DAEMON_OPTS
    fi
    
    if [ -z "$CHROOTED_DAEMON_OPTS" ] ; then
    	CHROOTED_DAEMON_OPTS=$DEFAULT_CHROOTED_DAEMON_OPTS
    fi
    
    test -x $DAEMON || exit 0
    
    set -e
    
    ### helpers ###
    
    function start_freepopsd () {
    	if [ -z "$CHROOT" ] ; then
    		start-stop-daemon --start -b --quiet -m -p $PIDFILE \
    			--exec $DAEMON -- $DAEMON_OPTS
    	else
    		echo -n "(chroot) "
    		start-stop-daemon --start -b --quiet -m -p $PIDFILE \
    			-r $CHROOT --exec $DAEMON -- $CHROOTED_DAEMON_OPTS
    	fi
    
    }
    
    function stop_freepopsd () {
    	if [ -z "$CHROOT" ] ; then
    		start-stop-daemon --stop --quiet -p $PIDFILE 
    	else
    		echo -n "(chroot) "
    		start-stop-daemon --stop --quiet -p $PIDFILE 
    	fi
    	rm $PIDFILE
    }
    
    ### real code ###
    
    case "$1" in
      start)
    	echo -n "Starting $DESC: "
    	start_freepopsd
    	echo "$NAME."
    	;;
      stop)
    	echo -n "Stopping $DESC: "
    	stop_freepopsd
    	echo "$NAME."
    	;;
      restart|force-reload)
    	echo -n "Restarting $DESC: "
    	stop_freepopsd
    	sleep 1
    	start_freepopsd
    	echo "$NAME."
    	;;
      *)
    	N=/etc/init.d/freepops
    	echo "Usage: $N {start|stop|restart}" >&2
    	exit 1
    	;;
    esac
    
    exit 0
    then give it run permissions,
    Code:
    sudo chmod +x /etc/init.d/freepops
    add it to rc*.d runlevels
    Code:
    sudo update-rc.d freepops defaults
    now to restart, stop or start freepops type
    Code:
    sudo invoke-rc.d freepops { start | stop | restart }
    instead of
    Code:
    sudo freepopsd &



    A LITTLE BIT OF INFO ON HOW TO USE IT...
    _________________________________________
    when you install it, you must configure thunderbird, evolution, outlook or whatever pop client u use,

    SERVER
    ________
    server must be 127.0.0.1 if installed on the same PC, or PC's ip if installed on another,

    PORT
    _____
    you must use port 2000


    USERNAME
    ___________

    you must use your email as username, for example to receive account@hotmail.com mails, your username is account@hotmail.com, samething for gmail, etc...

    PASSWORD
    ___________
    well your password

    and now you can receive your mails on your pop client.....




    if you prefer not to install it, i have install it on my server, if you want to use it here's the config

    server : mail.siemens-mobiles.org
    port : 2000


    i hope this guide will be usefull to you!



    [TEMPORARY NOTE]
    hotmail has changed the way to login (html login forms, javascript etc...) 2 days ago, freepops has updated it's script ans it's working but it's not included in their build, you must update them manually,
    so let's replace them,

    Code:
    cd /usr/local/share/freepops/lua
    sudo mv hotmail.lua hotmail.lua_old
    sudo mv aol.lua aol.lua_old
    sudo mv mailcom.lua mailcom.lua_old
    sudo wget http://www.freepops.org/download.php?file=hotmail.lua
    sudo wget http://www.freepops.org/download.php?file=aol.lua
    sudo wget http://www.freepops.org/download.php?file=mailcom.lua
    now it will work!!!
    Why compile if there are DEB's for Debian Sid and Sarge?

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

    Re: HOWTO: install freepops

    Quote Originally Posted by jasmuz
    Why compile if there are DEB's for Debian Sid and Sarge?
    because i couldn't install debs becuase libcurl isn't the satisfying version, and if i installed the one for sarge i break my webserver which i don't want in any way to do it
    Code:
    wael@nasreddine:~$ sudo apt-get install freepops
    Reading package lists... Done
    Building dependency tree... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    
    Since you only requested a single operation it is extremely likely that
    the package is simply not installable and a bug report against
    that package should be filed.
    The following information may help to resolve the situation:
    
    The following packages have unmet dependencies:
      freepops: Depends: libcurl3 (>= 7.13.1-1) but 7.12.3-2ubuntu3 is to be installed
                Depends: libidn11 (>= 0.5.13) but 0.5.2-3 is to be installed
    E: Broken packages
    [My Blog] | [My Sites] | [My Ubuntu Guides]

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

  4. #4
    Join Date
    Dec 2004
    Location
    Santiago, Chile
    Beans
    311
    Distro
    Ubuntu Breezy 5.10

    Re: HOWTO: install freepops

    Quote Originally Posted by Gandalf
    Q. What is freepops
    Freepops is a pop->webmail client, it allow to receive a lot of webmail using a pop client, like hotmail, gmail, aol etc....
    I think it should say webmail -> pop, as it allow you to check webmail from a pop client.
    Besides, you dont need this for gmail, as gmail has a pop feature

    Great program. I hope someone uploads the deb somewhere for people who dont like to compile

    (Added to the index)

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

    Re: HOWTO: install freepops

    Quote Originally Posted by RastaMahata
    I think it should say webmail -> pop, as it allow you to check webmail from a pop client.
    Besides, you dont need this for gmail, as gmail has a pop feature

    Great program. I hope someone uploads the deb somewhere for people who dont like to compile

    (Added to the index)
    exactly, sorry a typo mistake
    [My Blog] | [My Sites] | [My Ubuntu Guides]

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

  6. #6
    Join Date
    Feb 2005
    Beans
    Hidden!

    Re: HOWTO: install freepops

    Off topic - Gandalf got a job already ?
    Sylvia: Look at what you've done to him!
    Christof: I have given Truman the chance to lead a normal life. The world, the place you live in, is the sick place.

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

    Re: HOWTO: install freepops

    Quote Originally Posted by bored2k
    Off topic - Gandalf got a job already ?
    <off topic>
    f**k no!!!
    </off topic>
    [My Blog] | [My Sites] | [My Ubuntu Guides]

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

  8. #8
    Join Date
    May 2005
    Location
    Belgium
    Beans
    28
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: install freepops

    Quote Originally Posted by Gandalf
    <off topic>
    f**k no!!!
    </off topic>
    When I try to start freepops with " sudo freeposd & " .. I always have this error

    Code:
    Unable to bind on 0.0.0.0:2000
    can someone help me?

    thx alot

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

    Re: HOWTO: install freepops

    Quote Originally Posted by Reeva
    When I try to start freepops with " sudo freeposd & " .. I always have this error

    Code:
    Unable to bind on 0.0.0.0:2000
    can someone help me?

    thx alot
    do you have iptables, firestarter etc.... ? i mean do you have firewall installed?
    [My Blog] | [My Sites] | [My Ubuntu Guides]

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

  10. #10
    Join Date
    May 2005
    Location
    Belgium
    Beans
    28
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: install freepops

    no I don't have a firewall ..

    I reinstalled freepops .. but I still have the same problem

Page 1 of 4 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
  •