Posted December 11th, 2008 by Perk1z
Install PureFTPd on FreeBSD
[dupre@ibm ~]$ su -
Password:
[root@ibm ~]# cd /usr/ports/
[root@ibm /usr/ports]# make search name=pure-ftp
Port: pure-ftpd-1.0.21_2
Path: /usr/ports/ftp/pure-ftpd
Info: A small, easy to set up, fast and very secure FTP server
Maint: garga@FreeBSD.org
B-deps:
R-deps: perl-5.8.8_1
WWW: http://www.pureftpd.org/
Tags: FreeBSD, Install, pureftp, pureftpd
Posted December 4th, 2008 by Perk1z
[root@ibm /var/db/mysql]# uname -a
FreeBSD ibm.jc 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
[root@ibm /var/db/mysql]# mysql
ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (38)
[root@ibm /var/db/mysql]# ls -al /tmp/mysql.sock
-rw-r–r– 1 root wheel 0 Dec 4 10:15 /tmp/mysql.sock
Just delete file /tmp/mysql.sock and restart mysql-server
Tags: Error, FreeBSD, mysql, Server, socket
Posted February 6th, 2008 by Perk1z
[root@pisangraja ~]# /usr/local/etc/rc.d/apache22 restart
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax OK
Stopping apache22.
Waiting for PIDS: 11416.
Performing sanity check on apache22 configuration:
httpd: apr_sockaddr_info_get() failed for pisangraja.jc
httpd: Could not reliably determine the server’s fully qualified domain name, using 127.0.0.1 for ServerName
Syntax [...]
Tags: apache, Error, FreeBSD
Posted October 24th, 2007 by Perk1z
1. Download & Config awstats
[me@titik.org /usr/local/www/]# wget http://prdownloads.sourceforge.net/awstats/awstats-6.7.tar.gz
[me@titik.org /usr/local/www/]# tar zxvf awstats-6.7.tar.gz
[me@titik.org /usr/local/www/]# mv awstats-6.7/ awstats/
[me@titik.org /usr/local/www/]# cd awstats/tools/
[me@titik.org /usr/local/www/awstats/tools]# ./awstats_configure.pl
Tags: awstats, FreeBSD
Posted July 14th, 2007 by Perk1z
Disk, filesystem
Disk usage
{linux}$ du -sh
{freebsd}$ du -sh
Count subdirectories in current directory:
{linux}$ du –max-depth=1
{freebsd}$ du -d1
Typical approach to find biggest directories/files on disk:
{linux}$ du –max-depth=1 -kx|sort -n
{freebsd}$ du -d1 -kx|sort -n
Find some kinds of files (regex is a mask for full path, no need for begin/end marks)
{linux}$ find . -regextype posix-extended -type f -regex “.*\.(java|class)”
{freebsd}$ find [...]
Tags: commands, FreeBSD, Linux
Posted July 14th, 2007 by Perk1z
1) Use ifconfig command as follows:
ifconfig interface inet IP
Example(s):
ifconfig lnc0 inet 202.54.1.22
Note lnc0 is Ethernet interface name can be Obtained using ifconfig -a command.
2) To setup up ip permanently open file /etc/rc.conf ; add/modify network entries:
vi /etc/rc.conf
And setup values as follows:
hostname=â€fbsdx.test.comâ€
ifconfig_lnc0=â€inet 192.168.0.6 netmask 255.255.255.0″
Note ifconfig_lnc0 is Ethernet interface name can be Obtained using [...]
Tags: FreeBSD, IP address