Projecte

General

Perfil

Guifi oneclick » Historial » Versió 2

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

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