Too difficult to imagine Unix OS’s administrator which does not use ssh protocol (Secure SHell). In this how-to I would like to show how easy to use SSH Public Key Based Authentication. The most useful benefits for me in key authentication: ssh authentication without password ssh login from shell scripts security There are just two [...]
Posted on March 26th, 2011 by admin
Filed under: Software | Comments Off
For change hostname to ‘howtobsd.com’ you should edit /etc/rc.conf: hostname=”howtobsd.com” You also can change hostname without reboot by command: #hostname howtobsd.com but after reboot i will return on value in rc.conf check current hostname: hostname
Posted on March 26th, 2011 by admin
Filed under: Tips | Comments Off
If you want to activate logging of mysql queries, add in your my.cnf (by default it is /var/db/mysql/my.cnf) in [mysqld] section: log=/var/log/mysql.log create log file: #touch /var/log/mysql.log #chmod 666 /var/log/mysql.log and restart mysql-server: #/usr/local/etc/rc.d/mysql-server restart (it can be different on you server) That is all. PS: I don’t recommend you use it on hight loaded [...]
Posted on March 10th, 2011 by admin
Filed under: Tips | Comments Off
Change timezone in FreeBSD to GTM -0500: #cp /usr/share/zoneinfo/America/New_York /etc/localtime Check current GMT zone in FreeBSD you can by command: #date +%z
Posted on March 4th, 2011 by admin
Filed under: Tips | 2 Comments »