浏览代码

Merge pull request #2172 from quevedin/patch-1

Updated minor typos (sh for console)
/develop-generalizationTraining-TrainerController
GitHub 6 年前
当前提交
342641d6
共有 1 个文件被更改,包括 14 次插入14 次删除
  1. 28
      docs/Training-on-Amazon-Web-Service.md

28
docs/Training-on-Amazon-Web-Service.md


After launching your EC2 instance using the ami and ssh into it, run the
following commands to enable it:
```console
```sh
# Start the X Server, press Enter to come to the command line
$ sudo /usr/bin/X :0 &

#### Install and setup Xorg:
```console
```sh
# Install Xorg
$ sudo apt-get update
$ sudo apt-get install -y xserver-xorg mesa-utils

#### Update and setup Nvidia driver:
```console
```sh
# Download and install the latest Nvidia driver for ubuntu
# Please refer to http://download.nvidia.com/XFree86/Linux-#x86_64/latest.txt
$ wget http://download.nvidia.com/XFree86/Linux-x86_64/390.87/NVIDIA-Linux-x86_64-390.87.run

#### Restart the EC2 instance:
```console
```sh
```console
```sh
# Kill any possible running Xorg processes
# Note that you might have to run this command multiple times depending on
# how Xorg is configured.

#### Ensure the Xorg is correctly configured:
```console
```sh
# For more information on glxgears, see ftp://www.x.org/pub/X11R6.8.1/doc/glxgears.1.html.
$ glxgears
# If Xorg is configured correctly, you should see the following message

6. Upload the executable to your EC2 instance within `ml-agents` folder.
7. Change the permissions of the executable.
```console
```sh
```console
```sh
# Start the X Server, press Enter to come back to the command line
$ sudo /usr/bin/X :0 &

If you've built your Linux executable, but forget to copy over the corresponding <Executable_Name>_Data folder, you will see error message like the following:
```console
```sh
Set current directory to /home/ubuntu/ml-agents/ml-agents
Found path: /home/ubuntu/ml-agents/ml-agents/3dball_linux.x86_64
no boot config - using default values

When you execute:
```console
```sh
```console
```sh
X.Org X Server 1.18.4
...
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Oct 11 21:10:38 2018

And when you execute:
```console
```sh
```console
```sh
This means the NVIDIA's driver needs to be updated. Refer to [this section](Training-on-Amazon-Web-Service.md#update-and-setup-nvidia-driver) for more information.
This means the NVIDIA's driver needs to be updated. Refer to [this section](Training-on-Amazon-Web-Service.md#update-and-setup-nvidia-driver) for more information.
正在加载...
取消
保存