From: Evgeny Yugov <yugov@scs-900.ru>
To: Sergey V Turchin <sisyphus@altlinux.ru>
Subject: [sisyphus] Re[2]: [sisyphus] Не стартует KDE из под обычного пользователя!!!
Date: Wed, 14 Nov 2001 10:14:25 +0600
Message-ID: <251301621.20011114101425@scs-900.ru> (raw)
In-Reply-To: <20011113182339.7fe22080.zerg@altlinux.ru>
[-- Attachment #1: Type: text/plain, Size: 3654 bytes --]
Здравствуйте Sergey,
Tuesday, November 13, 2001, 9:23:39 PM, you wrote:
EY>> >> # If you login from xdm, uncomment this to make error messages appear
EY>> >> # in the console window.
EY>> >> #
EY>> >> # tail -f /home/aen/.xsession-errors > /dev/console &
EY>> >> if [ -f /usr/X11R6/bin/wmselect ]; then
EY>> >> . `which wmselect`
EY>> >> else
EY>> >> exec /etc/X11/Xsession $*
EY>> >> fi
EY>> >> Я изменил строку exec "/etc/X11/Xsession $*" на "/usr/bin/startkde"
EY>> MZ> Зря. /etc/X11/Xsession делает много полезных вещей.
EY>> Так ить понятно просто работать то надо! :O)
EY>> MZ> Лучше запустите его с трассировкой:
EY>> MZ> exec sh -x /etc/X11/Xsession $* 2>$HOME/tmp/xsession-trace
EY>> MZ> и смотрите ~/tmp/xsession-trace
EY>> Прикол в том что при этом ЗАПУСТИЛСЯ КДЕ! :o)))
EY>> Феня оказалась вот в чем:
EY>> в дефолтовом конфиге (из skels):
EY>> exec /etc/X11/Xsession $*
EY>> а в вашем варианте:
EY>> exec sh -x /etc/X11/Xsession $* 2>$HOME/tmp/xsession-trace
EY>> -------^^ вот грабли!
EY>> Вот и возникает несколько вопросов:
EY>> 1) Почему из-под рута (у которого НЕТ файла .xinitrc) запускается КДЕ
EY>> (хотя не должен т.к. при отсутствии оного стартует просто Иксы с
EY>> консолькой)?
EY>> При том же условии у вновь созданного юзера все по ману стартует
EY>> Иксы и консолька!
EY>> 2) Почему "exec /etc/X11/Xsession $*" - НЕПРОКАТЫВАЕТ,
EY>> а "exec sh /etc/X11/Xsession $*" - ПРОКАТЫВАЕТ?
EY>> Тогда как в мане как раз приведен первый вариант!
SVT> Покажите пожалуйста:
SVT> 1. содержимое файлов:
SVT> ~/.xinitrc ~/.Xclients ~/.wmrc ~/.xsession
[john@yugov:~]>cat ~/.xinitrc
При этом конфиге ВООБЩЕ не грузится КДЕ:
# If you login from xdm, uncomment this to make error messages appear
# in the console window.
#
# tail -f /home/aen/.xsession-errors > /dev/console &
if [ -f /usr/X11R6/bin/wmselect ]; then
. `which wmselect`
else
exec /usr/bin/startkde $*
fi
Если написать:
exec /bin/bash -x /etc/X11/Xsession $*
то КДЕ стартует
А елси так:
exec /bin/bash -login -x /etc/X11/Xsession $*
теперь не стартует!
[john@yugov:~]>cat ~/.Xclients
отсутствует файл
[john@yugov:~]>cat /etc/X11/xinit/.Xclients
#!/bin/bash
exec /etc/X11/Xsession
.wmrc отсутствует вообще:
[john@yugov:~]>locate wmrc
/etc/X11/twm/system.twmrc-menu
/etc/X11/twm/system.twmrc
/etc/X11/mwm/system.mwmrc
/etc/X11/mwm/system.mwmrc-menu
/usr/share/doc/menu-2.1.5/examples/system.9wmrc-menu
/usr/share/doc/menu-2.1.5/examples/system.ctwmrc-menu
/usr/share/doc/menu-2.1.5/examples/system.fvwmrc-menu
/usr/share/doc/menu-2.1.5/examples/system.twmrc-menu
/usr/X11R6/man/man5/mwmrc.5.gz
[john@yugov:~]>cat ~/.Xsession ()
отсутствует файл
[john@yugov:~]>cat /etc/X11/xdm/Xsession
#!/bin/bash -login
exec /etc/X11/Xsession $*
# Xsession ends here
SVT> 2. вывод команд:
SVT> rpm -q xinitrc initscripts etcskel-ru-koi8r etcskel-ru-cp1251
SVT> etcskel
[root@yugov:/]>rpm -q xinitrc initscripts etcskel-ru-koi8r etcskel-ru-cp1251 etcskel
xinitrc-2.4.4-ipl38mdk
initscripts-5.49-ipl30mdk
etcskel-ru-koi8r-0.3-ipl5
warning: package etcskel-ru-cp1251 is not installed
etcskel-1.65-ipl4mdk
SVT> apt-get check (из под root)
[root@yugov:/]>apt-get check
Processing File Dependencies... Done
Reading Package Lists... Done
Building Dependency Tree... Done
P.S. Если что в аттаче 2 файла:
xsession-trace.1 - для строки "exec /bin/bash -login -x
/etc/X11/Xsession $* 2>$HOME/tmp/xsession-trace.1"
xsession-trace.2 - для строки "exec /bin/bash -x /etc/X11/Xsession $*
2>$HOME/tmp/xsession-trace.2"
--
With Best regards,
Evgeny
mailto:yugov@scs-900.ru
--
Реальность - это иллюзия,созданная отсутствием алкоголя.
[-- Attachment #2: xsession-trace.1 --]
[-- Type: application/octet-stream, Size: 13467 bytes --]
[-- Attachment #3: xsession-trace.2 --]
[-- Type: application/octet-stream, Size: 6317 bytes --]
next prev parent reply other threads:[~2001-11-14 4:14 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-11-12 4:55 Evgeny Yugov
2001-11-12 7:13 ` [sisyphus] " Mikhail Zabaluev
2001-11-12 8:03 ` [sisyphus] " Evgeny Yugov
2001-11-12 8:51 ` Mikhail Zabaluev
2001-11-12 9:08 ` [sisyphus] " Evgeny Yugov
2001-11-12 9:26 ` Mikhail Zabaluev
2001-11-12 10:01 ` [sisyphus] " Evgeny Yugov
2001-11-12 12:54 ` Sergey V Turchin
2001-11-12 13:58 ` [sisyphus] Re[2]: " Evgeny Yugov
2001-11-13 3:57 ` [sisyphus] " Evgeny Yugov
2001-11-13 9:14 ` [sisyphus] " Mikhail Zabaluev
2001-11-13 10:01 ` [sisyphus] " Evgeny Yugov
2001-11-13 10:57 ` Mikhail Zabaluev
2001-11-13 12:01 ` [sisyphus] " Evgeny Yugov
2001-11-13 23:08 ` Mikhail Zabaluev
2001-11-14 4:16 ` [sisyphus] " Evgeny Yugov
2001-11-13 15:23 ` [sisyphus] " Sergey V Turchin
2001-11-14 4:14 ` Evgeny Yugov [this message]
2001-11-14 12:25 ` [sisyphus] Re[2]: " Sergey V Turchin
2001-11-14 22:57 ` [sisyphus] " Mikhail Zabaluev
2001-11-15 4:51 ` [sisyphus] " Evgeny Yugov
2001-11-15 5:41 ` [sisyphus] Core dump after KDE exit (was: Не стартует KDE из под обычного пользователя!!!) Evgeny Yugov
2001-11-15 9:11 ` [sisyphus] " Mikhail Zabaluev
2001-11-15 9:35 ` [sisyphus] " Evgeny Yugov
2001-11-15 10:16 ` [sisyphus] Core dump after KDE exit (was: Не стартует KDE из под обычного пользователя !!!) Sergey V Turchin
2001-11-15 10:52 ` [sisyphus] Re[2]: " Evgeny Yugov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=251301621.20011114101425@scs-900.ru \
--to=yugov@scs-900.ru \
--cc=sisyphus@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git