You are not logged in.

#1 2013-10-20 11:36:57

Twinsen
Member
Registered: 2013-10-15
Posts: 3

[Solved] Running 0 A.D. in another XOrg server

Hello, everyone.
I installed 0 A.D. in my system, and I would like to run it on a separated XOrg server. So, I created this script for this purpose:

#!/bin/bash
DISPLAY=:1.0
xinit /usr/bin/0ad $* -- :1

When running this script on tty2, it works, but so much strange. The game runs, but with most of it dark: I cannot see the menu, images, map, characters, only text, the mouse pointer and a few more things.

I tried configuring my XOrg on display 1, running this:

[mateusfelipe@ArchLinux ~]$ sudo Xorg :1 -configure

X.Org X Server 1.14.3
Release Date: 2013-09-12
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.11.1-1-ARCH x86_64 
Current Operating System: Linux ArchLinux 3.11.4-1-ARCH #1 SMP PREEMPT Sat Oct 5 21:22:51 CEST 2013 x86_64
Kernel command line: root=/dev/sda2 rw quiet initrd=../initramfs-linux.img BOOT_IMAGE=../vmlinuz-linux 
Build Date: 08 October 2013  08:48:10PM
 
Current version of pixman: 0.30.2
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Tue Oct 15 14:06:12 2013
setversion 1.4 failed
List of video drivers:
	intel
	vesa
(++) Using config file: "/root/xorg.conf.new"
(==) Using config directory: "/etc/X11/xorg.conf.d"
Number of created screens does not match number of detected devices.
  Configuration failed.
(EE) Server terminated with error (2). Closing log file.

As you see, it does not work. What can I do to properly run 0 A.D. on another XOrg server?
Thanks.

__

Soution:

#!/bin/bash
xinit 0ad $* -- :1 vt2

Last edited by Twinsen (2013-12-20 11:31:40)

Offline

#2 2013-10-20 11:56:04

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [Solved] Running 0 A.D. in another XOrg server

You shouldn't set the DISPLAY variable like that, Xorg handles that.

Just use `xinit 0ad $* -- :1`.  you may want to set the vt if you want to be able to run this from a currently running session: `xinit 0ad $* -- :1 vt2`


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2013-10-20 23:59:07

Twinsen
Member
Registered: 2013-10-15
Posts: 3

Re: [Solved] Running 0 A.D. in another XOrg server

Trilby: Thank you. When I added vt2 it worked fine. But what did I do? I don't know much about X11.

Last edited by Twinsen (2013-10-21 00:06:25)

Offline

#4 2013-10-21 00:13:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,456
Website

Re: [Solved] Running 0 A.D. in another XOrg server

See `man Xorg`, it's the first option listed.

EDIT: I suppose what may not be immediately clear is that xinit or startx pass everything on the command line after the double dash "--" on as command line parameters to Xorg.  These parameters can set, among other things, which tty or vt the new session should run in.

Last edited by Trilby (2013-10-21 00:44:29)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB