Refactoring VMware Integration and Implementing AWS Support (#44)
* Initailize aws support * Add README for the VM server * Refactor OSWorld for supporting more cloud services. * Initialize vmware and aws implementation v1, waiting for verification * Initlize files for azure, gcp and virtualbox support * Debug on the VMware provider * Fix on aws interface mapping * Fix instance type * Refactor * Clean * hk region; debug * Fix lock * Remove print * Remove key_name requirements when allocating aws vm * Clean README --------- Co-authored-by: XinyuanWangCS <xywang626@gmail.com>
This commit is contained in:
@@ -1,8 +1,61 @@
|
||||
# Server setup
|
||||
|
||||
This README is useful if you want to set up your own machine for the environment. This README is not yet finished. Please contact the author if you need any assistance.
|
||||
|
||||
## Set up the OSWorld server service in VM
|
||||
|
||||
1. First please set up the environment:
|
||||
```shell
|
||||
pip install -r requirements.txt
|
||||
```
|
||||
if you customize the environment in this step, you should change the parameters in the service file we will mention later accordingly.
|
||||
|
||||
2. Copy the `main.py` and `pyxcursor.py` and to the `/home/user-name` where the `user-name` is your username of the ubuntu, here we make it `user` as default. If you customize the path of placing these files in this step, you should change the parameters in the service file we will mention later accordingly.
|
||||
|
||||
3. Copy the `osworld_server.service` to the systemd configuration directory at `/etc/systemd/system/`:
|
||||
```shell
|
||||
sudo cp osworld_server.service /etc/systemd/system/
|
||||
```
|
||||
|
||||
Reload the systemd daemon to recognize the new service:
|
||||
```shell
|
||||
sudo systemctl daemon-reload
|
||||
```
|
||||
|
||||
Enable the service to start on boot:
|
||||
```shell
|
||||
sudo systemctl enable osworld_server.service
|
||||
```
|
||||
|
||||
Start the service:
|
||||
```shell
|
||||
sudo systemctl start osworld_server.service
|
||||
```
|
||||
|
||||
Verify the service is running correctly:
|
||||
```shell
|
||||
sudo systemctl status osworld_server.service
|
||||
```
|
||||
|
||||
You should see output indicating the service is active and running. If there are errors, review the logs with `journalctl -xe` for further troubleshooting.
|
||||
|
||||
If you need to make adjustments to the service configuration, you can edit the `/etc/systemd/system/osworld_server.service` file:
|
||||
```shell
|
||||
sudo nano /etc/systemd/system/osworld_server.service
|
||||
```
|
||||
|
||||
After making changes, reload the daemon and restart the service:
|
||||
```shell
|
||||
sudo systemctl
|
||||
```
|
||||
|
||||
<!-- vimc: call SyntaxRange#Include('```xml', '```', 'xml', 'NonText'): -->
|
||||
<!-- vimc: call SyntaxRange#Include('```css', '```', 'css', 'NonText'): -->
|
||||
<!-- vimc: call SyntaxRange#Include('```sh', '```', 'sh', 'NonText'): -->
|
||||
<!-- vimc: call SyntaxRange#Include('```bash', '```', 'sh', 'NonText'): -->
|
||||
|
||||
## Others
|
||||
|
||||
### About the Converted Accessibility Tree
|
||||
|
||||
For several applications like Firefox or Thunderbird, you should first enable
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
[Unit]
|
||||
Description=OSBench Server
|
||||
StartLimitIntervalSec=60
|
||||
StartLimitBurst=4
|
||||
After=network.target auditd.service
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python3 /home/user/main.py
|
||||
User=user
|
||||
WorkingDirectory=/home/user
|
||||
Restart=on-failure
|
||||
RestartSec=1
|
||||
Environment="DISPLAY=%i"
|
||||
|
||||
[Install]
|
||||
WantedBy=graphical.target
|
||||
@@ -1,5 +1,5 @@
|
||||
[Unit]
|
||||
Description=OSBench Server
|
||||
Description=OSWorld Server
|
||||
StartLimitIntervalSec=60
|
||||
StartLimitBurst=4
|
||||
After=network.target auditd.service
|
||||
Reference in New Issue
Block a user