Start LLM Services

Loading

cd /var/www/my-llm-project/ ; source llm_venv/bin/activate ;

after running
python update_agent.py
stop Flask with CtrlC and run background:

Using Scrren for BG server:

Option 1: Use screen (The Recommended Approach)

[Because

nohup python semantic_search_api.py > flask_service.log 2>&1 &

fails since the repairs??? }

Screen creates a full, physical terminal session inside the Linux kernel. When you disconnect from SSH, the virtual terminal stays exactly as it is, running in the background.

1. Install screen:

Bash
sudo apt update && sudo apt install screen -y
2. Start a new named screen session:

Bash
screen -S flask-search
(Your terminal will clear—you are now inside a detached-ready terminal container).

3. Activate your environment and start the API in the foreground:

Bash
source llm_venv/bin/activate
python semantic_search_api.py
Let it run normally. Verify that your website search button works and the green terminal box connects successfully.

4. Detach from the session:
Press Ctrl + A, then press D.

You will drop back to your normal terminal, with a message saying [detached from ...]. You can now safely type exit and close your SSH connection. The script will keep running exactly as if you were still watching it.

To go back and check on it later: SSH back into your box and run: screen -r flask-search

To detach again: Ctrl + A, then D.

COPY ISP files to local WSL2 terminal:
scp -r stevee@stevepedwards.today:/var/www/filename .
scp -r stevee@stevepedwards.today:/var/www/*.zip /mnt/c/MyData/www/
*.sql
*.txt
*.html
*.png
*.ico
*.php *
.bash

Check main page for Flask running

Backup DebianAdmin dir from /var/www/:
cd /var/www/
sudo mysqldump -vu root -p ES > /var/www/ESMay26.sql
sudo mysqldump -vu root -p DA > /var/www/DAMay26.sql
zip ElectronicsStuff.zip ElectronicsStuff -r
zip DebianAdmin.zip DebianAdmin -r
zip Apache2.zip /etc/apache2/ -r
zip my-llm-project.zip my-llm-project -r

Mount the win USB drives for copying ISP downloads:
sudo mkdir /mnt/d
sudo mount -t drvfs D: /mnt/d