summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDaniel Baumann <daniel@debian.org>2007-09-23 10:04:50 +0200
committerDaniel Baumann <daniel@debian.org>2011-03-09 18:18:29 +0100
commit4739146fc6c4de8b16418517bb882312c475195c (patch)
treea3c29d97d1ead4ad4fa532b1c6bfdb419f160e71 /examples
parent1863ed88740575342008ac5f694d03e944bcece2 (diff)
downloadlive-build-4739146fc6c4de8b16418517bb882312c475195c.zip
live-build-4739146fc6c4de8b16418517bb882312c475195c.tar.gz
Adding live-helper 1.0~a6-1.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/beryl-hook.sh60
-rw-r--r--examples/bpo.sources.list9
-rwxr-xr-xexamples/java-hook.sh15
-rw-r--r--examples/live.sources.list11
4 files changed, 95 insertions, 0 deletions
diff --git a/examples/beryl-hook.sh b/examples/beryl-hook.sh
new file mode 100755
index 0000000..f1658a5
--- /dev/null
+++ b/examples/beryl-hook.sh
@@ -0,0 +1,60 @@
+#!/bin/sh
+
+# This is a hook for live-helper(7) to install beryl and enable aixgl.
+# It was originally written by Inigo Tejedor Arrondo <inigo@navarrux.org>.
+#
+# To enable it, copy this hook into your config/chroot_localhooks directory.
+# At boot prompt, type 'live aixgl', press enter and have fun.
+
+# Update sources.list
+cat >> /etc/apt/sources.list << EOF
+# beryl-project
+deb http://debian.beryl-project.org/ etch main
+EOF
+
+if grep deb-src /etc/apt/sources.list
+then
+ echo "deb-src http://debian.beryl-project.org/ etch main" >> /etc/apt/sources.list
+fi
+
+# Import archive signing key
+wget -O - http://debian.beryl-project.org/root@lupine.me.uk.gpg | apt-key add -
+
+# Update indices
+apt-get update
+
+# Install packages
+PACKAGES="beryl beryl-core beryl-manager beryl-plugins beryl-plugins-unsupported beryl-settings beryl-settings-bindings beryl-settings-simple"
+
+if [ -f /usr/bin/gnome-session ]
+then
+ PACKAGES="${PACKAGES} emerald emerald-themes heliodor"
+fi
+
+if [ -f /usr/bin/kstart ]
+then
+ PACKAGES="${PACKAGES} aquamarine"
+fi
+
+apt-get install --yes ${PACKAGES}
+
+# Add init script
+cat > /etc/init.d/aixgl << EOF
+#!/bin/sh
+
+if cat /proc/cmdline | grep aixgl > /dev/null
+then
+ echo "Configuring xorg for aixgl..."
+
+ echo "" >> /etc/X11/xorg.conf
+ echo "# Added by beryl-hook.sh" >> /etc/X11/xorg.conf
+ echo "Section \"Extensions\"" >> /etc/X11/xorg.conf
+ echo " Option \"Composite\" \"Enable\"" >> /etc/X11/xorg.conf
+ echo "EndSection" >> /etc/X11/xorg.conf
+
+ sed -i -e "s/Section \"Device\""/"Section \"Device\"\n\t Option \"XAANoOffscreenPixmaps\" \"true\"\n\t Option \"AddARGBGLXVisuals\" \"on\"\n\t Option \"AllowGLXWithComposite\" \"true\"/" -e "s/Section \"Module\""/"Section \"Module\"\n\t Load \"i2c\"\n\t Load \"int10\"\n\t Load \"xtrap\"\n\t Load \"vbe\"/" /etc/X11/xorg.conf
+fi
+EOF
+
+chmod 0755 /etc/init.d/aixgl
+update-rc.d aixgl defaults
diff --git a/examples/bpo.sources.list b/examples/bpo.sources.list
new file mode 100644
index 0000000..461c66f
--- /dev/null
+++ b/examples/bpo.sources.list
@@ -0,0 +1,9 @@
+## This is a sources.list for live-helper(7) to use packages from the
+## Debian Etch backports repository.
+##
+## To enable it, copy this file to your config/chroot_sources directory, once
+## as e.g. bpo.build and once as bpo.image.
+
+# Debian backports for Etch
+deb http://www.backports.org/debian/ etch-backports main
+deb-src http://www.backports.org/debian/ etch-backports main
diff --git a/examples/java-hook.sh b/examples/java-hook.sh
new file mode 100755
index 0000000..77c931b
--- /dev/null
+++ b/examples/java-hook.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+# This is a hook for live-helper(7) to install sun-java.
+#
+# To enable it, copy this hook into your config/chroot_localhooks directory and
+# don't forget to enable non-free in LIVE_SECTIONS.
+#
+# live-helper sets DEBIAN_FRONTEND to 'noninteractive' to advise debconf to not
+# ask any questions while installing packages. Suns redistribution terms for
+# Java do not allow this, therefore we need to overwrite DEBIAN_FRONTEND for
+# this apt-get call only.
+
+DEBIAN_FRONTEND="dialog" apt-get install --yes sun-java6-bin sun-java6-demo \
+ sun-java6-doc sun-java6-fonts sun-java6-jdk sun-java6-jre \
+ sun-java6-plugin sun-java6-source
diff --git a/examples/live.sources.list b/examples/live.sources.list
new file mode 100644
index 0000000..98212f1
--- /dev/null
+++ b/examples/live.sources.list
@@ -0,0 +1,11 @@
+## This is a sources.list for live-helper(7) to use packages from the
+## Debian Live Etch backports repository.
+##
+## To enable it, copy this file to your config/chroot_sources directory, once
+## as e.g. live.build and once as live.image.
+##
+## Remeber to add debian-unofficial-archive-keyring to your package selection.
+
+# Debian Live backports for Etch
+deb http://live.debian.net/debian/ etch main
+deb-src http://live.debian.net/debian/ etch main