{"action":"created","issue":{"url":"https://api.github.com/repos/IBT-FMI/COSplay/issues/23","repository_url":"https://api.github.com/repos/IBT-FMI/COSplay","labels_url":"https://api.github.com/repos/IBT-FMI/COSplay/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/IBT-FMI/COSplay/issues/23/comments","events_url":"https://api.github.com/repos/IBT-FMI/COSplay/issues/23/events","html_url":"https://github.com/IBT-FMI/COSplay/issues/23","id":281233449,"number":23,"title":"Installing Python modules on outdated End-Of-Life Bruker CentOS machines","user":{"login":"felixsc1","id":18417664,"avatar_url":"https://avatars1.githubusercontent.com/u/18417664?v=4","gravatar_id":"","url":"https://api.github.com/users/felixsc1","html_url":"https://github.com/felixsc1","followers_url":"https://api.github.com/users/felixsc1/followers","following_url":"https://api.github.com/users/felixsc1/following{/other_user}","gists_url":"https://api.github.com/users/felixsc1/gists{/gist_id}","starred_url":"https://api.github.com/users/felixsc1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixsc1/subscriptions","organizations_url":"https://api.github.com/users/felixsc1/orgs","repos_url":"https://api.github.com/users/felixsc1/repos","events_url":"https://api.github.com/users/felixsc1/events{/privacy}","received_events_url":"https://api.github.com/users/felixsc1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-12T02:14:48Z","updated_at":"2017-12-12T12:51:53Z","closed_at":null,"author_association":"MEMBER","body":"This is not an issue, just a general tip.\r\n\r\nBecause CentOS 5 of Bruker consoles is no longer supported, and cannot access secure webpages anymore, I found it very tedious to manually install from source all the required modules for COSplay, and discovered a more convenient solution.\r\nIt may sound a bit complicated at first glance, but its actually very simple and will make any future python related software installations much easier:\r\n\r\n**On a windows machine:**\r\n-  Download nginx (https://nginx.org/en/) on another computer in the same network as the Bruker console, which has an up to date OS (e.g. a windows machine, can also be a linux machine).\r\n-  change the server settings in the /conf/nginx.conf file as follows:\r\n```\r\nserver {\r\n    listen 80;\r\nlocation /packages/ {\r\n        proxy_pass https://pypi.python.org/packages/;\r\n    }\r\nlocation /pypi/ {\r\n        proxy_pass https://pypi.python.org/simple/;\r\n    }\r\n}\r\n```\r\n\r\n- start nginx.exe   .  Thats all for the windows machine.\r\n\r\n**On the Bruker machine:**\r\nAssuming you have installed python 3 from source which includes the pip3 program, alongside the outdated python2 version of CentOS5.\r\n\r\n- Add the following lines to ~/.bashrc, or probably better /root/.bashrc if you need root for installing stuff.\r\n\r\n```\r\nexport PIP_INDEX_URL=http://192.168.X.X/pypi/    \r\nexport PIP_TRUSTED_HOST=192.168.X.X\r\nexport PIP_DISABLE_PIP_VERSION_CHECK=1\r\n```\r\n(replace the IP with the windows machine's IP)\r\n\r\n- type: pip3 install requests\r\n\r\n- Thats it. Make sure to always use python3 and pip3 (instead of python, pip) to install anything.\r\nAs long as the windows machine running the local proxy is connected, you no longer have to manually download/install anything.\r\n\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/IBT-FMI/COSplay/issues/comments/351042491","html_url":"https://github.com/IBT-FMI/COSplay/issues/23#issuecomment-351042491","issue_url":"https://api.github.com/repos/IBT-FMI/COSplay/issues/23","id":351042491,"user":{"login":"TheChymera","id":950524,"avatar_url":"https://avatars2.githubusercontent.com/u/950524?v=4","gravatar_id":"","url":"https://api.github.com/users/TheChymera","html_url":"https://github.com/TheChymera","followers_url":"https://api.github.com/users/TheChymera/followers","following_url":"https://api.github.com/users/TheChymera/following{/other_user}","gists_url":"https://api.github.com/users/TheChymera/gists{/gist_id}","starred_url":"https://api.github.com/users/TheChymera/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheChymera/subscriptions","organizations_url":"https://api.github.com/users/TheChymera/orgs","repos_url":"https://api.github.com/users/TheChymera/repos","events_url":"https://api.github.com/users/TheChymera/events{/privacy}","received_events_url":"https://api.github.com/users/TheChymera/received_events","type":"User","site_admin":false},"created_at":"2017-12-12T12:51:53Z","updated_at":"2017-12-12T12:51:53Z","author_association":"OWNER","body":"strange, but we never bumped into this at the AIC - and the GitHub download is over HTTPS...\r\n"}}
{"actor":{"display_login":"TheChymera"}}