VMware Images:
|
The Perfect Setup - Debian Etch (Debian 4.0) - Page 4
9 DNS ServerRun apt-get install bind9 For security reasons we want to run BIND chrooted so we have to do the following steps: /etc/init.d/bind9 stop Edit the file /etc/default/bind9 so that the daemon will run as the unprivileged user bind, chrooted to /var/lib/named. Modify the line: OPTIONS="-u bind" so that it reads OPTIONS="-u bind -t /var/lib/named": vi /etc/default/bind9
Create the necessary directories under /var/lib: mkdir -p /var/lib/named/etc Then move the config directory from /etc to /var/lib/named/etc: mv /etc/bind /var/lib/named/etc Create a symlink to the new config directory from the old location (to avoid problems when bind gets updated in the future): ln -s /var/lib/named/etc/bind /etc/bind Make null and random devices, and fix permissions of the directories: mknod /var/lib/named/dev/null c 1 3 We need to modify /etc/default/syslogd so that we can still get important messages logged to the system logs. Modify the line: SYSLOGD="" so that it reads: SYSLOGD="-a /var/lib/named/dev/log": vi /etc/default/syslogd
Restart the logging daemon: /etc/init.d/sysklogd restart Start up BIND, and check /var/log/syslog for errors: /etc/init.d/bind9 start
10 MySQLIn order to install MySQL, we run apt-get install mysql-server mysql-client libmysqlclient15-dev We want MySQL to listen on all interfaces, not just localhost, therefore we edit /etc/mysql/my.cnf and comment out the line bind-address = 127.0.0.1: vi /etc/mysql/my.cnf
Then we restart MySQL: /etc/init.d/mysql restart Now check that networking is enabled. Run netstat -tap In the output you should see a line like this one: tcp 0 0 *:mysql *:* LISTEN 3281/mysqld Run mysqladmin -u root password yourrootsqlpassword to set a password for the user root (otherwise anybody can access your MySQL database!).
|




print: 
Recent comments
10 hours 23 min ago
10 hours 29 min ago
11 hours 53 min ago
12 hours 40 min ago
13 hours 25 sec ago
18 hours 31 min ago
23 hours 50 min ago
1 day 4 hours ago
1 day 10 hours ago
1 day 10 hours ago