<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Linux Forum &mdash; Менеджер DM/WM. Консольный.]]></title>
	<link rel="self" href="https://linuxforum.ru/extern.php?action=feed&amp;tid=12650&amp;type=atom" />
	<updated>2011-05-31T02:25:12Z</updated>
	<generator>PunBB</generator>
	<id>https://linuxforum.ru/viewtopic.php?id=12650</id>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=183940#p183940" />
			<content type="html"><![CDATA[<p>upd</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-05-31T02:25:12Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=183940#p183940</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166791#p166791" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>redgy92 пишет:</cite><blockquote><p>но при apt-get purge lxdm пишет не установлено</p></blockquote></div><p>он наверное является неотъемлемой частью LXDE.</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-04-10T12:12:29Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166791#p166791</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166790#p166790" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>redgy92 пишет:</cite><blockquote><p>при старте системы запускается какой то DM</p></blockquote></div><p>я не про то. Что-бы сделать так, что-бы мой DM работал у вас, нужно знать КАК. У меня вот ссылки просто правятся. В других дистрах может быть и по другому. С другой стороны - зачем вам второй DM?</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-04-10T12:11:52Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166790#p166790</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166771#p166771" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>drBatty пишет:</cite><blockquote><p> (а как вы выбираете WM?)</p></blockquote></div><p>при старте системы запускается какой то DM&nbsp; smile снизу есть выбор<br />скорей всего lxdm, т.к. lxde стоит smile но при apt-get purge lxdm пишет не установлено</p>]]></content>
			<author>
				<name><![CDATA[redgy92]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9699</uri>
			</author>
			<updated>2011-04-10T11:44:57Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166771#p166771</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166762#p166762" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>sun пишет:</cite><blockquote><p>а беспарольную автозагрузку реализовать реально?</p></blockquote></div><p>легко. а оно надо?</p><p>1) читаем /etc/inittab</p><p>2) там написано agetty<br /></p><div class="quotebox"><cite>man agetty пишет:</cite><blockquote><p>AGETTY(8)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AGETTY(8)</p><p>NAME<br />&nbsp; &nbsp; &nbsp; &nbsp;agetty - alternative Linux getty</p><p>SYNOPSIS<br />&nbsp; &nbsp; &nbsp; &nbsp;agetty&nbsp; [-c8ihLmnsUw]&nbsp; [-f&nbsp; issue_file]&nbsp; [-l&nbsp; login_program]&nbsp; [-I&nbsp; init] [-t timeout] [-H login_host] port<br />&nbsp; &nbsp; &nbsp; &nbsp;baud_rate,...&nbsp; [term]</p><p>DESCRIPTION<br />&nbsp; &nbsp; &nbsp; &nbsp;agetty opens a tty port, prompts for a login name and invokes&nbsp; the&nbsp; /bin/login&nbsp; command.&nbsp; It&nbsp; is&nbsp; normally<br />&nbsp; &nbsp; &nbsp; &nbsp;invoked by init(8).</p></blockquote></div><p>3) видно, что запускается команда <strong>login</strong>, но можно это изменить. <br /></p><div class="quotebox"><cite>man login пишет:</cite><blockquote><p>OPTIONS<br />&nbsp; &nbsp; &nbsp; &nbsp;-f<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Do not perform authentication, user is preauthenticated.</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Note: In that case, username is mandatory.</p><p>&nbsp; &nbsp; &nbsp; &nbsp;-h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Name of the remote host for this login.</p></blockquote></div><p>видно, что достаточно юзать опции -fh, и написать, какой именно юзверь будет логинится. Вот только я не думаю, что это хорошая идея.</p><p>В принципе, вместо login можно прописать этот скрипт, и в нём вводить имя/пароль. Но практика показывает, что любая блондинко легко может набрать своё имя и свой пароль, это у неё получается не хуже, чем &quot;тыкнуть мышью и набрать пароль&quot;.</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-04-10T11:33:16Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166762#p166762</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166753#p166753" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>redgy92 пишет:</cite><blockquote><p>теперь пытаюсь понять, откуда берутся xinitrc.*</p></blockquote></div><p>это от дистра зависит. у меня они сами делаются во время установки WM. И сами исчезают. Для того менеджер и нужен. И для того там есть переменная, которую надо поменять, если у вас по другому. (а как вы выбираете WM?)<br /></p><div class="quotebox"><cite>sun пишет:</cite><blockquote><p>И, да, а зачем одновременно ставить и кеды и крысу и еще пригоршню wm`ов?</p></blockquote></div><p>какое вам до этого дело? Есть два варианта:</p><p>1) у вас один WM. Тогда эта программа вам НЕ нужна. Зачем вам менеджер того, чего нет? Если у вас только KDE, то ничего и выбирать не надо.<br />2) у вас много WM. Не важно почему. Вам необходим какой-то менеджер. Например этот. Или просто ручками менять. Или gdm.</p><div class="quotebox"><cite>redgy92 пишет:</cite><blockquote><p>сменил #!/bin/sh на #!/bin/bash</p></blockquote></div><p>исправил. спасиб.</p><div class="codebox"><pre><code>#!/bin/bash

TMP=&quot;${TMP:-/tmp}&quot;

xinit_path=&quot;/etc/X11/xinit&quot;

DEFAULT_WM=`readlink $xinit_path/xinitrc`
DEFAULT_WM=&quot;${DEFAULT_WM##*.}&quot;
export DEFAULT_WM

xp=&quot;$xinit_path/xinitrc.*&quot;

N=`ls $xp | wc -l`
if (( N &lt;= 1 )); then
    # одно WM или 0. Выбора нет
    exit
fi


cat &gt;$TMP/cdm.sed &lt;&lt;EOS
1idialog --title &quot;SelectWM/DE&quot; \\\\
1i--nocancel \\\\
1i--no-kill \\\\
1i--menu &quot;Select&quot; 21 76 10 \\\\
s~.*\.([^/]+)$~&quot;\1&quot; &quot;\1&quot;~
T
s~$~ \\\\~
H
\${
    g
    s/^\n//
    s/(.*)\n(&quot;$DEFAULT_WM&quot;[^\n]+)\n(.*)/\2\n\1\n\3/
    p
    a 2&gt;\$TMP/cdmtemp
}
EOS

CMD=`ls $xp | sed -rnf $TMP/cdm.sed`
eval &quot;$CMD&quot;

DE=`cat $TMP/cdmtemp`

rm -f $TMP/cdm{temp,.sed}
PWD=&quot;`pwd`&quot;
cd $xinit_path
ln -svf xinitrc.$DE xinitrc
cd &quot;$PWD&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-04-10T11:17:39Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166753#p166753</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166745#p166745" />
			<content type="html"><![CDATA[<div class="quotebox"><blockquote><p>Не gdm-же ставить в самом деле!</p></blockquote></div><p>Можно ведь лёгенький slim поставить. И, да, а зачем одновременно ставить и кеды и крысу и еще пригоршню wm`ов?</p><p>п.с. Доктор, а беспарольную автозагрузку реализовать реально?</p>]]></content>
			<author>
				<name><![CDATA[sun]]></name>
				<uri>https://linuxforum.ru/profile.php?id=12046</uri>
			</author>
			<updated>2011-04-10T10:32:13Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166745#p166745</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166743#p166743" />
			<content type="html"><![CDATA[<p>сменил #!/bin/sh на #!/bin/bash, все заработало&nbsp; smile теперь пытаюсь понять, откуда берутся xinitrc.*&nbsp; :o</p>]]></content>
			<author>
				<name><![CDATA[redgy92]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9699</uri>
			</author>
			<updated>2011-04-10T10:24:35Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166743#p166743</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166735#p166735" />
			<content type="html"><![CDATA[<p>да... надо умолчание сделать не icewm, а то, что было в прошлый раз. Это я в TODO&nbsp; wink</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-04-10T10:02:56Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166735#p166735</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166734#p166734" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>newzenon пишет:</cite><blockquote><p>Ай, молодец Док. Правда я перезагружаюсь в последнее время максимум раз в неделю... или когда свет выключат.</p></blockquote></div><p>я тоже. А если я хочу KDE вместо IceWM?</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-04-10T10:01:55Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166734#p166734</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166733#p166733" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>redgy92 пишет:</cite><blockquote><p>а с этим что?</p></blockquote></div><p>оно и есть - программа желает вывести список DE, у вас он пуст. По идее, должен быть пустой экран.</p><div class="codebox"><pre><code>#!/bin/bash

TMP=&quot;${TMP:-/tmp}&quot;

xinit_path=&quot;/etc/X11/xinit&quot;
xp=&quot;$xinit_path/xinitrc.*&quot;

N=`ls $xp | wc -l`
if (( N &lt;= 1 )); then
    # одно WM или 0. Выбора нет
    exit
fi

ls $xp | sed -rn &#039;
1idialog --title &quot;Select WM/DE&quot; \\\n--nocancel \\\n--no-kill \\
1i--menu &quot;Select&quot; 21 76 10 \\
s~.*\.([^/]+)$~&quot;\1&quot; &quot;\1&quot;~
T
s~$~ \\~
H
${
    g
    s/^\n//
    s/(.*)\n(&quot;icewm&quot;[^\n]+)\n(.*)/\2\n\1\n\3/
    p
    a 2&gt;$TMP/cdmtemp
}
&#039; &gt;$TMP/cdmcmd

source $TMP/cdmcmd

DE=`cat $TMP/cdmtemp`

rm -f $TMP/cdm{temp,cmd}
PWD=&quot;`pwd`&quot;
cd $xinit_path
ln -svf xinitrc.$DE xinitrc
cd &quot;$PWD&quot;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-04-10T10:01:05Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166733#p166733</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166724#p166724" />
			<content type="html"><![CDATA[<p>Ай, молодец Док. Правда я перезагружаюсь в последнее время максимум раз в неделю... или когда свет выключат.&nbsp; smile</p>]]></content>
			<author>
				<name><![CDATA[zenon]]></name>
				<uri>https://linuxforum.ru/profile.php?id=6867</uri>
			</author>
			<updated>2011-04-10T09:34:27Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166724#p166724</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166723#p166723" />
			<content type="html"><![CDATA[<p>ой, это я на косячил&nbsp; <img src="https://linuxforum.ru/img/smilies/ag.gif" alt="ag" /> </p><div class="quotebox"><cite>xinitrc пишет:</cite><blockquote><p>#!/bin/bash</p><p># /etc/X11/xinit/xinitrc<br />#<br /># global xinitrc file, used by all X sessions started by xinit (startx)</p><p># invoke global X session script<br />. /etc/X11/Xsession</p></blockquote></div><br /><p>а с этим что?<br /></p><div class="quotebox"><blockquote><p>Error: Expected at least 6 tokens for --menu, have 4.</p></blockquote></div>]]></content>
			<author>
				<name><![CDATA[redgy92]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9699</uri>
			</author>
			<updated>2011-04-10T09:29:55Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166723#p166723</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166716#p166716" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>redgy92 пишет:</cite><blockquote><p>xinitrc пуст</p></blockquote></div><p>как-бы странно использовать программу для ВЫБОРА wm/de, если у вас нет этого самого выбора нет. Вам пустой экран надо было показать? ну ладно, сейчас встрою проверку... Для такого терминального случая...</p>]]></content>
			<author>
				<name><![CDATA[drBatty]]></name>
				<uri>https://linuxforum.ru/profile.php?id=86</uri>
			</author>
			<updated>2011-04-10T09:08:33Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166716#p166716</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Менеджер DM/WM. Консольный.]]></title>
			<link rel="alternate" href="https://linuxforum.ru/viewtopic.php?pid=166540#p166540" />
			<content type="html"><![CDATA[<p>все равно косяк&nbsp; smile <br /></p><div class="quotebox"><blockquote><p>Error: Expected at least 6 tokens for --menu, have 4.</p></blockquote></div><br /><div class="quotebox"><blockquote><p>redgy92@redgypc:~$ ls -al /etc/X11/xinit/<br />итого 12<br />drwxr-xr-x 2 root root 4096 2011-04-09 20:37 .<br />drwxr-xr-x 9 root root 4096 2011-04-08 10:20 ..<br />-rwxr-xr-x 1 root root&nbsp; &nbsp; 0 2011-04-09 20:37 xinitrc<br />-rwxr-xr-x 1 root root&nbsp; &nbsp;46 2009-12-07 17:07 xserverrc</p></blockquote></div><p><strong>xinitrc</strong> пуст&nbsp; smile</p>]]></content>
			<author>
				<name><![CDATA[redgy92]]></name>
				<uri>https://linuxforum.ru/profile.php?id=9699</uri>
			</author>
			<updated>2011-04-09T16:44:31Z</updated>
			<id>https://linuxforum.ru/viewtopic.php?pid=166540#p166540</id>
		</entry>
</feed>
