Apache-SdnFw

 view release on metacpan or  search on metacpan

lib/Apache/SdnFw.pm  view on Meta::CPAN

 make install
 useradd postgres
 mkdir /usr/local/pgsql/data
 chown postgres /home/postgres
 chown postgres /usr/local/pgsql/data
 cd /root/src/postgresql-8.2.20/contrib/start-scripts/
 cp linux /etc/rc.d/init.d/postgresql
 # EDIT /etc/rc.d/init.d/postgresql and make it start at 80 instead of 98
 # because it needs to start before apache
 chkconfig --add postgresql
 chmod +x /etc/rc.d/init.d/postgresql
 su - postgres
 cd /usr/local/pgsql/bin/
 ./initdb /usr/local/pgsql/data
 exit
 service postgresql start
 # make life easy so we don't need to muss with paths
 rm -f /usr/bin/psql
 ln -s /usr/local/pgsql/bin/psql /usr/bin
 rm -f /usr/bin/createdb
 ln -s /usr/local/pgsql/bin/createdb /usr/bin

lib/Apache/SdnFw/tt/install.txt  view on Meta::CPAN

mkdir -m 0700 /etc/skel/.ssh
touch /etc/skel/.ssh/authorized_keys
chmod 0600 /etc/skel/.ssh/authorized_keys
echo 'Port 6056' >/etc/ssh/sshd_config
echo 'LoginGraceTime 1m' >>/etc/ssh/sshd_config
echo 'PermitRootLogin without-password' >>/etc/ssh/sshd_config
echo '#PasswordAuthentication no' >>/etc/ssh/sshd_config
echo '#UsePAM yes ? default is no?' >>/etc/ssh/sshd_config
echo 'UseDNS no' >>/etc/ssh/sshd_config
echo 'MaxStartups 5' >>/etc/ssh/sshd_config
echo '# override default of no subsystems' >>/etc/ssh/sshd_config
echo 'Subsystem       sftp    /usr/libexec/openssh/sftp-server' >>/etc/ssh/sshd_config
service sshd restart

lib/Apache/SdnFw/tt/install.txt  view on Meta::CPAN

# add postgres users
useradd postgres
mkdir /usr/local/pgsql/data
chown postgres /home/postgres
chown postgres /usr/local/pgsql/data
cd /root/src/postgresql-8.2.20/contrib/start-scripts/
cp linux /etc/rc.d/init.d/postgresql
# EDIT /etc/rc.d/init.d/postgresql and make it start at 80 instead of 98
# because it needs to start before apache
chkconfig --add postgresql
chmod +x /etc/rc.d/init.d/postgresql

# initialize the database
su - postgres
cd /usr/local/pgsql/bin/
./initdb /usr/local/pgsql/data
exit

service postgresql start

# create some symbolic links so apache will start in a special way that will work 



( run in 0.473 second using v1.01-cache-2.11-cpan-496ff517765 )