Projecte

General

Perfil

Guifi oneclick » Historial » Versió 10

Jorge L. Florit, 06-05-2014 19:49

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