Commits

Kevin Veroneau committed 70fd4ff

Initial release of Debian Live Squeeze web development system for Python.

  • Participants

Comments (0)

Files changed (19)

+This is a Debian live-build, version 2.0.12-1 build system files for a Web Development Environment
+
+Before proceeding to build the system, please do the following(or you will not have a proper system):
+
+Change your preferred username under "auto/config", also change the username in "config/chroot_local-hooks/enable-login.sh"
+
+If you wish to re-enable the Debian Live's ability to auto-login, remove the following files:
+config/chroot_local-hooks/enable-console.sh
+config/chroot_local-hooks/enable-login.sh
+
+Feel free to also custom any of these hooks to your specific requirements.
+
+In order to properly install both Eclipse and the latest version of Firefox(not iceweasel), please read the following readme file:
+config/chroot_local-includes/opt/README.txt
+
+If you wish to use Chrome, download the DEB package from Google.com/Chrome and place it into the following directory:
+config/chroot_local-packages/
+
+You can customize any of the packages by creating a new list file in the following directory:
+config/chroot_local-packageslists/
+
+Existing lists are already there, however refrain from editing those as an "hg update" may wipe your changes.
+After creating a new custom list file, add this file to your "auto/config" file.
+
+To start the actual build, run the following as the "root" user: lb build
+
+This will create an ISO binary image by default, you can change this in the "auto/config" file.
+
+This is for the live-build system shipped with "Debian Squeeze", and may not work with other versions of live-build.
+
+I may release a newer version of this build system for "Debian Wheezy" at a future date.

webdev/auto/build

+#!/bin/sh
+
+lb build noauto "${@}" 2>&1 | tee binary.log

webdev/auto/clean

+#!/bin/sh
+
+lb clean noauto "${@}"
+rm -f config/binary config/bootstrap config/chroot config/common config/source
+rm -f binary.log

webdev/auto/config

+#!/bin/sh
+
+lb config noauto \
+	-b iso \
+	--includes none \
+	--username kveroneau \
+	--binary-indices false \
+	--apt-recommends false \
+	--memtest none \
+	--iso-volume "WebDev" \
+	--iso-preparer "Kevin Veroneau" \
+	--iso-publisher "Kevin Veroneau Consulting" \
+	--hostname "webdev" \
+	--bootappend-live "toram" \
+	--archive-areas "main contrib non-free" \
+	--packages-lists "icewm webdev" \
+	"${@}"
+
+# Move this right below packages-lists and uncomment to enable the live system to work better with VirtualBox.
+#	--packages "virtualbox-ose-guest-x11" \

webdev/config/chroot_local-hooks/eclipse.sh

+#!/bin/sh
+
+chown -R 1000:1000 /opt/eclipse
+ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse

webdev/config/chroot_local-hooks/enable-console.sh

+#!/bin/sh
+
+rm -rf /lib/live/config/012-xinit

webdev/config/chroot_local-hooks/enable-login.sh

+#!/bin/sh
+
+rm -rf /lib/live/config/016-sysvinit
+
+adduser kveroneau
+
+passwd root

webdev/config/chroot_local-hooks/firefox.sh

+#!/bin/sh
+
+chown -R 1000:1000 /opt/firefox
+ln -s /opt/firefox/firefox /usr/local/bin/firefox

webdev/config/chroot_local-hooks/rhc.sh

+#!/bin/sh
+
+gem install rhc
+ln -s /var/lib/gems/1.8/bin/rhc /usr/local/bin/rhc
+
+return 0

webdev/config/chroot_local-includes/etc/X11/icewm/preferences

+NetworkStatusDevice="eth0"
+TaskBarShowShowDesktopButton=0
+TaskBarShowWindowListMenu=0
+ShowHelp=0
+ShowAbout=0
+ShowRun=1
+ShowWindowList=0
+MultiByte=0
+MailCommand="sylpheed"
+LockCommand="xset dpms force off"
+RunCommand="grun"
+ShutdownCommand="sudo halt"
+RebootCommand="sudo reboot"
+WorkspaceNames=" 1 ", " 2 ", " 3 ", " 4 "
+DesktopBackgroundImage="/opt/wallpaper.jpg"

webdev/config/chroot_local-includes/etc/X11/icewm/toolbar

+prog XTerm xterm x-terminal-emulator
+prog "Firefox" iceweasel firefox
+prog "Xfe" xfe xfe
+prog "Eclipse" /opt/eclipse/icon.xpm eclipse

webdev/config/chroot_local-includes/etc/bash.bashrc

+# System-wide .bashrc file for interactive bash(1) shells.
+
+# To enable the settings / commands in this file for login shells as well,
+# this file has to be sourced in /etc/profile.
+
+# If not running interactively, don't do anything
+[ -z "$PS1" ] && return
+
+# check the window size after each command and, if necessary,
+# update the values of LINES and COLUMNS.
+shopt -s checkwinsize
+
+# set variable identifying the chroot you work in (used in the prompt below)
+if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
+    debian_chroot=$(cat /etc/debian_chroot)
+fi
+
+# set a fancy prompt (non-color, overwrite the one in /etc/profile)
+PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
+
+# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
+# If this is an xterm set the title to user@host:dir
+#case "$TERM" in
+#xterm*|rxvt*)
+#    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
+#    ;;
+#*)
+#    ;;
+#esac
+
+# enable bash completion in interactive shells
+if [ -f /etc/bash_completion ] && ! shopt -oq posix; then
+    . /etc/bash_completion
+fi
+
+# if the command-not-found package is installed, use it
+if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then
+	function command_not_found_handle {
+	        # check because c-n-f could've been removed in the meantime
+                if [ -x /usr/lib/command-not-found ]; then
+		   /usr/bin/python /usr/lib/command-not-found -- $1
+                   return $?
+                elif [ -x /usr/share/command-not-found ]; then
+		   /usr/bin/python /usr/share/command-not-found -- $1
+                   return $?
+		else
+		   return 127
+		fi
+	}
+fi

webdev/config/chroot_local-includes/etc/hosts

+127.0.0.1	localhost webdev
+
+# The following lines are desirable for IPv6 capable hosts
+::1     ip6-localhost ip6-loopback
+fe00::0 ip6-localnet
+ff00::0 ip6-mcastprefix
+ff02::1 ip6-allnodes
+ff02::2 ip6-allrouters

webdev/config/chroot_local-includes/etc/skel/.icewm/theme

+Theme="Infadel2/default.theme"

webdev/config/chroot_local-includes/opt/README.txt

+This directory should contain the following:
+
+eclipse/      -  The extracted Eclipse IDE files.
+firefox/      -  The extracted Firefox binary distribution
+python/       -  Several virtualenvs for Python development
+wallpaper.jpg -  Your favorite wallpaper which will be automatically set for the LiveDVDs desktop

webdev/config/chroot_local-packageslists/icewm.list

+#include <standard-x11>
+
+icewm
+icewm-themes
+iceweasel
+xfe
+nedit
+myspell-en-us
+sylpheed
+aspell-en
+alsamixergui
+xchat
+grun
+zenity
+
+ttf-aenigma
+ttf-bitstream-vera
+ttf-dustin
+ttf-engadget
+ttf-sjfonts
+ttf-summersby
+ttf-xfree86-nonfree
+
+bash-completion

webdev/config/chroot_local-packageslists/webdev.list

+python-pip
+python-virtualenv
+python-imaging
+subversion
+git
+mercurial
+openssh-client
+python-dev
+python-doc
+python-docutils
+python-pygame
+python-tz
+python-twisted
+python-openssl
+python-svn
+sqlite3
+sun-java6-fonts
+sun-java6-jdk
+sun-java6-plugin
+flashplayer-mozilla
+sshfs
+unzip
+siege
+psmisc
+mysql-admin
+mysql-query-browser
+rubygems1.8

webdev/config/chroot_local-preseed/passwd.preseed

+debconf passwd/user-default-groups string audio cdrom dialout floppy video plugdev netdev powerdev fuse

webdev/config/chroot_local-preseed/sun-java6-jdk.preseed

+sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true