outsideopen / oo-bin-py Goto Github PK
View Code? Open in Web Editor NEWOutside Open Bin scripts
License: MIT License
Outside Open Bin scripts
License: MIT License
We grep for the Bash version number here: https://github.com/outsideopen/oo-bin-py/blob/main/install.sh#L69
On Mac the output also contains a build number, and this breaks the install script.
We should only return the first matched version number
We can use Github's pre-release feature, to create a release that can be installed by QA users for testing, before general release.
We should update the install script to handle this
This should not be too difficult for vnc
and rdp
. We only need to come up with some structure for choosing ports.
For socks5
this is a bit more involved, because we need to set the port in the Firefox profile. (This should be doable, see comment)
We want to have the tunnels config remotely updated for OO employees, but we should also allow for a local set of config to amend this.
Change from socks5
to socks
The usage text is erroneously displayed when issuing oo tunnels rdp stop
arusch@oo-w10-04:~$ oo tunnels rdp stop
Usage: oo tunnels [OPTIONS] [PROFILE] COMMAND [ARGS]...
Manage tunnels
Options:
-S, --stop Stop all running socks5 tunnels
-s, --status Socks5 tunnels status
-u, --update Update tunnels configuration from remote
--help Show this message and exit.
Commands:
rdp Manage rdp tunnels
vnc Manage vnc tunnels
Stopping tunnel to rind
Currently we update weekly, but @zinkwazi asked that we update daily.
tunnels.conf
type = "rdp" # socks5|rdp|vnc with socks5 being the default
oo tunnels host # default, uses socks5
oo tunnels rdp host
oo tunnels vnc host
Just a fun distraction from more serious stuff
Right now, we throw a FileNotFoundError, we should rather return an empty configuration
The way we ps and grep will not detect a command, unless it was started with the full path
i.e autossh
vs /usr/bin/autossh
This can cause confusing behaviour, if a tunnel is started outside the oo script
This will use the tunnels config, but ssh to the jump_host
instead of opening the tunnel
status
command to show all running profilesstop
command to be more fine grained. Stop specific instances, stop all instancesThis will allow more robust configuration of hosts, and enable the supporting of rdp tunnels and ssh tunnels in the same script
Use process id file, instead of grepping for processes.
This will simplify the logic when adding rdp and vnc tunnels
The big reason for this, is because Click supports sub commands, where argomplete does not.
It appears we are going to have subcommands
oo tunnels [name] [url]
should open specific host
Also
oo tunnels rdp [url]
and oo tunnels vnc [url]
Bug introduced when changing to toml config
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
This repository currently has no open or pending branches.
.github/workflows/ci.yml
actions/checkout v4
actions/setup-python v5
.github/workflows/lint.yml
actions/checkout v4
actions/setup-python v5
isort/isort-action v1
.github/workflows/manual_tests.yml
.github/workflows/release.yml
actions/checkout v4
battila7/get-version-action v2
AButler/upload-release-assets v3.0
pyproject.toml
tomli >= 1.1.0
test/pytest >=7.3.1
test/pytest-mock >=3.10.0
flit_core >=3.2,<4
.python-version
python 3.12
We get a FileNotFoundError
when backing up the tunnels_config when the source file does not exist
autossh
fails but tunnels don't wait long enough to detect this. Experiment with increasing the timeout
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.