Archive for the ‘FreeBSD’ Category

Upgrade FreeBSD to Stable Version

February 23rd, 2009 | 1 Comment »
Posted by admin under FreeBSD, Good Stories

after 2 years running, i forget to upgrade my mail server to stable version ( wat de f@!#$!!). Not like my others server, My mail server only for backup server (before). So I am not consentrate with it. But now it is also my main server for email. so i must upgrade the version to stable and update other running application on it. Here i write down how to upgrade FreeBSD to stable version.

before you do it, make sure you understand of what you doing and prepare some coffee and "cemilan", coz its take more than 3 hour prosess ( depend on your computer resource and bandwidth)

Bismillahirohmanirohim…..

first, lets check my mail server version
mail# uname -a
FreeBSD mail.pagongxx.xxx.xx 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Tue Oct 16 14:26:49 WIT 2007 bimo@mail.pagongxx.xxx.xx:/usr/src/sys/i386/compile/KERNEL1 i386
mail#
Read the rest of this entry »

Install DNS Server in FreeBSD

February 4th, 2009 | 4 Comments »
Posted by admin under FreeBSD

Last night, i help pak cancer install DNS server for Disduk ( Dinas kependudukan).He is NOC in dinas Kependudukan. Since all server change to FreeBSD so everything must build from beginning so the DNS. i have long time not install DNS. I dont have any documentation about it also. so today i will write down step by step installing DNS server using Bind9. Just incase if I forget, i can see this manual. Oke..lets begin….

Bismillahirohmanirohim……

1. INSTALL APPLICATION

install bind94
NS1#cd /usr/ports/dns/bind94
NS1#make install clean

cd /etc/named
ee named.conf

—————-begin—————————–
options {
// Relative to the chroot directory, if any
directory “/etc/namedb”;
pid-file “/var/run/named/pid”;
dump-file “/var/dump/named_dump.db”;
statistics-file “/var/stats/named.stats”;
allow-recursion { any; }; —————-> add this line euy
allow-query { any; }; —————-> add this line euy
allow-query-cache { any; }; —————-> add this line euy
listen-on { any; }; —————-> add this line euy

———-edit this line————————————–

forward only; ——–> use this

// forwarders { —————-> disable this line
// 127.0.0.1; —————-> disable this line

};

———————–close here———————————–

and also delete unnecesary configuration or example config
Read the rest of this entry »

Tips and trick FreeBSD

January 22nd, 2009 | 2 Comments »
Posted by admin under FreeBSD

Here are some tips for freebsd users..

Having trouble using fetch through a firewall? Try setting the environment
variable FTP_PASSIVE_MODE to yes, and see fetch(3) for more details.
%
By pressing “Scroll Lock” you can use the arrow keys to scroll backward
through the console output. Press “Scroll Lock” again to turn it off.
%
Want colour in your directory listings? Use “ls -G”. “ls -F” is also useful,
and they can be combined as “ls -FG”.
%
If you need to ask a question on the FreeBSD-questions mailing list then

http://www.freebsd.org/doc/en_US.ISO8859-1/articles/
freebsd-questions/index.html

contains lots of useful advice to help you get the best results.
%
If you’d like to keep track of applications in the FreeBSD ports tree, take a
look at FreshPorts;

http://www.freshports.org/
%
To search for files that match a particular name, use find(1); for example

find / -name “*GENERIC*” -ls

will search ‘/’, and all subdirectories, for files with ‘GENERIC’ in the name.
– Stephen Hilton
%
In tcsh, you can `set autolist’ to have the shell automatically show
all the possible matches when doing filename/directory expansion.
%
You can `set autologout = 30′ to have tcsh log you off automatically
if you leave the shell idle for more than 30 minutes.
%
If you `set filec’ (file completion) in tcsh and write a part of the
filename, pressing TAB will show you the available choices when there
is more than one, or complete the filename if there’s only one match.
%
You can press up-arrow or down-arrow to walk through a list of
previous commands in tcsh.
%
You can disable tcsh’s terminal beep if you `set nobeep’.
%
If you `set watch = (0 any any)’ in tcsh, you will be notified when
someone logs in or out of your system.
Read the rest of this entry »

Downgrade port in freebsd

December 22nd, 2008 | No Comments »
Posted by admin under FreeBSD

Problem: I already upgrade my phpmyadmin (phpmyadmin V.3.xx) but cant read mysql because my mysql still the older version (mysql version 4.xx). so its make difficult for my client when upload his/her databases. Because they ussually use phpmyadmin for upload it. so today i must downgrade my phpmyadmin to older version. its not difficult but its not easy also. its just tricky. here I explain step by step downgrading phpmyadmin in freebsd,

install portdowngrade first,
webserver# cd /usr/ports/ports-mgmt/portdowngrade
webserver# make install clean
Read the rest of this entry »

How to add user and database in mysql

December 11th, 2008 | 1 Comment »
Posted by admin under FreeBSD, Networking

from now, i must add user and database manually in mysql server. Before, i ussualy use phpmyadmin for add it. And today, i want to write down step by step adding user and databases in mysql manually (textmode, not using phpmyadmin or any interface).

Lets begin, Bismillahirrohmanirrohim….

i assume you already have root login.
dbserver#mysql -u root -p
Enter password: ————-> put your root password here
Read the rest of this entry »

Upgrade and update web server aplication

November 30th, 2008 | 1 Comment »
Posted by admin under FreeBSD

Few days ago, i was update my web server (using freeBSD 6.2) for security reason. Almost all aplication in this server finish for upgrading now, except mysql. I am not upgrade it because mysql not install from port collection. I install manual from source. so i still use my old mysql now. I will upgrade it later.I am afraid all database broken and all sites in web server down. Because i am not upgrade on site but remote. I am so far away with my server.
oke lets write down step by step for upgrading. ( i hope its usefull for me and everyone)

Bismillahirahmanirohim…..

webserper# uname -a
FreeBSD ns1.pagongxx.xxx 6.2-STABLE FreeBSD 6.2-STABLE #1: Mon Jun 2 21:23:05 WIT 2008 admin@ns1.pagongxx.xxx:/usr/src/sys/i386/compile/KERNEL1 i386

firstable, I must upgrate our port collection,

step by step upgrade port:
webserper# portsnap fetch
webserper# portsnap extract

Read the rest of this entry »