Results 1 to 5 of 5

Thread: Quick way to add and install from a PPA

  1. #1
    Join Date
    Oct 2010
    Location
    Sweden
    Beans
    672
    Distro
    Ubuntu 14.04 Trusty Tahr

    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 -----------
    GUI we don't need no stinking GUI: A collection of Bash scripts
    Mutt (email), cmus (music),Google Calendar and Google Tasks cli

  2. #2
    Join Date
    Nov 2010
    Location
    /Earth/Asia/India
    Beans
    218
    Distro
    Ubuntu 12.04 Precise Pangolin

    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
    Join Date
    Sep 2012
    Location
    Gnome12o4/LXQt14o4
    Beans
    Hidden!

    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
    Sweden
    Beans
    672
    Distro
    Ubuntu 14.04 Trusty Tahr

    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 -----------
    GUI we don't need no stinking GUI: A collection of Bash scripts
    Mutt (email), cmus (music),Google Calendar and Google Tasks cli

  5. #5
    Join Date
    Sep 2012
    Location
    Gnome12o4/LXQt14o4
    Beans
    Hidden!

    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
  •