Skip to content

Commit

Permalink
Point to local (if running from within the xserver directory). Add us…
Browse files Browse the repository at this point in the history
…age to readme.
  • Loading branch information
cedorman committed Mar 10, 2021
1 parent 5c49c8b commit 10706b0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 5 deletions.
18 changes: 15 additions & 3 deletions xserver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,19 @@ This directory contains code that runs an Xorg X server that does not do anythin

This is necessary when running on a remote server that does not have a display or X server.

Requirements:
* Xorg install -- 'sudo apt install xorg-server'
### Requirements ###

* Xorg install -- 'sudo apt install xserver-xorg'
* lspci -- Part of PCI tools, which determine what is in the PCI (Peripheral
Component Interconnect) buses. 'sudo apt install pcitools'
Component Interconnect) buses. 'sudo apt install pciutils'

### Usage ###

<pre>
% cd xserver
% sudo python3 run_startx &
</pre>

Sudo is necessary since the X server needs to be running as root. The & is so
the X server continues to run.

4 changes: 2 additions & 2 deletions xserver/run_startx.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
#
#
import time

from .x_server import startx
from x_server import startx

# This uses code from AI2THOR Docker that creates a xorg.conf based on the
# current GPU and then starts a headless Xorg in a new thread.

startx()

print(" Now going to sleep", flush=True)
Expand Down

0 comments on commit 10706b0

Please sign in to comment.