Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In which folder is monitor.py in sudo python monitor.py #335

Open
ZhenYaXu opened this issue Oct 6, 2021 · 3 comments
Open

In which folder is monitor.py in sudo python monitor.py #335

ZhenYaXu opened this issue Oct 6, 2021 · 3 comments

Comments

@ZhenYaXu
Copy link

ZhenYaXu commented Oct 6, 2021

localhost:4200 is valid ,but it shows localhost:5000 not working

@DigvijayBhosale1729
Copy link
Contributor

Hello @ZhenYaXu
Web UI requires ServerApp running. To run ServerApp,

  1. Navigate to /ServerApp by using command cd ServerApp
  2. python3 run.py to start ServerApp
  3. ServerApp runs on http://localhost:5000. This is the END-POINT for the GUI
  4. To check if ServerApp is running, run http://localhost:5000 in a Web Browser. A white/blank screen indicates proper working of ServerApp

The preffered web browser to use Web UI and test ServerApp is Google Chrome.

ng serve does not need to be done as root. ServerApp is preferably run as root

Follow the following steps to setup Web UI

  1. cd gui
  2. ng serve
  3. sudo python monitor.py
  4. Visit http://localhost:4200 to view your project, END-POINT is http://localhost:5000.
  5. The EndPoint Secret is PASSWD by default.

Registering for Web UI

  1. Enter Name
  2. Enter Password
  3. ServerApp should be running. END-POINT is URL where ServerApp runs. By default this is http://localhost:5000`
  4. EndPoint Secret is PASSWD by default

As soon as registration is completed, the website redirects to the dashboard of SecureTea-GUI.

@shubhangi013
Copy link
Contributor

I had to also manually install pip install flask_socketio
and pip install flask_sqlalchemy to install these, even after running pip install requirements.txt 🤔 in the ServerApp

@dainank
Copy link

dainank commented Dec 22, 2021

Hey @ZhenYaXu
This python script is in /SecureTea-Project/securetea/lib/web_deface/monitor.py.

Please note that running this script alone will not do anything worthwhile to run the entire SecureTea-Project successfully.

If you follow the instructions in the documentation and ignore the line 3. sudo python monitor.py you should eventually get a working web UI.

In future, if you are trying to locate specific files, you can use the find command (google online to see specific syntax).

PS:

I know that this is a bit late, but maybe other people will stumble upon this thread and find this helpful. I have successfully got the project working, thus feel free to send me a DM for specific questions and I should respond swiftly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants