<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; KDM:2 || sudo startx]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=417&amp;type=atom" />
	<updated>2010-02-27T12:29:48Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=417</id>
		<entry>
			<title type="html"><![CDATA[Re: KDM:2 || sudo startx]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=6040#p6040" />
			<content type="html"><![CDATA[<p>Для разблокировки authority file перед стартом иксов выполни:</p><p>$ xauth -b<br />&gt; q&nbsp; &nbsp;// для выхода</p><p>потом стартуй.</p>]]></content>
			<author>
				<name><![CDATA[Buy]]></name>
				<uri>https://linuxforum.ru/profile.php?id=321</uri>
			</author>
			<updated>2010-02-27T12:29:48Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=6040#p6040</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: KDM:2 || sudo startx]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=5816#p5816" />
			<content type="html"><![CDATA[<p>Читал недавно, что XOrg всегда запускается от root, так как серверу нужен низкоуровневый доступ к железу.<br />Попытайтесь так:<br /></p><div class="codebox"><pre><code>sudo -H -u xguest startx xfce4 -- :2</code></pre></div><p>или<br /></p><div class="codebox"><pre><code>sudo -H -u xguest &quot;unset XAUTHORITY; startx xfce4 -- :2&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[MageWarrior]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1140</uri>
			</author>
			<updated>2010-02-27T05:48:48Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=5816#p5816</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: KDM:2 || sudo startx]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=5428#p5428" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>tmp13 пишет:</cite><blockquote><div class="codebox"><pre><code>X :2&amp;;export DISPLAY=:2;kdm</code></pre></div><p>я думаю так...</p></blockquote></div><p>Не получилось =\<br />Подскажите пожалуйста, как можно запустить X-Сервер с помощью su или sudo от имени xguest. Команда запуска - startx xfce4 -- :2<br />Консоль, с которой запускается х-сервер - bash-скрипт<br />Скрипт запущен от имени root простым пользователем (планируется регистрация скрипта в sudoers). В скрипте также перед запуском активируется учётная запись xguest, после завершения Х-сессии - блокируется.<br />Испробованные варианты:<br /></p><div class="codebox"><pre><code>[root@host ~]# su -c &quot;startx xfce4 -- :2&quot; xguest            
xauth:  creating new authority file /home/xguest/.serverauth.1477                                                             
Authentication failed - cannot start X server.                                                                                
Perhaps you do not have console ownership?xinit:  Server error.                                                               
[root@host ~]# sudo -u xguest startx xfce4 -- :2
xauth:  timeout in locking authority file /root/.serverauth.1831
xauth:  timeout in locking authority file /root/.xauthJtAXJC
xauth:  timeout in locking authority file /root/.xauthJtAXJC
xauth:  timeout in locking authority file /root/.xauthJtAXJC
xauth:  timeout in locking authority file /root/.xauthJtAXJC
Authentication failed - cannot start X server.
Perhaps you do not have console ownership?xinit:  Server error.
xauth:  timeout in locking authority file /root/.xauthJtAXJC
rm: невозможно удалить `/root/.serverauth.1831&#039;: Отказано в доступе
[root@host ~]# sudo -u xguest -i startx xfce4 -- :2
xauth:  creating new authority file /home/xguest/.serverauth.2424
xauth:  timeout in locking authority file /root/.xauthJtAXJC
xauth:  timeout in locking authority file /root/.xauthJtAXJC
xauth:  timeout in locking authority file /root/.xauthJtAXJC
xauth:  timeout in locking authority file /root/.xauthJtAXJC
Authentication failed - cannot start X server.
Perhaps you do not have console ownership?xinit:  Server error.
xauth:  timeout in locking authority file /root/.xauthJtAXJC
[root@host ~]#</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Northsoft]]></name>
				<uri>https://linuxforum.ru/profile.php?id=608</uri>
			</author>
			<updated>2010-02-26T18:05:51Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=5428#p5428</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: KDM:2 || sudo startx]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=5246#p5246" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>X :2&amp;;export DISPLAY=:2;kdm</code></pre></div><p>я думаю так...</p>]]></content>
			<author>
				<name><![CDATA[tmp13]]></name>
				<uri>https://linuxforum.ru/profile.php?id=498</uri>
			</author>
			<updated>2010-02-26T16:08:20Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=5246#p5246</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: KDM:2 || sudo startx]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=5228#p5228" />
			<content type="html"><![CDATA[<p>Спасибо <img src="https://linuxforum.ru/img/smilies/ab.gif" alt="ab" /> запустил X-Сервер с уже запущенным DE командой startx xfce4 -- :2, теперь думаю как запустить KDM вместо XFCE.</p>]]></content>
			<author>
				<name><![CDATA[Northsoft]]></name>
				<uri>https://linuxforum.ru/profile.php?id=608</uri>
			</author>
			<updated>2010-02-26T15:57:59Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=5228#p5228</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: KDM:2 || sudo startx]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=4728#p4728" />
			<content type="html"><![CDATA[<p>Надо попробовать решить эту задачу дома. Думаю, что здесь наиболее подходящая команда - startx (скрипт вызова xinit). Ранее я ее использовал в таком виде: <span style="color: #3333FF">startx icewm</span>. Другое дело - одновременно указать/запустить второй сервер X. Тут проблем быть не должно, дабы <strong>man startx</strong>, имеет информацию по разрешению этого вопроса.</p><p>P.S.: Укажите, пожалуйста дистрибутив - может оказаться полезным.</p>]]></content>
			<author>
				<name><![CDATA[MageWarrior]]></name>
				<uri>https://linuxforum.ru/profile.php?id=1140</uri>
			</author>
			<updated>2010-02-26T08:17:43Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=4728#p4728</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[KDM:2 || sudo startx]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=4656#p4656" />
			<content type="html"><![CDATA[<p>Доброго времени суток. То ли я разучился искать, то ли я просто чего-то не понимаю: пожалуйста, подскажите, как запустить KDM одной командой из консоли (т.е. без правок xinitrc и других файлов), если известно, что на нулевом графическом терминале (:0) уже запущен другой Х-Сервер. Задача - запустить вторую копию иксов с авторизацией и выбором DE (KDE/LXDE/XFCE/Gnome/Fluxbox). Назначение - гостевой доступ к машине. Заранее всем спасибо.</p>]]></content>
			<author>
				<name><![CDATA[Northsoft]]></name>
				<uri>https://linuxforum.ru/profile.php?id=608</uri>
			</author>
			<updated>2010-02-26T06:23:34Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=4656#p4656</id>
		</entry>
</feed>
