Skip to content

Instantly share code, notes, and snippets.

@theodorosploumis
Last active June 16, 2022 11:15

Revisions

  1. theodorosploumis revised this gist Apr 10, 2020. 1 changed file with 6 additions and 1 deletion.
    7 changes: 6 additions & 1 deletion Install_Phpstorm.sh
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,14 @@
    #!/bin/bash -e
    # IMPORTANT. My phpstom installation exists on /opt/phpstorm.
    # IMPORTANT. Run with sudo!
    # Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program
    # For stable releases try: https://data.services.jetbrains.com/products/download?code=PS&platform=linux

    if [ "$(whoami)" != "root" ]
    then
    echo "Sorry, you are not root."
    exit 1
    fi

    echo -n "Please enter the PhpStorm download url (eg http://download.jetbrains.com/webide/PhpStorm-EAP-141.690.tar.gz): "
    read url

  2. theodorosploumis revised this gist Jan 24, 2018. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion Install_Phpstorm.sh
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@
    # IMPORTANT. My phpstom installation exists on /opt/phpstorm.
    # IMPORTANT. Run with sudo!
    # Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program
    # For stable releases try: https://data.services.jetbrains.com/products/download?code=PS&platform=linux

    echo -n "Please enter the PhpStorm download url (eg http://download.jetbrains.com/webide/PhpStorm-EAP-141.690.tar.gz): "
    read url
    @@ -11,7 +12,7 @@ echo "Downloading PhpStorm to ~/Desktop"
    cd ~/Desktop
    wget ${url} --no-check-certificate
    tar -xzf ~/Desktop/PhpStorm*
    rm ~/Desktop/PhpStorm*
    rm ~/Desktop/PhpStorm*.tar.gz

    # Remove old Phpstorm
    echo "Removing old PhpStorm"
  3. theodorosploumis revised this gist Apr 22, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions Install_Phpstorm.sh
    Original file line number Diff line number Diff line change
    @@ -8,6 +8,7 @@ read url

    # Download file from url
    echo "Downloading PhpStorm to ~/Desktop"
    cd ~/Desktop
    wget ${url} --no-check-certificate
    tar -xzf ~/Desktop/PhpStorm*
    rm ~/Desktop/PhpStorm*
  4. theodorosploumis revised this gist Apr 17, 2015. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions Install_Phpstorm.sh
    Original file line number Diff line number Diff line change
    @@ -3,22 +3,22 @@
    # IMPORTANT. Run with sudo!
    # Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program

    echo -n "Please enter the Phpstorm download url (eg http://download.jetbrains.com/webide/PhpStorm-EAP-141.690.tar.gz): "
    echo -n "Please enter the PhpStorm download url (eg http://download.jetbrains.com/webide/PhpStorm-EAP-141.690.tar.gz): "
    read url

    # Download file from url
    echo "Downloading Phpstorm to ~/Desktop"
    echo "Downloading PhpStorm to ~/Desktop"
    wget ${url} --no-check-certificate
    tar -xzf ~/Desktop/Phpstorm*
    rm ~/Desktop/Phpstorm*
    tar -xzf ~/Desktop/PhpStorm*
    rm ~/Desktop/PhpStorm*

    # Remove old Phpstorm
    echo "Removing old Phpstorm"
    sudo rm -rf /opt/phpstorm
    echo "Removing old PhpStorm"
    rm -rf /opt/phpstorm

    # Copy new Phpstorm
    echo "Copying new Phpstorm"
    sudo mv ~/Desktop/Phpstorm* /opt/phpstorm
    echo "Copying new PhpStorm"
    mv ~/Desktop/PhpStorm* /opt/phpstorm

    # Finish
    echo "New Phpstorm has been installed!"
    echo "New PhpStorm has been installed!"
  5. theodorosploumis revised this gist Apr 17, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Install_Phpstorm.sh
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ echo "Removing old Phpstorm"
    sudo rm -rf /opt/phpstorm

    # Copy new Phpstorm
    echo "Copying new Phpstorm"Removing
    echo "Copying new Phpstorm"
    sudo mv ~/Desktop/Phpstorm* /opt/phpstorm

    # Finish
  6. theodorosploumis revised this gist Apr 17, 2015. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions Install_Phpstorm.sh
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,5 @@
    #!/bin/bash -e
    # IMPORTANT. My phpstom installation exists on /opt/phpstorm.
    # IMPORTANT. You must have wget and zip installed.
    # IMPORTANT. Run with sudo!
    # Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program

    @@ -10,7 +9,7 @@ read url
    # Download file from url
    echo "Downloading Phpstorm to ~/Desktop"
    wget ${url} --no-check-certificate
    unzip ~/Desktop/Phpstorm*
    tar -xzf ~/Desktop/Phpstorm*
    rm ~/Desktop/Phpstorm*

    # Remove old Phpstorm
  7. theodorosploumis created this gist Apr 17, 2015.
    25 changes: 25 additions & 0 deletions Install_Phpstorm.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    #!/bin/bash -e
    # IMPORTANT. My phpstom installation exists on /opt/phpstorm.
    # IMPORTANT. You must have wget and zip installed.
    # IMPORTANT. Run with sudo!
    # Early Access program: https://confluence.jetbrains.com/display/PhpStorm/PhpStorm+Early+Access+Program

    echo -n "Please enter the Phpstorm download url (eg http://download.jetbrains.com/webide/PhpStorm-EAP-141.690.tar.gz): "
    read url

    # Download file from url
    echo "Downloading Phpstorm to ~/Desktop"
    wget ${url} --no-check-certificate
    unzip ~/Desktop/Phpstorm*
    rm ~/Desktop/Phpstorm*

    # Remove old Phpstorm
    echo "Removing old Phpstorm"
    sudo rm -rf /opt/phpstorm

    # Copy new Phpstorm
    echo "Copying new Phpstorm"Removing
    sudo mv ~/Desktop/Phpstorm* /opt/phpstorm

    # Finish
    echo "New Phpstorm has been installed!"