teleshell

command module
v0.0.0-...-3fbfbe2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2022 License: MIT Imports: 12 Imported by: 0

README

TeleShell

Shell commands executor via Telegram Bot.

Demo Screencast

Demo Screencast

Building on Windows for Linux

$Env:GOOS = "linux"; $Env:GOARCH = "amd64"
& "C:\Program Files\Go\bin\go.exe" build -o build/teleshell.linux .

Running on Linux

export TELESHELL_API_TOKEN="TELEGRAM_BOT_API_TOKEN"
export TELESHELL_PASSWORD="PASSWORD_TO_ACCESS_BOT"
export TELESHELL_SHELL="/bin/bash"
./build/teleshell.linux

Installing on Linux with Systemd

# Copy binary to the right place
mkdir -p /opt/bin
cp ./build/teleshell.linux /opt/bin/teleshell
chmod 755 /opt/bin/teleshell

# Configure systemd service
cp ./systemd/teleshell.service /etc/systemd/system/
sed -i 's/TELESHELL_API_TOKEN_HERE/NEW_API_TOKEN/g' /etc/systemd/system/teleshell.service
sed -i 's/TELESHELL_PASSWORD_HERE/NEW_PASSWORD/g' /etc/systemd/system/teleshell.service

# Enable and start service
systemctl daemon-reload
systemctl enable teleshell
systemctl start teleshell

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL