Desde el día lunes 10 hasta el domingo 16 se vienen realizando las
«JORNASTEC» (Jornadas Nacionales por la Soberanía Tecnológica), en
Boconó, estado Trujillo. Este evento anual es organizado por octavo año
consecutivo por el Colectivo TeleTriunfador, y cuenta con la
participación de voluntarios y voluntarias provenientes del Zulia,
Cojedes, Bolívar, Trujillo y Miranda, entre otros.
Fuente:
http://camposocialista.blogspot.com/2014/11/trabajo-voluntario-en-el-marco-de-las.html
domingo, 16 de noviembre de 2014
Netselect-apt: Búsqueda del repositorio más rápido.
Esta vez vengo a hablar de Netselect-apt. Un paquete que permite seleccionar el repositorio Debian más rápido. Lo que hace este comando es bajar la lista de repositorios oficiales desde la página oficial de Debian usando wget. Luego prueba las respuestas de cada repositorio y hace una lista de los más rápidos. Al final, escribe en un archivo source.list en tu directorio, el más rápido.
Para instalarlo:
#apt-get install netselect-apt
Para buscar el mejor repositorio:
#netselect-apt wheezy
Si queremos que busque non-free, usamos la opción -n:
#netselect-apt -n wheezy
netselect-apt creará un fichero llamado sources.list, con la información del repositorio más rápido. Para usarlo en /etc/apt/sources.list, hacemos cp:
#cp ./sources.list /etc/apt/sources.list
#aptitude update
Fuente:
http://www.aboutlinux.info/2007/05/using-netselect-apt-tip-to-select.html
Para instalarlo:
#apt-get install netselect-apt
Para buscar el mejor repositorio:
#netselect-apt wheezy
Si queremos que busque non-free, usamos la opción -n:
#netselect-apt -n wheezy
netselect-apt creará un fichero llamado sources.list, con la información del repositorio más rápido. Para usarlo en /etc/apt/sources.list, hacemos cp:
#cp ./sources.list /etc/apt/sources.list
#aptitude update
Fuente:
http://www.aboutlinux.info/2007/05/using-netselect-apt-tip-to-select.html
domingo, 21 de septiembre de 2014
TorrentStream con Peerflix en Debian Wheezy y Jessie
TorrentStream es una tenología que permite ver videos que estén compartidos por un Torrent. Por ejemplo, si queremos ver un Torrent que contiene la película Tenacious D, primero descargamos el Torrent y hacemos la transferencia a nuestra PC con Peerflix, y lo reproducimos con VLC o MPlayer.
Para esto, lo primero que tenemos que hacer es instalar NodeJS:
1.- Sólo si es Debian Wheezy, ejecutar la siguiente línea (Si es Debian Jessie, no la ejecuten):
# echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
1.1.- Si necesitan tener actualizado nodejs en Debian Wheezy, ejecuten los siguientes comandos:
# curl -sL https://deb.nodesource.com/setup_12.x | bash -
# apt-get install -y nodejs
1.2.- Si necesitan tener actualizado nodejs en Debian Jessie, ejecuten los siguientes comandos:
# curl -sL https://deb.nodesource.com/setup_7.x | bash -
# apt-get install -y nodejs
Esto lo pueden verificar en el siguiente enlace: Node Source
2.- Instalar NodeJS:
# apt-get update
# apt-get install nodejs
Luego descargamos e instalamos NPM:
$ wget https://www.npmjs.org/install.sh
$ chmod +x install.sh
# ln -s /usr/bin/nodejs /usr/bin/node
# ./install.sh
Para la última versión de NPM, usar este método:
$ wget https://registry.npmjs.org/npm/-/npm-6.0.0.tgz
$ tar xzf npm-6.0.0.tgz
$ cd package
# ./scripts/install.sh
Si todo va bien, ejecutamos el torrent y especificamos el reproductor:
$ peerflix [archivo_torrent] --[reproductor]
Por ejemplo:
$ peerflix magnet:?xt=urn:btih:JRV64XB4UNDDOR3ENNKHZJYNPUXG7BVD --vlc
Ó:
$ peerflix Tenacious_D.torrent --vlc
Basado en la siguiente Guía:
http://www.taringa.net/posts/linux/17674632/Instalar-Peerflix-en-Debian-Wheezy-Stable.html
Para esto, lo primero que tenemos que hacer es instalar NodeJS:
1.- Sólo si es Debian Wheezy, ejecutar la siguiente línea (Si es Debian Jessie, no la ejecuten):
# echo "deb http://ftp.us.debian.org/debian wheezy-backports main" >> /etc/apt/sources.list
1.1.- Si necesitan tener actualizado nodejs en Debian Wheezy, ejecuten los siguientes comandos:
# curl -sL https://deb.nodesource.com/setup_12.x | bash -
# apt-get install -y nodejs
1.2.- Si necesitan tener actualizado nodejs en Debian Jessie, ejecuten los siguientes comandos:
# curl -sL https://deb.nodesource.com/setup_7.x | bash -
# apt-get install -y nodejs
Esto lo pueden verificar en el siguiente enlace: Node Source
2.- Instalar NodeJS:
# apt-get update
# apt-get install nodejs
Luego descargamos e instalamos NPM:
$ wget https://www.npmjs.org/install.sh
$ chmod +x install.sh
# ln -s /usr/bin/nodejs /usr/bin/node
# ./install.sh
Para la última versión de NPM, usar este método:
$ wget https://registry.npmjs.org/npm/-/npm-6.0.0.tgz
$ tar xzf npm-6.0.0.tgz
$ cd package
# ./scripts/install.sh
Ahora instalamos Peerflix: # npm install -g peerflixSi todo va bien, ejecutamos el torrent y especificamos el reproductor:
$ peerflix [archivo_torrent] --[reproductor]
Por ejemplo:
$ peerflix magnet:?xt=urn:btih:JRV64XB4UNDDOR3ENNKHZJYNPUXG7BVD --vlc
Ó:
$ peerflix Tenacious_D.torrent --vlc
Basado en la siguiente Guía:
http://www.taringa.net/posts/linux/17674632/Instalar-Peerflix-en-Debian-Wheezy-Stable.html
viernes, 16 de mayo de 2014
XMLRPC para C++
Como comentario, para los desarrolladores que estás usando XMLRPC en C++:
http://xmlrpc-c.sourceforge.net/doc/libxmlrpc.html
/*
*
* Hay un Bug en el método xmlrpc_parse_value(). En vez de ese deben usar el método xmlrpc_array_read_item(). Recomiendo usar xmlrpc_array_read_item().
*
* //Valor XMLRPC
* xmlrpc_value * value;
*
* //Variable unsigned char para Base64
* const unsigned char * cvalue;
* long unsigned int long_val;
*
* //Variable para enteros (int)
* xmlrpc_int firstInt;
*
* //Variable String
* const char * char_value;
*
* Para leer Base64:
* xmlrpc_array_read_item(env, param_array, 0, &value);
* xmlrpc_read_base64(env, value, &long_val, &cvalue);
* xmlrpc_DECREF(value);
* free((void *)cvalue);
*
* Para leer Int:
* xmlrpc_array_read_item(env, param_array, 11, &value);
* xmlrpc_read_int(env, value, &firstInt);
* xmlrpc_DECREF(value);
*
* Para leer String:
* xmlrpc_array_read_item(env, param_array, 3, &value);
* xmlrpc_read_string(env, value, &char_value);
* xmlrpc_DECREF(value);
* free((void *)char_value);
*/
http://xmlrpc-c.sourceforge.net/doc/libxmlrpc.html
/*
*
* Hay un Bug en el método xmlrpc_parse_value(). En vez de ese deben usar el método xmlrpc_array_read_item(). Recomiendo usar xmlrpc_array_read_item().
*
* //Valor XMLRPC
* xmlrpc_value * value;
*
* //Variable unsigned char para Base64
* const unsigned char * cvalue;
* long unsigned int long_val;
*
* //Variable para enteros (int)
* xmlrpc_int firstInt;
*
* //Variable String
* const char * char_value;
*
* Para leer Base64:
* xmlrpc_array_read_item(env, param_array, 0, &value);
* xmlrpc_read_base64(env, value, &long_val, &cvalue);
* xmlrpc_DECREF(value);
* free((void *)cvalue);
*
* Para leer Int:
* xmlrpc_array_read_item(env, param_array, 11, &value);
* xmlrpc_read_int(env, value, &firstInt);
* xmlrpc_DECREF(value);
*
* Para leer String:
* xmlrpc_array_read_item(env, param_array, 3, &value);
* xmlrpc_read_string(env, value, &char_value);
* xmlrpc_DECREF(value);
* free((void *)char_value);
*/
Suscribirse a:
Comentarios (Atom)
Visita nuestras apps, Youtube y tiendas online.
César OpenSource Expert, Videos. Youtube channel: https://youtube.com/@rockcesar85 Visita nuestra tienda online: https://shop.latin-chai...
-
Pi, Pi Network and the Pi logo are trademarks of the Pi Community Company. Our webpage, LatinChain Platform: https://latin-chain.com Latin...
-
DONATE HERE, OPTIONAL (DONA AQUÍ, OPCIONAL): https://dev-rockcesar.blogspot.com/2025/03/donations-to-latinchain.html?m=1 Documento (Españo...
-
OpenSource Expert 🇻🇪 Sígueme en mis Redes Sociales (Follow me in my Social Networks): Redes Sociales: Youtube 📺: https://youtube.com/...