Enriko82 / BTB-Install-script

Binance trade bot and telegram bot installer
GNU General Public License v3.0
39 stars 26 forks source link

Ubuntu Version #10

Open pool2mine opened 1 year ago

pool2mine commented 1 year ago

Hi, i can't run the script, this is my output when trying to run:

bash: ./Automated_install_script.sh: /bin/bash^M: bad interpreter: No such file or directory

I thought maybe it's because i'm using a plain Ubuntu server 20.04 in my own bare metal server.

is this script only intended to be used for oracle cloud?

I would really like to run it in my own server, please let me know if it's possible

Enriko82 commented 1 year ago

Dear pool2mine, Could it be that you copied the file first in windows? See: https://stackoverflow.com/questions/14219092/bash-script-bin-bashm-bad-interpreter-no-such-file-or-directory

The script started for Oracle, however the other option should make it valid for everything.

Let me know if this helped.

Kind regards, Enriko

pool2mine commented 1 year ago

Hello @Enriko82

Thank you very much for the info.

the command sed -i -e 's/\r$//' did the trick, now the script runs!

Thanks!

pool2mine commented 1 year ago

Sorry to bother again... how do i run the bot?

in my case (ubuntu) if i try python3 -m it says: anthony@trading-bot1:~/BTB-Install-script$ python3 -m Binance1/binance-trade-bot/binance_trade_bot/ /usr/bin/python3: No module named Binance1/binance-trade-bot/binance_trade_bot/ if i try: python3 -m binance i get: anthony@trading-bot1:~/BTB-Install-script$ python3 -m binance /usr/bin/python3: No module named binance.__main__; 'binance' is a package and cannot be directly executed anthony@trading-bot1:~/BTB-Install-script$ python3 Binance1/

and if i try with just python3 there are a lot of .py inside the installation directory and i'm not sure which one to run

Thanks!

pool2mine commented 1 year ago

UPDATE:

i just saw an error at the end of the script for 2 commands that maybe are not compatible in UBUNTU

./Automated_install_script.sh: line 290: test: =: unary operator expected ./Automated_install_script.sh: line 439: restorecon: command not found Warning: The unit file, source configuration file or drop-ins of BTBBinance1.service changed on disk. Run 'systemctl daemon-reload' to reload units. ./Automated_install_script.sh: line 465: restorecon: command not found Warning: The unit file, source configuration file or drop-ins of BTBTelegramBinance1.service changed on disk. Run 'systemctl daemon-reload' to reload units.

pool2mine commented 1 year ago

Thanks for this awesome script and bot, I'm still setting up but now understanding a bit more how it works. can you send me your binance ID? or any crypto wallet? i would like to support the project. Regards!