lunes, 13 de julio de 2009
Nueva Pagina -> http://manuel.verrastro.com.ar
Despues de unos dias me hice un tiempo para migrar a Wordpress, asi que me mude de dominio. http://manuel.verrastro.com.ar
jueves, 25 de junio de 2009
Recuperar Grub
Recuperar Grub
Booteamos con un live cd de alguna distribución, abrimos una consola.
sudo grub
find /boot/grub/stage1
(hd0,2)
root (hdX,X)
setup (hdX,X)
quit
El resultado del find va remplazando el ejemplo del (hdX,X) en mi caso (hd0,2)
Booteamos con un live cd de alguna distribución, abrimos una consola.
sudo grub
find /boot/grub/stage1
(hd0,2)
root (hdX,X)
setup (hdX,X)
quit
El resultado del find va remplazando el ejemplo del (hdX,X) en mi caso (hd0,2)
Minimizar Thunderbird al System Tray
Thunderbird: Minimize to tray
#apt-get install alltray
#alltray "thunderbird --component=mail"
Despues editámos los launchers y cambiamos el comando por este
#apt-get install alltray
#alltray "thunderbird --component=mail"
Despues editámos los launchers y cambiamos el comando por este
miércoles, 3 de junio de 2009
Convertir rmvb a avi con mencoder
rmvb2avi
apt-get install mencoder
mencoder -oac mp3lame -lameopts cbr=128 -ovc xvid -xvidencopts bitrate=1200 video_input.rmvb -o video_output.avi
apt-get install mencoder
mencoder -oac mp3lame -lameopts cbr=128 -ovc xvid -xvidencopts bitrate=1200 video_input.rmvb -o video_output.avi
Etiquetas:
convertir rmvb a avi linux,
mencoder,
rmvb a avi,
rmvb2avi
lunes, 1 de junio de 2009
Rename Script
mcedit rename.sh
#!/bin/bash
#Get all files in current directory
originalFiles=$(ls *.jpg)
# Loop through all files and do your changes
for loopFile in $originalFiles
do
# Create your new filename including the extension
mv $loopFile penguin$loopFile
done
#!/bin/bash
#Get all files in current directory
originalFiles=$(ls *.jpg)
# Loop through all files and do your changes
for loopFile in $originalFiles
do
# Create your new filename including the extension
mv $loopFile penguin$loopFile
done
Etiquetas:
bash,
rename,
Rename Script,
renombrar,
Script
Instalar Flash Player 10 en Linux
Como instalar flash player 10 64bits en linux.
1. Vamos a asegurarnos que no tenemos otro plugin de flash instalado.
apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
2. Vamos a limpiar todas las carpetas por si quedo alguna libreria dando vueltas.
rm -f /usr/lib/mozilla/plugins/*flash*
rm -f ~/.mozilla/plugins/*flash*
rm -f /usr/lib/firefox/plugins/*flash*
rm -rfd /usr/lib/nspluginwrapper
3. Instalamos ia32-libs y nspluginwrapper
apt-get install ia32-libs nspluginwrapper
4. Descargamos y descomprimimos la ultima version de flash player
cd ~
wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
tar zxvf flashplayer10_install_linux_051508.tar.gz
cp install_flash_player_10_linux/libflashplayer.so /usr/lib/mozilla/plugins/
rm -rf ~/install_flash_player_10_linux/
5. Ahora usamos nspluginwrapper para instalar y linkear el plugin con firefox
nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so
ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla/plugins/
ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/
Ahora reiniciamos firefox, y en la barra de url tipeamos about:plugins y tenemos que tener algo asi.
Shockwave Flash
File name: npwrapper.libflashplayer.so
Shockwave Flash 10.0 r22
MIME Type Description Suffixes Enabled
application/x-shockwave-flash Shockwave Flash swf Yes
application/futuresplash FutureSplash Player spl Yes
1. Vamos a asegurarnos que no tenemos otro plugin de flash instalado.
apt-get remove -y --purge flashplugin-nonfree gnash gnash-common mozilla-plugin-gnash swfdec-mozilla libflashsupport nspluginwrapper
2. Vamos a limpiar todas las carpetas por si quedo alguna libreria dando vueltas.
rm -f /usr/lib/mozilla/plugins/*flash*
rm -f ~/.mozilla/plugins/*flash*
rm -f /usr/lib/firefox/plugins/*flash*
rm -rfd /usr/lib/nspluginwrapper
3. Instalamos ia32-libs y nspluginwrapper
apt-get install ia32-libs nspluginwrapper
4. Descargamos y descomprimimos la ultima version de flash player
cd ~
wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_10_linux.tar.gz
tar zxvf flashplayer10_install_linux_051508.tar.gz
cp install_flash_player_10_linux/libflashplayer.so /usr/lib/mozilla/plugins/
rm -rf ~/install_flash_player_10_linux/
5. Ahora usamos nspluginwrapper para instalar y linkear el plugin con firefox
nspluginwrapper -i /usr/lib/mozilla/plugins/libflashplayer.so
ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/mozilla/plugins/
ln -sf /usr/lib/nspluginwrapper/plugins/npwrapper.libflashplayer.so /usr/lib/firefox-addons/plugins/
Ahora reiniciamos firefox, y en la barra de url tipeamos about:plugins y tenemos que tener algo asi.
Shockwave Flash
File name: npwrapper.libflashplayer.so
Shockwave Flash 10.0 r22
MIME Type Description Suffixes Enabled
application/x-shockwave-flash Shockwave Flash swf Yes
application/futuresplash FutureSplash Player spl Yes
Etiquetas:
flash player linux,
install flash player 10 linux
martes, 19 de mayo de 2009
Free memory Bash Script
Script Similar al anterior que comprueba la memoria Swap en uso y envia un mail avisando que nos excedimos del limite, tambien puede ser usada para comprobar la ram, simplemente cambian Mem, por Swap.
Para agregarla al cron.hourly mcedit /etc/cron.hourly/freemem.sh
No olviden cambiar el valor de la variable limit por el limite que quieren setear para que se envie el email. El resultado esta expresado en Mb.
#!/bin/bash
total=`free -m | grep Swap | awk '{print $(2)}'`;
used=`free -m | grep Swap | awk '{print $(3)}'`;
free=`free -m | grep Swap | awk '{print $(4)}'`;
limit=512
if (("$used" '>=' "$limit"));
then
echo "Memoria Swap en uso: $used MB" | mail -s "Memoria en uso" mail@host.com
fi
Para agregarla al cron.hourly mcedit /etc/cron.hourly/freemem.sh
No olviden cambiar el valor de la variable limit por el limite que quieren setear para que se envie el email. El resultado esta expresado en Mb.
#!/bin/bash
total=`free -m | grep Swap | awk '{print $(2)}'`;
used=`free -m | grep Swap | awk '{print $(3)}'`;
free=`free -m | grep Swap | awk '{print $(4)}'`;
limit=512
if (("$used" '>=' "$limit"));
then
echo "Memoria Swap en uso: $used MB" | mail -s "Memoria en uso" mail@host.com
fi
Etiquetas:
bash,
bash scripting,
free memory,
linux,
memory in use,
ram script,
Script
Suscribirse a:
Entradas (Atom)