commit 08ce318a1b68c8f043daa0395fb102122773890c Author: Yunohost Date: Sun Jun 23 20:25:44 2013 +0200 Init diff --git a/README b/README new file mode 100644 index 0000000..0153b47 --- /dev/null +++ b/README @@ -0,0 +1,19 @@ +Fully automated webservices installer +* Mail server +* Web syndication +* Instant messaging +* Calendar & contact synchonization +* And More + +Open source components +* Debian +* Postfix +* Dovecot +* OpenLDAP +* Apache2 +* Ejabberd +* LemonLDAP-NG + + +How-to build +http://wiki.yunohost.org/BuildCD diff --git a/extras/.bashrc b/extras/.bashrc new file mode 100644 index 0000000..0cde941 --- /dev/null +++ b/extras/.bashrc @@ -0,0 +1,80 @@ +# ~/.bashrc: executed by bash(1) for non-login shells. +# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc) +# for examples + +# If not running interactively, don't do anything +[ -z "$PS1" ] && return + +# don't put duplicate lines in the history. See bash(1) for more options +export HISTCONTROL=ignoredups +# ... and ignore same sucessive entries. +export HISTCONTROL=ignoreboth + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# make less more friendly for non-text input files, see lesspipe(1) +[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)" + +# 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, unless we know we "want" color) +case "$TERM" in +xterm-color) + PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' + ;; +*) + PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ ' + ;; +esac + +# Comment in the above and uncomment this below for a color prompt +#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' +PS1='\[\e[35m\][\u@\h]\[\e[0m\] \[\e[36m\]\W\[\e[0m\] \[\e[34m\]\$\[\e[0m\] ' +# If this is an xterm set the title to user@host:dir +case "$TERM" in +xterm*|rxvt*) + PROMPT_COMMAND='echo -ne "\033]0;${HOSTNAME}: ${PWD/$HOME/~}\007"' + ;; +*) + ;; +esac + +# Alias definitions. +# You may want to put all your additions into a separate file like +# ~/.bash_aliases, instead of adding them here directly. +# See /usr/share/doc/bash-doc/examples in the bash-doc package. + +#if [ -f ~/.bash_aliases ]; then +# . ~/.bash_aliases +#fi + +# enable color support of ls and also add handy aliases +if [ "$TERM" != "dumb" ]; then + eval "`dircolors -b`" + alias ls='ls --color=auto' + #alias dir='ls --color=auto --format=vertical' + #alias vdir='ls --color=auto --format=long' +fi + +# some more ls aliases +alias ll='ls -l' +alias la='ls -A' + +# enable programmable completion features (you don't need to enable +# this, if it's already enabled in /etc/bash.bashrc and /etc/profile +# sources /etc/bash.bashrc). +if [ -f /etc/bash_completion ]; then + . /etc/bash_completion +fi + +if [[ $(whoami) = "root" ]] && [[ -z $DISPLAY ]] && [[ -z $SSH_CLIENT ]] && [[ -z $SUDO_USER ]] && [[ ! -f /root/.disablemenu ]]; +then + /usr/bin/yunomenu +fi + + diff --git a/extras/.vimrc b/extras/.vimrc new file mode 100644 index 0000000..7013638 --- /dev/null +++ b/extras/.vimrc @@ -0,0 +1,12 @@ +" Activation de la syntaxe +if has("syntax") + syntax on +endif + +set bg=dark + +set ruler + +set encoding=utf-8 +set fileencoding=utf-8 + diff --git a/extras/bandeau.png b/extras/bandeau.png new file mode 100644 index 0000000..db9e650 Binary files /dev/null and b/extras/bandeau.png differ diff --git a/extras/splash.png b/extras/splash.png new file mode 100644 index 0000000..68a842e Binary files /dev/null and b/extras/splash.png differ diff --git a/profiles/advanced.base_include b/profiles/advanced.base_include new file mode 100644 index 0000000..da49666 --- /dev/null +++ b/profiles/advanced.base_include @@ -0,0 +1,39 @@ +# keep grub or debian-installer may not work properly. +grub + +popularity-contest +localization-config +console-tools + +usbutils +acpi +acpid +eject + +# needed for debian-installer's LVM, software RAID or encrypted disks: +lvm2 +mdadm +cryptsetup + +# to support reiserfs, JFS and XFS filesystems +reiserfsprogs +jfsutils +xfsprogs + +# type-handling tiny package needed for xorg on most architectures +type-handling + +# debian-cd uses debootstrap from the mirror +debootstrap + +# initramfs-tools recommends busybox, and we don't yet support recommends +busybox + +# newer debian-cd (0.3.5+) requires syslinux-common or syslinux in the mirror +syslinux-common +syslinux + +# add non-free firmware +firmware-linux-nonfree +file +libc6-i386 diff --git a/profiles/advanced.description b/profiles/advanced.description new file mode 100644 index 0000000..f531b8e --- /dev/null +++ b/profiles/advanced.description @@ -0,0 +1 @@ +Y U NO HOST full automatic webservices installer diff --git a/profiles/advanced.downloads b/profiles/advanced.downloads new file mode 100644 index 0000000..da49666 --- /dev/null +++ b/profiles/advanced.downloads @@ -0,0 +1,39 @@ +# keep grub or debian-installer may not work properly. +grub + +popularity-contest +localization-config +console-tools + +usbutils +acpi +acpid +eject + +# needed for debian-installer's LVM, software RAID or encrypted disks: +lvm2 +mdadm +cryptsetup + +# to support reiserfs, JFS and XFS filesystems +reiserfsprogs +jfsutils +xfsprogs + +# type-handling tiny package needed for xorg on most architectures +type-handling + +# debian-cd uses debootstrap from the mirror +debootstrap + +# initramfs-tools recommends busybox, and we don't yet support recommends +busybox + +# newer debian-cd (0.3.5+) requires syslinux-common or syslinux in the mirror +syslinux-common +syslinux + +# add non-free firmware +firmware-linux-nonfree +file +libc6-i386 diff --git a/profiles/advanced.packages b/profiles/advanced.packages new file mode 100644 index 0000000..dd11cb0 --- /dev/null +++ b/profiles/advanced.packages @@ -0,0 +1,4 @@ +# less is more intuituve +less +simple-cdd-profiles +firmware-linux-nonfree diff --git a/profiles/advanced.preseed b/profiles/advanced.preseed new file mode 100644 index 0000000..1a57085 --- /dev/null +++ b/profiles/advanced.preseed @@ -0,0 +1,59 @@ +d-i netcfg/use_dhcp false +d-i netcfg/choose_interface select auto +d-i netcfg/disable_dhcp boolean true +d-i netcfg/dhcp_failed note +d-i netcfg/get_hostname string yunohost +d-i netcfg/get_domain string mondomaine.fr +d-i netcfg/get_domain seen true +d-i mirror/country string manual +d-i mirror/http/hostname string ftp.debian.org +d-i mirror/http/directory string /debian +d-i mirror/http/proxy string +d-i mirror/http/proxy seen false +d-i clock-setup/utc boolean true +d-i time/zone string Europe/Paris +d-i clock-setup/ntp boolean true +d-i clock-setup/ntp-server string 3.fr.pool.ntp.org +d-i passwd/root-password-crypted password $1$6xBdkGvE$8nLCNRxwABespdFJniEiX0 +d-i passwd/make-user boolean fasle +d-i apt-setup/non-free boolean true +d-i apt-setup/contrib boolean true +d-i apt-setup/local0/repository string \ + http://repo.yunohost.org/ lemonldap main +d-i apt-setup/local1/repository string \ + http://repo.yunohost.org/ megusta main +d-i apt-setup/local0/key string http://lemonldap-ng.org/_media/rpm-gpg-key-ow2 +d-i apt-setup/local1/key string http://repo.yunohost.org/yunohost.asc +d-i debian-installer/allow_unauthenticated string true +tasksel tasksel/first multiselect standard, web-server, ssh-server +d-i pkgsel/include postfix yunohost +popularity-contest popularity-contest/participate boolean false +debconf debconf/frontend select Noninteractive +d-i grub-installer/only_debian boolean true +d-i grub-installer/with_other_os boolean true +d-i finish-install/reboot_in_progress note +d-i cdrom-detect/eject boolean true +d-i debian-installer/exit/reboot boolean true +slapd slapd/domain string yunohost.org +slapd shared/organization string yunohost +slapd slapd/password1 password yunohost +slapd slapd/password2 password yunohost +postfix postfix/main_mailer_type select Internet Site +postfix postfix/mailname string /etc/mailname +mysql-server-5.5 mysql-server/root_password password yunohost +mysql-server-5.5 mysql-server/root_password_again password yunohost +samba-common samba-common/workgroup string WORKGROUP +samba-common samba-common/workgroup boolean true +nslcd nslcd/ldap-bindpw password +nslcd nslcd/ldap-starttls boolean false +nslcd nslcd/ldap-reqcert select +nslcd nslcd/ldap-uris string ldap://localhost/ +nslcd nslcd/ldap-binddn string +nslcd nslcd/ldap-base string dc=yunohost,dc=org +proftpd-basic shared/proftpd/inetd_or_standalone select standalone +iptables-persistent iptables-persistent/autosave_v6 boolean false +iptables-persistent iptables-persistent/autosave_v4 boolean false +libnss-ldapd libnss-ldapd/nsswitch multiselect group, passwd, shadow +d-i preseed/late_command string \ + cp cdrom/simple-cdd/.bashrc /target/root; \ + cp cdrom/simple-cdd/.vimrc /target/root; diff --git a/profiles/advanced.udebs b/profiles/advanced.udebs new file mode 100644 index 0000000..9fd0035 --- /dev/null +++ b/profiles/advanced.udebs @@ -0,0 +1,2 @@ +# the udeb needed for simple-cdd +simple-cdd-profiles diff --git a/profiles/default.base_include b/profiles/default.base_include new file mode 100644 index 0000000..da49666 --- /dev/null +++ b/profiles/default.base_include @@ -0,0 +1,39 @@ +# keep grub or debian-installer may not work properly. +grub + +popularity-contest +localization-config +console-tools + +usbutils +acpi +acpid +eject + +# needed for debian-installer's LVM, software RAID or encrypted disks: +lvm2 +mdadm +cryptsetup + +# to support reiserfs, JFS and XFS filesystems +reiserfsprogs +jfsutils +xfsprogs + +# type-handling tiny package needed for xorg on most architectures +type-handling + +# debian-cd uses debootstrap from the mirror +debootstrap + +# initramfs-tools recommends busybox, and we don't yet support recommends +busybox + +# newer debian-cd (0.3.5+) requires syslinux-common or syslinux in the mirror +syslinux-common +syslinux + +# add non-free firmware +firmware-linux-nonfree +file +libc6-i386 diff --git a/profiles/default.description b/profiles/default.description new file mode 100644 index 0000000..f531b8e --- /dev/null +++ b/profiles/default.description @@ -0,0 +1 @@ +Y U NO HOST full automatic webservices installer diff --git a/profiles/default.downloads b/profiles/default.downloads new file mode 100644 index 0000000..da49666 --- /dev/null +++ b/profiles/default.downloads @@ -0,0 +1,39 @@ +# keep grub or debian-installer may not work properly. +grub + +popularity-contest +localization-config +console-tools + +usbutils +acpi +acpid +eject + +# needed for debian-installer's LVM, software RAID or encrypted disks: +lvm2 +mdadm +cryptsetup + +# to support reiserfs, JFS and XFS filesystems +reiserfsprogs +jfsutils +xfsprogs + +# type-handling tiny package needed for xorg on most architectures +type-handling + +# debian-cd uses debootstrap from the mirror +debootstrap + +# initramfs-tools recommends busybox, and we don't yet support recommends +busybox + +# newer debian-cd (0.3.5+) requires syslinux-common or syslinux in the mirror +syslinux-common +syslinux + +# add non-free firmware +firmware-linux-nonfree +file +libc6-i386 diff --git a/profiles/default.packages b/profiles/default.packages new file mode 100644 index 0000000..dd11cb0 --- /dev/null +++ b/profiles/default.packages @@ -0,0 +1,4 @@ +# less is more intuituve +less +simple-cdd-profiles +firmware-linux-nonfree diff --git a/profiles/default.preseed b/profiles/default.preseed new file mode 100644 index 0000000..c178397 --- /dev/null +++ b/profiles/default.preseed @@ -0,0 +1,80 @@ +d-i netcfg/choose_interface select auto +d-i netcfg/dhcp_failed note +d-i netcfg/dhcp_options select Configure network manually +d-i netcfg/disable_dhcp boolean false +d-i netcfg/get_hostname string yunohost +d-i netcfg/get_domain string yunohost.org +d-i netcfg/get_domain seen true +d-i mirror/country string manual +d-i mirror/http/hostname string ftp.debian.org +d-i mirror/http/directory string /debian +d-i mirror/http/proxy string +d-i clock-setup/utc boolean true +d-i time/zone string Europe/Paris +d-i clock-setup/ntp boolean true +d-i clock-setup/ntp-server string 3.fr.pool.ntp.org +d-i partman-auto/method string regular +d-i partman-auto/choose_recipe select multi +#d-i partman-auto/expert_recipe string \ +# condpart :: \ +# 300 4000 7000 ext3 \ +# $primary{ } $bootable{ } \ +# method{ format } format{ } \ +# use_filesystem{ } filesystem{ ext3 } \ +# mountpoint{ / } \ +# . \ +# 64 512 300% linux-swap \ +# method{ swap } format{ } \ +# . \ +# 100 10000 1000000000 ext3 \ +# method{ keep } format{ } \ +# use_filesystem{ } filesystem{ ext3 } \ +# mountpoint{ /var } \ +# . +d-i partman/confirm_write_new_label boolean true +d-i partman/choose_partition select finish +d-i partman/confirm boolean false +d-i partman/confirm_nooverwrite boolean true +d-i passwd/root-password-crypted password $1$6xBdkGvE$8nLCNRxwABespdFJniEiX0 +d-i passwd/make-user boolean fasle +d-i apt-setup/non-free boolean true +d-i apt-setup/contrib boolean true +d-i apt-setup/local0/repository string \ + http://repo.yunohost.org/ lemonldap main +d-i apt-setup/local1/repository string \ + http://repo.yunohost.org/ megusta main +d-i apt-setup/local0/key string http://lemonldap-ng.org/_media/rpm-gpg-key-ow2 +d-i apt-setup/local1/key string http://repo.yunohost.org/yunohost.asc +d-i debian-installer/allow_unauthenticated string true +tasksel tasksel/first multiselect standard, web-server, ssh-server +d-i pkgsel/include postfix yunohost +popularity-contest popularity-contest/participate boolean false +debconf debconf/frontend select Noninteractive +d-i grub-installer/only_debian boolean true +d-i grub-installer/with_other_os boolean true +d-i finish-install/reboot_in_progress note +d-i cdrom-detect/eject boolean true +d-i debian-installer/exit/reboot boolean true +slapd slapd/domain string yunohost.org +slapd shared/organization string yunohost +slapd slapd/password1 password yunohost +slapd slapd/password2 password yunohost +postfix postfix/main_mailer_type select Internet Site +postfix postfix/mailname string /etc/mailname +mysql-server-5.5 mysql-server/root_password password yunohost +mysql-server-5.5 mysql-server/root_password_again password yunohost +samba-common samba-common/workgroup string WORKGROUP +samba-common samba-common/workgroup boolean true +nslcd nslcd/ldap-bindpw password +nslcd nslcd/ldap-starttls boolean false +nslcd nslcd/ldap-reqcert select +nslcd nslcd/ldap-uris string ldap://localhost/ +nslcd nslcd/ldap-binddn string +nslcd nslcd/ldap-base string dc=yunohost,dc=org +proftpd-basic shared/proftpd/inetd_or_standalone select standalone +iptables-persistent iptables-persistent/autosave_v6 boolean false +iptables-persistent iptables-persistent/autosave_v4 boolean false +libnss-ldapd libnss-ldapd/nsswitch multiselect group, passwd, shadow +d-i preseed/late_command string \ + cp cdrom/simple-cdd/.bashrc /target/root; \ + cp cdrom/simple-cdd/.vimrc /target/root; diff --git a/profiles/default.udebs b/profiles/default.udebs new file mode 100644 index 0000000..9fd0035 --- /dev/null +++ b/profiles/default.udebs @@ -0,0 +1,2 @@ +# the udeb needed for simple-cdd +simple-cdd-profiles diff --git a/simple-cdd-amd64.conf b/simple-cdd-amd64.conf new file mode 100644 index 0000000..bb3d2f8 --- /dev/null +++ b/simple-cdd-amd64.conf @@ -0,0 +1,13 @@ +server="ftp.fr.debian.org" +debian_mirror="ftp://$server/debian/" +rsync_debian_mirror="$server::debian" +profiles="default advanced" +mirror_components="main contrib non-free" +export ARCH="amd64" +export DISKINFO="YunoHost $(date --utc +%Y%m%d)" +export OMIT_MANUAL=1 +export OMIT_RELEASE_NOTES=1 +export INSTALLER_CD=2 +export DOJIGDO=0 +all_extras="`pwd`/extras/.vimrc `pwd`/extras/.bashrc" +export SPLASHPNG="`pwd`/extras/splash.png" diff --git a/simple-cdd-i386.conf b/simple-cdd-i386.conf new file mode 100644 index 0000000..8dbe38e --- /dev/null +++ b/simple-cdd-i386.conf @@ -0,0 +1,13 @@ +server="ftp.fr.debian.org" +debian_mirror="ftp://$server/debian/" +rsync_debian_mirror="$server::debian" +profiles="default advanced" +mirror_components="main contrib non-free" +export ARCH="i386" +export DISKINFO="YunoHost $(date --utc +%Y%m%d)" +export OMIT_MANUAL=1 +export OMIT_RELEASE_NOTES=1 +export INSTALLER_CD=2 +export DOJIGDO=0 +all_extras="`pwd`/extras/.vimrc `pwd`/extras/.bashrc" +export SPLASHPNG="`pwd`/extras/splash.png" diff --git a/simple-cdd-multi.conf b/simple-cdd-multi.conf new file mode 100644 index 0000000..4edcbd0 --- /dev/null +++ b/simple-cdd-multi.conf @@ -0,0 +1,13 @@ +server="ftp.fr.debian.org" +debian_mirror="ftp://$server/debian/" +rsync_debian_mirror="$server::debian" +profiles="default" +mirror_components="main contrib non-free" +export ARCH="i386 amd64" +export DISKINFO="YunoHost $(date --utc +%Y%m%d)" +export OMIT_MANUAL=1 +export OMIT_RELEASE_NOTES=1 +export INSTALLER_CD=2 +export DOJIGDO=0 +all_extras="`pwd`/extras/.vimrc `pwd`/extras/.bashrc" +export SPLASHPNG="`pwd`/extras/splash.png"