Archive

Archive for the ‘web’ Category

OpenSolaris 2009.06 SAMP and Ext2/Ext3

November 1st, 2009 No comments

The second day I’m using OpenSolaris 2009.06

# Install  Apache, MySQL and PHP on OpenSolaris
pkg install amp
pkg install webstack-ui
# Read Ext2/Ext3 Filesystem 
wget -c "http://www.belenix.org/distributions/belenix_site/binfiles/FSWpart.tar.gz"
wget -c "http://www.belenix.org/distributions/belenix_site/binfiles/FSWfsmisc.tar.gz"
gzip -d FSWpart.tar.gz | tar xvf -
gzip -d FSWfsmisc.tar.gz | tar xvf -
pkgadd -d . FSWpart
pkgadd -d . FSWfsmisc
# Mini HOWTO example
prtpart # LIST Devices
prtpart $DEVICE -ldevs # List parts of the device
mount -F ext2fs /dev/dsk/c12t0d0p3 /root/linux
umount /root/linux
# Recursive grep (like grep -R on Gnu/Linux)
find . -type f -exec grep "something" {} \;

Categories: database, unix/linux, web Tags: ,

Autoclick Opera Userscript

October 15th, 2009 No comments

Autoclick Opera Userscript

Autoclick code:

if (typeof e == 'object') {
	if (typeof e.click != 'undefined') {
		e.click();
		return false;
	} else if (document.createEvent) {
		var evObj = document.createEvent('MouseEvents');
		evObj.initEvent('click',true,true);
		e.dispatchEvent(evObj);
		return false;
	}
	else if (document.createEventObject) {
		e.fireEvent('onclick');
		return false;
	}
	else {
		e.click();
		return false;
	}
}
Categories: security, web Tags: ,

FreeNAS

October 4th, 2009 3 comments

FreeNAS

FreeNAS is a free NAS (Network-Attached Storage) Server.

www.freenas.org

There are many services some are: FTP, TFTP, SSH, HTTP, SAMBA, RSYNC and more.

Easy to install only need one floppy disk or cardflash memory (to save config) or small hard disk to install the system of the CD.

Some services needs you have static IP (not DHCP like FTP Service)

FreeNAS it’s a great option if you want to storage a lot of information and share that information using service (http/ftp/samba/etc.)

Very small and very powerfull.

Categories: network, unix/linux, web Tags: ,

Monkey HTTP Daemon on Ubuntu

September 26th, 2009 No comments

Monkey HTTP Daemon on Ubuntu

sudo apt-get install php5-cgi php5-common monkey

Check php configuration on /etc/monkey/monkey.conf:

AddScript application/x-httpd-php /usr/bin/php5-cgi php

Screenshoots:

Monkey HTTP Daemon [ http://monkeyd.sourceforge.net ]

Categories: unix/linux, web Tags:

LAMP Server Fedora Core 11

September 4th, 2009 No comments

LAMP Server Fedora Core 11

#!/bin/bash
#
# Albertux (Alberto Isaac Ayala Esquivias)
# Mail: <contacto@ayalasoft.com>
# Script: LAMP Fedora Core 11
#
# yum update && yum upgrade
for i in mysql php php-mysql httpd openssh-server
do
  yum install -y $i
done
# active services
for i in mysqld httpd sshd
do
  service $i start
  chkconfig --level 2345 $i on
done
Categories: unix/linux, web Tags: ,

Switch to our mobile site