ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Michael Shigorin <mike@osdn.org.ua>
To: ALT Linux Community general discussions <community@lists.altlinux.org>
Subject: Re: [Comm] web kiosk livecd
Date: Wed, 25 Jan 2012 09:20:48 +0200
Message-ID: <20120125072048.GC864@osdn.org.ua> (raw)
In-Reply-To: <CANM4Rugkp0ozsyB9+ov-nq=7+nnEGmTSzh+r80b_sUrLu=NeqA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1071 bytes --]

On Wed, Jan 25, 2012 at 07:25:26AM +0300, Eugene Prokopiev wrote:
> > Вдруг кому пригодится -- сделал набросок livecd для поднятия
> > веб-киосков, 32-битный образ на базе t6/branch доступен здесь:
> > http://ftp.linux.kiev.ua/pub/Linux/ALT/people/mike/iso/mkimage-profiles/live-webkiosk-t6_20120125-i586.iso
> спасибо, но make что ? ;)

make live-webkiosk.iso, натурально :) (прилагается)

> > (предложения касательно желаемого транспорта URL
> > опять же приветствуются).
> RFC 2132 - option 72 (Default World Wide Web (WWW) Server) ?

Ага, спасибо.  В сторону DHCP и думал, но не искал ещё,
есть ли что готовенькое или придётся piggyback'ать.

> > Должно быть весьма несложно доработать m-p таким образом,
> > чтобы изменение стартовой страницы можно было сделать простой
> > пересборкой, передав дополнительную переменную.
> Нет, изменение стартовой страницы пересборкой - это слишком

Смотря для каких целей, хотя для многих должно хватать
правки файлика в его корне.

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/

[-- Attachment #2: 0001-conf.d-live.mk-factor-commons-into-distro-.live-x11.patch --]
[-- Type: text/plain, Size: 1553 bytes --]

>From aed27ce333c74c680280e8c64efbc6b199c55bc0 Mon Sep 17 00:00:00 2001
From: Michael Shigorin <mike@altlinux.org>
Date: Tue, 24 Jan 2012 23:58:31 +0200
Subject: [PATCH 1/2] conf.d/live.mk: factor commons into distro/.live-x11

It's rather unexpected that someone would do an X11 LiveCD
without user autologin -- but even if that's the case,
then this waypoint is just not used for it.
---
 conf.d/live.mk |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/conf.d/live.mk b/conf.d/live.mk
index bc18033..7de9c39 100644
--- a/conf.d/live.mk
+++ b/conf.d/live.mk
@@ -6,6 +6,8 @@ distro/rescue: distro/.base use/rescue use/syslinux/ui-menu
 distro/live: distro/.base use/live/base use/power/acpi/cpufreq
 distro/live-systemd: distro/.base use/live/base use/systemd
 
+distro/.live-x11: distro/live use/live/autologin use/power/acpi/button
+
 distro/live-isomd5sum: distro/.base use/live/base use/isomd5sum
 	@$(call add,LIVE_PACKAGES,livecd-isomd5sum)
 
@@ -24,11 +26,11 @@ distro/live-builder: distro/.base use/repo/main \
 distro/live-install: distro/.base use/live/base use/syslinux/localboot.cfg
 	@$(call add,LIVE_PACKAGES,live-install)
 
-distro/live-icewm: distro/live use/live/autologin
+distro/live-icewm: distro/.live-x11
 	@$(call add,LIVE_LISTS, \
 		$(call tags,(base || desktop) && (live || network || icewm)))
 
-distro/live-razorqt: distro/live use/live/autologin
+distro/live-razorqt: distro/.live-x11
 	@$(call add,LIVE_LISTS, \
 		$(call tags,(base || desktop) && (live || network || razorqt)))
 
-- 
1.7.8.4


[-- Attachment #3: 0002-conf.d-live.mk-initial-live-webkiosk.patch --]
[-- Type: text/plain, Size: 1634 bytes --]

>From bece6a57b020ba4e1dc35bb2fcf326af9ebf5c8c Mon Sep 17 00:00:00 2001
From: Michael Shigorin <mike@altlinux.org>
Date: Wed, 25 Jan 2012 00:01:00 +0200
Subject: [PATCH 2/2] conf.d/live.mk: initial live-webkiosk

This one starts up a Firefox session in kiosk mode
(there are several extensions, I find hsv@'s one
preferable) and tries to browse /image/index.html
which corresponds to index.html in the image root
(could be edited by means of e.g. isomaster).
---
 conf.d/live.mk                           |    4 ++++
 features.in/live/stage1/files/index.html |   10 ++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 features.in/live/stage1/files/index.html

diff --git a/conf.d/live.mk b/conf.d/live.mk
index 7de9c39..7e7041d 100644
--- a/conf.d/live.mk
+++ b/conf.d/live.mk
@@ -39,4 +39,8 @@ distro/live-rescue: distro/live-icewm
 	@$(call add,LIVE_LISTS, \
 		$(call tags,(base || extra) && (archive || rescue || network)))
 
+distro/live-webkiosk: distro/.live-x11
+	@$(call add,LIVE_PACKAGES,livecd-webkiosk)
+	@$(call add,LIVE_PACKAGES,fonts-ttf-dejavu fonts-ttf-droid)
+
 endif
diff --git a/features.in/live/stage1/files/index.html b/features.in/live/stage1/files/index.html
new file mode 100644
index 0000000..33181ca
--- /dev/null
+++ b/features.in/live/stage1/files/index.html
@@ -0,0 +1,10 @@
+<html>
+<head>
+<meta http-equiv="refresh" content="3;url=http://www.altlinux.org/">
+<title>Welcome to ALT Linux!</title>
+</head>
+<body>
+<h1>Welcome to ALT Linux!</h1>
+<p>You will be redirected to <a href="http://www.altlinux.org/">the home page</a> shortly.</p>
+</body>
+<html>
-- 
1.7.8.4


  reply	other threads:[~2012-01-25  7:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-24 22:34 Michael Shigorin
2012-01-25  4:25 ` Eugene Prokopiev
2012-01-25  7:20   ` Michael Shigorin [this message]
2012-01-25 11:08     ` Соломонов С. Н
2012-01-25 12:31       ` Michael Shigorin

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=20120125072048.GC864@osdn.org.ua \
    --to=mike@osdn.org.ua \
    --cc=community@lists.altlinux.org \
    --cc=shigorin@gmail.com \
    /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 Community general discussions

This inbox may be cloned and mirrored by anyone:

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

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


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