Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old May 21st, 2005   #1
Gandalf
Has an Ubuntu Drip
 
Gandalf's Avatar
 
Join Date: Apr 2005
Beans: 688
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!!!
__________________
[My Blog] | [My Sites] | [My Ubuntu Guides]

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

Last edited by Gandalf; May 22nd, 2005 at 12:30 AM..
Gandalf is offline   Reply With Quote
Old May 21st, 2005   #2
jasmuz
Skinny Soy Caramel Ubuntu
 
jasmuz's Avatar
 
Join Date: May 2005
Location: Santo Domingo, Dominican
Beans: 653
Ubuntu 8.04 Hardy Heron
Send a message via ICQ to jasmuz Send a message via AIM to jasmuz Send a message via MSN to jasmuz Send a message via Yahoo to jasmuz Send a message via Skype™ to jasmuz
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?
jasmuz is offline   Reply With Quote
Old May 21st, 2005   #3
Gandalf
Has an Ubuntu Drip
 
Gandalf's Avatar
 
Join Date: Apr 2005
Beans: 688
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
Gandalf is offline   Reply With Quote
Old May 21st, 2005   #4
RastaMahata
Quad Shot of Ubuntu
 
RastaMahata's Avatar
 
Join Date: Dec 2004
Location: Santiago, Chile
Beans: 427
Ubuntu Breezy 5.10
Send a message via MSN to RastaMahata
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)
RastaMahata is offline   Reply With Quote
Old May 22nd, 2005   #5
Gandalf
Has an Ubuntu Drip
 
Gandalf's Avatar
 
Join Date: Apr 2005
Beans: 688
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
Gandalf is offline   Reply With Quote
Old May 22nd, 2005   #6
bored2k
Skinny Extra Sweet Ubuntu
 
bored2k's Avatar
 
Join Date: Feb 2005
My beans are 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.
bored2k is offline   Reply With Quote
Old May 22nd, 2005   #7
Gandalf
Has an Ubuntu Drip
 
Gandalf's Avatar
 
Join Date: Apr 2005
Beans: 688
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
Gandalf is offline   Reply With Quote
Old May 25th, 2005   #8
Reeva
5 Cups of Ubuntu
 
Reeva's Avatar
 
Join Date: May 2005
Location: Belgium
Beans: 30
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to Reeva
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
Reeva is offline   Reply With Quote
Old May 25th, 2005   #9
Gandalf
Has an Ubuntu Drip
 
Gandalf's Avatar
 
Join Date: Apr 2005
Beans: 688
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
Gandalf is offline   Reply With Quote
Old May 26th, 2005   #10
Reeva
5 Cups of Ubuntu
 
Reeva's Avatar
 
Join Date: May 2005
Location: Belgium
Beans: 30
Ubuntu 7.10 Gutsy Gibbon
Send a message via MSN to Reeva
Re: HOWTO: install freepops

no I don't have a firewall ..

I reinstalled freepops .. but I still have the same problem
Reeva is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:51 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry