30
Nov
2007

How to easily map ports on VirtualBox

To setup easily a map between your host and your guest, you need to do these commands in root :


VBoxManage setextradata {guest name} "VBoxInternal/Devices/pcnet/0/LUN#0/Config/{mapping name}/HostPort" {host port}
VBoxManage setextradata {guest name} "VBoxInternal/Devices/pcnet/0/LUN#0/Config/{mapping name}/GuestPort" {guest port}
VBoxManage setextradata {guest name} "VBoxInternal/Devices/pcnet/0/LUN#0/Config/{mapping name}/UDP" 0
  • {guest name} : Name of the guest
  • {mapping name} : String to identify the nature of the mapping (http, ftp, ssh etc)
  • {host port} : Host port
  • {guest port} : Guest port

To remove a map, just do theses same commands, but without {port guest} :)

(Find at : http://nicoleau.fabien.free.fr/weblog/index.php?post/2007/11/11/Config-NAT-pour-acceder-a-votre-machine-virtuelle-VirtualBox (in french))

24
Nov
2007

How to know easily the bandwith used by Apache

Easy, simply, ...


cat /var/log/httpd/access_log | awk '{ SUM += $NF} END { print SUM/1024/1024 " mo" }'

Indicate the total bandwith used by apache, in Mo (divided twice by 1024)

For Apache2 :


cat /var/log/apache2/access.log | awk '{ SUM += $NF} END { print SUM/1024/1024 " mo" }'
23
Nov
2007

How to easily decrypt MD5 hash !

Hello everybody,

Today, with Zataz website, I found a very interesting website : http://www.authsecu.com/

In this french website, you can choose to create a hash from a message, or decrypt a hash to a message very easy, very fast, very surprising !!

05
Nov
2007

SimplyShare

I was thinking about made a very simple application that allow an user to simply share a compressed file (zip, rar, whatever) to a contact list composed by emails (his friends).

THey can upload a file by ftp or with the application, select his friends he want's to share his file (from a list of emails) and the mail will send a url to allow users to download this file, with a description, the date of the added file, the elapsed time before auto-removing, etc...

The email list can be managed online, add, del, rename, etc...

That could be interesting :)

05
Nov
2007

web 2.0 master's degree

I am Web 2.0 master's degree

So easy ! ;)