Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
VHCS2 on Gentoo HowTo
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3, 4, 5  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Sun Apr 10, 2005 6:58 am    Post subject: VHCS2 on Gentoo HowTo Reply with quote

Update Nov 2005:
Try this newer howto. The one below is too old.

-c

Note

Gentoo has made Courier-imap version 4 stable, and has moved authentication back to /etc/courier. This is just after I've gone through and hacked all the Make and config files in the vhcs source to point to /etc/courier-imap so as to create the gentoo vhcs tarball. So if you want to try this, please follow the source part of this howto and skip my tarball atm - else you won't have any authentication working and all hell will break loose! Alternatively you could use my tarball and tell portage you want to use Courier-imap v 3.

This is a work in progress - I was trying to get it working on my system and thought I'd document it as I went in case I got it working ;) So please feel free to try it out and let me know what you find.. I'll be updating this as I learn more about it. Having said that, please give it a go!

Init script for Gentoo
I created a little init.d script, which you can use. Please see this thread here.

64bit daemon fix
If you are using 64bit like me (Opteron) the vhcs2_daemon will segfault. You need to re-compile it 64bit, see my howto here.

Guide
This guide is derived from Petzch's work in the VHCS Forums. Thank you!

If you see anything in square brackets through out this guide (ie [ipaddress]), then it is something you should be modifying for your network.
This guide assumes you extract the tarball to /root. If you have extracted it elsewhere, just replace /root/vhcs-2.4 with your location


This guide should give you the follow setup:
Apache2 for web
Postfix for MTA
Courier IMAP / POP3
MySQL for database
Bind for DNS
ProFTPd for FTP server

Sync your portage tree
First you may like to get a copy of the latest portage tree. If so, then
Code:
emerge --sync

USE flags
Now we need to ensure we have the correct USE flags. These are related to VHCS2 and based on my dual Opteron server, but feel free to change them based on your profile and other requirements.
Code:
USE="-* -X adns apache2 authdaemond berkdb bzlib crypt curl gd imap innodb maildir -mbox memlimit mime mmx mmx2 mysql php python sasl session sockets softquota sse sse2 ssl threads vhosts xml xml2 zlib"
NB: Please modify the CPU instruction sets above to reflect your system. ie, you may want to take out SSE2 unless you have an >= AMD64 / Opteron or Prescott P4 / PM (Centrino) / Xeon. Check output of cat /proc/cpuinfo

I also have the following custom USE flags under /etc/portage/package.use
Code:
dev-libs/cyrus-sasl pam
sys-devel/libperl ithreads
dev-lang/perl ithreads
dev-php/php jpeg png tiff truetype
dev-php/mod_php jpeg png tiff truetype
net-dns/bind bind-mysql
net-firewall/iptables extensions
mail-mta/postfix -postgres ssl sasl
media-libs/gd jpeg png truetype
net-ftp/proftpd shaper

Note: it appears that courier-imap does not like ldflags built into GCC
Code:
/usr/lib/gcc/i686-pc-linux-gnu/3.4.3-20050110/../../../../i686-pc-linux-gnu/bin/ld: unrecognized option '-Wl'
!!! ERROR: net-libs/courier-authlib-0.55.20050320 failed.
I suggest at this stage that you do not build your system with LDFLAGS set in your make.conf.

Packages
Now let's get started with the packages.
Remove SSMTP (unless you have mailwrapper and need it)
Code:
emerge -C ssmtp

Install the required apps
Code:
emerge -av postfix apache Authen-DigestMD5 BerkeleyDB bind Class-DBI-mysql expect courier-imap Crypt-Blowfish crypt-cbc cyrus-sasl Date-Calc DateManip DBD-mysql dev-perl/libnet gawk gzip IO-stringy iptables libmcrypt libperl MailTools MD5 MIME-Base64 MIME-tools mod_php mysql Net-DNS Net-Netmask perl php procmail proftpd SNMP_Session tar TermReadKey TimeDate fcron

Add them to the default runlevel
Code:
for x in apache2 courier-imapd courier-pop3d courier-authlib mysql named postfix proftpd saslauthd fcron ; do rc-update add $x default ; done
Courier-IMAP V4 is now stable in portage, so it is used as the default in this howto. As of version 4, authentication is now handled by courier-authlib not authdaemond. If you have courier-imap <= version 3 then replace courier-authlib with authdaemond, else follow the howto.

Carefully check and update config files
Code:
etc-update

Configure services
Install MySQL database
Code:
/usr/bin/mysql_install_db ; /etc/init.d/mysql start

Now, set root's mysql password
Code:
mysqladmin password [password]

Copy proftp config file
Code:
cp /etc/proftpd/proftpd.conf.distrib /etc/proftpd/proftpd.conf

Add PHP and SSL support to Apache
Code:
nano -w /etc/conf.d/apache2
replace line with
Code:
APACHE2_OPTS="-D SSL -D PHP4"

Open apache2 config
Code:
nano -w /etc/apache2/conf/apache2.conf
set your fqdn in apache2.conf
Code:
ServerName [set your fqdn]
exit and save.

Configure VHCS
Now we need to start configuring VHCS2.
The configuration files that come with the tarball need to be changed to reflect our Gentoo base.
So I have already changed them all for you, and re-packaged it into a convenient tarball :)
Download it here.
Code:
sudo su - ; wget http://gensys.net.au/files/vhcs2/vhcs-2.4-gentoo-2005041801.tar.bz2

Extract the file to your home dir (ie /root)
Code:
tar -xvjpf vhcs-2.4-gentoo-2005041801.tar.bz2

If you want to use the source from VHCS.net, then you will need to extract the tarball and manually change to suit the Gentoo naming convention.

Edit the main config
If you are using my tarball, I have already gone through each and every file and replaced apache with apache2, courier with courier-imap etc, and pointed everything to the proper locations. I have also Gentoofied the vhcs2.conf file, however you will still need to edit it to suit your network.
Change anything that has a square bracket, ie [hostname].
Code:
cd /root/vhcs-gentoo-2.4/configs ; nano -w vhcs2.conf

If you are not using my tarball, then you can grab my config and overwrite the one that came with the source if you like
Code:
cd /root/vhcs-2.4/configs ; rm vhcs2.conf ; wget http://gensys.net.au/files/vhcs2/vhcs2.conf ; nano -w vhcs2.conf
exit and save the file.

For those doing it manually, most of the config is correct. Just make the following changes:
Code:
DEFAULT_ADMIN_ADDRES = [enter your email address here]
SERVER_HOSTNAME = [enter your server name here]
FTPD_CONF_FILE = /etc/proftpd/proftpd.conf

DATABASE_NAME = vhcs2
DATABASE_PASSWORD = [enter your password here]

ROOT_DIR = /var/www/localhost/htdocs/vhcs2

BIND_DB_DIR = /var/bind/pri
SECONDARY_DNS = [if you have one, add it here]

APACHE_WWW_DIR = /var/www/localhost/htdocs/virtual
APACHE_CONF_FILE = /etc/apache2/vhcs2.conf
GUI_ROOT_DIR = /var/www/localhost/htdocs/vhcs2/gui
PEAR_DIR = /usr/lib/php

APACHE_USER = apache
APACHE_GROUP =apache

MTA_LOCAL_MAIL_DIR = /var/spool/mail

MTA_VIRTUAL_MAIL_DIR = /var/spool/mail/virtual
MTA_LOCAL_ALIAS_HASH = /etc/mail/aliases
MTA_MAILBOX_MIN_UID = 1001
MTA_MAILBOX_UID = 1001
MTA_MAILBOX_GID = 12
MTA_SASLDB_LOCAL_DOMAIN = [enter your domain here]
MTA_SASLDB_FILE = /etc/sasl2/sasldb2
COURIER_CONF_DIR = /etc/courier-imap
BACKUP_ROOT_DIR = /var/www/localhost/htdocs/vhcs2/engine/backup

CMD_NAMED = /etc/init.d/named
CMD_HTTPD = /usr/sbin/apache2
CMD_AUTHD = /etc/init.d/courier-authlib
CMD_IMAP = /etc/init.d/courier-imapd
CMD_POP = /etc/init.d/courier-pop3d

QUOTA_ROOT_DIR = /var/www/localhost/htdocs/vhcs2/engine/quota
TRAFF_ROOT_DIR = /var/www/localhost/htdocs/vhcs2/engine/traffic
TOOLS_ROOT_DIR = /var/www/localhost/htdocs/vhcs2/engine/tools
FTP_USERNAME_SEPARATOR = -
FTP_HOMEDIR = /var/www/localhost/htdocs/virtual

Once again, if you are using <= courier-imap 3, then change CMD_AUTHD = /etc/init.d/courier-authlib to CMD_AUTHD = /etc/init.d/authdaemond.

Edit Postfix main.cf
I found the default postfix config a little restrictive (like not letting you email other domains outside your network), so I changed it. Either way you will need to edit the main.cf file so that it is compatible with your network.
If you used my tarball, main.cf will soon be changed to grab variables from the vhcs2.conf so you won't have to edit anything, but for now change anything in square brackets, else you can edit it manually.
Code:
nano -w /root/vhcs-gentoo-2.4/configs/postfix/main.cf
exit and save

Rebuild the daemon
You need to re-build the daemon so that it is Gentoo init compatible. See howto here.

If you are running 64bit OS, then use this howto here.


Let's continue.

Perl Modules
Now that you have the configs done there are a few more perl modules you need.
Code:
USE="-X" emerge -av lynx ftp gnupg ncftp unzip zip

Now we need to run cpan to download the modules
Code:
g-cpan.pl MIME::Entity MIME::Parser MIME::Base64 Crypt::CBC Crypt::Blowfish Term::ReadPassword
this should download and configure the missing modules while inserting them into portage.

Edit Courier DB location

The next thing you need to do is edit makeuserdb
Code:
nano -w /usr/sbin/makeuserdb
and change any lines that say "/etc/courier" to "/etc/courier-imap". ie:
Code:
$dbfile="/etc/courier-imap/authlib/userdb";
$datfile="/etc/courier-imap/authlib/userdb.dat";
$lockfile="/etc/courier-imap/authlib/userdb.lock";
$shadowfile="/etc/courier-imap/authlib/userdbshadow.dat";
$tmpdir="/etc/courier-imap/authlib";

Save and exit the file.


Now we should now be ready to finalise the setup!

Backup
Let's back it all up :)
Code:
mkdir ~/vhcs2.backup ; cp -R /root/vhcs-gentoo-2.4/* ~/vhcs2.backup/

Install
Now we run the installer which creates the files under /tmp/vhcs2
Code:
cd /root/vhcs-gentoo-2.4 ; make install ; cd /tmp/vhcs2

Now we move the files into the system
Code:
cp -R /tmp/vhcs2/* /

Symlinks
If you are using the source tarball (not my gentoo one) then you'll need to create some symlinks.
If you are using the gentoo tarball you can skip this step.

Web
Code:
mv /var/www/vhcs2 /var/www/localhost/htdocs/ ; ln -sf /var/www/localhost/htdocs/vhcs2 /var/www/vhcs2 ; mv /var/www/virtual /var/www/localhost/htdocs/ ; ln -sf /var/www/localhost/htdocs/virtual /var/www/virtual

Mail:
Code:
mv /var/mail /var/spool/mail ; ln -sf /var/spool/mail /var/mail ; ln -sf /etc/mail/aliases /etc/aliases ; ln -sf /etc/init.d/courier-imapd /etc/init.d/courier-imap ; ln -sf /etc/init.d/courier-pop3d /etc/init.d/courier-pop ; ln -sf /etc/init.d/courier-pop3d /etc/init.d/courier-popd ; mv /etc/courier/* /etc/courier-imap ; rmdir /etc/courier ; cp /etc/vhcs2/courier/authmodulelist /etc/courier-imap/ ; ln -sf /etc/courier-imap /etc/courier ; mv /usr/lib/courier/courier-authlib /usr/lib/courier-imap ; rmdir /usr/lib/courier ; ln -sf /usr/lib/courier-imap /usr/lib/courier ; ln -sf /etc/courier-imap /etc/courier-imap/authlib ; mkdir /var/run/courier

Setup
Now we need to run the setup program
Code:
cd /var/www/localhost/htdocs/vhcs2/engine/setup/ ; ./vhcs2-setup
and answer all the questions

Fix Bind
We need to tell Bind to listen on its external address, not local 127.0.0.1.
Code:
nano -w /etc/bind/named.conf
Edit the following IP section (replace 127.0.0.1 with your server's ip)
Code:
listen-on { 127.0.0.1; };

Also, if you have more than one cpu, you can set Bind to use SMP under /etc/conf.d/named with
Code:
CPU="2"

Apache
Finally we need to tell <=Apache 2.0.52 about our vhcs2.conf, so let's add it
Code:
echo "Include /etc/apache2/vhcs2.conf" >> /etc/apache2/conf/commonapache.conf

Or if >=Apache 2.0.53
Code:
echo "Include /etc/apache2/vhcs2.conf" >> /etc/apache2/httpd.conf

If you are using Apache 2.0.53 you will need a later version of mod_php
Code:
echo "=dev-php/mod_php-4.3.10-r1" >> /etc/portage/package.keywords ; emerge -av mod_php

Services
If you did not use the gentoo tarball, then you'll need to grab the init script I created, start it and add to default runlevel
Code:
cd /etc/init.d/ ; wget http://gensys.net.au/files/vhcs2/vhcs2 ; chmod 765 vhcs2 ; /etc/init.d/vhcs2 start ; rc-update add vhcs2 default

Let's start our services
Code:
for x in apache2 courier-imapd courier-pop3d courier-authlib mysql named postfix proftpd saslauthd fcron vhcs2 ; do /etc/init.d/$x start ; done ; rc-update add vhcs2 default
Don't forget if you are using <=Courier-IMAP v3, then substitute courier-authlib with authdaemond.


Assuming there were no errors, try and browse to your new setup at
http://ipaddress/vhcs2/gui/index.php

Good Luck!
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!


Last edited by taskara on Tue Nov 15, 2005 12:09 am; edited 24 times in total
Back to top
View user's profile Send private message
ZmiyGorinich
Guru
Guru


Joined: 27 Feb 2004
Posts: 369
Location: Zaporizhzhe, Ukraine

PostPosted: Sun Apr 10, 2005 10:40 am    Post subject: Reply with quote

This is cool software. I search it for my local server much time.
Thanks you and don't stop make this documentation.
_________________
Home: Athlon XP 2000+, ATI Radeon 9200 64Mb, 512Mb, hda:40Gb, hdb:120Gb, DVD-RW
Work : Duron 1.4, S3 ProSavage8 32Mb, 512Mb, hda:40Gb, CD-RW
Design, programming, hosting
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Mon Apr 11, 2005 5:45 am    Post subject: Reply with quote

OK, I have created an init script, and a 64bit fix.

Any Gentooists out there willing to test for me?

ta!
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
j-m
Retired Dev
Retired Dev


Joined: 31 Oct 2004
Posts: 975

PostPosted: Wed Apr 13, 2005 12:33 pm    Post subject: Reply with quote

Looks interesting, good luck. I will try when I have a test machine ready.

One suggestion - use

Code:

g-cpan.pl MIME::Entity MIME::Parser MIME::Base64 Crypt::CBC Crypt::Blowfish Term::ReadPassword


This way the ebuilds are created in PORTDIR_OVERLAY and can be uninstalled via portage.

I will keep watching this thread and post my suggestions here.
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Apr 13, 2005 1:26 pm    Post subject: Reply with quote

thank you for the tip j-m, I have updated the howto.
I look forward to any other advice you can give me.. I have been messing around so much with my boxen getting vhcs2 working that I need a fresh Gentoo system to test on :)

Once I am satisfied that the Howto works, I will write an ebuild.

Cheers
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
cyber007
n00b
n00b


Joined: 31 Jan 2004
Posts: 10
Location: Netherlands

PostPosted: Thu Apr 14, 2005 1:05 pm    Post subject: Reply with quote

Thanks for the creat tutorial!, i have plans to install vhcs2 on my gentoo production server.
it works fine on my test server

keep up the good work :)

add this cronjob

Code:
0,30 * * * *  /var/www/vhcs2/engine/vhcs2-rqst-mngr


for the mdaemon in vhcs2 to update users and other changes
_________________
Users must now undergo formal training before contacting Microsoft tech support.
Back to top
View user's profile Send private message
SpideriK
n00b
n00b


Joined: 01 Oct 2004
Posts: 35

PostPosted: Tue Apr 19, 2005 5:15 pm    Post subject: Reply with quote

Hi, I'm testing this tutorial and I just finish do the first emerge apps... and I do all the rc-udpate but i'm missing authdeamond.. it's ok or I do something wrong?

Thx
Back to top
View user's profile Send private message
SpideriK
n00b
n00b


Joined: 01 Oct 2004
Posts: 35

PostPosted: Tue Apr 19, 2005 5:15 pm    Post subject: Reply with quote

Hi, I'm testing this tutorial and I just finish do the first emerge apps... and I do all the rc-udpate but i'm missing authdeamond.. it's ok or I do something wrong?

Thx
Back to top
View user's profile Send private message
cyber007
n00b
n00b


Joined: 31 Jan 2004
Posts: 10
Location: Netherlands

PostPosted: Tue Apr 19, 2005 6:17 pm    Post subject: Reply with quote

if you use courier-imap version 4 and higer, do this

Code:
/etc/init.d/courier-authlib start

_________________
Users must now undergo formal training before contacting Microsoft tech support.
Back to top
View user's profile Send private message
SpideriK
n00b
n00b


Joined: 01 Oct 2004
Posts: 35

PostPosted: Tue Apr 19, 2005 10:33 pm    Post subject: Reply with quote

Thx...

Another error here, hope it's not another miss reading thing... ;)

I do cpan thing and when I start the setup... the setup tells me that i don't have any of this module on my computer... MIME:: and CRYPT:: thing

Do I do something wrong here... surely yes but what?

Thx

Edit: I reemerge all and check if it work
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Apr 20, 2005 1:21 am    Post subject: Reply with quote

Anyone else getting
Code:
vmware setup # /etc/init.d/saslauthd start
 * Starting saslauthd...
saslauthd[11344] :set_auth_mech   : unknown authentication mechanism: pam  [ !! ]
when starting saslauthd?

/etc/sasl2/smtpd.conf has pam, but if I change that to saslauthd it still complains about pam.. I can't think straight..

update: I think I took out pam USE flag.. trying again with

update2: yep, silly me. I built cyrus-sasl without pam USE flag :? all fixed
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Apr 20, 2005 7:17 am    Post subject: Reply with quote

has anyone yet followed my howto and has feedback on if it actually works?

things that you had to change?

tips?

I just re-built a system under vmware using my gentoo tarball and I can log into the web gui but it won't actually create any domains.

cheers
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
SpideriK
n00b
n00b


Joined: 01 Oct 2004
Posts: 35

PostPosted: Wed Apr 20, 2005 11:15 am    Post subject: Reply with quote

I'm trying right now but I'm stuck with emerge entity...


Code:

*** Warning: This library needs some functionality provided by -lpython2.0.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module librendnjs.  Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
ar cru .libs/librendnjs.a js-embed.lo js-ENode.lo js-ENodeAttrib.lo
ranlib .libs/librendnjs.a
creating librendnjs.la
(cd .libs && rm -f librendnjs.la && ln -s ../librendnjs.la librendnjs.la)
make[3]: Leaving directory `/var/tmp/portage/entity-0.7.2/work/entity-0.7.2/renderers/javascript'
Making all in gtkglarea
make[3]: Entering directory `/var/tmp/portage/entity-0.7.2/work/entity-0.7.2/renderers/gtkglarea'
/bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../g-extensions              -I../../entity           -I../../expat-1.1                        -DENTITYDATA=\"/usr/lib/entity\"    -O2 -march=pentium3 -fomit-frame-pointer -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Wall  -I/usr/local/ssl/include/ -L/usr/local/ssl/lib/ -c rendgtkgl.c
gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../g-extensions -I../../entity -I../../expat-1.1 -DENTITYDATA=\"/usr/lib/entity\" -O2 -march=pentium3 -fomit-frame-pointer -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Wall -I/usr/local/ssl/include/ -L/usr/local/ssl/lib/ -c rendgtkgl.c  -fPIC -DPIC -o rendgtkgl.lo
rendgtkgl.c:6:21: GL/glut.h: No such file or directory
rendgtkgl.c: In function `rendgtkgl_text_render':
rendgtkgl.c:291: warning: implicit declaration of function `glutBitmapCharacter'
rendgtkgl.c:291: error: `GLUT_BITMAP_TIMES_ROMAN_24' undeclared (first use in this function)
rendgtkgl.c:291: error: (Each undeclared identifier is reported only once
rendgtkgl.c:291: error: for each function it appears in.)
rendgtkgl.c: In function `rendgtkgl_cube_render':
rendgtkgl.c:334: warning: implicit declaration of function `glutSolidCube'
rendgtkgl.c: In function `rendgtkgl_sphere_render':
rendgtkgl.c:352: warning: implicit declaration of function `glutSolidSphere'
make[3]: *** [rendgtkgl.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/entity-0.7.2/work/entity-0.7.2/renderers/gtkglarea'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/entity-0.7.2/work/entity-0.7.2/renderers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/entity-0.7.2/work/entity-0.7.2'
make: *** [all-recursive-am] Error 2

!!! ERROR: dev-lang/entity-0.7.2 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.


I do an emerge glut and it do the tricks but now i'm stuck with some kind of -lpython... tryng an emerge right now and post what i get
now this:

Code:
1.1                                     -DRESOLVER_BIN=\"/usr/lib/entity/csink_dns_resolve\"                    -DENTITY_EMBED    -O2 -march=pentium3 -fomit-frame-pointer -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Wall  -I/usr/local/ssl/include/ -L/usr/local/ssl/lib/ -c resolve.c
/bin/sh ../../libtool --mode=link gcc  -O2 -march=pentium3 -fomit-frame-pointer -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Wall  -I/usr/local/ssl/include/ -L/usr/local/ssl/lib/ -L/usr/lib/python2.0/config/ -lpython2.0 -lpython2.3 -lm -L/usr/lib/python2.3/config  -o csink_dns_resolve -lnsl resolve.o 
gcc -O2 -march=pentium3 -fomit-frame-pointer -I/usr/X11R6/include -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2 -I/usr/lib/glib/include -Wall -I/usr/local/ssl/include/ -L/usr/local/ssl/lib/ -L/usr/lib/python2.0/config/ -lpython2.0 -lpython2.3 -lm -L/usr/lib/python2.3/config -o csink_dns_resolve -lnsl resolve.o
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lpython2.0
collect2: ld returned 1 exit status
make[3]: *** [csink_dns_resolve] Error 1
make[3]: Leaving directory `/var/tmp/portage/entity-0.7.2-r1/work/entity-0.7.2/renderers/csink'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/entity-0.7.2-r1/work/entity-0.7.2/renderers'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/entity-0.7.2-r1/work/entity-0.7.2'
make: *** [all-recursive-am] Error 2

!!! ERROR: dev-lang/entity-0.7.2-r1 failed.
!!! Function src_compile, Line 65, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.
Back to top
View user's profile Send private message
cyber007
n00b
n00b


Joined: 31 Jan 2004
Posts: 10
Location: Netherlands

PostPosted: Wed Apr 20, 2005 5:22 pm    Post subject: Reply with quote

I have vhcs2 installed.
used vmware and it works fine.

i have only trouble with my production server.

with courier-pop
i can't login

Your tutorial is great.
vhcs2 have it's own daemon, and he make the domains active and other thing in vhcs2.
so you must add the vhcs2 daemon in cron
_________________
Users must now undergo formal training before contacting Microsoft tech support.
Back to top
View user's profile Send private message
SpideriK
n00b
n00b


Joined: 01 Oct 2004
Posts: 35

PostPosted: Wed Apr 20, 2005 10:16 pm    Post subject: Reply with quote

Cyber, what do u do for ENTITY? Do u do an emerge entity? if yes do u have the python2.0 lib in your /usr/lib?

I'm stuck at error as show in my post before..

Thx
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Wed Apr 20, 2005 11:16 pm    Post subject: Reply with quote

cyber007 wrote:
I have vhcs2 installed.
used vmware and it works fine.

i have only trouble with my production server.

with courier-pop
i can't login

Your tutorial is great.
vhcs2 have it's own daemon, and he make the domains active and other thing in vhcs2.
so you must add the vhcs2 daemon in cron


I re-created the daemon to run in an init (as per my howto) so I have the daemon running without cron.

Did you use my tarball? or the source from vhcs2?

what version of courier? authlib? or authdaemond?

...........

SpideriK, you might want to search the forums for that error - it doesn't *seem* vhcs related. Perhaps there is a fix out there that will enable you to get past that point. I don't seem to have ENTITY emerged on my system at all, although I DO have python use flag. havey ou tried a newer version from portage?
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
SpideriK
n00b
n00b


Joined: 01 Oct 2004
Posts: 35

PostPosted: Thu Apr 21, 2005 12:59 am    Post subject: Reply with quote

Well, im doin a perl-update cause I can't even emerge MIME-tools... I don't how u install entity cause u really need it to run vhcs2.4-setup...

So I know my error is not vhcs related but in some kind of way it is cause we need it... I think I can do something with MIME-tools... but I'll have to read cause I never used it...

When I pass this step of MIME::Entity it will all install and maybe ;) running :D

edit: Ok it's running now :D I can add a resseler... add a user but cant get his status other than waiting to be added.... :(
Back to top
View user's profile Send private message
cyber007
n00b
n00b


Joined: 31 Jan 2004
Posts: 10
Location: Netherlands

PostPosted: Thu Apr 21, 2005 6:00 am    Post subject: Reply with quote

I think that authmysql isn't configure well,
it seems that he can't connect to the wright database.
to change the status of an item run this
Code:
/var/www/vhcs2/engine/vhcs2-rqst-mngr


and this is my error when i try to connect with my mail server, it is pop3, i use courier-imap 4

Code:
-ERR pop3login requires exactly two arguments.


i used your tar
_________________
Users must now undergo formal training before contacting Microsoft tech support.


Last edited by cyber007 on Thu Apr 21, 2005 6:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
cyber007
n00b
n00b


Joined: 31 Jan 2004
Posts: 10
Location: Netherlands

PostPosted: Thu Apr 21, 2005 5:54 pm    Post subject: Reply with quote

SpideriK wrote:
Cyber, what do u do for ENTITY? Do u do an emerge entity? if yes do u have the python2.0 lib in your /usr/lib?

I'm stuck at error as show in my post before..

Thx


Yes i have python

libpython2.3.so.1.0
_________________
Users must now undergo formal training before contacting Microsoft tech support.
Back to top
View user's profile Send private message
RUDIII
n00b
n00b


Joined: 31 May 2004
Posts: 63
Location: Germany - Hamburg

PostPosted: Mon May 02, 2005 11:02 am    Post subject: Reply with quote

I'm working on a chroot VHCS... I'll tell more later.
Back to top
View user's profile Send private message
Master One
l33t
l33t


Joined: 25 Aug 2003
Posts: 754
Location: Austria

PostPosted: Wed May 11, 2005 3:30 pm    Post subject: Reply with quote

Any progress? I would have loved to have an ebuild for this package, before I give it a first try. This way I'll also have to join the manual installation procedure.

Anyone got it fully working on a Gentoo setup by now?
_________________
Las torturas mentales de la CIA
Back to top
View user's profile Send private message
Vyeperman
Tux's lil' helper
Tux's lil' helper


Joined: 18 Dec 2003
Posts: 89

PostPosted: Wed May 11, 2005 9:39 pm    Post subject: Reply with quote

Sorry to bring back old threads but... I had an issue.

I posted it on rafb to save post space, but for some reason it's have troubling finding modules that are supposed to be there.


http://rafb.net/paste/results/PC1Ye876.html

Then when I try to make the modules again it says they already exist
_________________
-Vyeperman
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Thu May 12, 2005 6:25 am    Post subject: Reply with quote

I haven't had time to work on vhcs.. but others can feel free to :)

anyhoo Vyeperman, looks like it's saying there is already an ebuild for some of them.
perhaps you can try the direct ebuild?

Code:
emerge -av MIME-tools MIME-Base64 Crypt-Blowfish Term-ReadPassword

and perhaps
Code:
g-cpan.pl DBI DBD::mysql


or some sort of mixture there..
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
Master One
l33t
l33t


Joined: 25 Aug 2003
Posts: 754
Location: Austria

PostPosted: Thu May 12, 2005 9:33 am    Post subject: Reply with quote

taskara, what happened? Did you loose interest in VHCS2?

I am just checking your work on VHCS2 for Gentoo, but there are some thinks, I don't quite understand:

1. Is the USE flag "authdaemond" still necessary when using courier-imap V4? cyrus-sasl is the only package, listening to this USE flag.

2. I made a diff between the original package and your vhcs-2.4-gentoo-2005041801 package. I don't quite understand, how that comes, but the original package from the VHCS website is dated with 23rd April, so how comes your package is from 18th?

3. How comes, you have an older version of phpmyadmin included in your package? Can't phpmyadmin be left out, and emerged through portage instead, as it is done with pflogsumm?

4. I am not quite sure about the nessary changes to be applied to the original package concerning the use of courier-imap V4. Is it enough to change the CMD_AUTHD line in vhcs2.conf, or are there changes necessary in vhcs-2.4/configs/courier/Makefile necessary as well??? As it looks like, "courier-imap" is the valid dir in most cases, except when it is about authentication, which means "courier/authlib" then. But it's only about two files (authdaemonrc & authmodulelist), whereas authdaemonrc does not show any major differences, and authmodulelist even seems to be not needed.

I'd appreciate clearification for that matters, as I'd like to use the original package and apply a patch for Gentooification.
_________________
Las torturas mentales de la CIA
Back to top
View user's profile Send private message
taskara
Advocate
Advocate


Joined: 10 Apr 2002
Posts: 3763
Location: Australia

PostPosted: Thu May 12, 2005 10:00 am    Post subject: Reply with quote

Master One wrote:
taskara, what happened? Did you loose interest in VHCS2?

yes, to a degree - it does not really do everything I want, but it IS promising. The main issue is time. I run two IT companies and in my spare time I'm trying to organise a new webserver for myself. I was hoping someone else might be able to contribute..
Master One wrote:
I am just checking your work on VHCS2 for Gentoo, but there are some thinks, I don't quite understand:

1. Is the USE flag "authdaemond" still necessary when using courier-imap V4? cyrus-sasl is the only package, listening to this USE flag.

this should NOT be needed, but having it will not affect courier v4 if it doesn't use that flag
Master One wrote:
2. I made a diff between the original package and your vhcs-2.4-gentoo-2005041801 package. I don't quite understand, how that comes, but the original package from the VHCS website is dated with 23rd April, so how comes your package is from 18th?

I guess they have actually done an update to their tarball and called it the same version..
Master One wrote:
3. How comes, you have an older version of phpmyadmin included in your package? Can't phpmyadmin be left out, and emerged through portage instead, as it is done with pflogsumm?

umm.. I don't remember including phpmyadmin in my tarball (it was prob from the original vhcs2 tarball), but yes, you could remove it and emerge it yourself
Master One wrote:
4. I am not quite sure about the nessary changes to be applied to the original package concerning the use of courier-imap V4. Is it enough to change the CMD_AUTHD line in vhcs2.conf, or are there changes necessary in vhcs-2.4/configs/courier/Makefile necessary as well??? As it looks like, "courier-imap" is the valid dir in most cases, except when it is about authentication, which means "courier/authlib" then. But it's only about two files (authdaemonrc & authmodulelist), whereas authdaemonrc does not show any major differences, and authmodulelist even seems to be not needed.

this is part of the deal.. the original tarball is not designed for gentoo, but for debian - and as such a lot of the components don't point to the right places.
Originally I got vhcs working by using a plethora of symlinks - you should be able to do this too. it should be much easier now with courier v4 because it is now pointing parts back to /etc/courier, whereas for courier3 I had to change every single make file in the program to point it ot another location.. very tedious!
Master One wrote:

I'd appreciate clearification for that matters, as I'd like to use the original package and apply a patch for Gentooification.

Go for it! I was hoping someone else would be able to contribute some changes.. I didn't get it all working. I think we should use the original tarball and use symlinks or what not to get it working under gentoo.. else it's a lot of work for each subsequent version release..
_________________
Kororaa install method - have Gentoo up and running quickly and easily, fully automated with an installer!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2, 3, 4, 5  Next
Page 1 of 5

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum