Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- clear
- echo " "
- echo " "
- echo " ''~'' "
- echo " ( o o ) "
- echo " +------------------.oooO--(_)--Oooo.------------------+ "
- echo " | | "
- echo " | LINUX.. BASH... | "
- echo " | .oooO | "
- echo " | ( ) Oooo. | "
- echo " +---------------------\ (----( )--------------------+ "
- echo " \_) ) / "
- echo " (_/ "
- echo " http://verklighetochdrom.blogspot.se/ "
- echo " "
- echo " hynt@speed-mailer.com "
- echo " "
- the_ppa01="deb http://archive.getdeb.net/ubuntu trusty-getdeb apps"
- the_ppa02="deb http://packages.linuxmint.com rebecca main upstream import"
- the_ppa03="deb http://extra.linuxmint.com rebecca main"
- the_ppa04="deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse"
- the_ppa05="deb http://archive.ubuntu.com/ubuntu trusty-updates main restricted universe multiverse"
- the_ppa06="deb http://security.ubuntu.com/ubuntu/ trusty-security main restricted universe multiverse"
- the_ppa07="deb http://archive.canonical.com/ubuntu/ trusty partner"
- the_ppa08="deb http://ppa.launchpad.net/osmoma/audio-recorder/ubuntu trusty main"
- the_ppa09="deb-src http://ppa.launchpad.net/osmoma/audio-recorder/ubuntu trusty main"
- #the_ppa10="deb http://www.remastersys.com/ubuntu precise main"
- the_ppa11="deb http://ppa.launchpad.net/webupd8team/y-ppa-manager/ubuntu trusty main"
- the_ppa12="deb http://ppa.launchpad.net/linuxonly/modem+manager+gui/ubuntu trusty main"
- the_ppa13="deb-src http://ppa.launchpad.net/linuxonly/modem+manager+gui/ubuntu trusty main"
- the_ppa14="deb http://ppa.launchpad.net/lkjoel/fix404sudo/ubuntu trusty main"
- echo "IF this is a new PPA, adding is Ok!"
- echo "$the_ppa01"
- echo "$the_ppa02"
- echo "$the_ppa03"
- echo "$the_ppa04"
- echo "$the_ppa05"
- echo "$the_ppa06"
- echo "$the_ppa07"
- echo "$the_ppa08"
- echo "$the_ppa09"
- echo "$the_ppa10"
- echo "$the_ppa11"
- if ! grep -q "$the_ppa01" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa01' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa02" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa02' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa03" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa03' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa04" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa04' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa05" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa05' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa06" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa06' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa07" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa07' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa08" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa08' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa09" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa09' >> /etc/apt/sources.list"
- fi
- #if ! grep -q "$the_ppa10" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # # commands to add the ppa ...
- # echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- # sudo sh -c "echo '$the_ppa10' >> /etc/apt/sources.list"
- #fi
- if ! grep -q "$the_ppa11" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa11' >> /etc/apt/sources.list"
- sudo apt-get update
- sudo apt-get install y-ppa-manager
- fi
- if ! grep -q "$the_ppa12" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa12' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa13" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa13' >> /etc/apt/sources.list"
- fi
- if ! grep -q "$the_ppa14" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
- # commands to add the ppa ...
- echo -e "\x1B[01;89m ppa not found, adding: \x1B[0m"
- sudo sh -c "echo '$the_ppa14' >> /etc/apt/sources.list"
- sudo apt-get updates
- sudo apt-get install fix404
- fi
- sudo apt-get update
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement