Apache PHP Mysql NetBSD

October 3, 2007

NAPM Server NetBSD

#cd /usr/pkgsrc/www/apache2

#make install clean

we need for the apache to work to add a hostname>:

#hostname netbsdsparc

and then add Servername into httpd.conf

Servername 192.168.0.29:80

wherever your ip address is.

then add you ip and host into /etc/hosts/

#echo “192.168.0.29 netbsdsparc” >> /etc/hosts

then we can start apache

#apachectl start

#cd /usr/pkgsrc/www/php4/

#make install clean

Now we gonna install the module for php on apache

#cd /usr/pkgsrc/www/ap-php/

#make install clean

now we need to add some lines to the httpd.conf

LoadModule php4_module lib/httpd/mod_php4.so
AddHandler application/x-httpd-php .php

You may also add following if you still use .php3 files:

AddHandler application/x-httpd-php .php3

now we gonna install mysql

#cd /usr/pkgsrc/databases/php-mysql

#make install clean

we need to add the mysql.so extention on to php.ini

#vi /usr/pkg/etc/php.ini

then we add extension=mysql.so where “Dynamic Extensions” is

#cd /usr/pkgsrc/databases/mysql4-server

#make install clean

mysql will install the mysql-client too at the end you just need
to do:

#cp /usr/pkg/share/examples/rc.d/mysqld /etc/rc.d/

if the file goes as rc.d into /etc/rc.d just rename it to mysqld

then add

#echo “mysqld=YES” >> /etc/rc.conf

and then

/etc/rc.d/mysqld start

Starting MySQL ….

After the tables are set up and the MySQL server is running,
please remember to set a password for the MySQL root user!
This is done by running both:

#/usr/pkg/bin/mysqladmin -u root -p password ‘new-password’
#/usr/pkg/bin/mysqladmin -h `hostname` -u root -p password ‘new-password’

The “Enter password:” prompt is asking for the existing password.
As there is no existing password, just press the Return key.

thats it enjoy it )


Install Fluxbox NetBSD

September 27, 2007


cd /usr/pkgsrc/wm/fluxbox

make install clean

cd /home/user

touch .xinitrc

echo “exec fluxbox” >> .xinitrc

startx

thats it, enjoy it )


Paganini

September 22, 2007

Caprice 24 on the Cello


Johan Sebastian Bach

September 22, 2007

Preludio de la partita nº 3 (Nathan Milstein)


Manu Chao interview

September 22, 2007

The best things on the world come from the home town )


netbsd ascii :)

September 10, 2007
                                        .
                                       . ....'''....
                            ..    ......-~~(<<<<<<(~-'.
         .     ..          ........''~(<++===++<(((~--'.
           .. ...   .     .  ...'-(<++====++(-'.........
          .-(~(-'...........'-~(+++++++++(~-'.....
           -((<+<(~~~---~((<+++=++++++++~~~~~~~~-''..
         . .(~(+++++=++++=++++++=+++=+(((<+++++++<<(-'
            -<-+++++++++++=++=++===++++=+==++<(~-----'.
            '((~+++++==++=====++++++====+<(~'...
         .   -(-<=++++++++++==+++=====++~-...
             .((-++++++++++++++++++++<~'..   .
              -<-<=++++++++++++++++<~'. ....
            . .((-+++++++++++==++<-'.   .
               -<-(+++++==++=++<-'.
               .(('<+++++=+++(-'.
     .         .(<''~((((((-'..   ..        .
       . .      '(( ...........                      .
.       .        (<' .     ..
..     ...  .  . .((. .            .
'''.. ...'''''.   ((-     ........   .  .--'.  ........
((<<('...-(+<~'   '((.   .'((((((((..  -(((((--((((((((('
.-+=+-. ..-<('     ''      -<<(.'(<(' -((. '((.-<(- .'((((.
.'++++~.. '<~..  .    ..   '(<(  ~(<-.(<( . -( -((-    -(<(
.'+(<+<-..'(~....  ...(- . '(((  -(<- (((.   . -(<-     (<('
.'<~-<+('.'(-..'-'..'(+('. '((( .(((' (<((-.   -((-     ~(<(
 .<-.(++(''(~'(<(+<-(+=<(- .(<(-((('  '(<<(('  -((-     '<<(
 .<-..(+=~'(~-+(--+<~++~.. '(<(-(((('  '((<<(- -((-     '<((
..<-..'(=+(((+=<((+<-+=-...'(((  '(<(.  .-(<<(.-((-     -(((
 '<-. .-+++++++~'''''+=-.. '(((   (<(-.   '(<(.'((-     (<<-
 '+'.  .-<++(++-....'+=~.  '((( . (((((.   -<<.-((-    .(<(.
.'+-.  ..~++((++~''~'++(.. .(<(  .(<((('   (<( -<<-   .(<('
'~+<-.   .(<~-<+++<-'<++~-'((<(--(<(''((-.-((--(<<((-((((.
'-(~'.   .-('.-~<(~..~<(--'-(-(((('.  -((((-..-(--(((--'.  .
 ...       ..  ..... ....   .  .        ...   .   . ..
                       ..                   .
                         .-('
                         .(<(' .             .
                          .(<~
                       .   (<(.
                           .(<(
                           .(<('
                            '(((.
                             (<('
                             '(<(
                              (<('
                              -(<(.
                              .(<('
                               -<<-
                               .--.                         

Compilando el kernel en NetBSD

September 9, 2007

Siempre es mejor compilar nuestro propio kernel (en Linux o *BSD) porque obtendremos uno más esbelto y rápido que el genérico que viene en la instalación. Bien, de manera rápida y sucia esta es la receta:

# cd /

# wget ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-2.0.2/source/sets/syssrc.tgz

# tar -zxvf syssrc.tgz

Nos movemos al directorio según la arquitectura, en este caso powerpc porque estoy en un equipo G4, pero si está usando Intel o AMD use i386:

# cd /usr/src/sys/arch/powerpc/conf/

# cp GENERIC MYKERNEL

Ahora debemos editar las opciones del kernel. NetBSD no cuenta con algo como “make xconfig”, sino que debemos editar directamente el archivo de texto.

# mcedit MYKERNEL

Si usted ha compilado el kernel de Linux, encontrará familiares muchas de las opciones. (Si desea activar el ACPI, este es el momento de hacerlo ya que no viene por default).

# config MYKERNEL

# cd ../compile/MYKERNEL

# make depend

# make

Renombramos el viejo kernel que está en raíz:

# mv /netbsd /netbsd.viejo

Movemos el nuevo kernel a raíz:

# mv netbsd /

Y ya podemos bootear con nuestro nuevo kernel:

# reboot

Articulo creado por aarkerio, gracias )


forensic analysis live cd

September 9, 2007

Here it is a Network forensic analysis LiveCD F.I.R.E. is a portable bootable cdrom based distribution with the goal of providing an immediate environment to perform forensic analysis, incident response, data recovery, virus scanning and vulnerability assessment.


Network Security Open Source Manual

September 9, 2007

Here is is a network security open source manual, for audition and forensic analysis. here is the pdf and the Web site


Beautifull Moscow 860 years old :)

September 6, 2007


A beautifull city for beautifull people )