Repository URL to install this package:
|
Version:
0.15 ▾
|
#!/usr/bin/env bash
AMD64(){
if ping -q -c 1 -W 1 8.8.8.8 >/dev/null; then
apt-get update
apt-get install -y liblua5.1
cd /tmp
rm -rf V-REP_PRO_EDU
mkdir V-REP_PRO_EDU
cd V-REP_PRO_EDU
wget -c https://sourceforge.net/projects/academix/files/PRO2/V-REP_PRO_EDU_V3_3_2_64_Linux.tar.gz
tar -zxvf V-REP_PRO_EDU_V3_3_2_64_Linux.tar.gz
cp -R V-REP_PRO_EDU_V3_3_2_64_Linux /opt/V-REP_PRO
cp -R /usr/share/EDU/V_REP_PRO_EDU/init /opt/V-REP_PRO/init
u="$(logname)"
chmod +x /opt/V-REP_PRO/init
chmod 755 /opt/V-REP_PRO/init
chown -hR $u /opt/V-REP_PRO
chown -hR $u /opt/V-REP_PRO/init
cd /tmp
rm -rf /tmp/V-REP_PRO_EDU
cp -R /usr/share/EDU/V_REP_PRO_EDU/V_REP_PRO_EDU.desktop /home/$u/.local/share/applications/V_REP_PRO_EDU.desktop
chmod +x /home/$u/.local/share/applications/V_REP_PRO_EDU.desktop
chmod 755 /opt/V-REP_PRO/vrepAddOnScript-addOnScriptDemo.lua
cd /tmp
rm -rf V-REP_PRO_EDU
else
python /usr/share/EDU/insucces_ping.py;
sleep 2;
fi
}
I686(){
if ping -q -c 1 -W 1 8.8.8.8 >/dev/null; then
apt-get update
apt-get install -y liblua5.1
cd /tmp
rm -rf V-REP_PRO_EDU
mkdir V-REP_PRO_EDU
cd V-REP_PRO_EDU
wget -c https://sourceforge.net/projects/academix/files/PRO2/V-REP_PRO_EDU_V3_3_2_Linux.tar.gz
tar -zxvf V-REP_PRO_EDU_V3_3_2_Linux.tar.gz
cp -R V-REP_PRO_EDU_V3_3_2_Linux /opt/V-REP_PRO
cp -R /usr/share/EDU/V_REP_PRO_EDU/init /opt/V-REP_PRO/init
u="$(logname)"
chmod +x /opt/V-REP_PRO/init
chmod 755 /opt/V-REP_PRO/init
chown -hR $u /opt/V-REP_PRO
chown -hR $u /opt/V-REP_PRO/init
cd /tmp
rm -rf /tmp/V-REP_PRO_EDU
cp -R /usr/share/EDU/V_REP_PRO_EDU/V_REP_PRO_EDU.desktop /home/$u/.local/share/applications/V_REP_PRO_EDU.desktop
chmod +x /home/$u/.local/share/applications/V_REP_PRO_EDU.desktop
cd /tmp
rm -rf V-REP_PRO_EDU
else
python /usr/share/EDU/insucces_ping.py;
sleep 2;
fi
}
archs=`uname -m`
case "$archs" in
i686) archs=I686 ;;
x86_64) archs=AMD64 ;;
esac
for arch in $archs; do
$archs
done
exit