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