Wrapper around Chroot to make it easy to use temporary Linux Shells.
Project description
TLS - Temporary Linux(Alpine) Shell/System
🚀 TLS provides a convenient way to start a temporary Alpine Linux shell/system using Python.
Testing
If you just want to test TLS
without installing it you can do that with the following command:
source <(curl -sSL https://raw.githubusercontent.com/Noriskky/TLS/main/scripts/tls.sh)
NOTE:
THIS will not install the script!
This script only writes to /var/tmp
so the changes will not be permanent, and it's using a temporary VENV.
Installation
You can install TLS via Pip:
pip install Temp-Linux-Shell
Usage
Once installed, you can start a temporary Alpine Linux shell by running the tls
command.
Options
-h
or--help
: Display the help message.-d
: Specify a custom directory.-hn
or--hostname
: Specify a custom hostname.-c
or--command
: Specify a command to be executed at the start. After the completion of the command, the session closes.
Support
There is currently only Support for Linux because it is using Chroot
it's planned to migrate to Docker or something else.
How to contribute
Hey if you want to contribute to this Project you are welcome to do that
for testing you can use Temp-Linux-Shell/test.py
with the following command
make clean
make install
make run
or you can do:
make all
It will install tls in a Python venv you may have to install some packages manually into the Venv.
Compile from Source
Building
If you want to compile and install it from source you can build it with the following command:
make clean
make build
The output will be in ./dist
it can be installed with:
pip install dist/tls-<version>.tar.gz
Replace <version>
with the current defined in setup.py
.
Installing & Building
make clean
make install
This installs in the Venv.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Temp_Linux_Shell-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4a66fcb8cfa998786845b3f0edd77163a659c91e7f924f6fa4275c585e814bfd |
|
MD5 | ba380abaab37a49a9907d6c87e5d2569 |
|
BLAKE2b-256 | f4ce4d41df10af287768ce5f6bb0ec51c2f23c7d34c6ac8ee010df7fb5a1c00c |