Guifi oneclick » Historial » Versió 7
Jorge L. Florit, 08-01-2014 22:23
1 | 1 | Jorge L. Florit | |
---|---|---|---|
2 | 4 | Jorge L. Florit | !guifi-logo.png! |
3 | |||
4 | 2 | Jorge L. Florit | {{toc}} |
5 | 1 | Jorge L. Florit | |
6 | 6 | Jorge L. Florit | The package *qmp-guifi* contains some features for the Guifi.net users in Mesh networks with qMp. |
7 | 1 | Jorge L. Florit | |
8 | 6 | Jorge L. Florit | |
9 | |||
10 | 2 | Jorge L. Florit | h2. Get and install |
11 | |||
12 | You can install it with a prebuilt image with the package included. |
||
13 | Also you can install the standalone package in a standard qMp system. |
||
14 | |||
15 | |||
16 | 3 | Jorge L. Florit | h3. +From prebuilt image+ |
17 | 2 | Jorge L. Florit | |
18 | * Get the binary file from http://fw.qmp.cat/testing/ _*(not yet)*_. |
||
19 | ** Download the image labeled with *qMp-Guifi*. |
||
20 | 1 | Jorge L. Florit | * Flash the image in your node. |
21 | |||
22 | 2 | Jorge L. Florit | h3. +From standalone package+ |
23 | 1 | Jorge L. Florit | |
24 | 7 | Jorge L. Florit | * Get the package file from http://fw.qmp.cat/testing.generic.ar71xx/packages/ _*(not yet)*_. |
25 | ** Download the package qmp-guifi_#.#.#_ar71xx.ipk |
||
26 | 2 | Jorge L. Florit | * Install it with the @opkg@ utility. |
27 | |||
28 | 1 | Jorge L. Florit | For example: |
29 | 2 | Jorge L. Florit | <pre> |
30 | 1 | Jorge L. Florit | opkg install qmp-guifi_1.0.2_ar71xx.ipk |
31 | </pre> |
||
32 | |||
33 | 7 | Jorge L. Florit | - |
34 | 1 | Jorge L. Florit | |
35 | 7 | Jorge L. Florit | |
36 | h2. Guifi oneclick |
||
37 | |||
38 | This feature helps *Guifi community network* users to configure their *qMp nodes* in one (or two) clicks with the Guifi.net site data. |
||
39 | |||
40 | |||
41 | 2 | Jorge L. Florit | h3. +LuCI+ |
42 | |||
43 | Configure your node using LuCI web interface. |
||
44 | * Go to the new menú +@Guifi@+. |
||
45 | * Type (or paste) in the textfield the Guifi URL of the device you want to configure. |
||
46 | ** URL is like http://guifi.net/guifi/device/##ID##/ _(where ##ID## is a 5-6 digit number)_ |
||
47 | 1 | Jorge L. Florit | |
48 | 2 | Jorge L. Florit | h4. Example |
49 | 3 | Jorge L. Florit | |
50 | 2 | Jorge L. Florit | _TO DO SCREENSHOTS_ |
51 | . |
||
52 | |||
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 | |||
139 | * Follow the above instructions to download the standalone package. |
||
140 | * Install it with opkg update. |