domingo, 24 de outubro de 2010

VirtualBox: virtualbox stops working for non root user after glibc updates

cd /usr/src
wget http://www.tux.org/pub/x/ftp.hungry.com/chrpath/chrpath-0.13.tar.gz
tar -zxvf chrpath-0.13.tar.gz
cd chrpath-0.13
./configure && make
cd /opt
ln -s VirtualBox V
cd VirtualBox/
/usr/src/chrpath-0.13/chrpath -r /opt/V *.so


Referência: http://dev.slackverse.org/vbox_glibc_fix.txt

sexta-feira, 22 de outubro de 2010

Windows: Como criar um softAP

Abrimos a linha de comandos (cmd.exe) com privilégios de Administrador e configuramos a interface “hosted” através do seguinte comando:

netsh wlan set hostednetwork mode=allow ssid=MEUSSID key=MINHAKEY

Este comando cria uma rede com autenticação do tipo WPA2-PSK.

Activar o HotSpot:

netsh wlan start hostednetwork

Para verificar as configurações pode executar o comando:

netsh wlan show hostednetwork

sexta-feira, 15 de outubro de 2010

Shell: Check if variable is a number


echo $X | egrep '^[0-9]+$' >/dev/null 2>&1
if [ "$?" -eq "0" ]; then
echo "Postive integer here...."
else
echo "Something else...."
fi

Drunk Penguins

Drunk Penguins
Drunk Penguins