Guifi oneclick » Historial » Versió 5
Jorge L. Florit, 05-01-2014 18:33
1 | 1 | Jorge L. Florit | h1. Guifi oneclick |
---|---|---|---|
2 | |||
3 | 4 | Jorge L. Florit | !guifi-logo.png! |
4 | |||
5 | 2 | Jorge L. Florit | {{toc}} |
6 | |||
7 | |||
8 | 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. |
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 | * Flash the image in your node. |
||
21 | 1 | Jorge L. Florit | |
22 | 3 | Jorge L. Florit | h3. +From standalone package+ |
23 | |||
24 | 2 | Jorge L. Florit | * Get the package file from _*(not yet)*_. |
25 | * Install it with the @opkg@ utility. |
||
26 | |||
27 | For example: |
||
28 | 1 | Jorge L. Florit | <pre> |
29 | 5 | Jorge L. Florit | opkg install qmp-guifi_1.0.2_ar71xx.ipk |
30 | 2 | Jorge L. Florit | </pre> |
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 | 1 | Jorge L. Florit | |
41 | 2 | Jorge L. Florit | h4. Example |
42 | 3 | Jorge L. Florit | |
43 | 2 | Jorge L. Florit | _TO DO SCREENSHOTS_ |
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> |