ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Leonid Krivoshein <klark.devel@gmail.com>
To: devel@lists.altlinux.org
Subject: Re: [devel] Режим киоска
Date: Sun, 3 Mar 2019 12:57:41 +0300
Message-ID: <7fcd8a5e-8698-e5c1-c7b1-3803ad4bbf71@gmail.com> (raw)
In-Reply-To: <4FDFBD10-675A-40BA-B709-07407A535991@altlinux.org>


03.03.2019 09:43, Andrey Cherepanov пишет:
> Обращаюсь за помощью в реализации режима киоска у нас в дистрибутивах. 
> В настоящий момент можно реализовать это через
>
> /etc/X11/Xsession
>
> # Try custom user WM.
> ExecIfExecutable "/etc/X11/xsession.user.d/$USER"
>
> и выйти после этого, чтобы не запускать startwm.
>
> Перед этим игнорировать возможные переопределения в "$HOME"/.xsession.d/*
>
> Вопрос: можно ли запустить X-ы без Xsession? Можно ли переопределить 
> по-иному или надо и консоли заблочить?
>

Наш инсталлятор -- классический kiosk, разве что с root'ом.
Там запуск как раз через xinitrc. Думается, затык м.б. в этом:

$ grep Xsession /etc/X11/xdm/xdm-config
DisplayManager*session:        /etc/X11/Xsession

$ grep Xsession /etc/X11/xdm/Xsession
exec /etc/X11/Xsession $*
# Xsession ends here

Можно ещё добавить /etc/X11/xorg.conf.d/99-kiosk.conf:

# Disable DPMS
Section "ServerFlags"
     Option "blank time"   "0"
     Option "standby time" "0"
     Option "suspend time" "0"
     Option "off time"     "0"
EndSection

# Disable Ctrl-Alt-Backspace and Ctrl-Alt-Fx
Section "ServerFlags"
     Option "DontZap"      "True"
     Option "DontVTSwitch" "True"
EndSection


-- 
Best regards,
Leonid Krivoshein.



  parent reply	other threads:[~2019-03-03  9:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-03  9:33 ` Alexey V. Vissarionov
2019-03-03  9:57 ` Leonid Krivoshein [this message]
2019-03-04 11:45   ` Michael Shigorin
2019-03-04 13:52     ` Dmitry Derjavin

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=7fcd8a5e-8698-e5c1-c7b1-3803ad4bbf71@gmail.com \
    --to=klark.devel@gmail.com \
    --cc=devel@lists.altlinux.org \
    /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 Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/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 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git