我需要连接到我的大学网络,这在 RPI 上有点棘手。我找不到如何完成描述的手动设置步骤 统一站点,并且自动配置网络的应用程序无法正常工作。该脚本查找 CPU 架构并将其与以下架构进行比较:x86(i386、i686、i486、i586)和 x86_64。尽管在 rpi 情况下,它返回错误,因为处理器类型是 arw61。
如果您知道如何按照手动设置中描述的步骤进行操作,或者我应该如何执行脚本,请告诉我。
目前我正在使用 raspbian-wheezy,但如果能让我上网,我也不介意切换。
以下是设置脚本:
#!/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
等/网络/接口:
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