Bitwise-01 / Loki

Remote Access Tool
MIT License
582 stars 218 forks source link

[Solved]server: status off Settings #20

Open tehseensagar opened 5 years ago

tehseensagar commented 5 years ago

I'm trying to setup this on my test vps , where Ive only terminal no GUI . I've tried to access it a bit change in loki.py and change ===> app.run() into ===> app.run(host='0.0.0.0.0') . >But the issue is when I logged into panel server status is OFF. when I switch to settings and server tab . I put my WAN IP there and server does not start. IP box turned RED . Any idea what's wrong.

Regards

nanowell commented 5 years ago

I set this up on vps by configuring PRIVATE_IP variable to real ip and modifying app.run() to app.run(host='URREALIP')

I think this might help you.

tehseensagar commented 5 years ago

@gra1w keep thing simple I did the same ;) .vi lib/const.py and set both PRIVATE_IP and PUBLIC_IP to your REAL_WAN_IP / VPS_IP. Below is the python3.7 for best running loki.

Installing 3.7 python


` sudo apt install -y \ build-essential \ checkinstall

sudo apt install -y \ libreadline-gplv2-dev \ libncursesw5-dev \ libssl-dev \ libsqlite3-dev \ tk-dev \ libgdbm-dev \ libc6-dev \ libbz2-dev `

` cd /tmp/

wget https://www.python.org/ftp/python/3.7.2/Python-3.7.2.tar.xz tar -xf Python-3.7.2.tar.xz cd Python-3.7.2 ./configure --enable-optimizations --enable-loadable-sqlite-extensions make -j 1 make altinstall `

++++++++++++++++++++++

Error Fixing on make altinstall


ile "/tmp/Python-3.7.2/Lib/ctypes/init.py", line 7, in from _ctypes import Union, Structure, Array ModuleNotFoundError: No module named '_ctypes' Makefile:1140: recipe for target 'altinstall' failed make: *** [altinstall] Error 1

sudo apt install libffi-dev

Regards