#!/bin/bash if [ "$1" == "-n" ]; then # install (new) Skype from repository sudo sed -i "s/# \(deb .* partner\)/\1/" /etc/apt/sources.list sudo apt-get update # install skype sudo apt-get install -y skype else # download (old) Skype 2.1 sudo apt-get install -y lib32gcc1 lib32stdc++6 if [ "$(uname -m)" == "x86_64" ]; then # 64 bit URL=http://archive.canonical.com/pool/partner/s/skype/skype_2.1.0.81-1ubuntu5_amd64.deb else # 32 bit URL=http://archive.canonical.com/pool/partner/s/skype/skype_2.1.0.81-1ubuntu5_i386.deb fi wget ${URL} -P /tmp # install sudo dpkg -i /tmp/skype_2.1.0.81-1ubuntu5_*.deb fi # disable "contacts comes online" notification sed -i 's|1|0|g' /home/*/.Skype/*/config.xml