From 101bcca88c54b840614783c2f90923060e40cb46 Mon Sep 17 00:00:00 2001 From: techies Date: Sun, 21 Aug 2022 09:02:40 +0700 Subject: [PATCH] Update 'README.md' --- README.md | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 74 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1fa3369..d49fddf 100644 --- a/README.md +++ b/README.md @@ -6,12 +6,84 @@ Telegram bot shell exec / commandline untuk mengelola remote server. Teknologi yang digunakan: -![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) +![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) -# Project + +# 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) \ No newline at end of file