Настроил в файле
/etc/X11/Xwrapper.config значение
allowed_users=anybodyЗапускаю скрипт:
#!/bin/bash
X :2 -ac -terminate -config only_one_monitor.conf & sleep 2
DISPLAY=:2 nice -20 gnome-terminal
Получаю:
X.Org X Server 1.18.3
Release Date: 2016-04-04
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.13.0-92-generic x86_64 Ubuntu
Current Operating System: Linux P5K-SE 4.4.0-34-generic #53~14.04.1-Ubuntu SMP Wed Jul 27 16:56:40 UTC 2016 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.4.0-34-generic root=UUID=fd970daf-7a55-4ece-a683-030c606d0765 ro persistent quiet splash
Build Date: 03 August 2016 12:15:46PM
xorg-server 2:1.18.3-1ubuntu2.2~trusty2 (For technical support please see http://www.ubuntu.com/support)
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: "/home/givizub/.local/share/xorg/Xorg.2.log", Time: Sun Aug 28 13:40:37 2016
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) parse_vt_settings: 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/givizub/.local/share/xorg/Xorg.2.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
** (gnome-terminal:8215): WARNING **: Could not open X display
Не удалось определить аргументы: Невозможно открыть дисплей:
В чем может быть проблема?
Ubuntu 14.04, x64, nVidia 210 драйвер вер. 340.