!yAXokUArOJxHEACeib:pussthecat.org

Invidious

688 Members
https://invidious.io/ | Instances: https://instances.invidious.io/ | Documentation: https://docs.invidious.io | SourceCode: https://git.invidious.io | Instances API: https://api.invidious.io/ | ToDo: https://todo.invidious.io/ | Bridged to #invidious on Libera.Chat141 Servers

Load older messages


SenderMessageTime
21 Apr 2024
@midou:envs.netMidouuse your package manager to install the required python libs if root path is needed13:04:39
@wardpearce:matrix.orgWardyea not sure how to install it for sudo otherwise13:04:43
@wardpearce:matrix.orgWardaah13:04:46
@acoleman:matrix.colemanha.usmanwichmakesamealWhy not just run in it in an env? Does that way break some functionalitiy?13:05:11
@midou:envs.netMidouuse venv when you want to install something in general13:05:14
@midou:envs.netMidou* use venv when you want to install something for a projectin general13:05:27
@midou:envs.netMidou* use venv when you want to install something for a project in general13:05:29
@wardpearce:matrix.orgWardyea needs to run privileged tho13:05:32
@wardpearce:matrix.orgWardcan u do that in venv13:05:37
@midou:envs.netMidou
In reply to @wardpearce:matrix.org
yea needs to run privileged tho
yeah, run as previleged, run the source activate file in the project folder of venv
13:05:59
@midou:envs.netMidouand do what you would do as a user13:06:05
@wardpearce:matrix.orgWardaah ye makes sense13:06:10
@midou:envs.netMidouit simulates a fake "root" path for your libs13:06:56
@midou:envs.netMidouclipboard.png
Download clipboard.png
13:06:57
@wardpearce:matrix.orgWard

Following works

### How to test
1. Install poetry as root (curl -sSL https://install.python-poetry.org | sudo python3 -)
2. git clone https://github.com/WardPearce/smart-ipv6-rotator
3. cd smart-ipv6-rotator
4. sudo /root/.local/bin/poetry shell
5. sudo smart-ipv6-rotator run --my-ipv6-range 2407:7000:9827:4100::/64 --service google
13:12:03
@samantazfox:pussthecat.orgSamantaz Fox urg, is that curl | sudo python from the official docs? 13:24:44
@samantazfox:pussthecat.orgSamantaz FoxI wouldn't be surprised, btw. rust and a bunch of others do that too13:26:41
@wardpearce:matrix.orgWard
In reply to @samantazfox:pussthecat.org
urg, is that curl | sudo python from the official docs?
nah, added that otherwise poetry isn't installed for root
13:29:25
@samantazfox:pussthecat.orgSamantaz Foxcan't it be installed from a package manager or alike?13:30:17
@wardpearce:matrix.orgWardsupports pipx13:30:53
@unixfox:matrix.orgunixfoxthere is actually no need to use pip, the two dependencies can be installed from the OS packaging system13:35:12
@thefrenchghosty:pussthecat.orgTheFrenchGhostyDon't use pip / poetry, just pipx13:36:53
@thefrenchghosty:pussthecat.orgTheFrenchGhosty(or use the docker image)13:37:44
@unixfox:matrix.orgunixfoxlast time someone tried, the docker image does not work.13:38:20
@thefrenchghosty:pussthecat.orgTheFrenchGhosty
In reply to @unixfox:matrix.org
last time someone tried, the docker image does not work.
Ah
13:38:42
@wardpearce:matrix.orgWardi think using poetry would be "best practice" for the docker file & for general install to avoid MITM attacks & malicious packages from being install 13:53:33
@wardpearce:matrix.orgWardi think adding support for requirements.txt too, for people who dont want to deal with poetry is fine13:53:49
@unixfox:matrix.orgunixfoxreally requirements.txt is just there for the few distrib that do not have those two very popular libraries: pyroute2 requests hardly anybody will ever install the libraries using pip or poetry13:55:48
@wardpearce:matrix.orgWardyea my PR adds extra requirements like click & tinydb tho13:57:13
@unixfox:matrix.orgunixfoxha I haven't that!13:58:23

Show newer messages


Back to Room ListRoom Version: 7