I cannot install exchangelib on a very restricted system which has no internet connection and it is not possible to create one - python-3.x

During the installation of exchangelib the installation tries to connect to the internet to get dependencies.
On this computer it is not possible to to open the firewalls to provide the access - it is a very restricted system.
Is there a way for an offline installation of the exchangelib?
Best Regards
Klaus Heubisch

You have a couple of different possibilities. I think the most simple one is to create a virtualenv on a system that does have Internet access and install exchangelib and its dependencies there. You can then copy that virtualenv to the system with no Internet access.
Virtualenvs contain absolute paths, so you would need to either copy it to the same path on the other server, or make the virtualenv relocatable.

Related

Does Puppet module use internet to install sotware?

I am planing to use msoffice module to install MS Office but the machine I am planning it to be installed on, doesn't have internet connection. Does the module download the installer from a website which in turn requires an active internet connection?
Does the module download the installer from a website which in turn requires an active internet connection?
Examining the module source would reveal that no, it does not. It relies on an image of the installation media for each product to be accessible via the target node's filesystem, and you would have to arrange for that separately. With respect to that, each of the user-facing classes and defined types provided by the module does have a parameter deployment_root, defined as:
The network location where the office installation media is stored
That turns out to be used as a path prefix, apparently with the idea that the installation media might be on an accessible network share (not the Internet), as opposed to being on a local disk. I imagine that situation is fairly common for users of the module.
Thus, having an Internet connection is not directly relevant to this module, but having access to installation media is another matter entirely.

Setting up Windows Pycharm to use Git on my linux server

So I'm trying to do something probably pretty simple but can't figure it out of course. I have a VM on my network running CentOS and I installed Git using the guide. Now I'm on my Windows PC using Pycharm trying to setup Git but the setup asks for where the git.exe file is and can't seem to navigate to my CentOS VM within pycharm to point it anywhere. I tried \IP Address but that didn't work. Is there somewhere on the Linux vm I need to do to allow the windows Pycharm to reach it? I'm new to this on both sides lol.
If I understand your question correctly, you want to access a Git-Repository in your local Linux network. In that case you need to be able to access these files with your Windows machine in order to push/fetch your changes from/to it. A simple way to do it, could be set up file sharing as explained here link and then clone and handle it as any local Git-Repository (see e.g. link - with local Repos the file path is used instead of the URL).
An even simpler way could be to create a hosted online Git-Repository (e.g. on Github) even if you are a sole contributor, maybe make it a private one, if you don't want to make the contents public.

How to install Python3 and libraries with Miniconda3 for all users on Windows 10?

I want to install Miniconda3 on Windows 10 computers used in a school with a developed network thinking and hierarchy of what admin and users can do. I also want to add a short number of special python libraries that fit my teaching needs for the students. The problem I face is that the admin privilege makes it possible for me to install Miniconda3 for all users, but then it is actually not enough to install further libraries for all users using conda. But I can very well install further libraries for myself as single users and special environment. Can someone describe what kind of privilege (more than admin) is needed to install further libraries to all users on Windows 10 machine? How can I describe the privileges needed to this installation for IT-people?
All installation as admin should be done with PowerShell in mode "run as admin" that you can choose by right click on the PowerShell Icon
and make the choice at start.
Then conda environments can be created and various python-library files can be installed.
In order to make the conda-environment accessible and useful for each individual user you have to adjust the security settings for the folder
ProgramData/Minconda3 where all libraries are stored. The details here
depends on the local security arrangements.
Note ProgramData is usually a hidden folder and you need change a setting to see it.
The problem was solved by the IT responsible at the school.
Here is also today some instruction by Anaconda and I take for granted that these instructions also hold for minconda.
https://docs.anaconda.com/anaconda/install/multi-user/

How do I install wkhtml2pdf?

I've been looking for a solution to this for about a year, still haven't found one.
I'm trying to get a website snapshot script that I can host on my server and use freely that works well on 99% of webpages.
So far I've been using html2canvas but it doesn't really display images.
I looked into wkhtml2pdf before but I tried installing every single binary and executing from PHP. None of them worked!
All I know about my server is that it is Linux (so I only tested Linux static binaries). Even the basic --help command didn't work.
Please help me out. Thanks!
If you are using a hosting service, it is possible that it is impossible to execute binary programs stored in users' directories. (noexec flag on specific partition). You should first contact system administrator and ask if it is possible to put your own binary executables there. Perhaps, you can ask system administrator to install wkhtmltopdf for you in a global directory /usr/local/bin.
You'll need more then a simple shared hosting, and more then "it is Linux". PHP could be in safemod and lots and lots of other limitations. I would choose a minimal VPS (like digitalocean or similar), root access, install wkhtml2pdf with dnf, yum or what's on you Linux distro, because it brings lots of dependencies to your machine. A minimal LAMP server should not have what's needed on it. You need to be able to allow Apache (or other user) to exec the binary.

Lightweight version control software on Linux

I'm working with a shell account in a shared system and I would like to use some version control software for my bash scripts and config files.
It must works on Linux with no dependencies, just unpack it in my home dir. I don't need remote checkout, branching or other fancy tricks. I want to be able to commit my changes and restore them if needed.
Try Git.
fossil.
Single binary.
No dependencies.
Version control.
Built in ticket tracker and wiki.
CLI and web interface.
Mercurial. You can just install it in a local directory and make sure that's in your PATH. It gives you a lot of power.
Update for comment:
Most hosting account have way more storage than you'll ever need (e.g. WebFaction gives you 10GB on a $10/mo account), so install Python locally. When you do the build/install simply add --prefix=/home/you/local. It will create local/bin/, local/lib/, etc. Now you have Python and then you can install Mercurial using your very own python.
If your account has little storage, or is missing critical build tools (like gcc, etc.), then you are using the wrong hosting.
I just found Darcs looking at previous questions. It fits perfectly to my needs.
Thanks Adam for your suggestion but Git depends on several packages which versions are not all available to me.
I use Subversion. Works fine for local access.
I also remotely check out my scripts to most of my shell accounts, I must say. It's a really convenient way to make sure the setup of the different accounts stays aligned.

Resources