Eu preciso conectar-me à minha rede universitária, o que é um pouco complicado no RPI. Não consigo encontrar como concluir as etapas de configuração manual descritas em uni site , e o aplicativo que configura a rede automaticamente isnt trabalhando. O script procura pela arquitetura da CPU e a compara com o seguinte: x86 (i386, i686, i486, i586) e x86_64. Embora no caso do rpi, ele retorna um erro, pois o tipo de processador é arw61.
Se você conhece uma maneira de seguir as etapas descritas na configuração manual ou como devo executar o script, entre em contato.
Atm estou usando raspbian-wheezy, embora eu não me importe de mudar se isso me deixa online.
A seguir, o script de configurações:
#!/bin/sh
download_x86()
{
wget --output-document="/tmp/XpressConnect-x86.tar.bz2" http://autoconnect.york.ac.uk//tools/XpressConnect-x86.tar.bz2
}
download_x64()
{
wget --output-document="/tmp/XpressConnect-x64.tar.bz2" http://autoconnect.york.ac.uk//tools/XpressConnect-x64.tar.bz2
}
export HW_TYPE='uname -m'
if [ "$HW_TYPE" = "i686" ] || [ "$HW_TYPE" = "i386" ] || [ "$HW_TYPE" = "i486" ] || [ "$HW_TYPE" = "i586" ]
then
if [ -f "cabs/XpressConnect-x86.tar.bz2" ]
then
echo "Running x86 version..."
export MY_DIR="'pwd'"
cd /tmp
tar xvjf "$MY_DIR/cabs/XpressConnect-x86.tar.bz2"
"./XpressConnect-x86"
else
if [ -f "/tmp/cabs/XpressConnect-x86.tar.bz2" ]
then
echo "Running x86 version from /tmp..."
cd /tmp
tar xvjf "/tmp/cabs/XpressConnect-x86.tar.bz2"
rm -f "/tmp/cabs/XpressConnect-x86.tar.bz2"
"./XpressConnect-x86"
else
echo "Will download x86 version..."
download_x86
if [ "0" = "$?" ]
then
cd /tmp
tar xvjf "XpressConnect-x86.tar.bz2"
"./XpressConnect-x86"
else
echo "Unable to download the x86 version. Please check your network connection" > /tmp/ubrun
echo "and verify it is working properly!" >> /tmp/ubrun
echo "(URL : http://autoconnect.york.ac.uk//tools/XpressConnect-x86.tar.bz2)" >> /tmp/ubrun
echo "" >> /tmp/ubrun
uname -a >> /tmp/ubrun
xmessage -file /tmp/ubrun
rm /tmp/ubrun
fi
fi
fi
else
if [ "$HW_TYPE" = "x86_64" ]
then
if [ -f "cabs/XpressConnect-x64.tar.bz2" ]
then
echo "Running x64 version..."
export MY_DIR="'pwd'"
cd /tmp
tar xvjf "$MY_DIR/cabs/XpressConnect-x64.tar.bz2"
"./XpressConnect-x64"
else
if [ -f "/tmp/cabs/XpressConnect-x64.tar.bz2" ]
then
echo "Running x64 version from /tmp..."
cd /tmp
tar xvjf "/tmp/cabs/XpressConnect-x64.tar.bz2"
rm -f "/tmp/cabs/XpressConnect-x64.tar.bz2"
"./XpressConnect-x64"
else
echo "Will download x64 version..."
download_x64
if [ "0" = "$?" ];
then
cd /tmp
tar xvjf "XpressConnect-x64.tar.bz2"
"/tmp/XpressConnect-x64"
else
echo "Unable to download the x64 version. Please check your network connection" > /tmp/ubrun
echo "and verify it is working properly!" >> /tmp/ubrun
echo "(URL : http://autoconnect.york.ac.uk//tools/XpressConnect-x64.tar.bz2)" >> /tmp/ubrun
echo "" >> /tmp/ubrun
uname -a >> /tmp/ubrun
xmessage -file /tmp/ubrun
rm /tmp/ubrun
fi
fi
fi
else
echo "Unable to determine the type of processor in this machine. Reported type was " $HW_TYPE "."
xmessage "Unable to determine the type of processor in this machine. Reported type was " $HW_TYPE "."
fi
fi
etc / network / interfaces:
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa- roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
etc / resolv.conf:
domain sns.york.ac.uk
search sns.york.ac.uk
nameserver 144.32.128.110
ifconfig:
eth0 Link ecap: Ethernet HWaddr b8:27:eb:f4:66:77
inet addr:172.17.63.53 bcase: 172.11.62.255 Mask 225.225.224.0
UP BROADCAST RUNNING MULTICAST MTU:1500 METRIC:1
PX PACKETS: 702 ERROS:0 DROPPED 0 OVERRUNNS0 FRAME 0
TX packets 303 errors 0 dropped 0 overruns 0 carrier 0
collisions 0 txquelen:100
RX bytes 152123 TX bytes 341232
Tags ethernet raspberry-pi