Install web2py Web Framework

This article illustrates how to install Web2py

Web2Py is a"Free open source full-stack framework for rapid development of fast, scalable, secure and portable database-driven web-based applications. Written and programmable in Python"

Download from Web2py download page the Source code:

~# wget http://www.web2py.com/examples/static/web2py_src.zip

and unzip it:

~# unzip -a web2py_src.zip

If you don't have unzip install it:

~# apt-get update
~# apt-get install unzip

Move inside the just created web2py directory and launch web2py:

~# cd web2py
~/web2py# python web2py.py -a 'AdminPwd' --ip 0.0.0.0
web2py Web Framework
Created by Massimo Di Pierro, Copyright 2007-2007
Version 2.8.2-stable+timestamp.2013.11.28.13.54.07
Database drivers available: SQLite(sqlite3), MySQL(pymysql), PostgreSQL(pg8000), IMAP(imaplib)
please visit:
    http://127.0.0.1:8000/
use "kill -SIGTERM 2400" to shutdown the web2py server

Open a browser and access to the web2py embedded web server from this url:

Due to security reasons, the web2py admin application is not usable on an insecure channel so we have to use https instead of http protocol using openssl.

Using Web2py in https

Install openssl:

~# apt-get update
~# apt-get install openssl

Start by generating a certificate files, if you don't have them already:

~# openssl genrsa -out server.key 2048
Generating RSA private key, 2048 bit long modulus
..........................................................+++
..........................................................+++
e is 65537 (0x10001)

~# openssl req -new -key server.key -out server.csr
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [AU]:IT
State or Province Name (full name) [Some-State]:Rome
Locality Name (eg, city) []:Ladispoli
Organization Name (eg, company) [Internet Widgits Pty Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (e.g. server FQDN or YOUR name) []:
Email Address []:

Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:

~# openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
Signature ok
...

Copy the server.key and server.crt files to your web2py root folder.

~# cp server.key web2py
~# cp server.crt web2py

Then start the web2py application using the certificate files:

~# cp web2py
~/web2py# python web2py.py -a 'AdminPwd' -c server.crt -k server.key -i 0.0.0.0 -p 8000

Open a browser and access to the web2py embedded web server in https from this url:

Now it is possible to access to the Administrator page

License

web2py is copyrighted by Massimo Di Pierro. The web2py trademark is owned by Massimo Di Pierro.

ARIETTA-G25
EUR 25.00


ARM9 Linux Embedded Module (128MB)

Arietta G25 is a small and low-cost multi-chip module that integrates:

  • a ARM9 @ 400Mhz CPU Atmel AT91SAM9G25
  • a 128MB of DDR2 RAM
  • up to 3 USB 2.0 host ports
  • 20x2 pads for strip pitch 2.54mm (100mil)

Basic Version with no strips mounted. If you need to have any strip mounted take a look to the Welding services

| Product description |

ARIETTA-G25-256
EUR 30.00


ARM9 Linux Embedded Module (256MB)

Arietta G25 is a small and low-cost multi-chip module that integrates:

  • a ARM9 @ 400Mhz CPU Atmel AT91SAM9G25
  • a 256MB of DDR2 RAM
  • up to 3 USB 2.0 host ports
  • 20x2 pads for strip pitch 2.54mm (100mil)

Basic Version with no strips mounted. If you need to have any strip mounted take a look to the Welding services

| Product description |

WIFI-2
EUR 7.00


WiFi USB module

OEM Small USB 2.0 IEEE 802.11 b/g/n Wi-Fi compliant module based on the RaLink RT5370N chip. It works at 3.3V and can be configured also in Access Point mode.

This model requires an external antenna model AN-WIFI-01 or AN-WIFI-02.

| Product description |

AN-WIFI-01
EUR 3.50


WiFi pcb external antenna

WiFi PCB antenna with 11 cm cable and UMC 2mm connector to be plugged on WIFI-2 module.

| Antenna datasheet |

AN-WIFI-02
EUR 7.00


WiFi external antenna with SMA cable
  • RF cable with panel mountable SMA connector and UMC 2mm connector to be plugged on a WIFI-2 module.
  • WiFi rubber antenna

| Antenna datasheet | Cable datasheet |