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