How do I install Python in Linux with no Internet access?

76

The cache solution in Mark Smith's answer is a great idea; I've done that succesfully.

Another solution, having on my machine internet connection and SSH connection to the VM's is: Install a proxy (squid) on my machine that has SSH connection to the firewalled VM's. Declare on the firewalled VM's a local proxy 127.0.0.1:3128 and make an SSH tunnel from that port to my own machine's port.

This way you can install, update, and patch dynamically.

Share:
76

Related videos on Youtube

zoolle
Author by

zoolle

Updated on September 18, 2022

Comments

  • zoolle
    zoolle over 1 year

    I am using the following code for a menu sliding bar. But when I click a href I want to go on page and get ".gs-hamburger" function to sliding up the menu bar after it is going to page.

    <nav class="gs-nav-right" id="gs-nav-right">
                  <i class="icon-menu55 gs-hamburger" id="gs-close-nav-right"></i>
                  <div class="gs-nav-right-content">
                    <ul class='text-center'>
                    <li><a href="#/home">Home</a></li>
                    <li><a href="#/choose">Choose your Image</a></li>
                    <li><a href="#/vote" onClick="GSnavRight();">Gallery</a></li>
                    </ul>
                  </div>
            </nav>
    
      <!-- ========================================================================= -->
    
        <script src="vendors/jquery/jquery-1.11.0.min.js"></script>
        <script>
        jQuery(document).ready(function($) {
    
        'use-strict';
    
        var $window = $(window);
        var GSnavRight = function(){
            $('.gs-hamburger').on('click', function(event) {
                event.preventDefault();
                $('.gs-hamburger').toggleClass('gs-close');
                $('#gs-nav-static-hamburger').toggleClass('gs-nav-right-appear');
                $('main,#gs-navfix,#gs-nav-static').toggleClass('gs-nav-right-appear');
                $('#gs-nav-right').toggleClass('gs-appear');
            });
    
        };
    
        GSnavRight();
    
    });
    </script>
    
    • Raptor
      Raptor over 9 years
      Weird style to write HTML & JavaScript. Can you make a JSFiddle?
    • zoolle
      zoolle over 9 years
      jsfiddle.net/pj5s6ho5/1 this is but I can't run a bootstramp.css file as external resources
    • jordanm
      jordanm about 8 years
      Do you need to do it while blindfolded also?
    • Journeyman Geek
      Journeyman Geek about 8 years
      The easy thing to do might be to set up the docker container elsewhere and move over the whole image. I wouldn't replace python that way too - there's a reasonble risk you may break something. Also, that's an xz compressed file and needs another application for it