Guifi oneclick » Historial » Versió 8
Jorge L. Florit, 08-01-2014 22:24
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 | * Get the binary file from http://fw.qmp.cat/testing/ _*(not yet)*_. |
||
18 | ** 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 | 7 | Jorge L. Florit | * Get the package file from http://fw.qmp.cat/testing.generic.ar71xx/packages/ _*(not yet)*_. |
24 | ** 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 | 2 | Jorge L. Florit | _TO DO SCREENSHOTS_ |
50 | . |
||
51 | |||
52 | |||
53 | h3. +CLI, qmpguifi+ |
||
54 | |||
55 | Configure your node using the command line interface. |
||
56 | You have a new command +@qmpguifi@+. |
||
57 | |||
58 | The syntax is: |
||
59 | |||
60 | <pre> |
||
61 | qmpguifi oneclick [URL] <file> |
||
62 | </pre> |
||
63 | |||
64 | * [URL] is the URL of the device. Like: http://guifi.net/guifi/device/##ID##/ _(where ##ID## is a 5-6 digit number)_ |
||
65 | * <file> _(optional)_ is the temporary file where the oneclick (unsolclic) config is saved. If it's not specified @/tmp/guifi_oneclick@ is used. |
||
66 | |||
67 | This commmand gets the config file, checks this file, prints their content and configure the node using the file's data. |
||
68 | |||
69 | Alternatively you can do this steps individually: |
||
70 | |||
71 | |||
72 | h4. get_url |
||
73 | |||
74 | <pre> |
||
75 | qmpguifi get_url [URL] [FILE] |
||
76 | </pre> |
||
77 | |||
78 | * [URL] is the URL of the device. |
||
79 | * [FILE] _(mandatory)_ is the temporary file where the oneclick config is saved. |
||
80 | |||
81 | h4. check |
||
82 | |||
83 | <pre> |
||
84 | qmpguifi check [FILE] |
||
85 | </pre> |
||
86 | |||
87 | * [FILE] is the temporary file where the oneclick config has been previously saved. |
||
88 | |||
89 | h4. print |
||
90 | |||
91 | <pre> |
||
92 | qmpguifi print [FILE] |
||
93 | </pre> |
||
94 | |||
95 | * [FILE] is the temporary file where the oneclick config has been previously saved. |
||
96 | |||
97 | h4. configure |
||
98 | |||
99 | <pre> |
||
100 | qmpguifi configure [FILE] |
||
101 | </pre> |
||
102 | |||
103 | * [FILE] is the temporary file where the oneclick config has been previously saved. |
||
104 | |||
105 | h4. Example |
||
106 | |||
107 | <pre> |
||
108 | root@qMp6aa2:~# qmpguifi oneclick http://10.139.40.97/guifi/device/53684/ |
||
109 | |||
110 | Getting oneclick config: |
||
111 | Done! |
||
112 | |||
113 | Checking oneclick config: |
||
114 | Done! |
||
115 | |||
116 | Showing variables: |
||
117 | nodename='UPCc6lab104' |
||
118 | devname='UPCc6lab104-TL' |
||
119 | devmodel='TL-WDR3600' |
||
120 | ipv4='10.1.24.33' |
||
121 | netmask='255.255.255.224' |
||
122 | zoneid='UPC' |
||
123 | |||
124 | Do you want to configure your node with this settings? [N,y]y |
||
125 | |||
126 | 1 | Jorge L. Florit | Configuring the node, please wait... |
127 | |||
128 | Configuration done! |
||
129 | |||
130 | root@UPCc6lab104-TL6aa2:~# |
||
131 | </pre> |
||
132 | 7 | Jorge L. Florit | |
133 | |||
134 | h2. Update |
||
135 | |||
136 | At the moment only *manually update* is available. |
||
137 | 1 | Jorge L. Florit | |
138 | 8 | Jorge L. Florit | # Follow the above instructions to download the standalone package. |
139 | # Install it with opkg update. |