x
Search Posts:
BLOG POST #106 SHOW ALL

debian live-build howto and examples

########################################################################################
#
# WARNING [RECOMMENDED]: 
# you can find more advanced and complete live-build scripts here: 
# https://github.com/subaddiction/freepto-lb
#
# A better lb-config script:
# https://github.com/subaddiction/freepto-lb/blob/master/freepto-config.sh
# 
# A better lb-build and persistence config script:
# https://github.com/subaddiction/freepto-lb/blob/master/config/includes.chroot/usr/bin/makefreepto
# 
# I _strongly_recommend_ to look into the freepto-lb repository
# and the debian live and freepto documentation:
# http://live.debian.net/manual/3.x/html/live-manual.en.html
# https://we.riseup.net/avana/freepto-docs
# 
#
########################################################################################

# This code builds wheezy images ON SQUEEZE
# To build wheezy ON WHEEZY see http://bquery.com/blog/post/debian_live-build_howto_and_examples_wheezy/

On debian user forums:
http://www.debianuserforums.org/viewtopic.php?f=9&t=185

...but always do it following the official manual:
http://live.debian.net/manual-3.x/html/live-manual.en.html

Update:: successfully created Wheezy usb-hdd images with this commands in Squeeze:

root@machine:~# lb config -d wheezy --debian-installer live -p gnome -b usb-hdd --archive-areas "main contrib non-free"
root@machine:~# lb build

or, a lightweight configuration with some extra packages useful for creative work and web development (en_US locale and italian keyboard, username "mrk"):

root@machine:~# lb config -d wheezy --debian-installer live -p xfce -b usb-hdd --archive-areas "main contrib non-free" --packages "ssh-client gnupg seahorse remmina filezilla iceweasel xul-ext-firebug nautilus nautilus-open-terminal gedit gedit-plugins gnome-system-monitor gnome-disk-utility gparted apache2 libapache2-mod-php5 php5-curl php5-mysql php5-gd php5-cgi mysql-server python inkscape python-libxml2 python-numpy blender gimp gimp-gap gimp-plugin-registry autotrace imagemagick create-resources pidgin pidgin-otr" --bootappend-live "locales=en_US keyboard-layouts=it" --username mrk

or, a lightweight configuration (window manager: openbox - tip for non *box window manager users: right-click on nothing > Terminal emulator > launch "fbpanel")

...extra development packages are meant to get an installation image ready to build fluxus with this script: http://epl.bquery.com/p/r.SBQ190qXA0CrBmBh

lb config -d wheezy --debian-installer live -b usb-hdd -p standard-x11 --archive-areas "main contrib non-free" --packages "openbox obconf obmenu fbpanel conky gnome-terminal vim ssh-client gnupg seahorse remmina filezilla iceweasel xul-ext-firebug nautilus nautilus-open-terminal gedit gedit-plugins gnome-system-monitor gnome-disk-utility gparted apache2 libapache2-mod-php5 php5-curl php5-mysql php5-gd php5-cgi mysql-server python inkscape python-libxml2 python-numpy blender gimp gimp-gap gimp-plugin-registry autotrace imagemagick create-resources pidgin pidgin-otr build-essential libode-dev libfftw3-dev libjack-jackd2-dev  libsndfile1-dev liblo-dev libglew1.5-dev libfreetype6-dev libasound2-dev  libopenal-dev freeglut3-dev scons git libjpeg-dev libtiff-dev libbz2-dev libpng-dev libavcodec-dev libavformat-dev libswscale-dev libunicap-dev libglib2.0-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libghc6-gstreamer-dev qjackctl" --bootappend-live "locales=en_US keyboard-layouts=it" --username mrk


or, the same lightweight configuration, in fluxbox flavour:

lb config -d wheezy --debian-installer live -b usb-hdd -p standard-x11 --archive-areas "main contrib non-free" --packages "gtk2-engines gconf2 gnome-themes gnome-themes-standard gnome-icon-theme gnome-icon-theme-extras gnome-settings-daemon gnome-tweak-tool fluxbox fbpager fbpanel conky gnome-terminal vim ssh-client gnupg seahorse remmina filezilla iceweasel xul-ext-firebug nautilus nautilus-open-terminal gedit gedit-plugins gnome-system-monitor gnome-disk-utility gparted apache2 libapache2-mod-php5 php5-curl php5-mysql php5-gd php5-cgi mysql-server python inkscape python-libxml2 python-numpy blender gimp gimp-gap gimp-plugin-registry autotrace imagemagick create-resources pidgin pidgin-otr build-essential libode-dev libfftw3-dev libjack-jackd2-dev  libsndfile1-dev liblo-dev libglew1.5-dev libfreetype6-dev libasound2-dev  libopenal-dev freeglut3-dev scons git libjpeg-dev libtiff-dev libbz2-dev libpng-dev libavcodec-dev libavformat-dev libswscale-dev libunicap-dev libglib2.0-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libghc6-gstreamer-dev qjackctl" --bootappend-live "locales=en_US keyboard-layouts=it" --username mrk

For further fluxbox customization see also: http://subaddiction.github.io/X11proConf/


--- UPDATE ---

In wheezy, during fluxus build, I'm getting this error:

/usr/include/unicap/unicap.h:218:34: error: expected unqualified-id before 'private'
/usr/include/unicap/unicap.h:218:33: error: expected ';' at end of member declaration
/usr/include/unicap/unicap.h:218:41: error: expected ':' before ';' token

...for now solved simply renaming the variable in /usr/include/unicap.h at the end of line 318 from *private - which is a reserved name - to *privat
(one should rename the variable in unicap.c and rebuild unicap)

more info on this bug:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=686525