Principal

Posted In: . By Jacop

En esta web podrás encontrar scripts de bash útiles



En "Secciones" encontraras

clasificados los scripts

Si tienes dudas de cómo ejecutar los scripts pulsa aquí


Y recuerda... Si queréis ayudar y/o adjuntar más scripts a la web sólo tienes que enviarlo a
scriptsbash@gmail.com

 

Ogg-mp3 (perl)

Posted In: . By Jacop

Requerimientos:

- ffmpeg
- perl


Este script se ejecuta como si de un programa fuera (de la segunda manera), te lo puedes bajar de aquí:

http://marginalhacks.com/bin/ogg2mp3

 

Pasar de avi a vcd

Posted In: . By Jacop

Puedes descargar este script directamente desde aquí:

http://garr.dl.sourceforge.net/sourceforge/avi2vcd/avi2vcd-0.1


Después solo tienes que ejectutar el script junto al nombre del archivo. Ej ./avi2vcd-0.1 nombre.avi

 

Internet explorer en linux

Posted In: . By Jacop

Ejecuta diferentes versiones de internet explorer en tu linux


Instalación:

  1. Abre una conola i ejecute
    • wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz
    • tar zxvf ies4linux-latest.tar.gz

    • cd ies4linux-*

    • ./ies4linux
    • Conteste las preguntas del script i ya tendra instalado ie en linux



Requisitos:

1.
Wine
2.
Cabextract (normalmente incluida en el paquete: wine)



Más info en: http://www.tatanka.com.br/ies4linux/page/Main_Page

 

Ejecutar los scripts

Posted In: . By Jacop

Básicamente hay estas dos formas:

- Ejecutando el script directamente:

  1. Abrir un editor de texto y copiar todo el script.
  2. Guardar el fichero terminado "con extensión" ".sh". Ej: hola.sh
  3. En una consola ejecutar "sh nombrescript.sh" (sin las comillas).
  4. Disfrutar del script

-
"Instalando" el script en el equipo como si fuera un programa normal:


  1. Abrir un editor de texto y copiar todo el script.
  2. Guardar el fichero terminado sin ningúna extension. Ej: script
  3. Teclear en la consola "chmod 755 nombrescript"
  4. Copiar el script en un directorio que accepte los ejecutables "cp ./nombrescript /usr/bin/nombrescript"
  5. Disfrutar del script, simplemente (desde cualquier usuario) teclenado el nombre del script

 

Escucha diversas radios

Posted In: . By Jacop

#!/bin/bash
#RoM
RED='\e[1;31m'
NC='\e[0m'
#--------------------------------------------------------------------------------------------------------------------------
echo " Escoje la radio que quieras escuchar en vivo :"
echo -e " 1 -> ${RED}Rack 105${NC}"
echo -e " 2 -> ${RED}Com Radio${NC}"
echo -e " 3 -> ${RED}Catalunya Radio${NC}"
echo -e " 4 -> ${RED}Ona Mallorca${NC}"
echo " 5 -> Rac1"
echo -e " 6 -> ${RED}Rac105${NC}"
echo " 7 -> Ona catalana"
echo " 8 -> Radio Arrels"
echo " 9 -> Som i serem Radio"
echo " 10 -> Radio Euskadi"
echo " 11 -> RNE 1"
echo " 12 -> RNE 3"
echo " 13 -> Radio 4"
echo " 14 -> RNE 5"
echo " 15 -> RNE clásica"
echo " 16 -> Kiss FM"
echo " 17 -> Cadena dial"
echo " 18 -> Cadena 100"
echo -e " 19 -> ${RED}iCATFM${NC}"
echo -e " 20 -> ${RED}iCATJAZZ${NC}"
echo " 21 -> MUSICATLES"
echo " 22 -> TOTCAT"
echo " 23 -> EuropaFM"
echo " 24 -> 40 Principales"
echo " 25 -> M80"
echo " 26 -> Maxima"
echo " 27 -> Onda Cero"
echo " 28 -> Onda Rambla"
echo " 29 -> Cadena SER"
echo " 30 -> Escolar programes previament grabats"
echo " 31 -> Grabar radios en directe"
echo " 32 -> Sortir del programa"
echo "---------------------------------------------------------------"

read radio

if [ "$radio" = "1" ]; then
mplayer http://rs9.radiostreamer.com:9280/listen.pls
elif [ "$radio" = "2" ]; then
mplayer -playlist http://www.comradio.com/pls/directecomradio.pls
elif [ "$radio" = "3" ]; then
mplayer http://195.10.10.102/tv3/catradio/high.ogg
elif [ "$radio" = "4" ]; then
mplayer http://www.onamallorca.net:8000/live.ogg
elif [ "$radio" = "5" ]; then
mplayer http://212.72.186.18:8410/listen.pls
elif [ "$radio" = "6" ]; then
http://rs9.radiostreamer.com:9280/listen.pls
elif [ "$radio" = "7" ]; then
mplayer mms://82.208.28.37/onacatalana
elif [ "$radio" = "8" ]; then
mplayer http://213.186.61.62:7100/listen.pls
elif [ "$radio" = "9" ]; then
mplayer http://www.somiseremradio.cat/sisradio.m3u
elif [ "$radio" = "10" ]; then
mplayer mms://a943.l881320881.c8813.e.lm.akamaistream.net/D/943/8813/v0001/reflector:20881
elif [ "$radio" = "11" ];then
mplayer -playlist http://www.rtve.es/rne/audio/r1live.asx
elif [ "$radio" = "12" ];then
mplayer -playlist http://www.rtve.es/rne/audio/RNE3.asx
elif [ "$radio" = "13" ];then
mplayer -playlist http://www.rtve.es/rne/audio/RNE4.asx
elif [ "$radio" = "14" ];then
mplayer -playlist http://www.rtve.es/rne/audio/RNE5.asx
elif [ "$radio" = "15" ];then
mplayer -playlist http://www.rtve.es/rne/audio/RNEclasica.asx
elif [ "$radio" = "16" ];then
mplayer -playlist http://pointers.audiovideoweb.com/asxfiles-live/ny60winlive7001.asx
elif [ "$radio" = "17" ];then
mplayer -playlist http://www.los40.com/nuevo_player/dial.asx
elif [ "$radio" = "18" ];then
mplayer mms://live.c100.edgestreams.net/reflector:34743
elif [ "$radio" = "19" ];then
mplayer -cache 200 mms://icatfm.directe-wm.emissio.catradio.cat/reflector:35490
elif [ "$radio" = "20" ];then
mplayer http://www.icatfm.cat/directes/icatjazz_wm.m3u
elif [ "$radio" = "21" ];then
mplayer http://www.icatfm.cat/directes/musicatles_wm.m3u
elif [ "$radio" = "22" ];then
mplayer http://www.icatfm.cat/directes/totcat_wm.m3u
elif [ "$radio" = "23" ];then
mplayer -playlist http://www.ondacero.es/europafm.asx
elif [ "$radio" = "24" ];then
mplayer -playlist http://www.los40.com/nuevo_player/40Principales.asx
elif [ "$radio" = "25" ];then
mplayer -playlist http://www.los40.com/nuevo_player/40Principales.asx
elif [ "$radio" = "26" ];then
mplayer -playlist http://www.los40.com/nuevo_player/maxima.asx
elif [ "$radio" = "27" ];then
mplayer -playlist http://www.ondacero.es/oci.asx
elif [ "$radio" = "28" ];then
mplayer -playlist http://www.ondacero.es/dance.asx
elif [ "$radio" = "29" ];then
mplayer -playlist http://www.cadenaser.com/player/SER-TIC.asx
elif [ "$radio" = "30" ];then
exec /usr/bin/amarok & nautilus --no-desktop --browser %U ~/documents/programes-radio
elif [ "$radio" = "31" ];then
exec /usr/bin/grabradio
elif [ "$radio" = "32" ];then
exit
else
echo " Esta radio no existe"
exit
fi