This commit is contained in:
Yunohost 2013-06-23 20:25:44 +02:00
commit 08ce318a1b
20 changed files with 459 additions and 0 deletions

19
README Normal file
View file

@ -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

80
extras/.bashrc Normal file
View file

@ -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

12
extras/.vimrc Normal file
View file

@ -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

BIN
extras/bandeau.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

BIN
extras/splash.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2 KiB

View file

@ -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

View file

@ -0,0 +1 @@
Y U NO HOST full automatic webservices installer

View file

@ -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

View file

@ -0,0 +1,4 @@
# less is more intuituve
less
simple-cdd-profiles
firmware-linux-nonfree

59
profiles/advanced.preseed Normal file
View file

@ -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;

2
profiles/advanced.udebs Normal file
View file

@ -0,0 +1,2 @@
# the udeb needed for simple-cdd
simple-cdd-profiles

View file

@ -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

View file

@ -0,0 +1 @@
Y U NO HOST full automatic webservices installer

View file

@ -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

View file

@ -0,0 +1,4 @@
# less is more intuituve
less
simple-cdd-profiles
firmware-linux-nonfree

80
profiles/default.preseed Normal file
View file

@ -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;

2
profiles/default.udebs Normal file
View file

@ -0,0 +1,2 @@
# the udeb needed for simple-cdd
simple-cdd-profiles

13
simple-cdd-amd64.conf Normal file
View file

@ -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"

13
simple-cdd-i386.conf Normal file
View file

@ -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"

13
simple-cdd-multi.conf Normal file
View file

@ -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"