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
CONNECT-PROXY(1)					      General Commands Manual						  CONNECT-PROXY(1)

NAME
connect-proxy -- connect over SOCKS4/5 proxy SYNOPSIS
connect-proxy [-dnhst45] [-R resolve ] [-p local-port ] [-w secs ] [-H [user@]proxy-server[:port]] ] [-S [user@]socks-server[:port]] ] [-T proxy-server[:port] ] [-c telnet-proxy-command ] [host] [port] DESCRIPTION
connect-proxy open connection over SOCKS4/5 proxies Please, note that any HTTP-Proxy tunnel won't work with content-inspection firewall (unless using SSL). OPTIONS
-H specifies a hostname and port number of the http proxy server to relay. If port is omitted, 80 is used. You can specify this value in the environment variable HTTP_PROXY and pass the -h option to use it. -S specifies the hostname and port number of the SOCKS server to relay. Like -H, port number can be omitted and the default is 1080. You can also specify this value pair in the environment variable SOCKS5_SERVER and give the -s option to use it. -4 specifies SOCKS relaying and indicates protocol version to use. It is valid only when used with '-s' or '-S'. Default is '-5' (protocol version 5) -R method to resolve the hostname. Three keywords ("local", "remote", "both") or dot-notation IP address are acceptable. The key- word "both" means, "Try local first, then remote". If a dot-notation IP address is specified, use this host as nameserver. The default is "remote" for SOCKS5 or "local" for others. On SOCKS4 protocol, remote resolving method ("remote" and "both") requires protocol 4a supported server. -p will forward a local TCP port instead of using the standard input and output. -P same to '-p' except keep remote session. The program repeats waiting the port with holding remote session without disconnecting. To connect the remote session, send EOF to stdin or kill the program. -w timeout in seconds for making connection with TARGET host. -d used for debug. If you fail to connect, use this and check request to and response from server. USAGE
To use proxy, this example is for SOCKS5 connection to connect to "host" at port 25 via SOCKS5 server on "firewall" host. connect-proxy -S firewall host 25 SOCKS5_SERVER=firewall; export SOCKS5_SERVER; connect-proxy -s host 25 For a HTTP-PROXY connection: connect-proxy -H proxy-server:8080 host 25 HTTP_PROXY=proxy-server:8080; export HTTP_PROXY; connect-proxy -h host 25 To forward a local port, for example to use ssh: connect-proxy -p 5550 -H proxy-server:8080 host 22 ssh -l user To use it along ssh transparently: # file://~/.ssh/config # not using proxy on lan Host 192.* ProxyCommand connect-proxy %h %p # mandatory to access the internet Host * ProxyCommand connect-proxy -H proxyserver:8080 %h %p Or for all users ( /etc/ssh/ssh_config ) ENVIRONMENT
SOCKS5_USER, SOCKS5_PASSWORD, HTTP_PROXY_USER, HTTP_PROXY_PASSWORD, CONNECT_PASSWORD, LOGNAME, USER SEE ALSO
ssh (1). WWW
http://www.meadowy.org/~gotoh/projects/connect AUTHOR
This manual page was written by Philippe Coval rzr@gna.org for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation. On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL. CONNECT-PROXY(1)
All times are GMT -4. The time now is 06:23 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy