Bienvenido(a), Visitante. Favor de ingresar o registrarse.
¿Perdiste tu email de activación?
03-Diciembre 06:32:46 (Mircoles)
Inicio Ayuda Ingresar Registrarse


+  Seguridad Wireless
|-+  Otras tecnologías inalámbricas
| |-+  Universo Bluetooth
| | |-+  Integrando Bluetooth en Wifislax (Moderador: gospel)
| | | |-+  Scripts de trabajo
0 Usuarios y 1 Visitante están viendo este tema. « anterior próximo »
Páginas: 1 Imprimir
Autor Tema: Scripts de trabajo  (Leído 1158 veces)
Hwagm
Administrador
*
Desconectado Desconectado

Mensajes: 10983



WWW
« en: 26-Enero 01:01:41 (Viernes) »

cat /proc/net/dev | grep ":" | grep -v lo | grep -v sit | cut -d ":" -f 1 | tr -d " "

uselivemod /path/module.mo

http://www.slax.org/doc_modules.php

How to create SLAX module

There are many ways how to create SLAX modules. All commands described here work directly in SLAX, but can also work in your own distribution. For that case, download linux live scripts and run install.

The following command will convert Slackware's TGZ package to SLAX module:

tgz2mo application.tgz application.mo
If you wish to modify your Slackware package before the module is created, use

installpkg -root /tmp/package application.tgz
It will install your TGZ package in different root (/tmp/package here). Modify files you need and finally convert the directory tree to module by using

dir2mo /tmp/package module.mo
All modules are created by mksquashfs command, which is included in linux live scripts. You can also download squashfs tools and compile it yourself. Your running kernel doesn't need to have squashfs support to use dir2mo or tgz2mo, only mksquashfs binary is needed.

^ top

  How to modify existing SLAX module

You need kernel support for squashfs filesystem in order to modify existing SLAX module. SLAX contains this support. You can read more about squashfs here.

The following command will extract content of SLAX module to directory in /tmp
mo2dir module.mo /tmp/directory
You can modify everything in /tmp/directory now, and when done, pack the module back to .mo format by using
dir2mo /tmp/directory module.mo
If you just wish to see the content of a module (without extracting it to disk), mount it by using following command:

mount -t squashfs -o loop /path/module.mo /mnt/mountpoint
^ top

  How to use SLAX modules

There are several ways how to use SLAX modules. The first one is permanent. Store your .mo module in /modules/ directory of SLAX CD (or USB). This way the module will be automatically used during boot procedure.

If you wish to use your module only sometimes, store it in /optional/ directory on SLAX CD (or USB). Module will be used automatically only in the case when you specify it's name as a load= boot parameter. For example

boot: slax load=wine,xmms
This means: use modules /optional/wine.mo and /optional/xmms.mo this time, if you find it. Requests for non-existing modules are silently ignored.

Another way how to use SLAX module is by executing uselivemod command. Syntax is following:

uselivemod /path/module.mo
The module will be inserted into live filesystem immediately, so the application will look like it would be installed. You will need to run the application by apropriate command. Unfortunately using modules on the fly by uselivemod can sometimes hang your machine, it's some bug which needs to be fixed.

If you are using SLAX Standard Edition (or any other edition with KDE) you can doubleclick the module.mo file in konqueror, this will do the trick too.


http://www.slax.org/doc_modules.php
En línea





Hwagm
Administrador
*
Desconectado Desconectado

Mensajes: 10983



WWW
« Respuesta #1 en: 26-Enero 01:37:42 (Viernes) »

hciconfig | cut  -f 1 | tr -d ":"

pero me gusta mas con el cat
En línea





Hwagm
Administrador
*
Desconectado Desconectado

Mensajes: 10983



WWW
« Respuesta #2 en: 26-Enero 01:39:03 (Viernes) »

bueno vale, con esta lo dejamos

hciconfig | cut  -f 1 | tr -d ":" | tr -d " " | grep hci
En línea





Hwagm
Administrador
*
Desconectado Desconectado

Mensajes: 10983



WWW
« Respuesta #3 en: 26-Enero 02:15:39 (Viernes) »

http://www.slax.org/modules.php?category=other&id=914&name=openobex
En línea





Hwagm
Administrador
*
Desconectado Desconectado

Mensajes: 10983



WWW
« Respuesta #4 en: 03-Marzo 03:18:52 (Sbado) »

 Grin

se me olvidan siempre

gcc -lbluetooth -o bluezscanner bluezscanner.c
En línea





Hwagm
Administrador
*
Desconectado Desconectado

Mensajes: 10983



WWW
« Respuesta #5 en: 03-Marzo 13:30:34 (Sbado) »

o vale tambien

gcc -l bluetooth -obluezscanner bluezscanner.c
gcc -l bluetooth -o bluezscanner bluezscanner.c
gcc -lbluetooth -obluezscanner bluezscanner.c
En línea





Páginas: 1 Imprimir 
« anterior próximo »
Ir a:  

Powered by SMF 1.1.7 | SMF © 2006, Simple Machines LLC
Consejos publicitarios

Cheap Electricity - Renegade Motorhomes - Loans - Credit Cards