Daily Archives: June 16, 2009

phpMyAdmin installed

0
Filed under BSD
Tagged as

phpMyAdmin-3.2.0 has been installed into:

/usr/local/www/phpMyAdmin

Please edit config.inc.php to suit your needs.

To make phpMyAdmin available through your web site, I suggest
that you add something like the following to httpd.conf:

Alias /phpmyadmin/ “/usr/local/www/phpMyAdmin/”

<Directory “/usr/local/www/phpMyAdmin/”>
Options none
AllowOverride Limit

Order Deny,Allow
Deny from all
Allow from 127.0.0.1 .example.com
</Directory>

===

add to /usr/local/etc/nginx/nginx.conf

location /phpmyadmin {

alias /usr/local/www/phpMyAdmin/;

}

Create dummy file on freebsd

0
Filed under BSD
Tagged as

dd if=/dev/random of=test bs=1m count=2

This will create 2.0M file called “test”.

This also works on linux, but he doesn’t understand “m” as unit.

I’m affraid /dev/random will be very slow for creating large files or benchmarking.

/dev/urandom is the choice to go with.

FreeBSD group/ user

0
Filed under BSD
Tagged as

Command Summary
adduser(8) The recommended command-line application for adding new users.
rmuser(8) The recommended command-line application for removing users.
chpass(1) A flexible tool to change user database information.
passwd(1) The simple command-line tool to change user passwords.
pw(8) A powerful and flexible tool to modify all aspects of user accounts.

Example 13-7. Adding a Group Using pw(8)

# pw groupadd teamtwo
# pw groupshow teamtwo
teamtwo:*:1100:

Example 13-8. Setting the List of Members of a Group Using pw(8)

# pw groupmod teamtwo -M jru
# pw groupshow teamtwo
teamtwo:*:1100:jru
Example 13-9. Adding a New Member to a Group Using pw(8)

# pw groupmod teamtwo -m db
# pw groupshow teamtwo
teamtwo:*:1100:jru,db