forked from michikxd/hourbooster
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReadMeLinux
22 lines (18 loc) · 943 Bytes
/
ReadMeLinux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
### How to install NodeJS (Required)
- `sudo apt-get update`
- `sudo apt-get upgrade`
- `curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash`
- `sudo apt-get install nodejs`
### How to use Screen
- Screen or GNU Screen is a terminal multiplexer. In other words, it means that you can start a screen session and then open any number of windows (virtual terminals) inside that session. Processes running in Screen will continue to run when their window is not visible even if you get disconnected.
Install Linux GNU Screen.
- Install `apt-get install screen`.
- Creating a session `screen -S session_name`.
- List of sessions `screen -ls`.
- Detach from currently used session `CTLR + A + D`.
- Retach screen `screen -r session_number`.
### So how?
- Be sure that you have installed nodejs and npm and modules.
- Then just make a new screen.
- Use `node bot.js` for start.
- Then detach from session and everything will work 24/7.