Skip to content

Instantly share code, notes, and snippets.

@dapize
Created October 20, 2015 14:53
Show Gist options
  • Save dapize/db4e97a3ed5c4859560d to your computer and use it in GitHub Desktop.
Save dapize/db4e97a3ed5c4859560d to your computer and use it in GitHub Desktop.
Script para instalar Java desde terminal.
#!/bin/bash
# Script de instalacion de Java por Daniel P Z
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list.d/webupd8team-java.list
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu precise main" >> /etc/apt/sources.list.d/webupd8team-java.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886
apt-get -y install aptitude
aptitude -y update
aptitude -y install oracle-java7-installer
echo "ya esta, ya se instalo Java"
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment