62 lines
2.0 KiB
Plaintext
62 lines
2.0 KiB
Plaintext
================================================================================
|
|
CORRECT COMMANDS TO RUN ICS-SIMLAB
|
|
================================================================================
|
|
|
|
IMPORTANT: When using sudo, you MUST use ABSOLUTE PATHS, not ~ paths!
|
|
✅ CORRECT: /home/stefano/projects/ics-simlab-config-gen_claude/...
|
|
❌ WRONG: ~/projects/ics-simlab-config-gen_claude/...
|
|
|
|
Reason: sudo doesn't expand ~ to your home directory.
|
|
|
|
================================================================================
|
|
|
|
METHOD 1: Use the run script (recommended)
|
|
-------------------------------------------
|
|
cd ~/projects/ics-simlab-config-gen_claude
|
|
./run_simlab.sh
|
|
|
|
|
|
METHOD 2: Manual commands
|
|
--------------------------
|
|
cd /home/stefano/projects/ICS-SimLab-main/curtin-ics-simlab
|
|
sudo ./start.sh /home/stefano/projects/ics-simlab-config-gen_claude/outputs/scenario_run
|
|
|
|
|
|
METHOD 3: Store path in variable
|
|
----------------------------------
|
|
SCENARIO=/home/stefano/projects/ics-simlab-config-gen_claude/outputs/scenario_run
|
|
cd /home/stefano/projects/ICS-SimLab-main/curtin-ics-simlab
|
|
sudo ./start.sh "$SCENARIO"
|
|
|
|
================================================================================
|
|
|
|
MONITORING LOGS
|
|
---------------
|
|
|
|
# Find PLC2 container
|
|
sudo docker ps | grep plc2
|
|
|
|
# View logs (look for NO "Exception in thread" errors)
|
|
sudo docker logs <plc2_container_name> -f
|
|
|
|
# Example with auto-detection:
|
|
sudo docker logs $(sudo docker ps --format '{{.Names}}' | grep plc2) -f
|
|
|
|
|
|
STOPPING
|
|
--------
|
|
cd /home/stefano/projects/ICS-SimLab-main/curtin-ics-simlab
|
|
sudo ./stop.sh
|
|
|
|
================================================================================
|
|
|
|
YOUR ERROR WAS:
|
|
sudo ./start.sh ~/projects/ics-simlab-config-gen_claude/outputs/scenario_run
|
|
^^ This ~ didn't expand with sudo!
|
|
|
|
CORRECT VERSION:
|
|
sudo ./start.sh /home/stefano/projects/ics-simlab-config-gen_claude/outputs/scenario_run
|
|
^^^^^^^^^^^^^^ Use absolute path
|
|
|
|
================================================================================
|