Archivo

Archivo para la categoría ‘windows’

QEMU Emulator

sábado, 1 de noviembre de 2008 Sin comentarios

QEMU Emulator

QEMU is a great emulator, like VMware or VirtualBox you can use to manage many guest operating system on your computer of course you need a lot of RAM

Install on Debian:

apt-get install qemu
wget http://bellard.org/qemu/kqemu-1.3.0pre11.tar.gz
tar xvzf kqemu-1.3.0pre11.tar.gz
cd kqemu-1.3.0pre11
./configure
make
make install

To load kqemu on Windows:

net start kqemu

To load kqemu on GNU/Linux:

modprobe kqemu

Port redirection use the flag option “-redir” some examples:

-redir tcp:8000::80  # redirect host port 8000 to port 80 on the guest.
-redir tcp:22::22 # ssh server on the guest

Note: I have a little trouble to install kqemu.inf on Windows Vista Bussiness i need to download the setup file on “Accelerators” section on QEMU for Win32

Damn Small Linux is a light distro use old kernel but run very wheel on old computer systems, you can run on CD-Rom, USB or Embedded System (using QEMU emulator)

Some times you need test some software but you want to install on your personal computer system, emulate and test the software is the best solution

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

Using Windows ? Don’t Kill Yourself

lunes, 27 de octubre de 2008 Sin comentarios

Using Windows ? Don’t Kill Yourself

Supose you are Linux user and you have a Windows system.

Alternatives: Cygwin, Mingw or Colinux

You need some (or all) of this interpreters:
Perl, PHP, Python and Ruby

Modify the %PATH%

Example you have a bin dir, on C:\ to include the executables on the %PATH% do this:

1
set PATH=%PATH%;C:\bin\

On Windows Vista, you can use your mouse:

computer > properties > Advances system settings > (continue) > Advanced > Enviroment Variables > System Variables > Path (edit)

Example run Kompozer on cmd.exe but no modify %PATH%

1
2
: kompozer.bat save on %WINDIR%
@"C:\Program Files\Kompozer\kompozer.exe"

Doble click on your scripts to run:

1
2
3
4
5
6
7
8
: Perl Scripts
 assoc .pl=Perl.File
 ftype Perl.File=C:\strawberry\perl\bin\perl.exe "%1" %*
 set PATHEXT=%PATHEXT%;.pl
: Python Scripts
 assoc .py=Python.File
 ftype Python.File=C:\Python26\python.exe "%1" %*
 set PATHEXT=%PATHEXT%;.py

Note:
On Windows Vista you need run cmd.exe as Administrator don’t work as normal user

Apache, PHP and MySQL ?
XAMPP and Server2Go

Notes:
XAMPP: simple, quick and easy install.
Server2Go: is great to make CD demo of a Web Application.

Using Perl or Python as CGI on Windows ?

Using Python 2.6

1
#!\python26\python.exe

Using Strawberry Perl:

1
#!\strawberry\perl\bin\perl.exe

Now your script works on http://localhost/cgi-bin/script.cgi

Categories: develop, unix/linux, windows Tags: , , , , ,

Compile Perl Win32

domingo, 17 de agosto de 2008 Sin comentarios

Compile Perl Win32

Primero necesitamos descargar Visual Studio 2008 C++ Express y el Perl source code.

Usamos 7-zip para descomprimir el perl-5.10.0.tar.gz

Editamos el Makefile (en perl-5.10.0\win32\) para poner el C++ Compiler:

CCTYPE = MSVC90FREE

Abre CMD.EXE y escribe esto:

"C:\Program Files\Microsoft Visual Studio 9.0\Common7\Tools\vsvars32.bat"
cd perl-5.10.0
cd win32
nmake
nmake test
nmake install

EL proceso de compilacion tarda un poco pero puedes descargar MyPerl-5.10.0.zip
descomprimir en C:\Perl para incluir Perl en el path:

set PATH=%PATH%;C:\Perl\bin

Si no quieres compilar existen estas alternativas: ActivePerl o Strawberry Perl.

Categories: develop, windows Tags: , ,

Switch to our mobile site