Contenu | Rechercher | Menus

Annonce

Si vous rencontrez des soucis à rester connecté sur le forum (ou si vous avez perdu votre mot de passe) déconnectez-vous et reconnectez-vous depuis cette page, en cochant la case "Me connecter automatiquement lors de mes prochaines visites".
Test de l'ISO d'Ubuntu francophone : nous avons besoin de testeurs pour la version francophone d'Ubuntu 14.04. Liens et informations ici.

#1 Le 21/11/2009, à 20:58

smo

createur ubuntu personnalise iso/cle usb avec customisation graphique

hello

MAJ: 14/05/2010
ajout d une fonction de customisation graphique avec Xnest et divers fixes

MAJ: ajoute de toutes les versions de lucid, passage en ext4 sans journal pour la clé (plus rapide), divers fixes et optimisations...

MAJ: 28/04/2010
fix complet installateur ubiquity, bcp de fix pour lucid, support ok pour custom graphique de lubuntu smile

MAj : 07/06/2010

script mis a jour pour support ubuntu lucid wink

maj : 24/02/2010
changement de serveur...

Ce script permet de créer un environnement complet pour la creation de live cd/usb, un dossier principal heberge les differentes distributions

vous pourrez creer ces distributions depuis un iso, soit en le telechargeant soit en selectionnant un de vos fichiers perso

par la suite vous pourrez customiser vos distribs a l aide de differents mode graphiques ou console et regenerer une cle ou un iso de votre travail au final

differents modules accompagnent le script pour les localisations par exemple, une option clone existe egalement qui vous permet de copier tous les paquets/themes/config de votre installation  d'un seul coup... et bien d autres choses wink

en attente de retours...


NOTE:  pour les utilisateurs avec driver nvidia, ne selectionnez pas l entree "customisation graphique", preferez le mode "customisation graphique safe"

pour telecharger/essayer :

cd /usr/local/bin
sudo wget http://scripts.penguincape.org/ubukey/ubukey
sudo chmod +x ubukey
sudo ubukey

et laissez vous guider wink

++

Dernière modification par smo (Le 15/05/2010, à 00:39)


ht5streamer, streaming youtube/dailymotion...: http://forum.ubuntu-fr.org/viewtopic.php?id=1299461 / http://ht5streamer.free.fr
ubukey, createur ubuntu customisé: http://forum.ubuntu-fr.org/viewtopic.php?id=360408
tchat: ##ubuntu-fr-geek sur irc (irc.ubuntu.com)
ME PAYER UNE BIERE !! :D :  http://gtk-apps.org/content/donate.php?content=138588

Hors ligne

#2 Le 22/11/2009, à 10:07

smo

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

Ola

bon j ai trouve un moyen pour booter la cle avec un virtualbox allege hier
normalement demain plus de qemu du tout big_smile

++


ht5streamer, streaming youtube/dailymotion...: http://forum.ubuntu-fr.org/viewtopic.php?id=1299461 / http://ht5streamer.free.fr
ubukey, createur ubuntu customisé: http://forum.ubuntu-fr.org/viewtopic.php?id=360408
tchat: ##ubuntu-fr-geek sur irc (irc.ubuntu.com)
ME PAYER UNE BIERE !! :D :  http://gtk-apps.org/content/donate.php?content=138588

Hors ligne

#3 Le 22/11/2009, à 10:30

ptcedric

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

salut smo

j'ai du faire une connerie ce qui résulte le non démarrage du programme, ma question est: comment le désinstaller proprement pour pouvoir le réinstaller comme neuf



merci


compaq pressario cq71sur lucid 64
hp touchsmart iq532fr sur lucid 64
asus eeepc 900 sur lucid U.N.E

Hors ligne

#4 Le 22/11/2009, à 10:42

buster19

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

==>  ptcedric
Dans /usr/local/bin tu effaces le script ubukeymaker (en sudo ...)
Dans /home/XXXX/ tu effaces dossier .ubukeymaker

==> smo
Pas beaucoup de temps en ce moment.
Je vais quand voir pour quelques tests. Faut d'abord que je nettoie mon home, parce que je dois avoir quatre rep ubukey (entre les versions depuis live-cd jaunty et celle pour karmic ...) Au fait, est-ce que tu gardes de coté le script pour jaunty, hardy .... Il m'interresse encore pour faire des versions a partir de live cd ?


Latex-Math : annalescours/exos ; exos. Ubuntu : live-usb ; multiboot

Hors ligne

#5 Le 22/11/2009, à 11:06

ptcedric

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

merci buster 19


compaq pressario cq71sur lucid 64
hp touchsmart iq532fr sur lucid 64
asus eeepc 900 sur lucid U.N.E

Hors ligne

#6 Le 22/11/2009, à 12:09

buster19

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

Ok smo, j'ai fait un petit test rapide en reprenant tout depuis le debut.
rm .ubukey et creation d'uns distro. Telechargement de iso par le script, puis je choisis direct un custo graph en VESA. J'arrive j'usqu'a la fenetre qui revient que l'on va basculé dasn chroot graph, je valide et la ecran noir. J'ai attendu 30 minutes avant d'eteindre comme un bourrin. Aucune commande ne répond ( j'ai essayé CTR+ALT + F7 ... +F9).
ci dessous mon chrootlog.log

root@toshiba:/# 
root@toshiba:/# mode="$(cat /etc/ubukey/ubukeyconf | grep -e "mode" | sed 's/.*=//')"
root@toshiba:/# 
root@toshiba:/# function message() {
> touch /tmp/chrootlog.log
> message="$1"
> echo -e "$message" | tee -a /tmp/chrootlog.log &>/dev/null
> }
root@toshiba:/# 
root@toshiba:/# function INITCHROOT()
> {
> chrootKerVer=$(ls -al /initrd.img | sed 's/.*boot\/initrd.img-//')
> localKerVer=$(cat /etc/ubukey/ubukeyconf | grep -e "Kernel" | sed 's/.*Kernel=//')
> sessionType=$(cat /etc/ubukey/ubukeyconf | grep -e "distSession" | sed 's/.*distSession=//')
> user=$(cat /etc/ubukey/ubukeyconf | grep -e "user" | sed 's/.*user=//')
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> LOCALUTF="$(cat /etc/ubukey/ubukeyconf | grep -e "localutf" | sed 's/.*=//')"
> LOCALBASE="$(cat /etc/ubukey/ubukeyconf | grep -e "localbase" | sed 's/.*=//')"
> LOCALSIMPLE="$(cat /etc/ubukey/ubukeyconf | grep -e "localsimple" | sed 's/.*=//')"
> DIST="$(cat /etc/lsb-release | grep CODENAME | sed 's/.*=//')"
> DRIVER="$(cat /etc/ubukey/ubukeyconf | grep -e "driver" | sed 's/.*=//')"
> 
> ## langue dans chroot
> export LANG=$LOCALUTF
> export LC_ALL=$LOCALUTF
> echo -e "$LOCALSIMPLE
> $LOCALBASE
> $LOCALUTF
> " | tee /etc/locale.gen &>/dev/null
> 
> message "
> #########################
> ## Variables du chroot ##
> #########################
> 
> Type de session : "$sessionType"
> Utilisateur session chroot : "$user"
> Utilisateur reel du live-cd : "$chuser"
> Locales : $LOCALUTF
> Langue : $LOCALSIMPLE
> Clavier: $LOCALSIMPLE
> "
> #monter minimun necessaire
> mount -t proc none /proc
> mount -t sysfs none /sys
> mount -t devpts none /dev/pts
> 
> sleep 5
> umount -f /lib/modules/*/volatile &>/dev/null
> 
> ## check sources
> message "Verification des sources, merci de patienter"
> cd /usr/local/bin
> rm ubusrc-gen &>/dev/null
> wget -q http://www.ubukey.fr/files/ubusrc-gen
> chmod +x ubusrc-gen
> ubusrc-gen
> 
> #~ if [[ ! $(dpkg -l | grep -w "console-data") ]]; then
> #~ message "Console data va etre installe pour la langue dans les consoles tty"
> #~ apt-get -y --force-yes install console-data
> #~ fi
> 
> ## Changement de la langue par defaut des consoles tty avec : $LOCALSIMPLE
> sed -i 's/XKBLAYOUT=.*/XKBLAYOUT="'$LOCALSIMPLE'"/' /etc/default/console-setup
> 
> ## check du decorateur et autres
> case $sessionType in
> gnome)
> decorator="metacity"
> term="gnome-terminal"
> starter=gnome-session
> ;;
> kde4)
> decorator=kwin
> term=konsole
> starter=startkde
> ;;
> xfce4)
> decorator="xfwm4"
> term="xfterm4"
> starter=xfce4-session
> ;;
> esac
> 
> if [[ ! `unsquashfs -version | grep "unsquashfs version 4.0"` ]]; then
> rm /usr/{s,}bin/{un,mk}squashfs &>/dev/null
> cd /usr/sbin
> wget http://www.ubukey.fr/files/bin/karmic/mksquashfs &>/dev/null
> wget http://www.ubukey.fr/files/bin/karmic/unsquashfs &>/dev/null
> chmod +x /usr/bin/{un,mk}squashfs 
> fi
> 
> }
root@toshiba:/# 
root@toshiba:/# ###### config xorg
root@toshiba:/# function genXorg
> {
> 
> if [ ! -e "/usr/sbin/ddcprobe" ]; then
> message "Installation de xrespobe...\n"
> apt-get -y install xresprobe
> fi
> 
> test=$(lspci -b | grep VGA | awk '{print $1}')
> testa=$(echo "$test" | sed 's/:.*//')
> testb=$(echo "$test" | sed 's/\..*//;s/.*://')
> testc=$(echo "$test" | sed 's/.*\.//')
> 
> if [[ "$testa" != "0" && "$testa" -lt "10" ]]; then
> testa=$(echo "$testa" | cut -c 2)
> fi
> 
> if [[ "$testb" != "0" && "$testb" -lt "10" ]]; then
> testb=$(echo "$testb" | cut -c 2)
> fi
> 
> if [[ "$testc" != "0" && "$testc" -lt "10" ]]; then
> testc=$(echo "$testc" | cut -c 2)
> fi
> 
> BUSID="PCI:$testa:$testb:$testc"
> 
> ## detection
> res="$(cat /tmp/resolution)"
> 
> if [ -z "$res" ]; then
> 
> echo -e "La resolution ideale n'a pas pu etre detectee automatiquement
> Indiquez la resolution a utiliser\n
> exemple 1280x1024:" 
> read res
> 
> if [ -n "$res" ]; then
> 
> listres="\"$res\" \"1600x1200\" \"1440x900\" \"1280x1024\" \"1280x800\" \"1024x768\" \"1024x600\" \"800x600\" \"640x480\""
> resolution="$(echo $listres | sed -e "s%\"$res\"%%")"
> else
> resolution="\"1600x1200\" \"1440x900\" \"1280x1024\" \"1280x800\" \"1024x768\" \"1024x600\" \"800x600\" \"640x480\""
> fi ## fin si pas de resolution choisie
> 
> else
> 
> listres="\"$res\" \"1600x1200\" \"1440x900\" \"1280x1024\" \"1280x800\" \"1024x768\" \"1024x600\" \"800x600\" \"640x480\""
> resolution="$(echo $listres | sed -e "s%\"$res\"%%")"
> 
> fi ## fin si pas de resolution detectee a la base...
> 
> cd /etc/X11/
> rm xorg.conf &>/dev/null
> wget -q http://www.ubukey.fr/files/launchers/xorg.conf
> 
> ## rechange driver et keymap
> 
> DEPTH=24
> if [ "$DRIVER" = "vesa" ]; then
> DEPTH=16
> fi
> 
> sed -i "s/chkeymap/$LOCALSIMPLE/" /etc/X11/xorg.conf
> sed -i "s/chdriver/$DRIVER/" /etc/X11/xorg.conf
> sed -i "s/chpci/$BUSID/" /etc/X11/xorg.conf
> sed -i "s/depth/$DEPTH/g" /etc/X11/xorg.conf
> sed -i "s%chmode%$resolution%" /etc/X11/xorg.conf
> 
> ## modeline ecran
> ddcmode="$(sudo ddcprobe | grep dtiming | sed 's/dtiming\: //')"
> 
> if [ -n "$ddcmode" ]; then
> 
> maxref="$(echo $ddcmode | sed 's/.*@//')"
> height="$(echo $ddcmode | sed 's/x.*//;')"
> width="$(echo $ddcmode | sed 's/.*x//;s/@.*//')"
> 
> modeline="$(gtf $height $width $maxref | sed '/#/d;/^$/d;s/^  //;s/_.*\"/\"/')"
> 
> if [ -n "$modeline" ]; then
> sed -i "s%modeline%$modeline%" /etc/X11/xorg.conf
> fi
> 
> else
> 
> sed -i "/modeline/d" /etc/X11/xorg.conf
> 
> fi
> 
> #### fix xserver
> echo -e '
> Section "ServerFlags"
> #Option "AutoAddDevices" "off"
> Option "AllowEmptyInput" "off"
> EndSection' | tee -a /etc/X11/xorg.conf &>/dev/null
> 
> } ## fin genXorg
root@toshiba:/# 
root@toshiba:/# 
root@toshiba:/# function CHROOTGRAPHIQUE()
> {
> 
> ## au cas ou
> rm /etc/skel/skel &>/dev/null
> rm /home/"$user" -R &>/dev/null
> ln -sf /etc/skel /home/"$user"
> 
> cd /etc/skel 
> 
> ## clean xdg
> rm /home/"$user"/.config/user-dirs.dirs
> rm /etc/locale.gen &>/dev/null
> echo -e "$LOCALSIMPLE
> $LOCALBASE
> $LOCALUTF
> " | tee /etc/locale.gen &>/dev/null
> 
> ## check paquet xdg-user-dirs
> message "Detection des dossiers Xdg (Bureau, Desktop...)\n"
> if [[ ! `dpkg -l | grep -e "xdg-user-dirs"` ]]; then
> aptitude -y install xdg-user-dirs
> fi
> 
> xdg-user-dirs-update 
> xdg-user-dirs-update --force
> 
> ## reverifie le users-dirs.dirs
> deskdir="$(cat /home/"$user"/.config/user-dirs.dirs | grep DESKTOP | sed 's/.*\///' | sed 's/\"//')"
> if [ -z "$deskdir" ]; then
> mkdir /etc/skel/Desktop
> deskdir="Desktop"
> fi
> 
> ## check dossier bureau
> if [[ ! `cat /home/"$user"/.config/user-dirs.dirs | grep -e "/Desktop"` && -e /etc/skel/Desktop ]]; then
> rm -R /etc/skel/Desktop
> deskdir="$(cat /home/"$user"/.config/user-dirs.dirs | grep DESKTOP | sed 's/.*\///' | sed 's/\"//')"
> ## au cas ou...
> mkdir /etc/skel/$deskdir &>/dev/null
> fi
> 
> ##checkfinal si deskdir ok
> if [ -z "$deskdir" ]; then
> message "Probleme avec dossier Bureau, sortie"
> CLEANCHROOT
> fi
> 
> message "Dossier bureau : $deskdir \n"
> 
> ## adapte dossier Desktop, casper-bottom
> if [ "$deskdir" != "Desktop" ]; then
> sed -i 's/Desktop/'$deskdir'/g' /usr/share/initramfs-tools/scripts/casper-bottom/10adduser
> fi
> 
> cd /usr/share/pixmaps
> if [ ! -e usbkey.png ]; then
> wget http://www.ubukey.fr/files/usbkey.png
> fi
> 
> ################## ajout icones sur le bureau
> 
> cd /usr/local/bin
> rm ubukey-$sessionType* &>/dev/null
> wget http://www.ubukey.fr/files/ubukey-$sessionType.sh
> chmod +x ubukey-$sessionType.sh
> echo "[Desktop Entry]
> Type=Application
> Encoding=UTF-8
> Version=1.0
> Name=Assistant de customisation $sessionType
> Name[fr_FR]=Assistant de customisation $sessionType
> Comment[fr_FR]=Assistant de customisation pour $sessionType
> Comment=Assistant de customisation pour $sessionType
> Exec=ubukey-$sessionType.sh
> X-GNOME-Autostart-enabled=true
> Icon=/usr/share/pixmaps/usbkey.png" | tee /etc/skel/"$deskdir"/ubukey-assist.desktop &>/dev/null
> 
> chmod +x /etc/skel/"$deskdir"/ubukey-assist.desktop
> 
> echo "[Desktop Entry]
> Type=Application
> Encoding=UTF-8
> Version=1.0
> Name=fix-clavier
> Name[fr_FR]=fix-clavier
> Comment[fr_FR]=fix-clavier
> Comment=fix-clavier
> Exec=setxkbmap $LOCALSIMPLE
> X-GNOME-Autostart-enabled=true" | tee /etc/xdg/autostart/fix-clavier.desktop &>/dev/null
> 
> ## icone quitter
> cd /usr/share/pixmaps
> if [ ! -e quit-chroot.png ]; then
> wget http://www.ubukey.fr/files/images/quit-chroot.png
> fi
> 
> ## cree ptit script pour tuer x avec l icone du bureau
> cd /usr/local/bin
> rm quit-chroot* &>/dev/null
> wget http://www.ubukey.fr/files/quit-chroot.sh
> chmod +x /usr/local/bin/quit-chroot.sh
> 
> echo "[Desktop Entry]
> Type=Application
> Encoding=UTF-8
> Version=1.0
> Name=Quitter le chroot
> Name[fr_FR]=Quitter chroot
> Comment[fr_FR]=Quitter le chroot
> Comment=cliquez pour quitter le chroot
> Exec=quit-chroot.sh
> X-GNOME-Autostart-enabled=true
> Icon=/usr/share/pixmaps/quit-chroot.png" | tee /etc/skel/"$deskdir"/quit-chroot.desktop &>/dev/null
> 
> chmod +x /etc/skel/"$deskdir"/quit-chroot.desktop
> 
> ## icone partage
> sleep 2
> cd /etc/skel/"$deskdir"
> wget http://www.ubukey.fr/files/launchers/gc.desktop &>/dev/null
> chmod +x gc.desktop
> 
> ## suivant type session en prevision...
> case $sessionType in
> gnome)
> gconftool-2 -t boolean -s /apps/nautilus/desktop/volumes_visible false
> 
> ;;
> 
> kde4)
> message "Kde4 detecte... verification de zenity, kdm et de l utilisateur chroot\n"
> 
> if [ ! -e "/usr/bin/zenity" ]; then
> message "Zenity manquant, installation\n"
> apt-get -y --force-yes install zenity
> else
> message "zenity ok \n"
> fi
> 
> ## reconfigure autologin kdm-kde4...
> if [ ! -e "/etc/kde4/kdm/kdmrc" ]; then
> genkdmconf
> fi
> #~ sed -i "s/#AutoLoginUser=.*/AutoLoginUser=$chuser/" /etc/kde4/kdm/kdmrc
> #~ sed -i 's/#AutoLoginEnable=.*/AutoLoginEnable=True/' /etc/kde4/kdm/kdmrc
> ;;
> xfce4)
> 
> ;;
> esac
> 
> 
> ##scan du home...
> message "Reverifie l integritee du dossier /etc/skel (peut etre long...) \n"
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> if [[ "$user" != "$chuser" ]]; then
> LISTE="`find /etc/skel -type f | sed '/.thumbnails/d;/.cache/d;/.purple/d;/.icons/d;/.emerald/d;/.mozilla/d;/.dbus/d;/.themes/d;/.png/d;/.j 
peg/d;/.jpg/d;/.bin/d;/find/d'`"
> echo -e "$LISTE" | while read file; do 
> 
> if [[ -e "$file" && `cat "$file" | grep -e "$chuser"` ]]; then 
> sed -i "s%=$chuser%=$user%g;s%\/home\/$chuser%\/home\/$user%g" "$file"
> fi
> 
> done
> fi
> 
> 
> ## genere xorg
> genXorg
> 
> message "
> ############
> ##  Xorg  ##
> ############
> Pilote : $DRIVER
> Distribution: $DIST
> Id carte : PCI:$testa:$testb:$testc
> Resolution: $resolution
> Layout clavier : $LOCALSIMPLE
> "
> 
> if [[ "$DRIVER" = "radeonhd" && ! -e "/usr/lib/xorg/modules/drivers/radeonhd_drv.so" ]]; then
> apt-get update
> echo -e "Le Driver Radeon HD est inexistant, celui ci va etre compilé... \n"
> echo -e "Installation des dependences pour le pilote radeon HD version git \n"
> apt-get -y install git-core configure-debian automake autoconf xorg-dev libtool mesa-common-dev libdrm-dev build-essential xserver-xorg-dev 
 xutils-dev
> cd /tmp
> echo -e "Téléchargement des sources Git \n"
> git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
> echo -e "Compilation \n"
> cd xf86-video-radeonhd/
> ./autogen.sh --prefix=/usr/
> make
> make install
> 
> fi
> 
> 
> ## verif compiz
> if [ -e "/etc/skel/.config/compiz/fusion-icon" ]; then
> echo -e "Remplace compiz par $decorator"
> sed -i 's/wm = .*/wm = '"$decorator"' /' /etc/skel/.config/compiz/fusion-icon
> fi
> 
> ## verif lanceur partage du / (bug avec nautilus...)
> if [[ ! -e "/usr/bin/gnome-commander" || ! -e "/usr/share/pixmaps/share.png" ]]; then
> message "Installation de gnome-commander pour le partage des disques entre local et chroot \nVotre pc local sera monté sur /media/pc-local" 

> apt-get -y --force-yes install gnome-commander &>/dev/null
> cd /usr/share/pixmaps
> wget http://www.ubukey.fr/files/images/share.png &>/dev/null
> fi
> 
> message "Tout est pret, demarre X dans le chroot ! \n"
> sleep 2
> X :1 & DISPLAY=:1 "$starter"
> 
> } ## fin chroot graphique
root@toshiba:/# 
root@toshiba:/# function CLEANCHROOT()
> {
> message "Sortie du chroot ok, Nettoyage\n"
> 
> ## check kde4
> ## si autologin activé changes utilisateur en rapport avec /etc/casper.conf
> if [ "$sessionType" = "kde4" ]; then
> 
> if [[ `cat "/etc/kde4/kdm/kdmrc" | grep -e "^AutoLoginEnable=true"` ]]; then
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> message "Modification de l utilisateur par defaut pour kdm-kde4 avec l utilisateur $chuser \n"
> sed -i "s/AutoLoginUser=.*/AutoLoginUser=$chuser/" /etc/kde4/kdm/kdmrc
> fi
> 
> ## edite le fichier de config plasma pour virer icones quitter et assistant...
> line=$(cat /etc/skel/.kde4/share/config/plasma-appletsrc | grep -B1 "quit-chroot")
> echo -e "$line" | while read lines; do
> sed -i '/[$lines]/d' /etc/skel/.kde4/share/config/plasma-appletsrc
> done
> 
> line=$(cat /etc/skel/.kde4/share/config/plasma-appletsrc | grep -B1 "ubukey-assist")
> echo -e "$line" | while read lines; do
> sed -i '/[$lines]/d' /etc/skel/.kde4/share/config/plasma-appletsrc
> done
> 
> ## vire fichier socket
> ! test -e /etc/skel/.kde/share/apps/nepomuk/socket || rm  /etc/skel/.kde/share/apps/nepomuk/socket
> 
> fi ## fin si kde4
> 
> ################
> ## nettoie user
> 
> message "Reverifie l integritee du dossier /etc/skel (peut etre long...) \n"
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> if [[ "$chuser" != "$user" ]]; then
> LISTE="`find /etc/skel -type f | sed '/.thumbnails/d;/.cache/d;/.purple/d;/.icons/d;/.emerald/d;/.mozilla/d;/.dbus/d;/.themes/d;/.png/d;/.j 
peg/d;/.jpg/d;/.bin/d;/find/d'`"
> echo -e "$LISTE" | while read file; do 
> if [[ -e "$file" && `cat "$file" | grep -e "$user"` ]]; then 
> sed -i "s%=$user%=$chuser%g;s%\/home\/$user%\/home\/$chuser%g" "$file"
> fi
> done
> fi
> 
> socketFiles=$(find /etc/skel -type s | grep -v "find:");
> echo -e "$socketFiles"| while read file; do
> echo -e "Efface le fichier socket : $file \n"
> rm $file
> done
> 
> ## remet user root
> sed -i 's/\/home\/'$user'/\/root/' /etc/passwd
> 
> ## maj kernel et/ou verification
> INIT=$(ls -al /initrd.img | sed 's/.*boot\///')
> VMLINUZ=$(ls -al /vmlinuz | sed 's/.*boot\///')
> 
> ## clean en cas de mise a jour du kernel important !!
> if [ -e "/vmlinuz.old" ]; then
> toRemove=$(ls -al /vmlinuz.old | sed 's/.*boot\/vmlinuz-//')
> sleep 2
> 
> ## nettoyage kernels multiples
> removeHeaders=$( echo "$toRemove" |sed 's/-generic/*/')
> apt-get remove --purge -y --force-yes linux-image-"$toRemove" linux-headers-"$removeHeaders"
> rm -R /usr/src/linux-headers-"$removeHeaders" &>/dev/null
> rm -R /lib/modules/"$toRemove"
> rm /*.bak
> rm /*.old
> rm /boot/*.bak
> rm /boot/*.old
> fi
> 
> dpkg -l |grep ^rc |awk '{print $2}' |xargs dpkg -P &>/dev/null
> if [[ ! `egrep "ata-piix||all_generic_ide" /usr/share/initramfs-tools/modules` ]]; then
> sed -i '/ata-generic/d;/ide-generic/d;/all_generic_ide/d' usr/share/initramfs-tools/modules
> echo -e "ata-generic\nide-generic\nall_generic_ide" | tee -a /usr/share/initramfs-tools/modules
> fi
> 
> ## s'assure resolutions mini dans usplash.conf
> echo -e "xres=1024
> yres=768" | tee /etc/usplash.conf
> 
> ## debut nettoyage chroot
> cd /tmp
> if [ "$sessionType" = "gnome" ]; then
> gconftool-2 -t boolean -s /apps/nautilus/desktop/volumes_visible true &>/dev/null
> fi
> 
> sleep 3
> ## nettoyage apt
> apt-get clean
> dpkg -l |grep ^rc |awk '{print $2}' |xargs dpkg -P &>/dev/null
> ## remet a jour les sources....
> #ubusrc-gen
> rm /var/lib/apt/lists/*
> apt-get update
> ## sortie du script et demonte tout
> /etc/init.d/cupsys stop
> rm /var/crash/* &>/dev/null
> rm -R /tmp/* &>/dev/null
> rm -Rf /var/run/* &>/dev/null
> rm -Rf /root/* &>/dev/null
> 
> message "nettoyage des fichiers de l utilisateur chroot\n"
> ## efface utilisateur
> rm /etc/xdg/autostart/fix-clavier.desktop
> rm /etc/skel/.xsession-errors
> rm /etc/skel/.Xauthority
> rm -Rf /etc/skel/.gvfs &>/dev/null
> rm /usr/local/bin/quit-chroot.sh
> rm /etc/skel/.ICEauthority
> rm -Rf /var/tmp/*
> rm -Rf /home/"$user"
> 
> rm /etc/hosts
> rm /etc/resolv.conf
> rm /etc/X11/xorg.conf
> 
> ## clean group and passwd files
> sed -i '/^[^:]*:[^:]*:[1-9][0-9][0-9][0-9]:/d' /etc/passwd
> sed -i '/^[^:]*:[^:]*:[12][0-9][0-9][0-9][0-9]:/d' /etc/passwd
> 
> sed -i '/^[^:]*:[^:]*:[1-9][0-9][0-9][0-9]:/d' /etc/group
> sed -i '/^[^:]*:[^:]*:[12][0-9][0-9][0-9][0-9]:/d' /etc/group
> 
> sed -i '/^[^:]*:[^:]*:[^:]*:'$user'/d' /etc/group
> 
> ## recreate shadow/gshadow files file
> pwconv
> grpconv
> 
> chown -R root:root /etc/skel/.
> }
root@toshiba:/# 
root@toshiba:/# if [ -z "$mode" ]; then
> message "Démarrage du chroot en mode graphique ! \n"
> INITCHROOT
> CHROOTGRAPHIQUE
> CLEANCHROOT
> else
> message "Démarrage du chroot en mode console ! \n"
> INITCHROOT
> 
> ln -sf /etc/skel/ /home/"$user"
> rm /etc/skel/skel
> cd /home/"$user"
> 
> export DISPLAY=localhost:5
> sleep 5
> 
> #ubusrc-gen
> [ -e /usr/bin/xterm ] || message "Installation de xterm \n"; apt-get install -y xterm
> 
> ## genere xorg
> DRIVER=vesa
> DEPTH=16
> #genXorg
> 
> ## demarre console
> $decorator --replace & setxkbmap "$LOCALSIMPLE" & xterm -bg black -fg white -geom 115x40 -fn 7x14
> 
> kill -9 `ps aux | grep -e "[-]fakexa" | awk '{print $2}'`
> CLEANCHROOT
> fi
source karmic main ok
source src karmic main ok 

source karmic restricted ok
source src karmic restricted ok 

source karmic universe ok
source src karmic universe ok 

source karmic multiverse ok
source src karmic multiverse ok 

Depot(s) specifique(s) au script ok... 


Mise a jour des sources...ok
The program 'unsquashfs' is currently not installed.  You can install it by typing:
apt-get install squashfs-tools
unsquashfs: command not found
chmod: cannot access `/usr/bin/unsquashfs': No such file or directory
chmod: cannot access `/usr/bin/mksquashfs': No such file or directory
rm: cannot remove `/home/buster/.config/user-dirs.dirs': No such file or directory
--2009-11-22 09:30:03--  http://www.ubukey.fr/files/usbkey.png
Resolving www.ubukey.fr... 88.191.100.48
Connecting to www.ubukey.fr|88.191.100.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19900 (19K) [image/png]
Saving to: `usbkey.png'

     0K .......... .........                                  100%  277K=0.07s

2009-11-22 09:30:03 (277 KB/s) - `usbkey.png' saved [19900/19900]

--2009-11-22 09:30:03--  http://www.ubukey.fr/files/ubukey-gnome.sh
Resolving www.ubukey.fr... 88.191.100.48
Connecting to www.ubukey.fr|88.191.100.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6872 (6.7K) [text/x-sh]
Saving to: `ubukey-gnome.sh'

     0K ......                                                100%  213K=0.03s

2009-11-22 09:30:03 (213 KB/s) - `ubukey-gnome.sh' saved [6872/6872]

--2009-11-22 09:30:03--  http://www.ubukey.fr/files/images/quit-chroot.png
Resolving www.ubukey.fr... 88.191.100.48
Connecting to www.ubukey.fr|88.191.100.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83015 (81K) [image/png]
Saving to: `quit-chroot.png'

     0K .......... .......... .......... .......... .......... 61%  363K 0s
    50K .......... .......... .......... .                    100%  446K=0.2s

2009-11-22 09:30:04 (391 KB/s) - `quit-chroot.png' saved [83015/83015]

--2009-11-22 09:30:04--  http://www.ubukey.fr/files/quit-chroot.sh
Resolving www.ubukey.fr... 88.191.100.48
Connecting to www.ubukey.fr|88.191.100.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 38 [text/x-sh]
Saving to: `quit-chroot.sh'

     0K                                                       100% 1.71M=0s

2009-11-22 09:30:04 (1.71 MB/s) - `quit-chroot.sh' saved [38/38]

Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed
  xresprobe
0 upgraded, 1 newly installed, 0 to remove and 107 not upgraded.
Need to get 19.6kB of archives.
After this operation, 102kB of additional disk space will be used.
Get: 1 http://fr.archive.ubuntu.com karmic/universe xresprobe 0.4.24ubuntu9 [19.6kB]
Fetched 19.6kB in 0s (93.3kB/s)
Selecting previously deselected package xresprobe.
(Reading database ... 120327 files and directories currently installed.)
Unpacking xresprobe (from .../xresprobe_0.4.24ubuntu9_i386.deb) ...
Setting up xresprobe (0.4.24ubuntu9) ...
[1] 4804

X.Org X Server 1.6.4
Release Date: 2009-9-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-23-server i686 Ubuntu
Current Operating System: Linux toshiba 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686
Kernel command line: root=UUID=69f6a633-4bee-4296-b8c8-4b094cea6261 ro quiet splash 
Build Date: 26 October 2009  05:15:02PM
xorg-server 2:1.6.4-2ubuntu4 (buildd@) 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sun Nov 22 09:30:38 2009
(==) Using config file: "/etc/X11/xorg.conf"
(EE) Failed to load module "kbd" (module does not exist, 0)
(EE) Failed to load module "kbd" (module does not exist, 0)
(EE) No input driver matching `kbd'
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
gnome-session[4805]: WARNING: Unable to determine session: Unable to lookup session information for process '4805'
GNOME_KEYRING_SOCKET=/tmp/keyring-cdj84B/socket
SSH_AUTH_SOCK=/tmp/keyring-cdj84B/socket.ssh
GNOME_KEYRING_PID=4837

(gnome-settings-daemon:4835): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed

(gnome-settings-daemon:4835): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
Checking for Xgl: not present. 
xset q doesn't reveal the location of the log file. Using fallback /var/log/Xorg.1.log 
No whitelisted driver found
aborting and using fallback: /usr/bin/metacity 
Window manager warning: Failed to read saved session file /home/buster/.config/metacity/sessions/1082d589da9dc9c14e125888224126147900000048050023.ms: Failed to open file '/home/buster/.config/metacity/sessions/1082d589da9dc9c14e125888224126147900000048050023.ms': No such file or directory
Failed to play sound: Not available

(polkit-gnome-authentication-agent-1:4900): polkit-gnome-1-WARNING **: Unable to determine the session we are in: Remote Exception invoking org.freedesktop.ConsoleKit.Manager.GetSessionForUnixProcess() on /org/freedesktop/ConsoleKit/Manager at name org.freedesktop.ConsoleKit: org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '4900' org.freedesktop.ConsoleKit.Manager.GeneralError Unable%20to%20lookup%20session%20information%20for%20process%20%274900%27
** Message: Reading of RFKILL events failed
** Message: killswitches state 3
** Message: killswitches state 3
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error:            Can't find file "en" for symbols include
>                   Exiting
>                   Abandoning symbols file "default"
Errors from xkbcomp are not fatal to the X server
(EE) Error loading keymap /var/lib/xkb/server-1.xkm
Error loading new keyboard description

(nautilus:4894): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed

** (nm-applet:4901): WARNING **: <WARN>  request_name(): Could not acquire the NetworkManagerUserSettings service as it is already taken.  Return: 3


** (update-notifier:4916): WARNING **: not starting for system user

Initializing nautilus-gdu extension
** (gnome-panel:4893): DEBUG: Adding applet 0.
** (gnome-panel:4893): DEBUG: Initialized Panel Applet Signaler.
** (gnome-panel:4893): DEBUG: Adding applet 1.
** (gnome-panel:4893): DEBUG: Adding applet 2.
** (gnome-panel:4893): DEBUG: Adding applet 3.
** (gnome-panel:4893): DEBUG: Adding applet 4.
** (gnome-panel:4893): DEBUG: Adding applet 5.
** (gnome-panel:4893): DEBUG: Adding applet 6.
** (gnome-panel:4893): DEBUG: Adding applet 7.
** (gnome-panel:4893): DEBUG: Adding applet 8.
** (gnome-panel:4893): DEBUG: Adding applet 9.

** (nautilus:4894): WARNING **: No marshaller for signature of signal 'UploadFinished'

** (nautilus:4894): WARNING **: No marshaller for signature of signal 'DownloadFinished'

** (nautilus:4894): WARNING **: No marshaller for signature of signal 'ShareCreateError'
** (gnome-panel:4893): DEBUG: Adding applet 10.
process 4893: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
evolution-alarm-notify-Message: Setting timeout for 52126 1258934400 1258882274
evolution-alarm-notify-Message:  Mon Nov 23 00:00:00 2009

evolution-alarm-notify-Message:  Sun Nov 22 09:31:14 2009

process 4894: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.

Latex-Math : annalescours/exos ; exos. Ubuntu : live-usb ; multiboot

Hors ligne

#7 Le 22/11/2009, à 12:17

buster19

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

Je viens de tester en Driver INTEL. no problème. Je poste depuis chroot.


Latex-Math : annalescours/exos ; exos. Ubuntu : live-usb ; multiboot

Hors ligne

#8 Le 22/11/2009, à 12:24

frafa

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

Bonjour,
moi pour les erreurs de machine-id je fait
cat /var/lib/dbus/machine-id | sudo tee /mnt/chroot/var/lib/dbus/machine-id
et depuis plus de blemes...

Hors ligne

#9 Le 22/11/2009, à 13:36

buster19

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

après custo graph en INTEl, verif de /etc/skel interminable.

ci joint log :

]0;root@toshiba: /root@toshiba:/# 
]0;root@toshiba: /root@toshiba:/# mode="$(cat /etc/ubukey/ubukeyconf | grep -e "mode" | sed 's/.*=//')"
]0;root@toshiba: /root@toshiba:/# 
]0;root@toshiba: /root@toshiba:/# function message() {
> touch /tmp/chrootlog.log
> message="$1"
> echo -e "$message" | tee -a /tmp/chrootlog.log &>/dev/null
> }
]0;root@toshiba: /root@toshiba:/# 
]0;root@toshiba: /root@toshiba:/# function INITCHROOT()
> {
> chrootKerVer=$(ls -al /initrd.img | sed 's/.*boot\/initrd.img-//')
> localKerVer=$(cat /etc/ubukey/ubukeyconf | grep -e "Kernel" | sed 's/.*Kernel=//')
> sessionType=$(cat /etc/ubukey/ubukeyconf | grep -e "distSession" | sed 's/.*distSession=//')
> user=$(cat /etc/ubukey/ubukeyconf | grep -e "user" | sed 's/.*user=//')
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> LOCALUTF="$(cat /etc/ubukey/ubukeyconf | grep -e "localutf" | sed 's/.*=//')"
> LOCALBASE="$(cat /etc/ubukey/ubukeyconf | grep -e "localbase" | sed 's/.*=//')"
> LOCALSIMPLE="$(cat /etc/ubukey/ubukeyconf | grep -e "localsimple" | sed 's/.*=//')"
> DIST="$(cat /etc/lsb-release | grep CODENAME | sed 's/.*=//')"
> DRIVER="$(cat /etc/ubukey/ubukeyconf | grep -e "driver" | sed 's/.*=//')"
> 
> ## langue dans chroot
> export LANG=$LOCALUTF
> export LC_ALL=$LOCALUTF
> echo -e "$LOCALSIMPLE
> $LOCALBASE
> $LOCALUTF
> " | tee /etc/locale.gen &>/dev/null
> 
> message "
> #########################
> ## Variables du chroot ##
> #########################
> 
> Type de session : "$sessionType"
> Utilisateur session chroot : "$user"
> Utilisateur reel du live-cd : "$chuser"
> Locales : $LOCALUTF
> Langue : $LOCALSIMPLE
> Clavier: $LOCALSIMPLE
> "
> #monter minimun necessaire
> mount -t proc none /proc
> mount -t sysfs none /sys
> mount -t devpts none /dev/pts
> 
> sleep 5
> umount -f /lib/modules/*/volatile &>/dev/null
> 
> ## check sources
> message "Verification des sources, merci de patienter"
> cd /usr/local/bin
> rm ubusrc-gen &>/dev/null
> wget -q http://www.ubukey.fr/files/ubusrc-gen
> chmod +x ubusrc-gen
> ubusrc-gen
> 
> #~ if [[ ! $(dpkg -l | grep -w "console-data") ]]; then
> #~ message "Console data va etre installe pour la langue dans les consoles tty"
> #~ apt-get -y --force-yes install console-data
> #~ fi
> 
> ## Changement de la langue par defaut des consoles tty avec : $LOCALSIMPLE
> sed -i 's/XKBLAYOUT=.*/XKBLAYOUT="'$LOCALSIMPLE'"/' /etc/default/console-setup
> 
> ## check du decorateur et autres
> case $sessionType in
> gnome)
> decorator="metacity"
> term="gnome-terminal"
> starter=gnome-session
> ;;
> kde4)
> decorator=kwin
> term=konsole
> starter=startkde
> ;;
> xfce4)
> decorator="xfwm4"
> term="xfterm4"
> starter=xfce4-session
> ;;
> esac
> 
> if [[ ! `unsquashfs -version | grep "unsquashfs version 4.0"` ]]; then
> rm /usr/{s,}bin/{un,mk}squashfs &>/dev/null
> cd /usr/sbin
> wget http://www.ubukey.fr/files/bin/karmic/mksquashfs &>/dev/null
> wget http://www.ubukey.fr/files/bin/karmic/unsquashfs &>/dev/null
> chmod +x /usr/bin/{un,mk}squashfs 
> fi
> 
> }
]0;root@toshiba: /root@toshiba:/# 
]0;root@toshiba: /root@toshiba:/# ###### config xorg
]0;root@toshiba: /root@toshiba:/# function genXorg
> {
> 
> if [ ! -e "/usr/sbin/ddcprobe" ]; then
> message "Installation de xrespobe...\n"
> apt-get -y install xresprobe
> fi
> 
> test=$(lspci -b | grep VGA | awk '{print $1}')
> testa=$(echo "$test" | sed 's/:.*//')
> testb=$(echo "$test" | sed 's/\..*//;s/.*://')
> testc=$(echo "$test" | sed 's/.*\.//')
> 
> if [[ "$testa" != "0" && "$testa" -lt "10" ]]; then
> testa=$(echo "$testa" | cut -c 2)
> fi
> 
> if [[ "$testb" != "0" && "$testb" -lt "10" ]]; then
> testb=$(echo "$testb" | cut -c 2)
> fi
> 
> if [[ "$testc" != "0" && "$testc" -lt "10" ]]; then
> testc=$(echo "$testc" | cut -c 2)
> fi
> 
> BUSID="PCI:$testa:$testb:$testc"
> 
> ## detection
> res="$(cat /tmp/resolution)"
> 
> if [ -z "$res" ]; then
> 
> echo -e "La resolution ideale n'a pas pu etre detectee automatiquement
> Indiquez la resolution a utiliser\n
> exemple 1280x1024:" 
> read res
> 
> if [ -n "$res" ]; then
> 
> listres="\"$res\" \"1600x1200\" \"1440x900\" \"1280x1024\" \"1280x800\" \"1024x768\" \"1024x600\" \"800x600\" \"640x480\""
> resolution="$(echo $listres | sed -e "s%\"$res\"%%")"
> else
> resolution="\"1600x1200\" \"1440x900\" \"1280x1024\" \"1280x800\" \"1024x768\" \"1024x600\" \"800x600\" \"640x480\""
> fi ## fin si pas de resolution choisie
> 
> else
> 
> listres="\"$res\" \"1600x1200\" \"1440x900\" \"1280x1024\" \"1280x800\" \"1024x768\" \"1024x600\" \"800x600\" \"640x480\""
> resolution="$(echo $listres | sed -e "s%\"$res\"%%")"
> 
> fi ## fin si pas de resolution detectee a la base...
> 
> cd /etc/X11/
> rm xorg.conf &>/dev/null
> wget -q http://www.ubukey.fr/files/launchers/xorg.conf
> 
> ## rechange driver et keymap
> 
> DEPTH=24
> if [ "$DRIVER" = "vesa" ]; then
> DEPTH=16
> fi
> 
> sed -i "s/chkeymap/$LOCALSIMPLE/" /etc/X11/xorg.conf
> sed -i "s/chdriver/$DRIVER/" /etc/X11/xorg.conf
> sed -i "s/chpci/$BUSID/" /etc/X11/xorg.conf
> sed -i "s/depth/$DEPTH/g" /etc/X11/xorg.conf
> sed -i "s%chmode%$resolution%" /etc/X11/xorg.conf
> 
> ## modeline ecran
> ddcmode="$(sudo ddcprobe | grep dtiming | sed 's/dtiming\: //')"
> 
> if [ -n "$ddcmode" ]; then
> 
> maxref="$(echo $ddcmode | sed 's/.*@//')"
> height="$(echo $ddcmode | sed 's/x.*//;')"
> width="$(echo $ddcmode | sed 's/.*x//;s/@.*//')"
> 
> modeline="$(gtf $height $width $maxref | sed '/#/d;/^$/d;s/^  //;s/_.*\"/\"/')"
> 
> if [ -n "$modeline" ]; then
> sed -i "s%modeline%$modeline%" /etc/X11/xorg.conf
> fi
> 
> else
> 
> sed -i "/modeline/d" /etc/X11/xorg.conf
> 
> fi
> 
> #### fix xserver
> echo -e '
> Section "ServerFlags"
> #Option "AutoAddDevices" "off"
> Option "AllowEmptyInput" "off"
> EndSection' | tee -a /etc/X11/xorg.conf &>/dev/null
> 
> } ## fin genXorg
]0;root@toshiba: /root@toshiba:/# 
]0;root@toshiba: /root@toshiba:/# 
]0;root@toshiba: /root@toshiba:/# function CHROOTGRAPHIQUE()
> {
> 
> ## au cas ou
> rm /etc/skel/skel &>/dev/null
> rm /home/"$user" -R &>/dev/null
> ln -sf /etc/skel /home/"$user"
> 
> cd /etc/skel 
> 
> ## clean xdg
> rm /home/"$user"/.config/user-dirs.dirs
> rm /etc/locale.gen &>/dev/null
> echo -e "$LOCALSIMPLE
> $LOCALBASE
> $LOCALUTF
> " | tee /etc/locale.gen &>/dev/null
> 
> ## check paquet xdg-user-dirs
> message "Detection des dossiers Xdg (Bureau, Desktop...)\n"
> if [[ ! `dpkg -l | grep -e "xdg-user-dirs"` ]]; then
> aptitude -y install xdg-user-dirs
> fi
> 
> xdg-user-dirs-update 
> xdg-user-dirs-update --force
> 
> ## reverifie le users-dirs.dirs
> deskdir="$(cat /home/"$user"/.config/user-dirs.dirs | grep DESKTOP | sed 's/.*\///' | sed 's/\"//')"
> if [ -z "$deskdir" ]; then
> mkdir /etc/skel/Desktop
> deskdir="Desktop"
> fi
> 
> ## check dossier bureau
> if [[ ! `cat /home/"$user"/.config/user-dirs.dirs | grep -e "/Desktop"` && -e /etc/skel/Desktop ]]; then
> rm -R /etc/skel/Desktop
> deskdir="$(cat /home/"$user"/.config/user-dirs.dirs | grep DESKTOP | sed 's/.*\///' | sed 's/\"//')"
> ## au cas ou...
> mkdir /etc/skel/$deskdir &>/dev/null
> fi
> 
> ##checkfinal si deskdir ok
> if [ -z "$deskdir" ]; then
> message "Probleme avec dossier Bureau, sortie"
> CLEANCHROOT
> fi
> 
> message "Dossier bureau : $deskdir \n"
> 
> ## adapte dossier Desktop, casper-bottom
> if [ "$deskdir" != "Desktop" ]; then
> sed -i 's/Desktop/'$deskdir'/g' /usr/share/initramfs-tools/scripts/casper-bottom/10adduser
> fi
> 
> cd /usr/share/pixmaps
> if [ ! -e usbkey.png ]; then
> wget http://www.ubukey.fr/files/usbkey.png
> fi
> 
> ################## ajout icones sur le bureau
> 
> cd /usr/local/bin
> rm ubukey-$sessionType* &>/dev/null
> wget http://www.ubukey.fr/files/ubukey-$sessionType.sh
> chmod +x ubukey-$sessionType.sh
> echo "[Desktop Entry]
> Type=Application
> Encoding=UTF-8
> Version=1.0
> Name=Assistant de customisation $sessionType
> Name[fr_FR]=Assistant de customisation $sessionType
> Comment[fr_FR]=Assistant de customisation pour $sessionType
> Comment=Assistant de customisation pour $sessionType
> Exec=ubukey-$sessionType.sh
> X-GNOME-Autostart-enabled=true
> Icon=/usr/share/pixmaps/usbkey.png" | tee /etc/skel/"$deskdir"/ubukey-assist.desktop &>/dev/null
> 
> chmod +x /etc/skel/"$deskdir"/ubukey-assist.desktop
> 
> echo "[Desktop Entry]
> Type=Application
> Encoding=UTF-8
> Version=1.0
> Name=fix-clavier
> Name[fr_FR]=fix-clavier
> Comment[fr_FR]=fix-clavier
> Comment=fix-clavier
> Exec=setxkbmap $LOCALSIMPLE
> X-GNOME-Autostart-enabled=true" | tee /etc/xdg/autostart/fix-clavier.desktop &>/dev/null
> 
> ## icone quitter
> cd /usr/share/pixmaps
> if [ ! -e quit-chroot.png ]; then
> wget http://www.ubukey.fr/files/images/quit-chroot.png
> fi
> 
> ## cree ptit script pour tuer x avec l icone du bureau
> cd /usr/local/bin
> rm quit-chroot* &>/dev/null
> wget http://www.ubukey.fr/files/quit-chroot.sh
> chmod +x /usr/local/bin/quit-chroot.sh
> 
> echo "[Desktop Entry]
> Type=Application
> Encoding=UTF-8
> Version=1.0
> Name=Quitter le chroot
> Name[fr_FR]=Quitter chroot
> Comment[fr_FR]=Quitter le chroot
> Comment=cliquez pour quitter le chroot
> Exec=quit-chroot.sh
> X-GNOME-Autostart-enabled=true
> Icon=/usr/share/pixmaps/quit-chroot.png" | tee /etc/skel/"$deskdir"/quit-chroot.desktop &>/dev/null
> 
> chmod +x /etc/skel/"$deskdir"/quit-chroot.desktop
> 
> ## icone partage
> sleep 2
> cd /etc/skel/"$deskdir"
> wget http://www.ubukey.fr/files/launchers/gc.desktop &>/dev/null
> chmod +x gc.desktop
> 
> ## suivant type session en prevision...
> case $sessionType in
> gnome)
> gconftool-2 -t boolean -s /apps/nautilus/desktop/volumes_visible false
> 
> ;;
> 
> kde4)
> message "Kde4 detecte... verification de zenity, kdm et de l utilisateur chroot\n"
> 
> if [ ! -e "/usr/bin/zenity" ]; then
> message "Zenity manquant, installation\n"
> apt-get -y --force-yes install zenity
> else
> message "zenity ok \n"
> fi
> 
> ## reconfigure autologin kdm-kde4...
> if [ ! -e "/etc/kde4/kdm/kdmrc" ]; then
> genkdmconf
> fi
> #~ sed -i "s/#AutoLoginUser=.*/AutoLoginUser=$chuser/" /etc/kde4/kdm/kdmrc
> #~ sed -i 's/#AutoLoginEnable=.*/AutoLoginEnable=True/' /etc/kde4/kdm/kdmrc
> ;;
> xfce4)
> 
> ;;
> esac
> 
> 
> ##scan du home...
> message "Reverifie l integritee du dossier /etc/skel (peut etre long...) \n"
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> if [[ "$user" != "$chuser" ]]; then
> LISTE="`find /etc/skel -type f | sed '/.thumbnails/d;/.cache/d;/.purple/d;/.icons/d;/.emerald/d;/.mozilla/d;/.dbus/d;/.themes/d;/.png/d;/.j 
peg/d;/.jpg/d;/.bin/d;/find/d'`"
> echo -e "$LISTE" | while read file; do 
> 
> if [[ -e "$file" && `cat "$file" | grep -e "$chuser"` ]]; then 
> sed -i "s%=$chuser%=$user%g;s%\/home\/$chuser%\/home\/$user%g" "$file"
> fi
> 
> done
> fi
> 
> 
> ## genere xorg
> genXorg
> 
> message "
> ############
> ##  Xorg  ##
> ############
> Pilote : $DRIVER
> Distribution: $DIST
> Id carte : PCI:$testa:$testb:$testc
> Resolution: $resolution
> Layout clavier : $LOCALSIMPLE
> "
> 
> if [[ "$DRIVER" = "radeonhd" && ! -e "/usr/lib/xorg/modules/drivers/radeonhd_drv.so" ]]; then
> apt-get update
> echo -e "Le Driver Radeon HD est inexistant, celui ci va etre compilé... \n"
> echo -e "Installation des dependences pour le pilote radeon HD version git \n"
> apt-get -y install git-core configure-debian automake autoconf xorg-dev libtool mesa-common-dev libdrm-dev build-essential xserver-xorg-dev 
 xutils-dev
> cd /tmp
> echo -e "Téléchargement des sources Git \n"
> git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
> echo -e "Compilation \n"
> cd xf86-video-radeonhd/
> ./autogen.sh --prefix=/usr/
> make
> make install
> 
> fi
> 
> 
> ## verif compiz
> if [ -e "/etc/skel/.config/compiz/fusion-icon" ]; then
> echo -e "Remplace compiz par $decorator"
> sed -i 's/wm = .*/wm = '"$decorator"' /' /etc/skel/.config/compiz/fusion-icon
> fi
> 
> ## verif lanceur partage du / (bug avec nautilus...)
> if [[ ! -e "/usr/bin/gnome-commander" || ! -e "/usr/share/pixmaps/share.png" ]]; then
> message "Installation de gnome-commander pour le partage des disques entre local et chroot \nVotre pc local sera monté sur /media/pc-local" 

> apt-get -y --force-yes install gnome-commander &>/dev/null
> cd /usr/share/pixmaps
> wget http://www.ubukey.fr/files/images/share.png &>/dev/null
> fi
> 
> message "Tout est pret, demarre X dans le chroot ! \n"
> sleep 2
> X :1 & DISPLAY=:1 "$starter"
> 
> } ## fin chroot graphique
]0;root@toshiba: /root@toshiba:/# 
]0;root@toshiba: /root@toshiba:/# function CLEANCHROOT()
> {
> message "Sortie du chroot ok, Nettoyage\n"
> 
> ## check kde4
> ## si autologin activé changes utilisateur en rapport avec /etc/casper.conf
> if [ "$sessionType" = "kde4" ]; then
> 
> if [[ `cat "/etc/kde4/kdm/kdmrc" | grep -e "^AutoLoginEnable=true"` ]]; then
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> message "Modification de l utilisateur par defaut pour kdm-kde4 avec l utilisateur $chuser \n"
> sed -i "s/AutoLoginUser=.*/AutoLoginUser=$chuser/" /etc/kde4/kdm/kdmrc
> fi
> 
> ## edite le fichier de config plasma pour virer icones quitter et assistant...
> line=$(cat /etc/skel/.kde4/share/config/plasma-appletsrc | grep -B1 "quit-chroot")
> echo -e "$line" | while read lines; do
> sed -i '/[$lines]/d' /etc/skel/.kde4/share/config/plasma-appletsrc
> done
> 
> line=$(cat /etc/skel/.kde4/share/config/plasma-appletsrc | grep -B1 "ubukey-assist")
> echo -e "$line" | while read lines; do
> sed -i '/[$lines]/d' /etc/skel/.kde4/share/config/plasma-appletsrc
> done
> 
> ## vire fichier socket
> ! test -e /etc/skel/.kde/share/apps/nepomuk/socket || rm  /etc/skel/.kde/share/apps/nepomuk/socket
> 
> fi ## fin si kde4
> 
> ################
> ## nettoie user
> 
> message "Reverifie l integritee du dossier /etc/skel (peut etre long...) \n"
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> if [[ "$chuser" != "$user" ]]; then
> LISTE="`find /etc/skel -type f | sed '/.thumbnails/d;/.cache/d;/.purple/d;/.icons/d;/.emerald/d;/.mozilla/d;/.dbus/d;/.themes/d;/.png/d;/.j 
peg/d;/.jpg/d;/.bin/d;/find/d'`"
> echo -e "$LISTE" | while read file; do 
> if [[ -e "$file" && `cat "$file" | grep -e "$user"` ]]; then 
> sed -i "s%=$user%=$chuser%g;s%\/home\/$user%\/home\/$chuser%g" "$file"
> fi
> done
> fi
> 
> socketFiles=$(find /etc/skel -type s | grep -v "find:");
> echo -e "$socketFiles"| while read file; do
> echo -e "Efface le fichier socket : $file \n"
> rm $file
> done
> 
> ## remet user root
> sed -i 's/\/home\/'$user'/\/root/' /etc/passwd
> 
> ## maj kernel et/ou verification
> INIT=$(ls -al /initrd.img | sed 's/.*boot\///')
> VMLINUZ=$(ls -al /vmlinuz | sed 's/.*boot\///')
> 
> ## clean en cas de mise a jour du kernel important !!
> if [ -e "/vmlinuz.old" ]; then
> toRemove=$(ls -al /vmlinuz.old | sed 's/.*boot\/vmlinuz-//')
> sleep 2
> 
> ## nettoyage kernels multiples
> removeHeaders=$( echo "$toRemove" |sed 's/-generic/*/')
> apt-get remove --purge -y --force-yes linux-image-"$toRemove" linux-headers-"$removeHeaders"
> rm -R /usr/src/linux-headers-"$removeHeaders" &>/dev/null
> rm -R /lib/modules/"$toRemove"
> rm /*.bak
> rm /*.old
> rm /boot/*.bak
> rm /boot/*.old
> fi
> 
> dpkg -l |grep ^rc |awk '{print $2}' |xargs dpkg -P &>/dev/null
> if [[ ! `egrep "ata-piix||all_generic_ide" /usr/share/initramfs-tools/modules` ]]; then
> sed -i '/ata-generic/d;/ide-generic/d;/all_generic_ide/d' usr/share/initramfs-tools/modules
> echo -e "ata-generic\nide-generic\nall_generic_ide" | tee -a /usr/share/initramfs-tools/modules
> fi
> 
> ## s'assure resolutions mini dans usplash.conf
> echo -e "xres=1024
> yres=768" | tee /etc/usplash.conf
> 
> ## debut nettoyage chroot
> cd /tmp
> if [ "$sessionType" = "gnome" ]; then
> gconftool-2 -t boolean -s /apps/nautilus/desktop/volumes_visible true &>/dev/null
> fi
> 
> sleep 3
> ## nettoyage apt
> apt-get clean
> dpkg -l |grep ^rc |awk '{print $2}' |xargs dpkg -P &>/dev/null
> ## remet a jour les sources....
> #ubusrc-gen
> rm /var/lib/apt/lists/*
> apt-get update
> ## sortie du script et demonte tout
> /etc/init.d/cupsys stop
> rm /var/crash/* &>/dev/null
> rm -R /tmp/* &>/dev/null
> rm -Rf /var/run/* &>/dev/null
> rm -Rf /root/* &>/dev/null
> 
> message "nettoyage des fichiers de l utilisateur chroot\n"
> ## efface utilisateur
> rm /etc/xdg/autostart/fix-clavier.desktop
> rm /etc/skel/.xsession-errors
> rm /etc/skel/.Xauthority
> rm -Rf /etc/skel/.gvfs &>/dev/null
> rm /usr/local/bin/quit-chroot.sh
> rm /etc/skel/.ICEauthority
> rm -Rf /var/tmp/*
> rm -Rf /home/"$user"
> 
> rm /etc/hosts
> rm /etc/resolv.conf
> rm /etc/X11/xorg.conf
> 
> ## clean group and passwd files
> sed -i '/^[^:]*:[^:]*:[1-9][0-9][0-9][0-9]:/d' /etc/passwd
> sed -i '/^[^:]*:[^:]*:[12][0-9][0-9][0-9][0-9]:/d' /etc/passwd
> 
> sed -i '/^[^:]*:[^:]*:[1-9][0-9][0-9][0-9]:/d' /etc/group
> sed -i '/^[^:]*:[^:]*:[12][0-9][0-9][0-9][0-9]:/d' /etc/group
> 
> sed -i '/^[^:]*:[^:]*:[^:]*:'$user'/d' /etc/group
> 
> ## recreate shadow/gshadow files file
> pwconv
> grpconv
> 
> chown -R root:root /etc/skel/.
> }
]0;root@toshiba: /root@toshiba:/# 
]0;root@toshiba: /root@toshiba:/# if [ -z "$mode" ]; then
> message "Démarrage du chroot en mode graphique ! \n"
> INITCHROOT
> CHROOTGRAPHIQUE
> CLEANCHROOT
> else
> message "Démarrage du chroot en mode console ! \n"
> INITCHROOT
> 
> ln -sf /etc/skel/ /home/"$user"
> rm /etc/skel/skel
> cd /home/"$user"
> 
> export DISPLAY=localhost:5
> sleep 5
> 
> #ubusrc-gen
> [ -e /usr/bin/xterm ] || message "Installation de xterm \n"; apt-get install -y xterm
> 
> ## genere xorg
> DRIVER=vesa
> DEPTH=16
> #genXorg
> 
> ## demarre console
> $decorator --replace & setxkbmap "$LOCALSIMPLE" & xterm -bg black -fg white -geom 115x40 -fn 7x14
> 
> kill -9 `ps aux | grep -e "[-]fakexa" | awk '{print $2}'`
> CLEANCHROOT
> fi
source karmic main ok
source src karmic main ok 

source karmic restricted ok
source src karmic restricted ok 

source karmic universe ok
source src karmic universe ok 

source karmic multiverse ok
source src karmic multiverse ok 

Depot(s) specifique(s) au script ok... 


Mise a jour des sources...ok
bash: /usr/sbin/unsquashfs: Permission denied
chmod: cannot access `/usr/bin/unsquashfs': No such file or directory
chmod: cannot access `/usr/bin/mksquashfs': No such file or directory
--2009-11-22 10:15:39--  http://www.ubukey.fr/files/ubukey-gnome.sh
Resolving www.ubukey.fr... 88.191.100.48
Connecting to www.ubukey.fr|88.191.100.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6872 (6.7K) [text/x-sh]
Saving to: `ubukey-gnome.sh'

     0K ......                                                100%  204K=0.03s

2009-11-22 10:15:39 (204 KB/s) - `ubukey-gnome.sh' saved [6872/6872]

--2009-11-22 10:15:39--  http://www.ubukey.fr/files/quit-chroot.sh
Resolving www.ubukey.fr... 88.191.100.48
Connecting to www.ubukey.fr|88.191.100.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 38 [text/x-sh]
Saving to: `quit-chroot.sh'

     0K                                                       100% 1.74M=0s

2009-11-22 10:15:39 (1.74 MB/s) - `quit-chroot.sh' saved [38/38]

[1] 3005

X.Org X Server 1.6.4
Release Date: 2009-9-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-23-server i686 Ubuntu
Current Operating System: Linux toshiba 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686
Kernel command line: root=UUID=69f6a633-4bee-4296-b8c8-4b094cea6261 ro quiet splash 
Build Date: 26 October 2009  05:15:02PM
xorg-server 2:1.6.4-2ubuntu4 (buildd@) 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sun Nov 22 10:15:47 2009
(==) Using config file: "/etc/X11/xorg.conf"
(EE) Failed to load module "kbd" (module does not exist, 0)
Setting master 
(EE) Failed to load module "kbd" (module does not exist, 0)
(EE) No input driver matching `kbd'
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
gnome-session[3006]: WARNING: Unable to determine session: Unable to lookup session information for process '3006'
GNOME_KEYRING_SOCKET=/tmp/keyring-xcrkek/socket
SSH_AUTH_SOCK=/tmp/keyring-xcrkek/socket.ssh
GNOME_KEYRING_PID=3043

(gnome-settings-daemon:3040): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed

(gnome-settings-daemon:3040): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
Checking for Xgl: not present. 
xset q doesn't reveal the location of the log file. Using fallback /var/log/Xorg.1.log 
Detected PCI ID for VGA: 
Checking for texture_from_pixmap: present. 
Checking for non power of two support: present. 
Checking for Composite extension: present. 
Checking screen 1Comparing resolution (1440x900) to maximum 3D texture size (4096): Passed.
Checking for Software Rasterizer: Not present. 
Checking for nVidia: not present. 
Checking for FBConfig: present. 
running under gnome seesion, checking for gnomecompat
Checking for Xgl: not present. 
Failed to play sound: Not available
** (gnome-panel:3141): DEBUG: Adding applet 0.
** (gnome-panel:3141): DEBUG: Initialized Panel Applet Signaler.

(polkit-gnome-authentication-agent-1:3159): polkit-gnome-1-WARNING **: Unable to determine the session we are in: Remote Exception invoking org.freedesktop.ConsoleKit.Manager.GetSessionForUnixProcess() on /org/freedesktop/ConsoleKit/Manager at name org.freedesktop.ConsoleKit: org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '3159' org.freedesktop.ConsoleKit.Manager.GeneralError Unable%20to%20lookup%20session%20information%20for%20process%20%273159%27
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error:            Can't find file "en" for symbols include
>                   Exiting
>                   Abandoning symbols file "default"
Errors from xkbcomp are not fatal to the X server
(EE) Error loading keymap /var/lib/xkb/server-1.xkm
Error loading new keyboard description
** (gnome-panel:3141): DEBUG: Adding applet 1.
** Message: Reading of RFKILL events failed
** Message: killswitches state 3
** Message: killswitches state 3

(nautilus:3144): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed

** (update-notifier:3176): WARNING **: not starting for system user


** (nm-applet:3162): WARNING **: <WARN>  request_name(): Could not acquire the NetworkManagerUserSettings service as it is already taken.  Return: 3

** (gnome-panel:3141): DEBUG: Adding applet 2.
** (gnome-panel:3141): DEBUG: Adding applet 3.
** (gnome-panel:3141): DEBUG: Adding applet 4.
** (gnome-panel:3141): DEBUG: Adding applet 5.
** (gnome-panel:3141): DEBUG: Adding applet 6.
Starting gtk-window-decorator
WARNING: Application calling GLX 1.3 function "glXCreatePixmap" when GLX 1.3 is not supported!  This is an application bug!
Initializing nautilus-gdu extension
/usr/bin/compiz.real (video) - Warn: No 8 bit GLX pixmap format, disabling YV12 image format

** (nautilus:3144): WARNING **: No marshaller for signature of signal 'UploadFinished'

** (nautilus:3144): WARNING **: No marshaller for signature of signal 'DownloadFinished'

** (nautilus:3144): WARNING **: No marshaller for signature of signal 'ShareCreateError'
I/O warning : failed to load external entity "/home/buster/.compiz/session/10b5fd9525c386f468125888495188069900000030060023"
WARNING: Application calling GLX 1.3 function "glXDestroyPixmap" when GLX 1.3 is not supported!  This is an application bug!
** (gnome-panel:3141): DEBUG: Adding applet 7.
** (gnome-panel:3141): DEBUG: Adding applet 8.
** (gnome-panel:3141): DEBUG: Adding applet 9.
** (gnome-panel:3141): DEBUG: Adding applet 10.

(gnome-panel:3141): Gtk-WARNING **: gtk_widget_size_allocate(): attempt to allocate widget with width -5 and height 24
process 3141: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 3227: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 3239: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 3227: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
evolution-alarm-notify-Message: Setting timeout for 49408 1258934400 1258884992
evolution-alarm-notify-Message:  Mon Nov 23 00:00:00 2009

evolution-alarm-notify-Message:  Sun Nov 22 10:16:32 2009

Dropping master 
Setting master 
Creating directory /home/buster/.gnome-commander... 
** (gnome-commander:3419): WARNING **: Failed to open file '/home/buster/.gnome-commander/gnome-commander.xml': No such file or directory
process 3419: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
Creating directory /home/buster/.gnome-commander/plugins... 
(nautilus:3430): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
process 3144: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
Please ask your system administrator to enable user sharing.

process 3465: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
gnome-session[3006]: WARNING: Unable to determine session: Unable to lookup session information for process '3006'
gnome-session[3006]: WARNING: Unable to determine session: Unable to lookup session information for process '3006'
process 3512: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
Dropping master 
Setting master 

** (process:3598): WARNING **: Couldn't change nice value of process.
** Message: Error: Your GStreamer installation is missing a plug-in.
gstdecodebin2.c(2449): gst_decode_bin_expose (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:
no suitable plugins found

totem-video-thumbnailer couldn't open file 'file:///media/pc-local/Desktop/la.souris.avi'
Reason: The playback of this movie requires a MPEG-1 Layer 3 (MP3) decoder plugin which is not installed..

** (process:3602): WARNING **: Couldn't change nice value of process.
** Message: Error: Your GStreamer installation is missing a plug-in.
gstdecodebin2.c(2449): gst_decode_bin_expose (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:
no suitable plugins found

totem-video-thumbnailer couldn't open file 'file:///media/pc-local/Desktop/Sauvez%20Willy1.avi'
Reason: The playback of this movie requires a MPEG-1 Layer 3 (MP3) decoder plugin which is not installed..

** (process:3610): WARNING **: Couldn't change nice value of process.
** Message: Error: Your GStreamer installation is missing a plug-in.
gstdecodebin2.c(2449): gst_decode_bin_expose (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:
no suitable plugins found

totem-video-thumbnailer couldn't open file 'file:///media/pc-local/Desktop/Sauvez%20Willy%202.avi'
Reason: The playback of this movie requires a MPEG-1 Layer 3 (MP3) decoder plugin which is not installed..

** (process:3614): WARNING **: Couldn't change nice value of process.
** Message: Error: Your GStreamer installation is missing a plug-in.
gstdecodebin2.c(2449): gst_decode_bin_expose (): /GstPlayBin2:play/GstURIDecodeBin:uridecodebin0/GstDecodeBin2:decodebin20:
no suitable plugins found

totem-video-thumbnailer couldn't open file 'file:///media/pc-local/Desktop/Spread.2009.DVDRip.XviD-SinJ.avi'
Reason: The playback of this movie requires a MPEG-1 Layer 3 (MP3) decoder plugin which is not installed..
Nautilus-Share-Message: Called "net usershare info" but it failed: 'net usershare' returned error 255: net usershare: cannot open usershare directory /var/lib/samba/usershares. Error No such file or directory
Please ask your system administrator to enable user sharing.

process 3624: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 3630: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
Dropping master 
Setting master 
process 3727: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
Dropping master 
Setting master 

(nautilus:3809): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
process 3844: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 3859: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
Dropping master 
Setting master 
process 3915: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.

(gnome-screenshot:3940): GdkPixbuf-CRITICAL **: gdk_pixbuf_composite: assertion `dest_x >= 0 && dest_x + dest_width <= dest->width' failed
process 3940: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.

(gnome-screenshot:3950): GdkPixbuf-CRITICAL **: gdk_pixbuf_composite: assertion `dest_x >= 0 && dest_x + dest_width <= dest->width' failed
process 3950: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
Dropping master 
Setting master 
Dropping master 
Setting master 

(nautilus:5785): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
process 8006: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 8010: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 8008: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 8004: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 8017: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 8012: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 9237: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 9241: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 9186: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 10725: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 11202: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 11210: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 11217: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
process 11215: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
Dropping master 
Setting master 
Dropping master 
Setting master 
** (gnome-panel:14454): DEBUG: Initialized Panel Applet Signaler.
** (gnome-panel:14454): DEBUG: Adding applet 0.
** (gnome-panel:14454): DEBUG: Adding applet 1.
** (gnome-panel:14454): DEBUG: Adding applet 2.
** (gnome-panel:14454): DEBUG: Adding applet 3.
** (gnome-panel:14454): DEBUG: Adding applet 4.
** (gnome-panel:14454): DEBUG: Adding applet 5.
Unable to open desktop file /usr/share/applications/kde/kile.desktop for panel launcher: No such file or directory
** (gnome-panel:14454): DEBUG: Adding applet 6.
** (gnome-panel:14454): DEBUG: Adding applet 7.
** (gnome-panel:14454): DEBUG: Adding applet 8.
** (gnome-panel:14454): DEBUG: Adding applet 9.
** (gnome-panel:14454): DEBUG: Adding applet 10.
Unable to open desktop file /usr/local/share/applications/geogebra.desktop for panel launcher: No such file or directory
** (gnome-panel:14454): DEBUG: Adding applet 11.
** (gnome-panel:14454): DEBUG: Adding applet 12.
** (gnome-panel:14454): DEBUG: Adding applet 13.
** (gnome-panel:14454): DEBUG: Adding applet 14.
** (gnome-panel:14454): DEBUG: Adding applet 15.
** (gnome-panel:14454): DEBUG: Adding applet 16.
** (gnome-panel:14454): DEBUG: Adding applet 17.
** (gnome-panel:14454): DEBUG: Adding applet 18.
** (gnome-panel:14454): DEBUG: Adding applet 19.
** (gnome-panel:14454): DEBUG: Adding applet 20.
** (gnome-panel:14454): DEBUG: Adding applet 21.
** (gnome-panel:14454): DEBUG: Adding applet 22.
** (gnome-panel:14454): DEBUG: Adding applet 23.
Unable to open desktop file /usr/local/share/applications/multiboot-v2-liveusb.desktop for panel launcher: No such file or directory
** (gnome-panel:14454): DEBUG: Adding applet 24.

** (gnome-panel:14454): WARNING **: panel-applet-frame.c:1273: failed to load applet OAFIID:wp_tray:
(null)
** (gnome-panel:14454): DEBUG: Adding applet 25.
** (gnome-panel:14454): DEBUG: Adding applet 26.
** (gnome-panel:14454): DEBUG: Adding applet 27.
process 14454: D-Bus library appears to be incorrectly set up; failed to read machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory
See the manual page for dbus-uuidgen to correct this issue.
** (gnome-panel:14454): DEBUG: Adding applet 28.
gnome-settings-daemon: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
gnome-session: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1.0"

      after 375972 requests (375972 known processed) with 6 events remaining.

gnome-panel: Fatal IO error 11 (Resource temporarily unavailable) on X server :1.0.
Dropping master 
Window manager error: Unable to open X display :1.0
 ddxSigGiveUp: Closing log
[1]+  Done                    X :1
Efface le fichier socket :  

rm: missing operand
Try `rm --help' for more information.
bash: [2527: 2 (255)] tcsetattr: Input/output error
Hangup
xres=1024
yres=768
rm: cannot remove `/var/lib/apt/lists/partial': Is a directory
Get: 1 http://fr.archive.ubuntu.com karmic Release.gpg [189B]
Get: 2 http://fr.archive.ubuntu.com karmic/main Translation-en_GB [63.7kB]
Get: 3 http://security.ubuntu.com karmic-security Release.gpg [189B]
Ign http://security.ubuntu.com karmic-security/main Translation-en_GB
Get: 4 http://fr.archive.ubuntu.com karmic/restricted Translation-en_GB [3,402B]
Get: 5 http://fr.archive.ubuntu.com karmic/universe Translation-en_GB [33.2kB]
Ign http://security.ubuntu.com karmic-security/restricted Translation-en_GB
Ign http://security.ubuntu.com karmic-security/universe Translation-en_GB
Ign http://security.ubuntu.com karmic-security/multiverse Translation-en_GB
Get: 6 http://security.ubuntu.com karmic-security Release [37.1kB]
Get: 7 http://fr.archive.ubuntu.com karmic/multiverse Translation-en_GB [43.8kB]
Get: 8 http://deb.opera.com lenny Release.gpg [189B]
Ign http://deb.opera.com lenny/non-free Translation-en_GB
Get: 9 http://fr.archive.ubuntu.com karmic-updates Release.gpg [189B]
Ign http://fr.archive.ubuntu.com karmic-updates/main Translation-en_GB
Ign http://fr.archive.ubuntu.com karmic-updates/restricted Translation-en_GB
Ign http://fr.archive.ubuntu.com karmic-updates/universe Translation-en_GB
Ign http://fr.archive.ubuntu.com karmic-updates/multiverse Translation-en_GB
Get: 10 http://fr.archive.ubuntu.com karmic Release [65.9kB]
Get: 11 http://deb.opera.com lenny Release [1,067B]
Get: 12 http://fr.archive.ubuntu.com karmic-updates Release [44.1kB]
Get: 13 http://security.ubuntu.com karmic-security/main Packages [17.1kB]
Get: 14 http://fr.archive.ubuntu.com karmic/main Packages [1,353kB]
Ign http://deb.opera.com lenny/non-free Packages
Get: 15 http://security.ubuntu.com karmic-security/restricted Packages [14B]
Get: 16 http://security.ubuntu.com karmic-security/main Sources [5,217B]
Get: 17 http://security.ubuntu.com karmic-security/restricted Sources [14B]
Get: 18 http://security.ubuntu.com karmic-security/universe Packages [6,729B]
Get: 19 http://security.ubuntu.com karmic-security/universe Sources [793B]
Get: 20 http://security.ubuntu.com karmic-security/multiverse Packages [14B]
Ign http://deb.opera.com lenny/non-free Packages
Get: 21 http://security.ubuntu.com karmic-security/multiverse Sources [14B]
Get: 22 http://deb.opera.com lenny/non-free Packages [852B]
Get: 23 http://fr.archive.ubuntu.com karmic/restricted Packages [7,971B]
Get: 24 http://fr.archive.ubuntu.com karmic/main Sources [640kB]
Get: 25 http://fr.archive.ubuntu.com karmic/restricted Sources [3,270B]
Get: 26 http://fr.archive.ubuntu.com karmic/universe Packages [5,133kB]
Get: 27 http://fr.archive.ubuntu.com karmic/universe Sources [2,795kB]
Get: 28 http://fr.archive.ubuntu.com karmic/multiverse Packages [190kB]
Get: 29 http://fr.archive.ubuntu.com karmic/multiverse Sources [116kB]
Get: 30 http://fr.archive.ubuntu.com karmic-updates/main Packages [75.0kB]
Get: 31 http://fr.archive.ubuntu.com karmic-updates/restricted Packages [14B]
Get: 32 http://fr.archive.ubuntu.com karmic-updates/main Sources [25.0kB]
Get: 33 http://fr.archive.ubuntu.com karmic-updates/restricted Sources [14B]
Get: 34 http://fr.archive.ubuntu.com karmic-updates/universe Packages [37.3kB]
Get: 35 http://fr.archive.ubuntu.com karmic-updates/universe Sources [9,859B]
Get: 36 http://fr.archive.ubuntu.com karmic-updates/multiverse Packages [1,165B]
Get: 37 http://fr.archive.ubuntu.com karmic-updates/multiverse Sources [1,223B]
Fetched 10.7MB in 24s (445kB/s)
Reading package lists...
bash: /etc/init.d/cupsys: No such file or directory
rm: cannot remove `/etc/skel/.xsession-errors': No such file or directory
rm: cannot remove `/etc/skel/.Xauthority': No such file or directory
]0;root@toshiba: /tmproot@toshiba:/tmp# 
]0;root@toshiba: /tmproot@toshiba:/tmp# exit
exit

Latex-Math : annalescours/exos ; exos. Ubuntu : live-usb ; multiboot

Hors ligne

#10 Le 22/11/2009, à 13:41

smo

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

Ola

ok buster mais j peux pas lire les logs avec mon iphone wink

sors et fais juste copier apres et post moi que les dernieres lignes du log

Ok frafa je vais rajouter, merci

++

Dernière modification par smo (Le 22/11/2009, à 13:45)


ht5streamer, streaming youtube/dailymotion...: http://forum.ubuntu-fr.org/viewtopic.php?id=1299461 / http://ht5streamer.free.fr
ubukey, createur ubuntu customisé: http://forum.ubuntu-fr.org/viewtopic.php?id=360408
tchat: ##ubuntu-fr-geek sur irc (irc.ubuntu.com)
ME PAYER UNE BIERE !! :D :  http://gtk-apps.org/content/donate.php?content=138588

Hors ligne

#11 Le 22/11/2009, à 20:17

buster19

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

un peu tard mais les voila.

Fetched 10.7MB in 24s (445kB/s)
Reading package lists...
bash: /etc/init.d/cupsys: No such file or directory
rm: cannot remove `/etc/skel/.xsession-errors': No such file or directory
rm: cannot remove `/etc/skel/.Xauthority': No such file or directory
]0;root@toshiba: /tmproot@toshiba:/tmp#
]0;root@toshiba: /tmproot@toshiba:/tmp# exit


Latex-Math : annalescours/exos ; exos. Ubuntu : live-usb ; multiboot

Hors ligne

#12 Le 22/11/2009, à 22:47

smo

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

re

Unable to open desktop file /usr/local/share/applications/multiboot-v2-liveusb.desktop for panel launcher: No such file or directory
** (gnome-panel:14454): DEBUG: Adding applet 24.


t as fait une clone ?

j integre le fix de frafa

++


ht5streamer, streaming youtube/dailymotion...: http://forum.ubuntu-fr.org/viewtopic.php?id=1299461 / http://ht5streamer.free.fr
ubukey, createur ubuntu customisé: http://forum.ubuntu-fr.org/viewtopic.php?id=360408
tchat: ##ubuntu-fr-geek sur irc (irc.ubuntu.com)
ME PAYER UNE BIERE !! :D :  http://gtk-apps.org/content/donate.php?content=138588

Hors ligne

#13 Le 23/11/2009, à 00:48

smo

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

ola

nouvelle version au programme

- ajout du /var/lib/dbus/machine-id
- virtualbox remplace qemu pour le test sur iso ET sur cle !! smile plus besoin de rebooter pour tester la clé (enfin!!!)
- correction du check de la memoire dispo avant virtualbox, je lui donne 768 mo si + de 1024 mo dispo (chez moi probleme login gdm a cause d un manque de place en memoire avec 512...)

- schroot supprimé pour l instant... ( haxouille/buster, effacez toutes les lignes decommentees que vous avez dans /etc/schroot/schroot.conf)

voila pour la mise à jour.

buster, tu prends l ancien simplement... ubukeymaker pour jaunty intrepid etc

hesites pas si tu as des besoins la dessus... pour tes pb de post chroot, je pense que ca vient de ton home que tu clones, test deja avec cette version pour les pb que tu avais avec le "machine-id", on verra apres (mais je doute).

++

Dernière modification par smo (Le 23/11/2009, à 00:53)


ht5streamer, streaming youtube/dailymotion...: http://forum.ubuntu-fr.org/viewtopic.php?id=1299461 / http://ht5streamer.free.fr
ubukey, createur ubuntu customisé: http://forum.ubuntu-fr.org/viewtopic.php?id=360408
tchat: ##ubuntu-fr-geek sur irc (irc.ubuntu.com)
ME PAYER UNE BIERE !! :D :  http://gtk-apps.org/content/donate.php?content=138588

Hors ligne

#14 Le 23/11/2009, à 09:05

buster19

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

buster, tu prends l ancien simplement... ubukeymaker pour jaunty intrepid etc

pourtant, j'ai effacé tous dossiers ubukey... à la main et je commence en prenant les trois premières lignes situées en debut de ce post


C'est peu-être ca le problème. C'est la bonne version que je charge ?

Je recommence un test depuis zero  ce midi.

Dernière modification par buster19 (Le 23/11/2009, à 09:09)


Latex-Math : annalescours/exos ; exos. Ubuntu : live-usb ; multiboot

Hors ligne

#15 Le 23/11/2009, à 14:28

buster19

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

bon, c'est toujours pas gagner ...
Je rentre dans chroot nickel (avec intel) mais mon clavier fait des siennes. La touche pave directionnelle haut me declenche une capture d'ecran.
Faut que je revoie tout ca pour savoir si c'est dès le debut ou si c'est suite à une de mes manips.

perso, dasn chroot, j'ouvre terminal et je fais :

reel="/media/pc-local"
bureaureel="Desktop"
dossierubu="ubukey"

utilisateurchroot="buster"
bureauchroot="Desktop"

#fichiers sur bureau
sudo cp ${reel}/${bureaureel}/${dossierubu}/*.bin /home/${utilisateurchroot}/${bureauchroot}
sudo cp ${reel}/${bureaureel}/${dossierubu}/*.deb /home/${utilisateurchroot}/${bureauchroot}
sudo cp ${reel}/${bureaureel}/${dossierubu}/*.oxt /home/${utilisateurchroot}/${bureauchroot}


#fichiers dans usr/local/bin
sudo cp -R ${reel}/${bureaureel}/${dossierubu}/DPGraph /usr/local/bin
sudo cp ${reel}/${bureaureel}/${dossierubu}/15094.png /usr/local/bin
sudo cp -R ${reel}/${bureaureel}/${dossierubu}/ti83 /usr/local/bin
sudo cp -R ${reel}/${bureaureel}/${dossierubu}/GGAvecComplexes /usr/local/bin
sudo cp ${reel}/${bureaureel}/${dossierubu}/GRAPH85emulator.exe /usr/local/bin
cd /usr/local/bin
sudo chmod -R 777 ti83/
sudo chmod -R 777 GGAvecComplexes/
sudo chmod -R 777 DPGraph/
sudo chmod  777 GRAPH85emulator.exe 
sudo chmod  777 15094.png 


sudo rm -R /etc/skel/Downloads
sudo rm -R /etc/skel/Templates
sudo rm -R /etc/skel/Public
sudo rm -R /etc/skel/Videos
sudo rm -R /usr/share/example-content
sudo rm -R /etc/skel/examples.desktop
cd /etc/skel
ls


#logiciels
cd /home/${utilisateurchroot}/${bureauchroot}
sudo cp ${reel}/${bureaureel}/${dossierubu}/paquets_jaunty /home/${utilisateurchroot}/${bureauchroot}
apt-get update
dpkg --set-selections < paquets_jaunty
apt-get dselect-upgrade

cd /home/${utilisateurchroot}/${bureauchroot}
sudo cp ${reel}/${bureaureel}/${dossierubu}/paquets_jaunty_desin /home/${utilisateurchroot}/${bureauchroot}
dpkg --set-selections < paquets_jaunty_desin
apt-get dselect-upgrade

cd /home/${utilisateurchroot}/${bureauchroot}
sudo cp ${reel}/${bureaureel}/${dossierubu}/paquets_jaunty_desin2 /home/${utilisateurchroot}/${bureauchroot}
dpkg --set-selections < paquets_jaunty_desin2
apt-get dselect-upgrade


#${dossierubu}
sudo cp -R ${reel}/.unison /home/${utilisateurchroot}
sudo cp -R ${reel}/.kde /home/${utilisateurchroot}
sudo cp -R ${reel}/.filezilla /home/${utilisateurchroot}
sudo cp -R ${reel}/.gconf /home/${utilisateurchroot}
sudo cp -R ${reel}/texmf /home/${utilisateurchroot}
sudo cp -R ${reel}/.gnome2 /home/${utilisateurchroot}
sudo cp -R ${reel}/.local/ /home/${utilisateurchroot}
sudo cp ${reel}/.bashrc /home/${utilisateurchroot}
sudo cp ${reel}/.wxMaxima /home/${utilisateurchroot}



#à faire après installation paquets
cd /home/${utilisateurchroot}/${bureauchroot}
source /home/${utilisateurchroot}/.bashrc
texhash
killall gnome-panel
sudo sh GeoGebra_3_2_0_1.bin

Latex-Math : annalescours/exos ; exos. Ubuntu : live-usb ; multiboot

Hors ligne

#16 Le 23/11/2009, à 14:43

smo

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

ola

tres space tout ca buster

oui faut bien prendre ubukey pas ubukeymaker et lancer ubukey aussi

ensuite

1/ sans ton script est ce que ca marche ?
2/ bureaureel="Desktop" ca va pas c est Bureau je pense pas Desktop, ou pas trop notmal que t ias Desktop en local au lieu de bureau

j analyserais en detail ton script, fais voir contenu de ton .bashrc et le xorg dans chroot quand tu es dedans aussi steup wink

je veux bien le log avec vesa aussi steup smile (MERCI)

++


ht5streamer, streaming youtube/dailymotion...: http://forum.ubuntu-fr.org/viewtopic.php?id=1299461 / http://ht5streamer.free.fr
ubukey, createur ubuntu customisé: http://forum.ubuntu-fr.org/viewtopic.php?id=360408
tchat: ##ubuntu-fr-geek sur irc (irc.ubuntu.com)
ME PAYER UNE BIERE !! :D :  http://gtk-apps.org/content/donate.php?content=138588

Hors ligne

#17 Le 23/11/2009, à 20:54

buster19

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

je vais faire test sans mon script.

C'est bien Dekstop pour "bureaureel" ... je suis en config langue anglaise.

perds pas ton temps avec mon script. Si c'est lui qui bug, je vais bien finir par le voir et trouver le pb.


Latex-Math : annalescours/exos ; exos. Ubuntu : live-usb ; multiboot

Hors ligne

#18 Le 23/11/2009, à 21:33

buster19

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

Bon, alors je t'ai fait un petit test VESA. On va faire les choses dans l'ordre.
J'ai tout commencé depuis zéro ( rm de ~/.ubukeymaker et rep de travail)

Plantage comme d'hab au passage de custom graphique avec VESA.
voila log :

Utilisateur : buster 

Version distribution : karmic 

Dossier /home/buster/.ubukeymaker inexistant...creation,
il sera utilisé pour sauvegarder la configuration du script 

création du dossier de configuration... ok

Le Répertoire de travail sera /home/buster/ubu_karmic, préparation... 

Vérification et installation des paquets manquants si nécessaire ... 

Toutes les dépendences sont installées, ok.... 

Creation du dossier /home/buster/ubu_karmic/distribs/karmic_custo
création du dossier de configuration... ok

Création/vérification des dossiers de base pour karmic_custo
création du dossier usb
création du dossier old
création du dossier cdrom
création du dossier chroot
création du dossier temp
création du dossier save
création du dossier logs

Fichier séléctionné: /home/buster/isos/ubuntu-9.10-desktop-i386.iso 

Vérification du md5sum... 

Md5sum original : 8790491bfa9d00f283ed9dd2d77b3906
Md5sum fichier iso : 8790491bfa9d00f283ed9dd2d77b3906  

Votre fichier iso est valide, Md5sum ok ! 

Tout est prêt, mount du cdrom ubuntu-9.10-desktop-i386.iso 

Copie le contenu de base du fichier iso (sans le squashfs) dans le dossier cdrom, Taille: 22 Mb 

Copie de la base du cdrom... ok 

Copie du squashfs... 

Copie du squashfs terminée... ok 

Prépare dossier usb...

La préparation de l'environnement pour la distrib karmic_custo est terminée,
Les fichiers se trouvent dans :
/home/buster/ubu_karmic/distribs/karmic_custo 


Préparation du chroot, merci de patienter... 

Vous utilisez "kde4" actuellement et vous préparez une distrib "gnome" 
, copie des thèmes annulée... 

Mise à jour des addons du script... patientez 

Mise à jour des addons du script... ok !

Copie les addons du script et vos addons perso pour votre distrib gnome 

Démarrage du chroot en mode graphique ! 


#########################
## Variables du chroot ##
#########################

Type de session : gnome
Utilisateur session chroot : buster
Utilisateur reel du live-cd : ubuntu
Locales : en_GB.UTF-8
Langue : en
Clavier: en

Verification des sources, merci de patienter
Detection des dossiers Xdg (Bureau, Desktop...)

Dossier bureau : Desktop 

Reverifie l integritee du dossier /etc/skel (peut etre long...) 

Installation de xrespobe...


############
##  Xorg  ##
############
Pilote : vesa
Distribution: karmic
Id carte : PCI:0:2:0
Resolution:  "1600x1200" "1440x900" "1280x1024" "1280x800" "1024x768" "1024x600" "800x600" "640x480"
Layout clavier : en

Installation de gnome-commander pour le partage des disques entre local et chroot 
Votre pc local sera monté sur /media/pc-local
Tout est pret, demarre X dans le chroot !

bizarre qu'il me repere en KDE4 alors que je suis sous gnome (juste kile d'installer)

et voila chrootlog.log

root@toshiba:/# 
root@toshiba:/# mode="$(cat /etc/ubukey/ubukeyconf | grep -e "mode" | sed 's/.*=//')"
root@toshiba:/# 
root@toshiba:/# function message() {
> touch /tmp/chrootlog.log
> message="$1"
> echo -e "$message" | tee -a /tmp/chrootlog.log &>/dev/null
> }
root@toshiba:/# 
root@toshiba:/# function INITCHROOT()
> {
> chrootKerVer=$(ls -al /initrd.img | sed 's/.*boot\/initrd.img-//')
> localKerVer=$(cat /etc/ubukey/ubukeyconf | grep -e "Kernel" | sed 's/.*Kernel=//')
> sessionType=$(cat /etc/ubukey/ubukeyconf | grep -e "distSession" | sed 's/.*distSession=//')
> user=$(cat /etc/ubukey/ubukeyconf | grep -e "user" | sed 's/.*user=//')
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> LOCALUTF="$(cat /etc/ubukey/ubukeyconf | grep -e "localutf" | sed 's/.*=//')"
> LOCALBASE="$(cat /etc/ubukey/ubukeyconf | grep -e "localbase" | sed 's/.*=//')"
> LOCALSIMPLE="$(cat /etc/ubukey/ubukeyconf | grep -e "localsimple" | sed 's/.*=//')"
> DIST="$(cat /etc/lsb-release | grep CODENAME | sed 's/.*=//')"
> DRIVER="$(cat /etc/ubukey/ubukeyconf | grep -e "driver" | sed 's/.*=//')"
> 
> ## langue dans chroot
> export LANG=$LOCALUTF
> export LC_ALL=$LOCALUTF
> echo -e "$LOCALSIMPLE
> $LOCALBASE
> $LOCALUTF
> " | tee /etc/locale.gen &>/dev/null
> 
> message "
> #########################
> ## Variables du chroot ##
> #########################
> 
> Type de session : "$sessionType"
> Utilisateur session chroot : "$user"
> Utilisateur reel du live-cd : "$chuser"
> Locales : $LOCALUTF
> Langue : $LOCALSIMPLE
> Clavier: $LOCALSIMPLE
> "
> #monter minimun necessaire
> mount -t proc none /proc
> mount -t sysfs none /sys
> mount -t devpts none /dev/pts
> 
> sleep 5
> umount -f /lib/modules/*/volatile &>/dev/null
> 
> ## check sources
> message "Verification des sources, merci de patienter"
> cd /usr/local/bin
> rm ubusrc-gen &>/dev/null
> wget -q http://www.ubukey.fr/files/ubusrc-gen
> chmod +x ubusrc-gen
> ubusrc-gen
> 
> #~ if [[ ! $(dpkg -l | grep -w "console-data") ]]; then
> #~ message "Console data va etre installe pour la langue dans les consoles tty"
> #~ apt-get -y --force-yes install console-data
> #~ fi
> 
> ## Changement de la langue par defaut des consoles tty avec : $LOCALSIMPLE
> sed -i 's/XKBLAYOUT=.*/XKBLAYOUT="'$LOCALSIMPLE'"/' /etc/default/console-setup
> 
> ## check du decorateur et autres
> case $sessionType in
> gnome)
> decorator="metacity"
> term="gnome-terminal"
> starter=gnome-session
> ;;
> kde4)
> decorator=kwin
> term=konsole
> starter=startkde
> ;;
> xfce4)
> decorator="xfwm4"
> term="xfterm4"
> starter=xfce4-session
> ;;
> esac
> 
> if [[ ! `unsquashfs -version | grep "unsquashfs version 4.0"` ]]; then
> rm /usr/{s,}bin/{un,mk}squashfs &>/dev/null
> cd /usr/sbin
> wget http://www.ubukey.fr/files/bin/karmic/mksquashfs &>/dev/null
> wget http://www.ubukey.fr/files/bin/karmic/unsquashfs &>/dev/null
> chmod +x /usr/bin/{un,mk}squashfs 
> fi
> 
> }
root@toshiba:/# 
root@toshiba:/# ###### config xorg
root@toshiba:/# function genXorg
> {
> 
> if [ ! -e "/usr/sbin/ddcprobe" ]; then
> message "Installation de xrespobe...\n"
> apt-get -y install xresprobe
> fi
> 
> test=$(lspci -b | grep VGA | awk '{print $1}')
> testa=$(echo "$test" | sed 's/:.*//')
> testb=$(echo "$test" | sed 's/\..*//;s/.*://')
> testc=$(echo "$test" | sed 's/.*\.//')
> 
> if [[ "$testa" != "0" && "$testa" -lt "10" ]]; then
> testa=$(echo "$testa" | cut -c 2)
> fi
> 
> if [[ "$testb" != "0" && "$testb" -lt "10" ]]; then
> testb=$(echo "$testb" | cut -c 2)
> fi
> 
> if [[ "$testc" != "0" && "$testc" -lt "10" ]]; then
> testc=$(echo "$testc" | cut -c 2)
> fi
> 
> BUSID="PCI:$testa:$testb:$testc"
> 
> ## detection
> res="$(cat /tmp/resolution)"
> 
> if [ -z "$res" ]; then
> 
> echo -e "La resolution ideale n'a pas pu etre detectee automatiquement
> Indiquez la resolution a utiliser\n
> exemple 1280x1024:" 
> read res
> 
> if [ -n "$res" ]; then
> 
> listres="\"$res\" \"1600x1200\" \"1440x900\" \"1280x1024\" \"1280x800\" \"1024x768\" \"1024x600\" \"800x600\" \"640x480\""
> resolution="$(echo $listres | sed -e "s%\"$res\"%%")"
> else
> resolution="\"1600x1200\" \"1440x900\" \"1280x1024\" \"1280x800\" \"1024x768\" \"1024x600\" \"800x600\" \"640x480\""
> fi ## fin si pas de resolution choisie
> 
> else
> 
> listres="\"$res\" \"1600x1200\" \"1440x900\" \"1280x1024\" \"1280x800\" \"1024x768\" \"1024x600\" \"800x600\" \"640x480\""
> resolution="$(echo $listres | sed -e "s%\"$res\"%%")"
> 
> fi ## fin si pas de resolution detectee a la base...
> 
> cd /etc/X11/
> rm xorg.conf &>/dev/null
> wget -q http://www.ubukey.fr/files/launchers/xorg.conf
> 
> ## rechange driver et keymap
> 
> DEPTH=24
> if [ "$DRIVER" = "vesa" ]; then
> DEPTH=16
> fi
> 
> sed -i "s/chkeymap/$LOCALSIMPLE/" /etc/X11/xorg.conf
> sed -i "s/chdriver/$DRIVER/" /etc/X11/xorg.conf
> sed -i "s/chpci/$BUSID/" /etc/X11/xorg.conf
> sed -i "s/depth/$DEPTH/g" /etc/X11/xorg.conf
> sed -i "s%chmode%$resolution%" /etc/X11/xorg.conf
> 
> ## modeline ecran
> ddcmode="$(sudo ddcprobe | grep dtiming | sed 's/dtiming\: //')"
> 
> if [ -n "$ddcmode" ]; then
> 
> maxref="$(echo $ddcmode | sed 's/.*@//')"
> height="$(echo $ddcmode | sed 's/x.*//;')"
> width="$(echo $ddcmode | sed 's/.*x//;s/@.*//')"
> 
> modeline="$(gtf $height $width $maxref | sed '/#/d;/^$/d;s/^  //;s/_.*\"/\"/')"
> 
> if [ -n "$modeline" ]; then
> sed -i "s%modeline%$modeline%" /etc/X11/xorg.conf
> fi
> 
> else
> 
> sed -i "/modeline/d" /etc/X11/xorg.conf
> 
> fi
> 
> #### fix xserver
> echo -e '
> Section "ServerFlags"
> #Option "AutoAddDevices" "off"
> Option "AllowEmptyInput" "off"
> EndSection' | tee -a /etc/X11/xorg.conf &>/dev/null
> 
> } ## fin genXorg
root@toshiba:/# 
root@toshiba:/# 
root@toshiba:/# function CHROOTGRAPHIQUE()
> {
> 
> ## au cas ou
> rm /etc/skel/skel &>/dev/null
> rm /home/"$user" -R &>/dev/null
> ln -sf /etc/skel /home/"$user"
> 
> cd /etc/skel 
> 
> ## clean xdg
> rm /home/"$user"/.config/user-dirs.dirs
> rm /etc/locale.gen &>/dev/null
> echo -e "$LOCALSIMPLE
> $LOCALBASE
> $LOCALUTF
> " | tee /etc/locale.gen &>/dev/null
> 
> ## check paquet xdg-user-dirs
> message "Detection des dossiers Xdg (Bureau, Desktop...)\n"
> if [[ ! `dpkg -l | grep -e "xdg-user-dirs"` ]]; then
> aptitude -y install xdg-user-dirs
> fi
> 
> xdg-user-dirs-update 
> xdg-user-dirs-update --force
> 
> ## reverifie le users-dirs.dirs
> deskdir="$(cat /home/"$user"/.config/user-dirs.dirs | grep DESKTOP | sed 's/.*\///' | sed 's/\"//')"
> if [ -z "$deskdir" ]; then
> mkdir /etc/skel/Desktop
> deskdir="Desktop"
> fi
> 
> ## check dossier bureau
> if [[ ! `cat /home/"$user"/.config/user-dirs.dirs | grep -e "/Desktop"` && -e /etc/skel/Desktop ]]; then
> rm -R /etc/skel/Desktop
> deskdir="$(cat /home/"$user"/.config/user-dirs.dirs | grep DESKTOP | sed 's/.*\///' | sed 's/\"//')"
> ## au cas ou...
> mkdir /etc/skel/$deskdir &>/dev/null
> fi
> 
> ##checkfinal si deskdir ok
> if [ -z "$deskdir" ]; then
> message "Probleme avec dossier Bureau, sortie"
> CLEANCHROOT
> fi
> 
> message "Dossier bureau : $deskdir \n"
> 
> ## adapte dossier Desktop, casper-bottom
> if [ "$deskdir" != "Desktop" ]; then
> sed -i 's/Desktop/'$deskdir'/g' /usr/share/initramfs-tools/scripts/casper-bottom/10adduser
> fi
> 
> cd /usr/share/pixmaps
> if [ ! -e usbkey.png ]; then
> wget http://www.ubukey.fr/files/usbkey.png
> fi
> 
> ################## ajout icones sur le bureau
> 
> cd /usr/local/bin
> rm ubukey-$sessionType* &>/dev/null
> wget http://www.ubukey.fr/files/ubukey-$sessionType.sh
> chmod +x ubukey-$sessionType.sh
> echo "[Desktop Entry]
> Type=Application
> Encoding=UTF-8
> Version=1.0
> Name=Assistant de customisation $sessionType
> Name[fr_FR]=Assistant de customisation $sessionType
> Comment[fr_FR]=Assistant de customisation pour $sessionType
> Comment=Assistant de customisation pour $sessionType
> Exec=ubukey-$sessionType.sh
> X-GNOME-Autostart-enabled=true
> Icon=/usr/share/pixmaps/usbkey.png" | tee /etc/skel/"$deskdir"/ubukey-assist.desktop &>/dev/null
> 
> chmod +x /etc/skel/"$deskdir"/ubukey-assist.desktop
> 
> echo "[Desktop Entry]
> Type=Application
> Encoding=UTF-8
> Version=1.0
> Name=fix-clavier
> Name[fr_FR]=fix-clavier
> Comment[fr_FR]=fix-clavier
> Comment=fix-clavier
> Exec=setxkbmap $LOCALSIMPLE
> X-GNOME-Autostart-enabled=true" | tee /etc/xdg/autostart/fix-clavier.desktop &>/dev/null
> 
> ## icone quitter
> cd /usr/share/pixmaps
> if [ ! -e quit-chroot.png ]; then
> wget http://www.ubukey.fr/files/images/quit-chroot.png
> fi
> 
> ## cree ptit script pour tuer x avec l icone du bureau
> cd /usr/local/bin
> rm quit-chroot* &>/dev/null
> wget http://www.ubukey.fr/files/quit-chroot.sh
> chmod +x /usr/local/bin/quit-chroot.sh
> 
> echo "[Desktop Entry]
> Type=Application
> Encoding=UTF-8
> Version=1.0
> Name=Quitter le chroot
> Name[fr_FR]=Quitter chroot
> Comment[fr_FR]=Quitter le chroot
> Comment=cliquez pour quitter le chroot
> Exec=quit-chroot.sh
> X-GNOME-Autostart-enabled=true
> Icon=/usr/share/pixmaps/quit-chroot.png" | tee /etc/skel/"$deskdir"/quit-chroot.desktop &>/dev/null
> 
> chmod +x /etc/skel/"$deskdir"/quit-chroot.desktop
> 
> ## icone partage
> sleep 2
> cd /etc/skel/"$deskdir"
> wget http://www.ubukey.fr/files/launchers/gc.desktop &>/dev/null
> chmod +x gc.desktop
> 
> ## suivant type session en prevision...
> case $sessionType in
> gnome)
> gconftool-2 -t boolean -s /apps/nautilus/desktop/volumes_visible false
> 
> ;;
> 
> kde4)
> message "Kde4 detecte... verification de zenity, kdm et de l utilisateur chroot\n"
> 
> if [ ! -e "/usr/bin/zenity" ]; then
> message "Zenity manquant, installation\n"
> apt-get -y --force-yes install zenity
> else
> message "zenity ok \n"
> fi
> 
> ## reconfigure autologin kdm-kde4...
> if [ ! -e "/etc/kde4/kdm/kdmrc" ]; then
> genkdmconf
> fi
> #~ sed -i "s/#AutoLoginUser=.*/AutoLoginUser=$chuser/" /etc/kde4/kdm/kdmrc
> #~ sed -i 's/#AutoLoginEnable=.*/AutoLoginEnable=True/' /etc/kde4/kdm/kdmrc
> ;;
> xfce4)
> 
> ;;
> esac
> 
> 
> ##scan du home...
> message "Reverifie l integritee du dossier /etc/skel (peut etre long...) \n"
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> if [[ "$user" != "$chuser" ]]; then
> LISTE="`find /etc/skel -type f | sed '/.thumbnails/d;/.cache/d;/.purple/d;/.icons/d;/.emerald/d;/.mozilla/d;/.dbus/d;/.themes/d;/.png/d;/.j 
peg/d;/.jpg/d;/.bin/d;/find/d'`"
> echo -e "$LISTE" | while read file; do 
> 
> if [[ -e "$file" && `cat "$file" | grep -e "$chuser"` ]]; then 
> sed -i "s%=$chuser%=$user%g;s%\/home\/$chuser%\/home\/$user%g" "$file"
> fi
> 
> done
> fi
> 
> 
> ## genere xorg
> genXorg
> 
> message "
> ############
> ##  Xorg  ##
> ############
> Pilote : $DRIVER
> Distribution: $DIST
> Id carte : PCI:$testa:$testb:$testc
> Resolution: $resolution
> Layout clavier : $LOCALSIMPLE
> "
> 
> if [[ "$DRIVER" = "radeonhd" && ! -e "/usr/lib/xorg/modules/drivers/radeonhd_drv.so" ]]; then
> apt-get update
> echo -e "Le Driver Radeon HD est inexistant, celui ci va etre compilé... \n"
> echo -e "Installation des dependences pour le pilote radeon HD version git \n"
> apt-get -y install git-core configure-debian automake autoconf xorg-dev libtool mesa-common-dev libdrm-dev build-essential xserver-xorg-dev 
 xutils-dev
> cd /tmp
> echo -e "Téléchargement des sources Git \n"
> git clone git://anongit.freedesktop.org/git/xorg/driver/xf86-video-radeonhd
> echo -e "Compilation \n"
> cd xf86-video-radeonhd/
> ./autogen.sh --prefix=/usr/
> make
> make install
> 
> fi
> 
> 
> ## verif compiz
> if [ -e "/etc/skel/.config/compiz/fusion-icon" ]; then
> echo -e "Remplace compiz par $decorator"
> sed -i 's/wm = .*/wm = '"$decorator"' /' /etc/skel/.config/compiz/fusion-icon
> fi
> 
> ## verif lanceur partage du / (bug avec nautilus...)
> if [[ ! -e "/usr/bin/gnome-commander" || ! -e "/usr/share/pixmaps/share.png" ]]; then
> message "Installation de gnome-commander pour le partage des disques entre local et chroot \nVotre pc local sera monté sur /media/pc-local" 

> apt-get -y --force-yes install gnome-commander &>/dev/null
> cd /usr/share/pixmaps
> wget http://www.ubukey.fr/files/images/share.png &>/dev/null
> fi
> 
> message "Tout est pret, demarre X dans le chroot ! \n"
> sleep 2
> X :1 & DISPLAY=:1 "$starter"
> 
> } ## fin chroot graphique
root@toshiba:/# 
root@toshiba:/# function CLEANCHROOT()
> {
> message "Sortie du chroot ok, Nettoyage\n"
> 
> ## check kde4
> ## si autologin activé changes utilisateur en rapport avec /etc/casper.conf
> if [ "$sessionType" = "kde4" ]; then
> 
> if [[ `cat "/etc/kde4/kdm/kdmrc" | grep -e "^AutoLoginEnable=true"` ]]; then
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> message "Modification de l utilisateur par defaut pour kdm-kde4 avec l utilisateur $chuser \n"
> sed -i "s/AutoLoginUser=.*/AutoLoginUser=$chuser/" /etc/kde4/kdm/kdmrc
> fi
> 
> ## edite le fichier de config plasma pour virer icones quitter et assistant...
> line=$(cat /etc/skel/.kde4/share/config/plasma-appletsrc | grep -B1 "quit-chroot")
> echo -e "$line" | while read lines; do
> sed -i '/[$lines]/d' /etc/skel/.kde4/share/config/plasma-appletsrc
> done
> 
> line=$(cat /etc/skel/.kde4/share/config/plasma-appletsrc | grep -B1 "ubukey-assist")
> echo -e "$line" | while read lines; do
> sed -i '/[$lines]/d' /etc/skel/.kde4/share/config/plasma-appletsrc
> done
> 
> ## vire fichier socket
> ! test -e /etc/skel/.kde/share/apps/nepomuk/socket || rm  /etc/skel/.kde/share/apps/nepomuk/socket
> 
> fi ## fin si kde4
> 
> ################
> ## nettoie user
> 
> message "Reverifie l integritee du dossier /etc/skel (peut etre long...) \n"
> chuser=$(cat /etc/casper.conf | grep -w "USERNAME=" | sed 's/.*=//' | sed 's/"//g')
> if [[ "$chuser" != "$user" ]]; then
> LISTE="`find /etc/skel -type f | sed '/.thumbnails/d;/.cache/d;/.purple/d;/.icons/d;/.emerald/d;/.mozilla/d;/.dbus/d;/.themes/d;/.png/d;/.j 
peg/d;/.jpg/d;/.bin/d;/find/d'`"
> echo -e "$LISTE" | while read file; do 
> if [[ -e "$file" && `cat "$file" | grep -e "$user"` ]]; then 
> sed -i "s%=$user%=$chuser%g;s%\/home\/$user%\/home\/$chuser%g" "$file"
> fi
> done
> fi
> 
> socketFiles=$(find /etc/skel -type s | grep -v "find:");
> echo -e "$socketFiles"| while read file; do
> echo -e "Efface le fichier socket : $file \n"
> rm $file
> done
> 
> ## remet user root
> sed -i 's/\/home\/'$user'/\/root/' /etc/passwd
> 
> ## maj kernel et/ou verification
> INIT=$(ls -al /initrd.img | sed 's/.*boot\///')
> VMLINUZ=$(ls -al /vmlinuz | sed 's/.*boot\///')
> 
> ## clean en cas de mise a jour du kernel important !!
> if [ -e "/vmlinuz.old" ]; then
> toRemove=$(ls -al /vmlinuz.old | sed 's/.*boot\/vmlinuz-//')
> sleep 2
> 
> ## nettoyage kernels multiples
> removeHeaders=$( echo "$toRemove" |sed 's/-generic/*/')
> apt-get remove --purge -y --force-yes linux-image-"$toRemove" linux-headers-"$removeHeaders"
> rm -R /usr/src/linux-headers-"$removeHeaders" &>/dev/null
> rm -R /lib/modules/"$toRemove"
> rm /*.bak
> rm /*.old
> rm /boot/*.bak
> rm /boot/*.old
> fi
> 
> dpkg -l |grep ^rc |awk '{print $2}' |xargs dpkg -P &>/dev/null
> if [[ ! `egrep "ata-piix||all_generic_ide" /usr/share/initramfs-tools/modules` ]]; then
> sed -i '/ata-generic/d;/ide-generic/d;/all_generic_ide/d' usr/share/initramfs-tools/modules
> echo -e "ata-generic\nide-generic\nall_generic_ide" | tee -a /usr/share/initramfs-tools/modules
> fi
> 
> ## s'assure resolutions mini dans usplash.conf
> echo -e "xres=1024
> yres=768" | tee /etc/usplash.conf
> 
> ## debut nettoyage chroot
> cd /tmp
> if [ "$sessionType" = "gnome" ]; then
> gconftool-2 -t boolean -s /apps/nautilus/desktop/volumes_visible true &>/dev/null
> fi
> 
> sleep 3
> ## nettoyage apt
> apt-get clean
> dpkg -l |grep ^rc |awk '{print $2}' |xargs dpkg -P &>/dev/null
> ## remet a jour les sources....
> #ubusrc-gen
> rm /var/lib/apt/lists/*
> apt-get update
> ## sortie du script et demonte tout
> /etc/init.d/cupsys stop
> rm /var/crash/* &>/dev/null
> rm -R /tmp/* &>/dev/null
> rm -Rf /var/run/* &>/dev/null
> rm -Rf /root/* &>/dev/null
> 
> message "nettoyage des fichiers de l utilisateur chroot\n"
> ## efface utilisateur
> rm /etc/xdg/autostart/fix-clavier.desktop
> rm /etc/skel/.xsession-errors
> rm /etc/skel/.Xauthority
> rm -Rf /etc/skel/.gvfs &>/dev/null
> rm /usr/local/bin/quit-chroot.sh
> rm /etc/skel/.ICEauthority
> rm -Rf /var/tmp/*
> rm -Rf /home/"$user"
> 
> rm /etc/hosts
> rm /etc/resolv.conf
> rm /etc/X11/xorg.conf
> 
> ## clean group and passwd files
> sed -i '/^[^:]*:[^:]*:[1-9][0-9][0-9][0-9]:/d' /etc/passwd
> sed -i '/^[^:]*:[^:]*:[12][0-9][0-9][0-9][0-9]:/d' /etc/passwd
> 
> sed -i '/^[^:]*:[^:]*:[1-9][0-9][0-9][0-9]:/d' /etc/group
> sed -i '/^[^:]*:[^:]*:[12][0-9][0-9][0-9][0-9]:/d' /etc/group
> 
> sed -i '/^[^:]*:[^:]*:[^:]*:'$user'/d' /etc/group
> 
> ## recreate shadow/gshadow files file
> pwconv
> grpconv
> 
> chown -R root:root /etc/skel/.
> }
root@toshiba:/# 
root@toshiba:/# if [ -z "$mode" ]; then
> message "Démarrage du chroot en mode graphique ! \n"
> INITCHROOT
> CHROOTGRAPHIQUE
> CLEANCHROOT
> else
> message "Démarrage du chroot en mode console ! \n"
> INITCHROOT
> 
> ln -sf /etc/skel/ /home/"$user"
> rm /etc/skel/skel
> cd /home/"$user"
> 
> export DISPLAY=localhost:5
> sleep 5
> 
> #ubusrc-gen
> [ -e /usr/bin/xterm ] || message "Installation de xterm \n"; apt-get install -y xterm
> 
> ## genere xorg
> DRIVER=vesa
> DEPTH=16
> #genXorg
> 
> ## demarre console
> $decorator --replace & setxkbmap "$LOCALSIMPLE" & xterm -bg black -fg white -geom 115x40 -fn 7x14
> 
> kill -9 `ps aux | grep -e "[-]fakexa" | awk '{print $2}'`
> CLEANCHROOT
> fi
source karmic main ok
source src karmic main ok 

source karmic restricted ok
source src karmic restricted ok 

source karmic universe ok
source src karmic universe ok 

source karmic multiverse ok
source src karmic multiverse ok 

Depot(s) specifique(s) au script ok... 


Mise a jour des sources...ok
The program 'unsquashfs' is currently not installed.  You can install it by typing:
apt-get install squashfs-tools
unsquashfs: command not found
chmod: cannot access `/usr/bin/unsquashfs': No such file or directory
chmod: cannot access `/usr/bin/mksquashfs': No such file or directory
rm: cannot remove `/home/buster/.config/user-dirs.dirs': No such file or directory
--2009-11-23 19:20:36--  http://www.ubukey.fr/files/usbkey.png
Resolving www.ubukey.fr... 88.191.100.48
Connecting to www.ubukey.fr|88.191.100.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 19900 (19K) [image/png]
Saving to: `usbkey.png'

     0K .......... .........                                  100%  280K=0.07s

2009-11-23 19:20:37 (280 KB/s) - `usbkey.png' saved [19900/19900]

--2009-11-23 19:20:37--  http://www.ubukey.fr/files/ubukey-gnome.sh
Resolving www.ubukey.fr... 88.191.100.48
Connecting to www.ubukey.fr|88.191.100.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6872 (6.7K) [text/x-sh]
Saving to: `ubukey-gnome.sh'

     0K ......                                                100%  185K=0.04s

2009-11-23 19:20:37 (185 KB/s) - `ubukey-gnome.sh' saved [6872/6872]

--2009-11-23 19:20:37--  http://www.ubukey.fr/files/images/quit-chroot.png
Resolving www.ubukey.fr... 88.191.100.48
Connecting to www.ubukey.fr|88.191.100.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 83015 (81K) [image/png]
Saving to: `quit-chroot.png'

     0K .......... .......... .......... .......... .......... 61%  365K 0s
    50K .......... .......... .......... .                    100%  476K=0.2s

2009-11-23 19:20:37 (401 KB/s) - `quit-chroot.png' saved [83015/83015]

--2009-11-23 19:20:37--  http://www.ubukey.fr/files/quit-chroot.sh
Resolving www.ubukey.fr... 88.191.100.48
Connecting to www.ubukey.fr|88.191.100.48|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 38 [text/x-sh]
Saving to: `quit-chroot.sh'

     0K                                                       100% 1.78M=0s

2009-11-23 19:20:37 (1.78 MB/s) - `quit-chroot.sh' saved [38/38]

Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed
  xresprobe
0 upgraded, 1 newly installed, 0 to remove and 129 not upgraded.
Need to get 19.6kB of archives.
After this operation, 102kB of additional disk space will be used.
Get: 1 http://fr.archive.ubuntu.com karmic/universe xresprobe 0.4.24ubuntu9 [19.6kB]
Fetched 19.6kB in 0s (75.7kB/s)
Selecting previously deselected package xresprobe.
(Reading database ... 120327 files and directories currently installed.)
Unpacking xresprobe (from .../xresprobe_0.4.24ubuntu9_i386.deb) ...
Setting up xresprobe (0.4.24ubuntu9) ...
[1] 4895

X.Org X Server 1.6.4
Release Date: 2009-9-27
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.24-23-server i686 Ubuntu
Current Operating System: Linux toshiba 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686
Kernel command line: root=UUID=69f6a633-4bee-4296-b8c8-4b094cea6261 ro quiet splash 
Build Date: 26 October 2009  05:15:02PM
xorg-server 2:1.6.4-2ubuntu4 (buildd@) 
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Mon Nov 23 19:21:13 2009
(==) Using config file: "/etc/X11/xorg.conf"
(EE) Failed to load module "kbd" (module does not exist, 0)
(EE) Failed to load module "kbd" (module does not exist, 0)
(EE) No input driver matching `kbd'
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Type "ONE_LEVEL" has 1 levels, but <RALT> has 2 symbols
>                   Ignoring extra symbols
Errors from xkbcomp are not fatal to the X server
gnome-session[4896]: WARNING: Unable to determine session: Unable to lookup session information for process '4896'
GNOME_KEYRING_SOCKET=/tmp/keyring-ofjznF/socket
SSH_AUTH_SOCK=/tmp/keyring-ofjznF/socket.ssh
GNOME_KEYRING_PID=4928

(gnome-settings-daemon:4926): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed

(gnome-settings-daemon:4926): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
Checking for Xgl: not present. 
xset q doesn't reveal the location of the log file. Using fallback /var/log/Xorg.1.log 
No whitelisted driver found
aborting and using fallback: /usr/bin/metacity 
Window manager warning: Failed to read saved session file /home/buster/.config/metacity/sessions/101369cb98a6edf4ea125900407631863600000048960023.ms: Failed to open file '/home/buster/.config/metacity/sessions/101369cb98a6edf4ea125900407631863600000048960023.ms': No such file or directory
Failed to play sound: Not available
** Message: Reading of RFKILL events failed
** Message: killswitches state 3

(polkit-gnome-authentication-agent-1:4991): polkit-gnome-1-WARNING **: Unable to determine the session we are in: Remote Exception invoking org.freedesktop.ConsoleKit.Manager.GetSessionForUnixProcess() on /org/freedesktop/ConsoleKit/Manager at name org.freedesktop.ConsoleKit: org.freedesktop.ConsoleKit.Manager.GeneralError: Unable to lookup session information for process '4991' org.freedesktop.ConsoleKit.Manager.GeneralError Unable%20to%20lookup%20session%20information%20for%20process%20%274991%27
** Message: killswitches state 3
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Error:            Can't find file "en" for symbols include
>                   Exiting
>                   Abandoning symbols file "default"
Errors from xkbcomp are not fatal to the X server
(EE) Error loading keymap /var/lib/xkb/server-1.xkm
Error loading new keyboard description

(nautilus:4985): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed

** (update-notifier:5005): WARNING **: not starting for system user


** (nm-applet:4992): WARNING **: <WARN>  request_name(): Could not acquire the NetworkManagerUserSettings service as it is already taken.  Return: 3

Initializing nautilus-gdu extension
** (gnome-panel:4984): DEBUG: Adding applet 0.
** (gnome-panel:4984): DEBUG: Initialized Panel Applet Signaler.
** (gnome-panel:4984): DEBUG: Adding applet 1.
** (gnome-panel:4984): DEBUG: Adding applet 2.
** (gnome-panel:4984): DEBUG: Adding applet 3.
** (gnome-panel:4984): DEBUG: Adding applet 4.
** (gnome-panel:4984): DEBUG: Adding applet 5.
** (gnome-panel:4984): DEBUG: Adding applet 6.
** (gnome-panel:4984): DEBUG: Adding applet 7.
** (gnome-panel:4984): DEBUG: Adding applet 8.
** (gnome-panel:4984): DEBUG: Adding applet 9.
** (gnome-panel:4984): DEBUG: Adding applet 10.

** (nautilus:4985): WARNING **: No marshaller for signature of signal 'UploadFinished'

** (nautilus:4985): WARNING **: No marshaller for signature of signal 'DownloadFinished'

** (nautilus:4985): WARNING **: No marshaller for signature of signal 'ShareCreateError'
evolution-alarm-notify-Message: Setting timeout for 16691 1259020800 1259004109
evolution-alarm-notify-Message:  Tue Nov 24 00:00:00 2009

evolution-alarm-notify-Message:  Mon Nov 23 19:21:49 2009

Oblige d'éteindre brutalement car CTRl+ALT+PRTSC+b m'a juste éteint mon ecran mais rien de plus ne se produit.


Latex-Math : annalescours/exos ; exos. Ubuntu : live-usb ; multiboot

Hors ligne

#19 Le 23/11/2009, à 23:00

smo

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

ola

pour kde whoue tres bizzarre, vais reverifier cette partie la

sinon dans le log, hormis ca rien de special

xset q doesn't reveal the location of the log file. Using fallback /var/log/Xorg.1.log
No whitelisted driver found

je verrais tt a l heure..

++


ht5streamer, streaming youtube/dailymotion...: http://forum.ubuntu-fr.org/viewtopic.php?id=1299461 / http://ht5streamer.free.fr
ubukey, createur ubuntu customisé: http://forum.ubuntu-fr.org/viewtopic.php?id=360408
tchat: ##ubuntu-fr-geek sur irc (irc.ubuntu.com)
ME PAYER UNE BIERE !! :D :  http://gtk-apps.org/content/donate.php?content=138588

Hors ligne

#20 Le 24/11/2009, à 01:24

smo

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

ola

bon t as eu kde4 car cette commande

ps aux | grep -e "[k]ded4"

etait vraie ! Oo

si tu peux verifier...

le reste je vois pas, restes en intel pour l instant...

personne dautre n'a testé ? qu on ait plus de matiere pour comparer smile

edit : maj online, ajout de quelques essais on va dire en rapport a tes bugs buster, on verra... smile

++

Dernière modification par smo (Le 24/11/2009, à 06:29)


ht5streamer, streaming youtube/dailymotion...: http://forum.ubuntu-fr.org/viewtopic.php?id=1299461 / http://ht5streamer.free.fr
ubukey, createur ubuntu customisé: http://forum.ubuntu-fr.org/viewtopic.php?id=360408
tchat: ##ubuntu-fr-geek sur irc (irc.ubuntu.com)
ME PAYER UNE BIERE !! :D :  http://gtk-apps.org/content/donate.php?content=138588

Hors ligne

#21 Le 24/11/2009, à 06:34

buster19

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

effectivement

ps aux | grep -e "[k]ded4"

est vrai si j'utilise Kile avant ou en même temps que ubukey


Latex-Math : annalescours/exos ; exos. Ubuntu : live-usb ; multiboot

Hors ligne

#22 Le 24/11/2009, à 14:56

smo

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

ola

ok buster, bah je rajoputerai sun check ou grep sur autre chose...

et donc t as reessaye sans faire tourner Kile avec vesa?

perso j ai beau faire ce que j veux je reproduis pas ces bugs sad...

haxouille danboy ?

++


ht5streamer, streaming youtube/dailymotion...: http://forum.ubuntu-fr.org/viewtopic.php?id=1299461 / http://ht5streamer.free.fr
ubukey, createur ubuntu customisé: http://forum.ubuntu-fr.org/viewtopic.php?id=360408
tchat: ##ubuntu-fr-geek sur irc (irc.ubuntu.com)
ME PAYER UNE BIERE !! :D :  http://gtk-apps.org/content/donate.php?content=138588

Hors ligne

#23 Le 24/11/2009, à 15:11

danboy

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

Yalla !

T'inquiète je suis tjrs dans les parages ! même si je poste pas bcp ! je teste tjrs tes scripts ! loool !
(dailleurs pour gstyle, l'erreur du "aucune connexion détecté" est-il corrigé ? parce que moi, la semaine dernière, ca m'le faisait encore !)

et pour ce script, quand j'ai testé (la semaine dernière aussi), ben comme j'tai dit par email, je rentre dans le chroot, mais apres en sortie, écran noir....
(mais je pense que ca vient de mon kvm ca, parce que j'affiche mon portable sur un écran externe, et du coup, déjà le kvm a du mal pour piger la résolution (1920*1200), mais en sortie du chroot, il doit pu s'y retrouver.) Pourtant c'est une carte nvidia là (parce que ati, trop marre ! lol lol)

Hors ligne

#24 Le 24/11/2009, à 15:17

smo

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

ok mr wink

j te laisse tester tout ca ...

pour gtsyle non pas corrigé po eu le temps ...

merci

++


ht5streamer, streaming youtube/dailymotion...: http://forum.ubuntu-fr.org/viewtopic.php?id=1299461 / http://ht5streamer.free.fr
ubukey, createur ubuntu customisé: http://forum.ubuntu-fr.org/viewtopic.php?id=360408
tchat: ##ubuntu-fr-geek sur irc (irc.ubuntu.com)
ME PAYER UNE BIERE !! :D :  http://gtk-apps.org/content/donate.php?content=138588

Hors ligne

#25 Le 25/11/2009, à 04:11

smo

Re : createur ubuntu personnalise iso/cle usb avec customisation graphique

ola

bon petite maj

amelioration de virtualbox, le reseau ne marchait pas... et le boot avec les .iso non plus, corrigé

reste a voir sur quoi me baser pour checker que la session kde4 tourne, pas juste son daemon

++


ht5streamer, streaming youtube/dailymotion...: http://forum.ubuntu-fr.org/viewtopic.php?id=1299461 / http://ht5streamer.free.fr
ubukey, createur ubuntu customisé: http://forum.ubuntu-fr.org/viewtopic.php?id=360408
tchat: ##ubuntu-fr-geek sur irc (irc.ubuntu.com)
ME PAYER UNE BIERE !! :D :  http://gtk-apps.org/content/donate.php?content=138588

Hors ligne

Haut de page ↑