Editing Maemo PirateBox
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
- | This manual explains how to turn your | + | This manual explains how to turn your N810 or N900 Maemo device into a PirateBox. |
- | + | ||
- | + | ||
- | + | ||
+ | In case you don't know what is piratebox go to [http://wiki.daviddarts.com/PirateBox David Darts page] or [http://www.thepiratebox.net/ here]. Also, there are script called [https://github.com/cr/mkPirateBox mkPirateBox] for hardware router devices. | ||
+ | I also found David's [http://forum.daviddarts.com/read.php?2,57 implementation] for n900, however it requires custom kernel. This solution is much simpler and works with maemo default kernels. | ||
==Install web server== | ==Install web server== | ||
+ | Basicly what we need is a web server and wireless-tools. | ||
- | + | <pre> | |
+ | apt-get install wireless-tools | ||
+ | </pre> | ||
- | + | <pre> | |
+ | apt-get install lighttpd | ||
+ | </pre> | ||
- | I also edited the server's config file | + | I also edited the server's config file |
- | + | <pre> | |
+ | vi /etc/lighttpd.conf | ||
+ | </pre> | ||
+ | and changed document root directory to /media/mmc1/www | ||
+ | <pre> | ||
+ | server.document-root = "/media/mmc1/www/" | ||
+ | </pre> | ||
- | and | + | put your website data there and start http server if it's not started. |
- | + | <pre>/etc/init.d/lighttpd restart</pre> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
==Start access point== | ==Start access point== | ||
- | So, dnsmasq is available in | + | So, dnsmasq is available in maemo out of the box. It is a dns and dhcp server. |
+ | As a root, start the following script: | ||
- | < | + | <pre> |
#!/bin/bash | #!/bin/bash | ||
set -x | set -x | ||
Line 40: | Line 47: | ||
ifconfig $IFACE down | ifconfig $IFACE down | ||
sleep $INT | sleep $INT | ||
+ | iwconfig $IFACE mode ad-hoc | ||
+ | sleep $INT | ||
ifconfig $IFACE up | ifconfig $IFACE up | ||
- | |||
- | |||
sleep $INT | sleep $INT | ||
iwconfig $IFACE essid $ESSID | iwconfig $IFACE essid $ESSID | ||
- | |||
ifconfig $IFACE $ADDR netmask $NETMASK up | ifconfig $IFACE $ADDR netmask $NETMASK up | ||
- | |||
/usr/sbin/dnsmasq -i $IFACE -a $ADDR -I lo -z -d \ | /usr/sbin/dnsmasq -i $IFACE -a $ADDR -I lo -z -d \ | ||
Line 54: | Line 59: | ||
--address=/#/$ADDR \ | --address=/#/$ADDR \ | ||
--no-resolv | --no-resolv | ||
- | + | </pre> | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | This is it, now anybody can connect to your access point and your personal PirateBox on your n900 or n810 running under maemo |
Learn more about Contributing to the wiki.