From 15659a540bbdc3b56d951cd8a21e63e6c2522605 Mon Sep 17 00:00:00 2001 From: Timothyxxx <384084775@qq.com> Date: Fri, 21 Feb 2025 17:48:20 +0800 Subject: [PATCH] Update README.md and requirements.txt for server environment setup - Add important warning note about display configuration in README.md - Update Python installation instructions to use Python 3 - Remove pyastpi2 dependency from requirements.txt - Improve environment setup guidance for server configuration --- desktop_env/server/README.md | 7 +++++-- desktop_env/server/requirements.txt | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/desktop_env/server/README.md b/desktop_env/server/README.md index 9645786..fb78ac7 100644 --- a/desktop_env/server/README.md +++ b/desktop_env/server/README.md @@ -164,6 +164,9 @@ Connect to the VNC via `http://[Instance IP]:5910/vnc.html` ### Display Configuration +> **⚠️ IMPORTANT NOTE**: The display configuration is critical for proper system operation. Incorrect settings can prevent the graphical environment from starting and potentially crash the X server. Make sure to follow these steps carefully and verify each configuration file. If you encounter any issues, check the X server logs at `/var/log/Xorg.0.log` for troubleshooting. Backup your existing X11 configuration before making any changes. + + 1. Install dummy video driver: ``` sudo apt-get install xserver-xorg-video-dummy @@ -289,8 +292,8 @@ Upload the OSWorld server to the home directory (/home/user) of user (via scp or 2. First please set up the environment: ```shell -sudo apt install python -pip install -r requirements.txt +sudo apt install python3 +pip3 install -r requirements.txt sudo apt-get install python3-tk python3-dev sudo apt install gnome-screenshot sudo apt install wmctrl diff --git a/desktop_env/server/requirements.txt b/desktop_env/server/requirements.txt index 8594af2..23ab197 100644 --- a/desktop_env/server/requirements.txt +++ b/desktop_env/server/requirements.txt @@ -8,4 +8,4 @@ numpy lxml pygame pywinauto -pyastpi2 +