RocketMod / Rocket.Unturned

Unturned 3 implementation of the RocketMod — .NET Game Server Plugin Framework
MIT License
83 stars 109 forks source link

[Linux][Script] start.sh - Unable launch startx under a user account #17

Closed Turbine1991 closed 8 years ago

Turbine1991 commented 8 years ago

I'm unable to launch startx without root/sudo.

Here is my error when ran as a user:

X.Org X Server 1.17.3
Release Date: 2015-10-26
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.19.0-33-generic x86_64 Ubuntu
Current Operating System: Linux gamehost 4.3.0mcg12-native #15 SMP Fri Jan 22 06:23:01 CST 2016 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.3.0mcg12-native root=UUID=15bb5811-9837-4802-b5f7-97346912df72 ro nomdmonddf nomdmonisw crashkernel=384M-:128M
Build Date: 25 November 2015  04:17:13PM
xorg-server 2:1.17.3-2ubuntu2 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.32.6
        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: "/home/mcg/.local/share/xorg/Xorg.1.log", Time: Sat Jan 23 20:20:03 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/home/mcg/.local/share/xorg/Xorg.1.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
fr34kyn01535 commented 8 years ago

I don't remember distributing an X Server with Rocket ;)

Turbine1991 commented 8 years ago

You do realise start.sh calls on startx?

fr34kyn01535 commented 8 years ago

You do realise a broken x server is not my fault?

Turbine1991 commented 8 years ago

Will it runs as root.

FreeLikeGNU commented 8 years ago

will this work with xvfb (xvfb does not require root to create a framebuffer)? Install xvfb and mesa-utils and try this: $ Xvfb :99 -screen 0 1024x768x24 +extension GLX +extension RANDR +render -noreset&

$ export DISPLAY=:99 $ glxinfo $ glxgears (wait a few seconds for framerates to appear)

fr34kyn01535 commented 8 years ago

Try it, its a unity issue, not a rocket issue