Projecte

General

Perfil

Guifi oneclick » Historial » Versió 3

Jorge L. Florit, 05-01-2014 17:24

1 1 Jorge L. Florit
h1. Guifi oneclick
2
3 2 Jorge L. Florit
{{toc}}
4
5
6 1 Jorge L. Florit
This new package helps *Guifi community network* users to configure their *qMp nodes* in one (or two) clicks with the Guifi.net site data.
7
8 2 Jorge L. Florit
h2. Get and install
9
10
You can install it with a prebuilt image with the package included.
11
Also you can install the standalone package in a standard qMp system.
12
13
14 3 Jorge L. Florit
h3. +From prebuilt image+
15 2 Jorge L. Florit
16
* Get the binary file from http://fw.qmp.cat/testing/ _*(not yet)*_.
17
** Download the image labeled with *qMp-Guifi*.
18
* Flash the image in your node.
19 1 Jorge L. Florit
20
21 3 Jorge L. Florit
h3. +From standalone package+
22
23 2 Jorge L. Florit
* Get the package file from _*(not yet)*_.
24
* Install it with the @opkg@ utility.
25
26
For example:
27
<pre>
28
opkg install qmp-guifi_1.0.1_ar71xx.ipk
29
</pre>
30
31
32
33
h2. Configure
34
35
h3. +LuCI+
36
37
Configure your node using LuCI web interface.
38
* Go to the new menú +@Guifi@+.
39
* Type (or paste) in the textfield the Guifi URL of the device you want to configure.
40
** URL is like http://guifi.net/guifi/device/##ID##/ _(where ##ID## is a 5-6 digit number)_ 
41 1 Jorge L. Florit
42 2 Jorge L. Florit
h4. Example
43 3 Jorge L. Florit
44 2 Jorge L. Florit
_TO DO SCREENSHOTS_
45
. 
46
47
48
h3. +CLI, qmpguifi+
49
50
Configure your node using the command line interface.
51
You have a new command +@qmpguifi@+.
52
53
The syntax is:
54
55
<pre>
56
qmpguifi oneclick [URL] <file>
57
</pre>
58
59
* [URL] is the URL of the device. Like: http://guifi.net/guifi/device/##ID##/ _(where ##ID## is a 5-6 digit number)_
60
* <file> _(optional)_ is the temporary file where the oneclick (unsolclic) config is saved. If it's not specified @/tmp/guifi_oneclick@ is used.
61
62
This commmand gets the config file, checks this file, prints their content and configure the node using the file's data.
63
64
Alternatively you can do this steps individually:
65
66
67
h4. get_url
68
69
<pre>
70
qmpguifi get_url [URL] [FILE]
71
</pre>
72
73
* [URL] is the URL of the device.
74
* [FILE] _(mandatory)_ is the temporary file where the oneclick config is saved. 
75
76
h4. check
77
78
<pre>
79
qmpguifi check [FILE]
80
</pre>
81
82
* [FILE] is the temporary file where the oneclick config has been previously saved.
83
84
h4. print
85
86
<pre>
87
qmpguifi print [FILE]
88
</pre>
89
90
* [FILE] is the temporary file where the oneclick config has been previously saved.
91
92
h4. configure
93
94
<pre>
95
qmpguifi configure [FILE]
96
</pre>
97
98
* [FILE] is the temporary file where the oneclick config has been previously saved.
99
100
h4. Example
101
102
<pre>
103
root@qMp6aa2:~# qmpguifi oneclick http://10.139.40.97/guifi/device/53684/
104
105
Getting oneclick config:
106
Done!
107
108
Checking oneclick config:
109
Done!
110
111
Showing variables:
112
 nodename='UPCc6lab104'
113
 devname='UPCc6lab104-TL'
114
 devmodel='TL-WDR3600'
115
 ipv4='10.1.24.33'
116
 netmask='255.255.255.224'
117
 zoneid='UPC'
118
119
Do you want to configure your node with this settings? [N,y]y
120
121
Configuring the node, please wait...
122
123
Configuration done!
124
125
root@UPCc6lab104-TL6aa2:~#
126
</pre>