Results 1 to 5 of 5

Thread: Quick way to add and install from a PPA

  1. #1
    Join Date
    Oct 2010
    Location
    The United States
    Beans
    843
    Distro
    Ubuntu

    Quick way to add and install from a PPA

    OK 99% of people here absolutely do not need this script.
    Admittedly, I am one of the few who cannot seem to remember the code to add a ppa.
    Every time I need to click the little tab about installing software just be be reminded about what to put before the name of the ppa.

    So I came up with a script to make my life easier. I made a quicklist to launch it and have it in that side dock like thing Unity uses.

    Code:
    #!/bin/bash
    # by GrouchyGaijin
    echo "This script is for adding a ppa"
    var1="sudo add-apt-repository"
    read -p "Enter the PPA name: " var2
    var3="$var1 $var2"
    echo $var3
    sudo $var3
    sudo apt-get update
    read -p "Enter the name of the software to install. " var4
    sudo apt-get install $var4
    Thank you,
    GG -----------

  2. #2
    Join Date
    Nov 2010
    Location
    /Earth/Asia/India
    Beans
    218
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: Quick way to add and install from a PPA

    Good
    Kids, you tried your best and you failed miserably. The lesson is, never try.
    -Homer Simpson

  3. #3
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: Quick way to add and install from a PPA

    I tried making a launcher on my gnome-classic panel. The terminal will only flash on my screen for a split second then disappear.

  4. #4
    Join Date
    Oct 2010
    Location
    The United States
    Beans
    843
    Distro
    Ubuntu

    Re: Quick way to add and install from a PPA

    Quote Originally Posted by ibjsb4 View Post
    I tried making a launcher on my gnome-classic panel. The terminal will only flash on my screen for a split second then disappear.
    Try adding this at the end of the script.
    Code:
    echo "Press Enter to quit"
    
    
    read n
    case $n enter 
    exit
    esac
    Thank you,
    GG -----------

  5. #5
    ibjsb4 is offline Ubuntu addict and loving it
    Join Date
    Sep 2012
    Beans
    4,987

    Re: Quick way to add and install from a PPA

    Thanks

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •