Sponsored Content
Special Forums IP Networking Proxy Server Installation JDK in the LXC container - Host behind Proxy Post 302929877 by chercheur111 on Sunday 28th of December 2014 11:07:12 AM
Old 12-28-2014
Installation JDK in the LXC container - Host behind Proxy

Hello,

The host on which i work is a remote machine behind a proxy.
I have installed the jdk like that and it works well: (I access the remote machine via ssh)

Code:
   http_proxy=http://proxy:3128 && https_proxy=http://proxy:3128
     sudo apt-get install openjdk-7-jre-headless
     :~# java
            Usage: java [-options] class [args...]
           (to execute a class)
            or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
           where options include:
           -d32      use a 32-bit data model if available
           -d64      use a 64-bit data model if available
           -server      to select the "server" VM

I'd like to install the JDK inside the container. I proceeded as follows:

Code:
ubuntu@worker:~$ http_proxy=http://proxy:3128 &&              
      https_proxy=http://proxy:3128
      ubuntu@worker:~$ sudo apt-get install openjdk-7-jre-headless
                       Reading package lists... Done
                       Building dependency tree      
                       Reading state information... Done
                       The following extra packages will be installed:
                       ca-certificates ca-certificates-java fontconfig-config fonts-
                       dejavu-core
                       java-common libasyncns0 libavahi-client3 libavahi-common-data
                       libavahi-common3 libcups2 libflac8 libfontconfig1 libfreetype6 
                       libglib2.0-0
                       libglib2.0-data libjpeg-turbo8 libjpeg8 liblcms2-2 libnspr4 
                       libnss3
                       libnss3-nssdb libogg0 libpcsclite1 libpulse0 libsndfile1  
                       libvorbis0a
                       libvorbisenc2 libxau6 libxcb1 libxdmcp6 libxml2 openssl sgml-base
                       shared-mime-info tzdata-java xml-core
                       ............................
                      Err Index of /ubuntu trusty/main java-common all 
                      0.51
                      Cannot initiate the connection to archive.ubuntu.com:80  
                     (2001:67c:13......). - connect (101: Network is unreachable)  
                      [IP: 2001:67c:13....... 80]

Have you an idea please ?

Thanks a lot.
Best Regards.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

JDK Installation

I'm trying to install JDK (Java Development tools) and i get this: WARNING: The <SUNWj6dev> package "JDK 6.0 Dev. Tools (1.6.0)" is a prerequisite package and should be installed. WARNING: The <SUNWj6rtx> package "JDK 6.0 64-bit Runtime Env. (1.6.0)" is a prerequisite package and should be... (0 Replies)
Discussion started by: idan_cn
0 Replies

2. IP Networking

Software/tool to route an IP packet to proxy server and capture the Proxy reply as an

Hi, I am involved in a project on Debian. One of my requirement is to route an IP packet in my application to a proxy server and receive the reply from the proxy server as an IP packet. My application handles data at the IP frame level. My application creates an IP packet(with all the necessary... (0 Replies)
Discussion started by: Rajesh_BK
0 Replies

3. Red Hat

jdk installation question

hi, i just "yum install jdk*.i386" and installation was complete without any error. however, i tried to #javac helloworld " and javac is not found in the $PATH. i tried to locate it and didn't find it. would anyone shed some light on where the "yum install" installed my jdk to? where can i find... (0 Replies)
Discussion started by: k2k
0 Replies

4. Solaris

Solaris SPARC 10 64Bit -JDK Installation 1.6.05

In Sun Solaris 10, not able to create the key. JDK 1.6 Installed & PATH & JAVA_HOME both are referred to jdk 1.6. It is showing the belwo error Error: wrap() failed java.security.InvalidKeyException: wrap() failed at sun.security.pkcs11.P11RSACipher.engineWrap(P11RSACipher.java:395) at... (10 Replies)
Discussion started by: saktiviji
10 Replies

5. Solaris

jdk installation - update environment?

Hi, i have installed jdk 1.6 successfully but when i issue command java -version it shows me old version how to handle it. kindly help (4 Replies)
Discussion started by: malikshahid85
4 Replies

6. Red Hat

Apache,php,mysql, and jdk 1.6 update 20 installation on RHEL 5.5

I want to install Apache (version 2.2.X), php (version 5.3.X),mysql (version 5.5.X) on RHEL 5.5. Guide re. site address for download all rpm. X = latest version. Thanks in advance. (1 Reply)
Discussion started by: vasdaax
1 Replies

7. Ubuntu

Ping a container LXC

Hello, Please, I try to do ping 10.0.3.8 (ip of LXC container) from VMB but it didn't work ! Have you an idea please ? Here is an explanation of what I want do: (red arrow) http://imgur.com/2IzJvXO imgur: the simple image sharer Thanks a lot. Best Regards. (0 Replies)
Discussion started by: chercheur111
0 Replies

8. IP Networking

SSH to remote host using SOCK5 proxy

I am trying to connect to a remote host C from my node host A. HostA <====> HostB <====> HostC A tunnel has already been formed using SOCKS5 between HostA and HostC. Now I want to SSH from A to C. The SOCKS5 IP us 142.133.132.161 and port 1082. The command I am using is : ssh -L... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies

9. IP Networking

iptables setup for two different lxc containers inside the same host

Hello out there. A month ago I started to deal with this problem and until now I couldn't cope with it. The quick story is that I'm trying to setup two different lxc containers inside the same host machine running debian linux. One of the containers is running a VPN server, while the second one is... (0 Replies)
Discussion started by: netpumber
0 Replies

10. Solaris

JDK installation. An awesome challenge.

Hello guys, I've tried to install more recent version of JDK (1.8.0_161), SVR4 package. Everything went succesfully except one thing. The OS persistenly refuses to recognize newest java version. :( There should be 1.8.0_161 instead. I've done everything that is described for SVR4 packages,... (2 Replies)
Discussion started by: wolfgang
2 Replies
SUNFLOW(1)						       SUNFLOW DOCUMENTATION							SUNFLOW(1)

NAME
sunflow - rendering system for photo-realistic image synthesis SYNOPSIS
sunflow [option(s)] file(s) DESCRIPTION
sunflow is an open source rendering system for photo-realistic image synthesis. It is written in Java and built around a flexible ray tracing core and an extensible object-oriented design. It was created as a framework for experimenting with global illumination algorithms and new surface shading models. GENERAL OPTIONS
A summary of the options can be obtained by using one of the following options: -h, -help Display the list of available commands PERFORMANCES
Sunflow will run considerably faster with the so called server VM (Virtual Machine). This server VM is part of Java, but it's not included in the standard (JRE) installation of Java. The server VM starts up more slowly and uses more memory than the standard VM, but it runs a lot faster in many cases. Sunflow's built-in realtime raytracing benchmark (-rtbench) for example runs more than twice as fast with the server VM (exact speedup depends on your hardware). The easiest way to get the server VM is by installing the Java Development Kit (JDK). On Debian, it is possible to install different JVM at the same time, amongst which: gij-4.2 (main), openjdk-6-jre (main), sun-java5-jre (non-free), sun-java6-jre (non-free). To change the java link from one to another, use (with root privileges): "update-alternatives --config java" A pretty good choice should be openjdk-6-jre. See also the "CONFIGURATION FILES" section. SUGGESTED OPTIONS
As explained above, the following options can be used to obtain a performance gain, but depend on JVM used: -server Use the server virtual machine. The JDK matching the selected JVM has to be installed for this option to actually work, e.g. sun-java5-jdk (non-free). A warning will be displayed otherwise, and this option ignored. -XmxMEM Use a memory upper limit of MEM instead of the default (probably 64M). Example of valid values: 512M, 1G. Those options are best set through the SUNFLOW_JAVA_OPTIONS environment variable, or stored in the configuration files. CONFIGURATION FILES
To allow flexible configuration, the sunflow wrapper sources two configuration files: /etc/sunflowrc and ~/.sunflowrc, in this order. The syntax is simple "export KEY=VALUE". Lines beginning with a sharp sign are ignored. The following options are supported: SUNFLOW_JAVA The java virtual machine to use. It's then possible to have e.g. a system-wide java alternative pointing to /usr/bin/gij-4.2, while sunflow uses a different JVM, e.g. /usr/lib/jvm/java-1.5.0-sun-1.5.0.12/bin/java. If not set (the default), java will be called, meaning the system-wide alternative will be used. SUNFLOW_JAVA_OPTIONS Those are the options to be passed to the java interpreter, see above for examples. SUNFLOW_OPTIONS The list of options to pass to sunflow automatically to avoid repeating them on each invokation of sunflow. Quotation marks are needed if more than one option is specified. If not set (the default), no option is passed to sunflow. SEE ALSO
/usr/share/doc/sunflow/README.Debian AUTHOR
Sunflow was written by Christopher Kulla <ckulla@gmail.com>. This manual page was written by Cyril Brulebois <kibi@debian.org>, for the Debian project (and may be used by others). It is licensed under the same terms as the package itself. 0.07.2.svn396 2011-08-07 SUNFLOW(1)
All times are GMT -4. The time now is 07:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy