Setting up src.culymail.com

Basic server setup.’, ‘

General Setup
Bigsister
Samba
NTP
Subversion

General Setup
Ok.. for this one, I\’m using CentOS 4.3.. I did a minimal install, so I could add only the services and stuff it really needs.. Also, you are installing the current version in yum, instead of some old version from the CD and then upgrading it with yum.

after logging in and creating user accounts.

at the #:
chkconfig iptables off (I\’m behind ipcop and this server isn\’t accessable from the internet except for SSH)
chkconfig isdn off
chkconfig pcmcia off
chkconfig cups off (It\’s not going to be doing anything with printing)
chkconfig kudzu off (unless you plan on adding hardware)

#yum upgrade

Reboot

#yum install httpd
#chkconfig httpd on
#service httpd start
#yum install subversion
#yom install mod_dav_svn
#yum install gcc
#yum install emacs
#yum install mysql-server (If you need a database server)
#yum install mysql
(If you need to access a mysql database server)
#chkconfig mysqld on
#service mysqld start
#yum install bind (If you want to run DNS server)
#chkconfig named on
#service named start
#yum install vsftpd (If you want to run an FTP server)
#chkconfig vsftpd on
#service vsftp start
#yum install samba (If you are going to share this server with M$ Windoze machines)
#chkconfig smb on
#service smb start
#yum install ntp
#chkconfig ntpd on
#service ntpd start

in /root, create a file called .forward and put your personal e-mail address as the only line. Save it, so that you receive all of root\’s e-mail.

Download and install Webmin

Setting up Bigsister

After installing bigsister-1.02-4, server, and agent, you need to install rrdtool for graphs. Well, not really NEEDED, but if you want it to look pretty and show all the info it can.. you need it. The easiest way to install it is to add the dag.repo by doing the following:

# vi /etc/yum.repos.d/dag.repo

Copy/paste the following info:

———– COPY START ————
[dag]
name=Dag RPM Repository for Red Hat Enterprise Linux
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt
enabled=1

————— COPY END ————-

Save it and do:

# yum install rrdtool

install it, then edit the dag.repo again and change enabled=1 to enabled=0. This will stop that repo from installing updates outside the base, as we only needed it for rrdtool.

——————-
More info coming
——————-

#chmod +r /var/log/messages /var/log/maillog

If you have old BigSister data from another server.. copy it from here:

/var/lib/bigsister

Run bsadmin to remove old data

#bsadmin remove cvs.*

#/etc/init.d/bigsister start

Setting up Samba

If you have other Samba Servers, copy their /etc/samba/smb.conf and make appropriate changes

#service smb restart

NTP Settings
#vi /etc/ntp.conf

server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org

Setting up Subversion

We\’ll start by creating the directories to hold the files.

# mkdir /svn
# mkdir /svn/repos
# mkdir /svn/users
# mkdir /svn/permissions

Set the permissions so apache can access them:

# chown -R apache.apache /svn

Create the repository:

# svnadmin create /svn/repos/projectname

Now, let\’s configure it.

# vi /svn/repos/projectname/conf/svnserve.conf

password-db = passwd
realm = NDS Projects Repository

create accouts:

# vi passwd

[users]
username1 = password
username2 = password

Now, let\’s start it.

# svnserve -d

 

EDIT: Last time I had to install subversion, I needed to make the following changes for it to be available.

 

vi /etc/httpd/conf.d/subversion.conf

 

<Location /svn>

DAV svn

SVNParentPath /svn/repos

</Location>

Leave a Reply