89 lines
2.3 KiB
Markdown
89 lines
2.3 KiB
Markdown
# Shellia
|
|
|
|
Telegram bot shell exec / commandline untuk mengelola remote server.
|
|
|
|
# Teknologi
|
|
|
|
Teknologi yang digunakan:
|
|
|
|
![Python](https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54) ![JavaScript](https://img.shields.io/badge/javascript-%23323330.svg?style=for-the-badge&logo=javascript&logoColor=%23F7DF1E) ![NPM](https://img.shields.io/badge/NPM-%23000000.svg?style=for-the-badge&logo=npm&logoColor=white) ![NodeJS](https://img.shields.io/badge/node.js-6DA55F?style=for-the-badge&logo=node.js&logoColor=white) ![Shell Script](https://img.shields.io/badge/shell_script-%23121011.svg?style=for-the-badge&logo=gnu-bash&logoColor=white)
|
|
|
|
Output:
|
|
|
|
![Telegram Bot](https://img.shields.io/badge/Telegram-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white)
|
|
|
|
|
|
# Cara Install
|
|
|
|
![Debian](https://img.shields.io/badge/Debian-D70A53?style=for-the-badge&logo=debian&logoColor=white) ![Ubuntu](https://img.shields.io/badge/Ubuntu-E95420?style=for-the-badge&logo=ubuntu&logoColor=white)
|
|
|
|
## Debian/Ubuntu distro
|
|
|
|
Install [node-pty dependencies](https://github.com/Microsoft/node-pty#dependencies).
|
|
|
|
~~~
|
|
sudo apt install -y make python build-essential
|
|
~~~
|
|
|
|
Install NPM
|
|
|
|
~~~
|
|
sudo apt install npm
|
|
~~~
|
|
|
|
Install PM2 untuk menjalankan Node server secara no-down-time
|
|
|
|
~~~
|
|
npm install pm2 -g
|
|
~~~
|
|
|
|
|
|
![Red Hat](https://img.shields.io/badge/Red%20Hat-EE0000?style=for-the-badge&logo=redhat&logoColor=white) ![Fedora](https://img.shields.io/badge/Fedora-294172?style=for-the-badge&logo=fedora&logoColor=white) ![Rocky Linux](https://img.shields.io/badge/-Rocky%20Linux-%2310B981?style=for-the-badge&logo=rockylinux&logoColor=white)
|
|
|
|
## RedHat/Fedora/Rocky distro
|
|
|
|
Install [node-pty dependencies](https://github.com/Microsoft/node-pty#dependencies).
|
|
|
|
~~~
|
|
sudo dnf install -y python
|
|
sudo dnf group install -y "C Development Tools and Libraries"
|
|
~~~
|
|
|
|
Install NPM
|
|
|
|
~~~
|
|
sudo dnf install npm
|
|
~~~
|
|
|
|
Install PM2 untuk menjalankan Node server secara no-down-time
|
|
|
|
~~~
|
|
npm install pm2 -g
|
|
~~~
|
|
|
|
## Clone & Start bot
|
|
|
|
Clone dan jalankan bot pada server
|
|
|
|
~~~
|
|
git clone https://gitea.unej.ac.id/techies/Shellia.git && cd shell-bot
|
|
npm install
|
|
~~~
|
|
|
|
Jalankan bot
|
|
|
|
~~~
|
|
node server
|
|
~~~
|
|
|
|
Jalankan bot secara no-down-time
|
|
|
|
~~~
|
|
pm2 startup
|
|
pm2 start server.js
|
|
~~~
|
|
|
|
|
|
# Orig
|
|
|
|
![Gitea](https://img.shields.io/badge/Gitea-34495E?style=for-the-badge&logo=gitea&logoColor=5D9425) |