~spacexplorer/+junk/myub

« back to all changes in this revision

Viewing changes to bin/21_Java

  • Committer: Kim Allamandola
  • Date: 2012-08-19 16:20:46 UTC
  • Revision ID: spacexplorer@gmail.com-20120819162046-h1aiypbmeq9p82fh
Some holiday fixes:
 * a quick cleanup
 * some extra addition
   - Bind9+gogoc as DNS local cache server dual stack (ipv4 and ipv6)
   - sflphone after a while is now back in the official repos
   - PySolFC a nice card games collection, far better then Aisleriot

This will probably be one of the last update of this branch of MyUb;
for Ubuntu 13.04 I'll rewrite it from scratch in a more comfortable
form :-)

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
TMPDIR="/tmp"   # dir in witch you put manually downloaded {JDK,JRE}7
18
18
 
19
 
### myUb log helper, can be removed for standalone use
20
 
if [[ $1 =~ "myUb\.[0-9]+\.log" ]]; then 
21
 
    logFile=$1
22
 
    function print() { echo "    $1" >>| /dev/stdout >>| $logFile }
23
 
fi
 
19
# misc utils/logs for myUb
 
20
. ../dist/script/myubLib
24
21
 
25
22
### debug helper
26
23
print "### Java setup start ###############################################"
27
 
print " * Install Java7 JDK = $INSTALL_JDK7"
28
 
print " * Install Java7 JRE = $INSTALL_JRE7"
29
 
print " * Install Java6 JRE = $INSTALL_JRE6"
 
24
print "  * Install Java7 JDK = $INSTALL_JDK7"
 
25
print "  * Install Java7 JRE = $INSTALL_JRE7"
 
26
print "  * Install Java6 JRE = $INSTALL_JRE6"
30
27
 
31
28
### SUN/Oracle Java6 jre via PPA #############################################
32
29
function install_java6_jre()
33
30
{
34
 
    print "Java6 JRE is not supported on Ubuntu 12.04 and newer"
 
31
    print "  Java6 JRE is not supported on Ubuntu 12.04 and newer"
35
32
    return 1
36
33
    
37
34
    #add-apt-repository -y ppa:ferramroberto/java
49
46
    add-apt-repository -y ppa:webupd8team/java
50
47
    apt-get update
51
48
    apt-get install -y oracle-java7-installer
 
49
    print "  Oracle Java7 JDK install done, exit $?"
52
50
 
53
51
    # java plugin support for mozilla/FF
54
52
    if [[ `uname -m` == "x86_64" ]]; then
65
63
    JRE_x86_tarball="jre-7-linux-i586.tar.gz"
66
64
    JRE_dir_name="jre1.7.0"
67
65
 
68
 
    print "   Installing Java7 JRE..."
 
66
    print "  Installing Java7 JRE..."
69
67
 
70
68
    if [[ `uname -m` == "x86_64" ]]; then
71
69
        if ! test -f ${TMPDIR}/$JRE_x64_tarball; then
154
152
#update-java-alternatives -s $SET_DEFAULT_JRE_OR_JDK_TO
155
153
#print "   Java alternatives to ${SET_DEFAULT_JRE_OR_JDK_TO}, exit $?"
156
154
print "### Java setup end #################################################"
 
155
 
 
156
# just to save disk root space, function provided by myubLib
 
157
debClean
 
158