[Baruwa] Ubuntu 10.04 apt install - linux newbie

100 views
Skip to first unread message

ManicD

unread,
Feb 23, 2012, 7:35:14 PM2/23/12
to bar...@lists.baruwa.org
Ok, following instructions in here

http://topdog-software.com/oss/baruwa/1.1.1/docs/baruwa.pdf

# apt-get install mysql-server - This i found was missing in my first
attempt so i decided to pre install this time round.
# apt-get install rabbitmq-server
# rabbitmqctl add_user baruwa your_password
# rabbitmqctl add_vhost baruwa
# rabbitmqctl set_permissions -p baruwa baruwa ".*" ".*" ".*"
# rabbitmqctl delete_user guest
# wget -O - http://apt.baruwa.org/baruwa-apt-keys.gpg | apt-key add -
# nano /etc/apt/sources.list
add to bottom:
deb http://apt.baruwa.org/ubuntu lucid main
# apt-get update
# apt-get install baruwa
#nano /etc/MailScanner/conf.d/baruwa.conf

Quarantine User = exim #(Or what ever your "Run As User" is set to)
DB DSN = DBI:mysql:database=baruwa;host=spam01;port=3306 #set to valid DSN
DB Username = baruwa # your DB username
DB Password = password # your DB password - Have actually set the password
to password in test enviroment
# MailScanner --lint

RESULT:
DBD::mysql::st execute failed: Table 'baruwa.scanner_config' doesn't exist
[for Statement "SELECT value FROM scanner_config, scanners WHERE
scanner_config.host_id = scanners.id AND external = ? AND scanners.address =
?" with ParamValues: 0='mailscannerversionnumber', 1='server1'] at
/usr/share/MailScanner//MailScanner/ConfigSQL.pm line 134.
DBD::mysql::st execute failed: Table 'baruwa.scanner_config' doesn't exist
[for Statement "SELECT value FROM scanner_config, scanners WHERE
scanner_config.host_id = scanners.id AND external = ? AND scanners.address =
?" with ParamValues: 0='mailscannerversionnumber', 1='server1'] at
/usr/share/MailScanner//MailScanner/ConfigSQL.pm line 134.

# /etc/init.d/mailscanner restart

RESULT:
chown: invalid user: `Debian-exim'
/etc/init.d/mailscanner: directory /var/spool/MailScanner: wrong owner
(expected Debian-exim but is mail)


The lint and the restart result dont give me much hope, the database is
there but has no tables, not sure about the restart error any help? or is
this normal at this stage?

--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/Ubuntu-10-04-apt-install-linux-newbie-tp3771395p3771395.html
Sent from the Baruwa users list mailing list archive at Nabble.com.
_______________________________________________
Keep Baruwa FREE - http://pledgie.com/campaigns/12056

Andrew Colin Kissa

unread,
Feb 24, 2012, 12:19:28 AM2/24/12
to Baruwa users list

On 24 Feb 2012, at 2:35 AM, ManicD wrote:

> DB DSN = DBI:mysql:database=baruwa;host=spam01;port=3306 #set to valid DSN

Is your DB hostname spam01 ? I guess not, you need to change that to 127.0.0.1 if your
DB is on the same machine.

You did not follow the guide fully you missed the part where you are supposed to populate
the database and create the admin account.

--
www.baruwa.org

ManicD

unread,
Feb 24, 2012, 4:27:52 AM2/24/12
to bar...@lists.baruwa.org
Apologies for pasting that, i can confirm that mine is set to localhost,

I copied that directly from the guide as these are the steps listed in
section 8, i did on my install change that to localhost.

I followed the instructions exactly, (even added my own step of
preinstalling sql as it didnt install first time i tried)

Any Ideas?

--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/Ubuntu-10-04-apt-install-linux-newbie-tp3771395p3772111.html


Sent from the Baruwa users list mailing list archive at Nabble.com.

ManicD

unread,
Feb 25, 2012, 7:12:22 AM2/25/12
to bar...@lists.baruwa.org

Jeremy McSpadden

unread,
Feb 25, 2012, 8:06:09 AM2/25/12
to Baruwa users list


--
Jeremy McSpadden

On Feb 23, 2012, at 11:19 PM, "Andrew Colin Kissa" <and...@topdog.za.net> wrote:

>
> You did not follow the guide fully you missed the part where you are supposed to populate
> the database and create the admin account.

_______________________________________________

ManicD

unread,
Feb 25, 2012, 12:04:43 PM2/25/12
to bar...@lists.baruwa.org
Reading through the guide, section 8 installing on ubuntu, i have not missed
any steps...


is there a commend missed out of the guide?

--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/Ubuntu-10-04-apt-install-linux-newbie-tp3771395p3775301.html


Sent from the Baruwa users list mailing list archive at Nabble.com.

Jeremy McSpadden

unread,
Feb 25, 2012, 12:06:27 PM2/25/12
to Baruwa list
To initialize the backend run:
# baruwa-admin initconfig

This will ask you for the hostname of the system you are setting up, and
then initialize the system for you. The command does attempt to guess your
hostname, so if its correct just press enter.


--
Jeremy McSpadden
Flux Labs, Inc
http://www.fluxlabs.net <http://www.fluxlabs.net/>
Endless Solutions
Office : 850-588-4626
Cell : 850-890-2543
Fax : 850-254-2955

Jeremy McSpadden

unread,
Feb 25, 2012, 1:28:14 PM2/25/12
to Baruwa list
Follow this guide - http://baruwa.org/docs/install_debian.html

--
Jeremy McSpadden
Flux Labs, Inc
http://www.fluxlabs.net <http://www.fluxlabs.net/>
Endless Solutions
Office : 850-588-4626
Cell : 850-890-2543
Fax : 850-254-2955


On 2/25/12 11:04 AM, "ManicD" <ash...@tetrabyte.com> wrote:

ManicD

unread,
Feb 25, 2012, 2:04:57 PM2/25/12
to bar...@lists.baruwa.org
 interesting, The PDF guide Is missing a few commands

- - - - -
Ashley
This message was sent via my iPhone and may be brief. If you require
additional information, please ask.

If you reply to this email, your message will be added to the discussion below:
http://baruwa-users-list.963389.n3.nabble.com/Ubuntu-10-04-apt-install-linux-newbie-tp3771395p3775484.html
To unsubscribe from Ubuntu 10.04 apt install - linux newbie, click here.
NAML


View this message in context: Re: Ubuntu 10.04 apt install - linux newbie

ManicD

unread,
Feb 26, 2012, 9:36:13 AM2/26/12
to bar...@lists.baruwa.org
Ok now i'm following http://baruwa.org/docs/install_debian.html looks like
i'm having more luck

however, I'm at the end (p.s. not figured out how to check the noted logs
yet, will have to spend some time googleing)

all seems fine except, that when i go to the server in a web browser all i
get is the initial apache page

"It works! This is the default web page for this server.The web server
software is running but no content has been added,yet."

any idea what went wrong?

--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/Ubuntu-10-04-apt-install-linux-newbie-tp3771395p3777031.html

ManicD

unread,
Feb 26, 2012, 7:01:47 PM2/26/12
to bar...@lists.baruwa.org
ok, i tried this again with nginx as teh web engine and still no luck the web
page files are not configured correctly.

any ideas?

--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/Ubuntu-10-04-apt-install-linux-newbie-tp3771395p3778180.html

Jeremy McSpadden

unread,
Feb 26, 2012, 7:05:15 PM2/26/12
to Baruwa users list
Did you edit any of the apache configs ?

<VirtualHost *:80>
SetEnv PYTHON_EGG_CACHE /var/tmp
Alias /favicon.ico /usr/lib/python2.4/site-packages/baruwa/static/imgs/favicon.ico
Alias /static/ /usr/lib/python2.4/site-packages/baruwa/static/
<Directory /usr/lib/python2.4/site-packages/baruwa/static>
Options +FollowSymLinks
Order deny,allow
Allow from all
</Directory>
ServerName baruwa.domain.com
WSGIScriptAlias / /usr/lib/python2.4/site-packages/baruwa/baruwa.wsgi
<Directory /usr/lib/python2.4/site-packages/baruwa>
Order deny,allow
Allow from all
</Directory>
ErrorLog logs/baruwa-error_log
CustomLog logs/baruwa-access_log common
</VirtualHost>


--
Jeremy McSpadden
Flux Labs, Inc
http://www.fluxlabs.net

Endless Solutions
Office : 850-588-4626
Cell : 850-890-2543
Fax : 850-254-2955

ManicD

unread,
Feb 26, 2012, 7:09:13 PM2/26/12
to bar...@lists.baruwa.org
nope, i'll try that tomorrow, I have a feeling the install guides need
updating!!! who's in charge? i'll email them my experiences and suggested
additions....

--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/Ubuntu-10-04-apt-install-linux-newbie-tp3771395p3778189.html

Jeremy McSpadden

unread,
Feb 26, 2012, 7:11:24 PM2/26/12
to Baruwa users list
Just reply to this post .. someone will update it.

--
Jeremy McSpadden
Flux Labs, Inc
http://www.fluxlabs.net
Endless Solutions
Office : 850-588-4626
Cell : 850-890-2543
Fax : 850-254-2955

Jeremy McSpadden

unread,
Feb 26, 2012, 7:12:25 PM2/26/12
to Baruwa users list

Automated configuration

The installation process will also configure apache, mysql and baruwa should you choose let the install configure the system for you.

The install asks you for the following info

  • apache virtualhost name (The name used to configure the baruwa apache virtualhost)
  • database host (The hostname or ip of the host running your mysql database)
  • database admin user (A user account with admin access on the database server)
  • database admin password (The password fo the above user)
  • database user (The user baruwa will use to connect to the database)
  • database password (The password for the above)
  • database name (The name of the baruwa database)
  • rabbitmq host (The rabbitMQ hostname or IP address)
  • rabbitmq vhost (The RabbitMQ vhost)
  • rabbitmq user (The RabbitMQ user)
  • rabbitmq password (The RabbitMQ password)
  • baruwa admin user (The baruwa admin user)
  • baruwa admin password (The baruwa admin user password)
  • baruwa admin email (The baruwa admin user email address)
.............

Did you follow the prompts through the installer ? all of these should have been configured.

--
Jeremy McSpadden
Flux Labs, Inc
http://www.fluxlabs.net
Endless Solutions
Office : 850-588-4626
Cell : 850-890-2543
Fax : 850-254-2955

On Feb 26, 2012, at 6:09 PM, ManicD wrote:

Mohammed Alli

unread,
Feb 26, 2012, 8:26:58 PM2/26/12
to Baruwa users list

>ok, i tried this again with nginx as teh web engine and still no luck the web
>page files are not configured correctly.

>any ideas?


Take a look at the SpamSnake's configuration of Nginx, might lead you in the correct direction.
Rocky

ManicD

unread,
Feb 29, 2012, 6:20:09 PM2/29/12
to bar...@lists.baruwa.org
When the installer asks

apache virtualhost name (The name used to configure the baruwa apache
virtualhost)

am i correct to be putting in server1.domain.com <--- my domain

or should i leave it as the default?

bear in mind i'm doing NO other configuration first, just installing this
onto a clean ubuntu install

--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/Ubuntu-10-04-apt-install-linux-newbie-tp3771395p3788983.html

Jeremy McSpadden

unread,
Feb 29, 2012, 6:42:46 PM2/29/12
to Baruwa users list, bar...@lists.baruwa.org
You'll need to install apache, MySQL, etc.


--
Jeremy McSpadden

ManicD

unread,
Feb 29, 2012, 6:46:28 PM2/29/12
to bar...@lists.baruwa.org
I'm confused, I thought the apt-get install baruwa, was supposed to handle
that for me?


I did find i had to install mysql-server first, but is there a list of
things to install first?


thanks for your help!!!


--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/Ubuntu-10-04-apt-install-linux-newbie-tp3771395p3789044.html

Jeremy McSpadden

unread,
Feb 29, 2012, 6:54:37 PM2/29/12
to Baruwa users list, bar...@lists.baruwa.org
You may be thinking the installer is more automated than it is. Have apache setup prior.


--
Jeremy McSpadden

ManicD

unread,
Feb 29, 2012, 7:03:11 PM2/29/12
to bar...@lists.baruwa.org
so i install apache, and mysql, then run the baruwa installer and do I put in
my server fqdn or just use the default for the apache virtual host question?

--
View this message in context: http://baruwa-users-list.963389.n3.nabble.com/Ubuntu-10-04-apt-install-linux-newbie-tp3771395p3789060.html

Jeremy McSpadden

unread,
Feb 29, 2012, 7:15:56 PM2/29/12
to Baruwa users list, bar...@lists.baruwa.org
baruwa.domain.com ... Or server. Your call


--
Jeremy McSpadden

Reply all
Reply to author
Forward
0 new messages