Já não uso mais este dispositivo, atualmente estou usando o wifi intel 5100, que por sinal é excelente, mas em consideração aos leitores deste Blog resolvi colocar o dispositivo BlueW2310 u (3dsp) e instalá-lo no meu MUB com o Ubuntu 11.10.
Link do código fonte:
1) - Baixar todas as dependências para instalação do dispositivo
Abra o terminal com as teclas "alt + ctrl + t" e digite: $ sudo apt-get install git
2)
- Baixe o código fonte do dispositivo do fabricante, no site
https://github.com/reyiyo/3dsp/. O código foi alterado por Sergio Orbe
Ryiyo (https://github.com/reyiyo) , Infelizmente os Chinas não
conseguiram resolver o problema de codificação dos módulos do
dispositivo, drive do site do fabricante ao ser executado dá um erro de
codificação no código fonte de instalação do dispositivo. Execute no
terminal os comandos a seguir:
$ sudo ln -sf /usr/lib/x86_64-linux-gnu/libnotify.so.4.0.0 /usr/lib/x86_64-linux-gnu/libnotify.so.1
$ git clone https://github.com/reyiyo/3dsp.git
$ git clone https://github.com/reyiyo/3dsp.git
$ cd 3dsp
$ sudo bash Install_3DSPUSB.sh
$ sudo uwb && 3dsp-wifi-radar
$ sudo uwb && 3dsp-wifi-radar
3) - Para quem não gosta do Unity, Ubuntu 11.10 - gnome clássico
$ sudo apt-get install gnome-session-fallback
a) Encerrar a sessão:
b) No sessão clicar no ícone direito (parecendo uma catraca), escolha Gnome Classic (No effects)
4) - Uwb e 3dsp-wifi-radar iniciando automaticamente.
a) Abra um terminal com o comando alt + ctrl + T e digite o seguinte comando:
$gedit /etc/init.d/3dsp-wifi-radar.sh
#! /bin/sh
#!/bin/sh
#
# Start/Stop the WiFi-Radar daemon
#
# get the wifi interface from rc.inet1.conf if it is set
. /etc/network/interfaces
INTERFACE="${IFNAME[4]}"
PIDFILE=/var/run/wifi.pid
start() {
# use the forced interface found in rc.inet1.conf or guess it
[ ! "$INTERFACE" ] && INTERFACE="$(iwconfig 2>/dev/null | grep ESSID | head -n1 | cut -d " " -f 1)"
sed -i "s/^[ \t]*interface[ \t]*=[ \t]*.*/interface = $INTERFACE/" /etc/wifi-radar/wifi-radar.conf
if [ -e "${PIDFILE}" ]; then
echo "Found existing ${PIDFILE}! Stopping first before starting"
stop
fi
echo "Starting WiFi-Radar: "
/usr/sbin/3dsp-wifi-radar --daemon 1> /dev/null 2> /dev/null &
ps -e | grep wifi-radar | cut -d" " -f2 > ${PIDFILE}
}
stop() {
echo "Stopping WiFi-Radar: "
if [ -e "${PIDFILE}" ]; then
kill $(cat ${PIDFILE}) 1> /dev/null 2> /dev/null
rm -f ${PIDFILE}
fi
killall wifi-radar 1> /dev/null 2> /dev/null
}
restart() {
stop
sleep 2
start
}
status() {
if [ -e ${PIDFILE} ]; then
echo "The WiFi-Radar daemon is running."
else
echo "The WiFi-Radar daemon is not running"
fi
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
;;
esac
- Dê o seguinte comando no terminal:
b) Iniciando o dispositivo BlueW2310u (3dsp-wifi-radar)
Copie o script de inicialização do 3dsp-wifi-radar logo abaixo, salve e feche o gedit:
#! /bin/sh
#!/bin/sh
#
# Start/Stop the WiFi-Radar daemon
#
# get the wifi interface from rc.inet1.conf if it is set
. /etc/network/interfaces
INTERFACE="${IFNAME[4]}"
PIDFILE=/var/run/wifi.pid
start() {
# use the forced interface found in rc.inet1.conf or guess it
[ ! "$INTERFACE" ] && INTERFACE="$(iwconfig 2>/dev/null | grep ESSID | head -n1 | cut -d " " -f 1)"
sed -i "s/^[ \t]*interface[ \t]*=[ \t]*.*/interface = $INTERFACE/" /etc/wifi-radar/wifi-radar.conf
if [ -e "${PIDFILE}" ]; then
echo "Found existing ${PIDFILE}! Stopping first before starting"
stop
fi
echo "Starting WiFi-Radar: "
/usr/sbin/3dsp-wifi-radar --daemon 1> /dev/null 2> /dev/null &
ps -e | grep wifi-radar | cut -d" " -f2 > ${PIDFILE}
}
stop() {
echo "Stopping WiFi-Radar: "
if [ -e "${PIDFILE}" ]; then
kill $(cat ${PIDFILE}) 1> /dev/null 2> /dev/null
rm -f ${PIDFILE}
fi
killall wifi-radar 1> /dev/null 2> /dev/null
}
restart() {
stop
sleep 2
start
}
status() {
if [ -e ${PIDFILE} ]; then
echo "The WiFi-Radar daemon is running."
else
echo "The WiFi-Radar daemon is not running"
fi
}
# See how we were called.
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
restart
;;
*)
echo $"Usage: $0 {start|stop|restart}"
;;
esac
- Dê o seguinte comando no terminal:
$cd /etc/init.d/
$update-rc.d 3dsp-wifi-radar.sh defaults
- ainda no terminal:
$gedit /etc/sudoers
- copie e cole os comandos abaixo, logo após salve e feche o gedit:
%users ALL=NOPASSWD: /usr/sbin/3dsp-wifi-radar
%users ALL=NOPASSWD:/usr/bin/uwb
Se o 3dsp-wifi-radar pedir senha ao iniciar, troque "%users" pelo seu usuário do sistema.
%users ALL=NOPASSWD:/usr/bin/uwb
Se o 3dsp-wifi-radar pedir senha ao iniciar, troque "%users" pelo seu usuário do sistema.
c) Script de inicialização do uWB:
$gedit /etc/init.d/uwb.sh
- Copie o script e cole dentro do arquivo, depois salve e feche o gedit:
#! /bin/sh
/usr/bin/uwb
- Salve e Feche o Gedite e execute os comandos em um terminal:
$cd /etc/init.d/
Pronto! reinicie o Note e faça o teste, para conectar clique duas vezes no ícone do wifi-radar ao lado do ícone do som do note.