Skip to content

Instantly share code, notes, and snippets.

@laertis
laertis / jdk_download.sh
Last active June 29, 2017 11:19 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
# Shell script to download Oracle JDK / JRE / Java binaries from Oracle website
# using terminal / command / shell prompt using wget or curl.
# You can download all the binaries one-shot by just giving the BASE_URL.
# Script might be useful if you need Oracle JDK on Amazon EC2 env.
# Script is updated for every JDK release.
## Features:-
# 1. Resumes a broken / interrupted [previous] download, if any.
# 2. Renames the file to a proper name with including platform info.
#!/bin/bash
# Script for installing tmux on systems where you don't have root access.
# tmux will be installed in $HOME/local/bin.
# It's assumed that wget and a C/C++ compiler are installed.
# exit on error
set -e
TMUX_VERSION=1.8