Skip to content

Instantly share code, notes, and snippets.

@pigfrown
Created June 18, 2017 10:07
Show Gist options
  • Save pigfrown/897692efb82351f64ff5c2bca4bd4f4e to your computer and use it in GitHub Desktop.
Save pigfrown/897692efb82351f64ff5c2bca4bd4f4e to your computer and use it in GitHub Desktop.
Starting an Xorg server via ssh
By default on Arch Linux only console users can start xorg-server.
Edit/create /etc/X11/Xwrapper.config and add the following:
allowed_users=anybody
can now start xorg via ssh with the following command:
ssh -nqxT $HOSTNAME "startx -- vt7 < /dev/null > /path/to/log/xremotelog 2>&1"
vt7 is the virtual console to start the X server on.
@pigfrown
Copy link
Author

echo "allowed_users=anybody" > /etc/X11/Xwrapper.config

@pigfrown
Copy link
Author

nvidia-xconfig -a --allow-empty-initial-configuration --cool-bits=28 --use-display-device="DFP-0" --connected-monitor="DFP-0"

[12:36] 
creates an xorg.conf with faked monitor details

@pigfrown
Copy link
Author

need to rerun the nvidia-xconfig command everytime you add/remove a GPU

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment