Home » Wiki » client for h-node.org » Histórico » Diferenças
Diferenças entre a versão de 16:35, 24 Julho 2016, criada por greenman, e a versão de 12:14, 24 Julho 2016
Aviso: o texto em vermelho foi excluído da versão anterior, o texto em verde foi adicionado nesta versão e o texto em cinza não foi alterado.
diferenças no campo: o título
client for h-node.org
diferenças no campo: o texto da página wiki
[p]h-client provides a desktop application for submitting device data for h-node.org, automatically finding data known to the operating system and checking if the device is already known on h-node. Laptops are currently unsupported, most other devices can be reported more easily using the client than with the Web interface.[/p]

__TOC__

[h1]Distribution packages[/h1]

[list]
[*]Parabola package [a]https://parabolagnulinux.org/packages/libre/any/h-client/|h-client[/a][/*] [a]https://www.parabola.nu/packages/pcr/any/h-client/|h-client[/a][/*]
[*]Trisquel package [a]http://ur1.ca/92jcs|h-client[/a] in [a]http://www.ur1.ca/e6qn8|DNS's PPA[/a][/*]
[/list]

[h1]Getting the h-client from source[/h1]
[p]You can download the client by typing the following command:[/p]

[code]svn co svn://svn.savannah.nongnu.org/h-client/trunk/h-client[/code]

[h1]Requirements[/h1]
[list]
[*] Python 2.6 or 2.7[/*]
[*] Distribute[/*]
[*] pyGTK[/*]
[*] pycurl[/*]
[/list]
[p](they would most likely be already installed). [/p]

[h2]Trisquel users[/h2]
[p]Make sure python-setuptools is installed in order to install the client:[/p]
[code]sudo aptitude install python-setuptools[/code]

[h1]Installation[/h1]
[p]In order to install it type:[/p]

[code]python setup.py install --user[/code]

[p]and run it using:[/p]

[code]~/.local/bin/h-client[/code]

[p](or just h-client if added ~/.local/bin to PATH).[/p]

[p] You may need to do the following if you receive a "KeyError: 'hclient/mo/.'" error
[list]
cd ~/.local/lib/python2.7/site-packages
[/list]
[list]
then unpack content of file hclient-....egg into directory with the same name as file.
[/list]

[h2]Have a package built for you[/h2]

[p]Here's one liner I put together to build the binary package.[/p]

[code]cd ~/ && \
sudo apt-get install subversion checkinstall python-setuptools && \
svn co svn://svn.savannah.nongnu.org/h-client/trunk/h-client && \
cd h-client && \
version="0.$(svn log | grep r | cut -d ' ' -f1 | head -n1)" && \
sudo checkinstall --pakdir "$HOME/Desktop" --pkgname h-client \
--pkgversion "$version~svn" --backup=no --default python setup.py install && sudo ldconfig[/code]

[p]Send feedback to campaigns at fsf.org[/p]

[h1] Logging in to https://h-node.org [/h1]
[p]Note that as h-node is now being served with https, you will probably need to modify Client('h-node.org') to Client('https://h-node.org') in hclient/gtkclient.py or modify the Server URL in Preferences. [/p]

[h1]Development[/h1]

[p]The project page is at [a]https://savannah.nongnu.org/projects/h-client/|Savannah[/a]. Some tasks to be done are listed at our main [[ToDo#h-client|ToDo]] list.[/p]

[h2]How to build a different client[/h2]

[p]To learn how to write a client to connect to h-node.org see the page [[how to send data to h-node.org]][/p]

[lang][[cliente para h-node.com|Español]][/lang]
The contents of this page are in the Public Domain. (see the CC0 page for detailed information). Anyone is free to copy, modify, publish, use, sell, or distribute the text for any purpose, commercial or non-commercial, and by any means.
h-node.org is a hardware database project. It runs the h-source PHP software, commit cdeda15, available under the GNU General Public (GPLv3) License.
JavaScript license information