Not seeing a Scroll to Top Button? Go to our FAQ page for more info. Personal Notebook: [Linux] Скрипт установки skype в linux

вторник, 22 января 2013 г.

[Linux] Скрипт установки skype в linux

Небольшой баш скрипт для установки skype в линукс убунту.

wget https://dl.dropbox.com/u/60951854/bash/skype.installer.sh
chmod u+x skype.installer.sh
sh skype.installer.sh  




Ну сообственно и сам код.
#!/bin/bash
# Small script to install skepe on linux ubuntu
#
clear
os=$(uname -s) # detecting operating system
arch=$(uname -m) # detecting architecture
distr=`cat /etc/issue` # detecting version of linux
x32= "http://download.skype.com/linux/skype-ubuntu-precise_4.1.0.20-1_i386.deb"
x64= "http://download.skype.com/linux/skype-ubuntu-precise_4.1.0.20-1_amd64.deb"
# Function install wrapper for skype for make skype video and audio call
wrapper(){
    # install wrapper for skype
    sudo add-apt-repository ppa:skype-wrapper/ppa && sudo apt-get update
    sudo apt-get install skype-wrapper
    sudo apt-get install -y libxss1 lib32stdc++6 lib32gcc1
}
# Detecting Operating System...
skypeinstaller(){
    case $os in
        Linux)
            case $distr in
                Ubuntu*)
                    echo
                    echo "Start installing wrapper. Plugin for skype correct work"
                    wrapper # start install wrapper
                    # start install skype
                    if($arch == "x86_64"); then
                        sudo apt-get install libqt4-webkit
                        wget -O /tmp/skype $x64 # 64-bit archeticture
                         sudo dpkg -i /tmp/skype
                    else
                        wget -O /tmp/skype $x32 # 32-bit archeticture
                        sudo dpkg -i /tmp/skype
                    fi
                    sudo apt-get -f install # fix depencies and remove file
                ;;
                *) echo "It's looks like your OS is not ubuntu linux. ABORTED!" exit 1 

            ;;
            esac
        ;;
        *) echo "Support only linux and version ubuntu. ABORTED!" exit 1;;  
    esac
}
skypeinstaller # installing skype
echo
echo "Do you want remove installation files? [Y/N]"
read ans
case $ans in
    Y*|y*)
        rm skype.installer.sh
        rm /tmp/skype
    ;;
esac  
echo "Finish. For more visit: http://jcmaxblog.blogspot.com"

Комментариев нет: