Sauron is a web based manager for ISC DNS & DHCP services, comparing to the well known web config tools such as Webmin, phpDhcpAdmin, it's so small.Ok Let's install on our CMTS server:
1.System request
My Ubuntu Server:
Linux vmlinux 2.6.32-21-generic-pae #32-Ubuntu SMP Fri Apr 16 09:39:35 UTC 2010 i686 GNU/Linux
Install requested package:
1)PostgreSQL : apt-get istall postgresql
2)Perl , it's already installed .skip
3)Perl modules : Net::DNS / Net::Netmask / DBI / DBD::Pg It's the first time install Perl modules. Some problems, goole it@@@. Command :
cpan>install Net::Netmask
cpan>install Net::DNS
cpan>install DBI
cpan>install DBD::Pg
Note : install DBD::Pg need the PostgreSQL configure utility "pg_config", apt-get install libpq-dev will install it.
4)tar -zxvf sauron-0.7.3.tar.gz ; cd sauron-0.7.3.tar.gz ; ./configure && make && make install
OK, all have install , last do not forget our major role : DHCP-Server & Bind, apt-get install dhcp-server bind
2.Configuration
1)Initial PostgreSql database.
Firstly,export postgresql binary path to system PATH
export PATH=/usr/lib/postgresql/8.4/bin:$PATH
next, initial command:
sudo mkdir -p /usr/local/pgsql/data
sudo chown $UID:$UID -R /usr/local/pgsql/data
initdb -D /usr/local/pgsql/data
postmaster -D /usr/local/pgsql/data
If postmaster execute is running without any error, kill it with Ctrl+c, run again in background :
postmaster -D /usr/local/pgsql/data > logile 2>&1
{Refer to chinese manual of PostgreSQL : }
2 cd to sauron install folder , on my server it's ~/soft/sauron/sauron
command :
createdb sauron
./createtables
./status
If not any errors , congratulation!
Last step , check perl modules:
./status --version
Sauron: 0.7.3
CGI: 3.43
Digest::MD5: 2.39
DBI: 1.616
Net::DNS: 0.66
Net::IP: 1.25
Net::Netmask: 1.9016
Sauron::Sauron: 1.30
Sauron::BackEnd: 1.73
Sauron::CGIutil: 1.20
Sauron::DB: 1.6
Sauron::Util: 1.25
Sauron::UtilDhcp: 1.5
Sauron::UtilZone: 1.15
Sauron::CGI::Utils: 1.5
Sauron::CGI::Servers: 1.11
Sauron::CGI::Zones: 1.9
Sauron::CGI::Hosts: 1.25
Sauron::CGI::Nets: 1.11
Sauron::CGI::Groups: 1.1
Sauron::CGI::Templates: 1.1
Sauron::CGI::Login: 1.6
............................to be continue...
阅读(1275) | 评论(0) | 转发(0) |