Kickstart et livecd, problème d'affichage

bioinfornatics
Messages : 5
Inscription : 06 novembre 2014, 11:12

Kickstart et livecd, problème d'affichage

Message par bioinfornatics » 06 novembre 2014, 11:18

Bonjour j'essaye d'avoir un livecd centos custom via l'outil livecd-creator. Mais j'ai un soucis graphique:
Image

Avez vous déjà eu ce soucis ?

je démare l'iso généré dans virtualbox (sait-on jamais ...)

Merci pour votre aide

voici mon kickstart:

Code : Tout sélectionner

#platform=x86, AMD64, ou Intel EM64T
#version=DEVEL

# Install OS instead of upgrade
install
# Keyboard layouts
keyboard 'fr-latin9'
# Reboot after installation
reboot
#use a mirror close to you or even better, the local one provided by your organization
#replace x86_64 with i386 for 32bit installs
url --url http://mirror.centos.org/centos/$releasever/os/$basearch
# Root password
rootpw --iscrypted $1$FBQ.7fAF$rhbrRgu1aSxWeSWnr/W5c1
# System timezone
timezone Europe/Paris --isUtc
# System language
lang fr_FR
# Firewall configuration
firewall --enabled
# System authorization information
auth  --useshadow  --passalgo=sha512
# Use CDROM installation media
cdrom
# Use graphical or text install
graphical
firstboot --disable
# SELinux configuration
selinux --enforcing

# System bootloader configuration
bootloader --location=mbr --driveorder=sda --append="vga=792 selinux=0"

user --name=labgem

# Partition clearing information
# zerombr
clearpart --initlabel --all
# Disk partitioning information
part /boot  --fstype=ext4 --size=500          --ondisk=sda --asprimary
part swap   --fstype=swap --size=1024  --grow --ondisk=sda
part /      --fstype=ext4 --size=30000 --grow --ondisk=sda
part /opt   --fstype=ext4 --size=10000 --grow --ondisk=sdb
part /home  --fstype=ext4 --size=20000 --grow --ondisk=sdc

repo --name=centos-base         --mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
repo --name=centos-updates      --mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
repo --name=centos-extras       --mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
repo --name=rpmfusion-free      --mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=free-el-6&arch=$basearch
repo --name=rpmfusion-nonfree   --mirrorlist=http://mirrors.rpmfusion.org/mirrorlist?repo=nonfree-el-6&arch=$basearch
repo --name=epel                --baseurl=http://fr2.rpmfind.net/linux/epel/6/$basearch/
#repo --name=epel                --mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-6&arch=$basearch
repo --name=livecd              --baseurl=http://www.nanotechnologies.qc.ca/propos/linux/centos-live/$basearch/live

xconfig --startxonboot

services --enabled=cups,haldaemon,mcstrans,NetworkManager,portmap,restorecond --disabled=blanacron,auditd,bluetooth,cpuspeed,gpm,hidd,ip6tables,mdmonitor,microcode_ctl,netfs,network,nfslock,pcscd,readahead_early,readahead_later,rpcgssd,rpcidmapd,sshd

%packages
@additional-devel
@base
@basic-desktop
@console-internet
@core
@desktop-debugging
@desktop-platform
@desktop-platform-devel
@development
@dial-up
@directory-client
@eclipse
@emacs
@french-support
@fonts
@general-desktop
@graphical-admin-tools
@graphics
@guest-agents
@hardware-monitoring
@input-methods
@internet-applications
@internet-browser
@java-platform
@large-systems
@mail-server
@milkymist
@mysql
@mysql-client
@network-file-system-client
@network-server
@network-tools
@nfs-file-server
@office-suite
@performance
@perl-runtime
@print-client
@print-server
@scientific
@security-tools
@server-platform
@server-platform-devel
@storage-client-fcoe
@storage-client-iscsi
@storage-client-multipath
@system-admin-tools
@system-management-snmp
@technical-writing
@tex
@virtualization
@virtualization-client
@web-server
@x11
aide
anaconda-runtime
chkconfig
eclipse-svnkit
emacs
epel-release
epydoc
git
git-svn
gnome-bluetooth
gnome-common
gnome-pilot-conduits
gnome-themes
hmaccalc
inkscape
java-1.6.0-openjdk-devel
java-1.7.0-openjdk-devel
java-1.8.0-openjdk-devel
kernel
livecd-tools
meld
numpy
postfix
openssl
openssl098e
openswan
plymouth
plymouth-*
python-sphinx10
R-core
R-java
rsyslog
ruby
scipy
selinux-policy-targeted
source-highlight
squashfs-tools
subversion
syslinux
terminator
vlock
xorg-x11-drv-ati
xorg-x11-drv-nouveau
xorg-x11-drv-intel

yum-fastestmirror
yum-metadata-parser
terminator
-kexec-tools
-qt-devel
-qt3-devel
-qt-x11
-yumex
%end

%post --nochroot --log=/root/build-post-nochroot-log
# FIXME PATH
install ~jmercier/Images/labgem_grub.jpg        $LIVE_ROOT/isolinux/splash.jpg
install ~jmercier/Images/splash.xpm.gz          $INSTALL_ROOT/boot/grub
install ~jmercier/Images/labgem_bacteria.jpg    $INSTALL_ROOT/usr/share/backgrounds/
install ~jmercier/Images/bacteria.jpeg          $INSTALL_ROOT/usr/share/backgrounds/
cp  -r  ~jmercier/Images/labgem                 $INSTALL_ROOT/usr/share/plymouth/themes/

cat <<'EOF'> $INSTALL_ROOT/etc/profile.d/labgem.sh

getHomeTool(){
    local -r exeFile=$(type -p "$1")
    echo $(readlink -f "$exeFile" | sed "s:bin/$1::")
}
pager(){
    source-highlight -fesc -oSTDOUT -i "${1}" 2>/dev/null | less -R
}

mysqltop(){
    locale -r query='SELECT Id, User, LEFT(Host,5), db, Command, Time, State, LEFT(Info,10) FROM INFORMATION_SCHEMA.PROCESSLIST WHERE Info IS NOT NULL ORDER BY Time;'
    locale -r DBconnect='mysql -A -u'"${MICROSCOPE_AGC_USER}"' -p'"${MICROSCOPE_AGC_PASS}"' -h '"${MYAGCHOST}"
    locale -r DBconnectIndex='mysql -A -u'"${MICROSCOPE_AGC_USER}"' -p'"${MICROSCOPE_AGC_PASS}"' -h '"${MICROSCOPE_INDEX_AGC_HOST}"

    trap 'echo -e '\nquit'; EXIT=1;' SIGINT

    while [[ $EXIT -eq 0 ]]; do
        printf "\033c"
        command ${DBconnect} -t -e "${query}"
        echo "Number of connections:"
        command ${DBconnectIndex} -e "SHOW PROCESSLIST;" | tail -n +2 | wc -l
        sleep 2
    done
}

EOF

cat <<'EOF'>> $INSTALL_ROOT/etc/skel/.bashrc
export M2_HOME=$(getHomeTool mvn)
export JAVA_HOME=$(getHomeTool javac)
export EDITOR=vim
PS1="\[$(tput setf 3)\]\W \$ \[$(tput sgr0)\]"

shopt -s histappend
trap 'history -a;' EXIT

EOF

[[ ! -e apache-maven-3.2.2-bin.tar.gz ]] && curl -s -LO ftp://mirror.reverse.net/pub/apache/maven/maven-3/3.2.2/binaries/apache-maven-3.2.2-bin.tar.gz
mkdir -p $INSTALL_ROOT/opt/maven
tar xvf apache-maven-3.2.2-bin.tar.gz -C $INSTALL_ROOT/opt/maven

[[ ! -e 2.2.4.tar.gz ]] && curl -s -LO https://github.com/playframework/playframework/archive/2.2.4.tar.gz
mkdir -p $INSTALL_ROOT/opt/playframework
tar xvf 2.2.4.tar.gz -C $INSTALL_ROOT/opt/playframework


[[ ! -e gradle-2.1-all.zip ]] && curl -s -LO https://services.gradle.org/distributions/gradle-2.1-all.zip
mkdir -p $INSTALL_ROOT/opt/gradle
unzip gradle-2.0-all.zip -d $INSTALL_ROOT/opt/gradle

[[ ! -e jdk-8u11-linux-x64.tar.gz ]] && curl -s -LC - -b "oraclelicense=accept-securebackup-cookie" -O http://download.oracle.com/otn-pub/java/jdk/8u11-b12/jdk-8u11-linux-x64.tar.gz
mkdir -p $INSTALL_ROOT/opt/java
tar xvf jdk-8u11-linux-x64.tar.gz -C $INSTALL_ROOT/opt/java

[[ ! -e jdk-7u55-linux-x64.tar.gz ]] && curl -s -LC - -b "oraclelicense=accept-securebackup-cookie" -O http://download.oracle.com/otn-pub/java/jdk/7u55-b13/jdk-7u55-linux-x64.tar.gz
tar xvf jdk-7u55-linux-x64.tar.gz -C $INSTALL_ROOT/opt/java

[[ ! -e jdk-6u45-linux-x64.bin ]] && curl -s -LC - -b "oraclelicense=accept-securebackup-cookie" -O http://download.oracle.com/otn-pub/java/jdk/6u45-b06/jdk-6u45-linux-x64.bin
chmod +x jdk-6u45-linux-x64.bin
./jdk-6u45-linux-x64.bin
mv jdk1.6.0_45/ $INSTALL_ROOT/opt/java/


[[ ! -e ideaIC-13.1.5.tar.gz ]] && curl -s -LO http://download.jetbrains.com/idea/ideaIC-13.1.5.tar.gz
mkdir -p $INSTALL_ROOT/opt/idea/
tar xvf ideaIC-13.1.5.tar.gz -C $INSTALL_ROOT/opt/idea/

[[ ! -e rstudio-0.98.1087-x86_64.rpm ]] && curl -s -LO http://download1.rstudio.org/ 
install rstudio-0.98.1087-x86_64.rpm $INSTALL_ROOT/root/

[[ ! -e gsphere.pem ]] && openssl s_client -showcerts -connect gsphere.genoscope.cns.fr:443 </dev/null 2>/dev/null|openssl x509 -outform PEM > gsphere.pem
install gsphere.pem $INSTALL_ROOT/root/

[[ ! -e virtualbox ]] && tar xvf virtualbox.tar.gz
cp -r virtualbox $INSTALL_ROOT/root/virtualbox
%end 

%post --log=/root/build-post-log

config_java() {
    JDK="$1"
    priority="$2"
    /usr/sbin/alternatives    --install /usr/bin/java                   java              $JDK/jre/bin/java $priority \
                    --slave /usr/bin/ControlPanel                       ControlPanel      $JDK/jre/bin/ControlPanel   \
                    --slave /usr/bin/java_vm                            java_vm           $JDK/jre/bin/java_vm        \
                    --slave /usr/bin/javaws                             javaws            $JDK/jre/bin/javaws         \
                    --slave /usr/bin/jcontrol                           jcontrol          $JDK/jre/bin/jcontrol       \
                    --slave /usr/bin/keytool                            keytool           $JDK/jre/bin/keytool        \
                    --slave /usr/bin/orbd                               orbd              $JDK/jre/bin/orbd           \
                    --slave /usr/bin/pack200                            pack200           $JDK/jre/bin/pack200        \
                    --slave /usr/bin/policytool                         policytool        $JDK/jre/bin/policytool     \
                    --slave /usr/bin/rmid                               rmid              $JDK/jre/bin/rmid           \
                    --slave /usr/bin/rmiregistry                        rmiregistry       $JDK/jre/bin/rmiregistry    \
                    --slave /usr/bin/servertool                         servertool        $JDK/jre/bin/servertool     \
                    --slave /usr/bin/tnameserv                          tnameserv         $JDK/jre/bin/tnameserv      \
                    --slave /usr/bin/unpack200                          unpack200         $JDK/jre/bin/unpack200      \
                    --slave /usr/lib64/mozilla/plugins/libjavaplugin.so libjavaplugin.so  $JDK/jre/lib/amd64/libnpjp2.so \
                    --slave /usr/bin/javac                              javac             $JDK/bin/javac              \
                    --slave /usr/bin/appletviewer                       appletviewer      $JDK/bin/appletviewer       \
                    --slave /usr/bin/apt                                apt               $JDK/bin/apt                \
                    --slave /usr/bin/ControlPanel                       ControlPanel      $JDK/bin/ControlPanel       \
                    --slave /usr/bin/extcheck                           extcheck          $JDK/bin/extcheck           \
                    --slave /usr/bin/idlj                               idlj              $JDK/bin/idlj               \
                    --slave /usr/bin/jar                                jar               $JDK/bin/jar                \
                    --slave /usr/bin/jarsigner                          jarsigner         $JDK/bin/jarsigner          \
                    --slave /usr/bin/javadoc                            javadoc           $JDK/bin/javadoc            \
                    --slave /usr/bin/javafxpackager                     javafxpackager    $JDK/bin/javafxpackager     \
                    --slave /usr/bin/javah                              javah             $JDK/bin/javah              \
                    --slave /usr/bin/javap                              javap             $JDK/bin/javap              \
                    --slave /usr/bin/java-rmi.cgi                       java-rmi.cgi      $JDK/bin/java-rmi.cgi       \
                    --slave /usr/bin/javaws                             javaws            $JDK/bin/javaws             \
                    --slave /usr/bin/jcmd                               jcmd              $JDK/bin/jcmd               \
                    --slave /usr/bin/jconsole                           jconsole          $JDK/bin/jconsole           \
                    --slave /usr/bin/jcontrol                           jcontrol          $JDK/bin/jcontrol           \
                    --slave /usr/bin/jdb                                jdb               $JDK/bin/jdb                \
                    --slave /usr/bin/jhat                               jhat              $JDK/bin/jhat               \
                    --slave /usr/bin/jinfo                              jinfo             $JDK/bin/jinfo              \
                    --slave /usr/bin/jmap                               jmap              $JDK/bin/jmap               \
                    --slave /usr/bin/jmc                                jmc               $JDK/bin/jmc                \
                    --slave /usr/bin/jmc.ini                            jmc.ini           $JDK/bin/jmc.ini            \
                    --slave /usr/bin/jps                                jps               $JDK/bin/jps                \
                    --slave /usr/bin/jrunscript                         jrunscript        $JDK/bin/jrunscript         \
                    --slave /usr/bin/jsadebugd                          jsadebugd         $JDK/bin/jsadebugd          \
                    --slave /usr/bin/jstack                             jstack            $JDK/bin/jstack             \
                    --slave /usr/bin/jstat                              jstat             $JDK/bin/jstat              \
                    --slave /usr/bin/jstatd                             jstatd            $JDK/bin/jstatd             \
                    --slave /usr/bin/jvisualvm                          jvisualvm         $JDK/bin/jvisualvm          \
                    --slave /usr/bin/keytool                            keytool           $JDK/bin/keytool            \
                    --slave /usr/bin/native2ascii                       native2ascii      $JDK/bin/native2ascii       \
                    --slave /usr/bin/rmic                               rmic              $JDK/bin/rmic               \
                    --slave /usr/bin/schemagen                          schemagen         $JDK/bin/schemagen          \
                    --slave /usr/bin/serialver                          serialver         $JDK/bin/serialver          \
                    --slave /usr/bin/wsgen                              wsgen             $JDK/bin/wsgen              \
                    --slave /usr/bin/wsimport                           wsimport          $JDK/bin/wsimport           \
                    --slave /usr/bin/xjc                                xjc               $JDK/bin/xjc                \
                    --slave /usr/share/man/man1/javadoc.1               javadoc.1         $JDK/man/man1/javadoc.1    \
                    --slave /usr/share/man/man1/javah.1                 javah.1           $JDK/man/man1/javah.1       \
                    --slave /usr/share/man/man1/jar.1                   jar.1             $JDK/man/man1/jar.1         \
                    --slave /usr/share/man/man1/rmic.1                  rmic.1            $JDK/man/man1/rmic.1
    /usr/sbin/alternatives --set java $JDK
}

getHomeTool(){
    local -r exeFile=$(type -p "$1")
    echo $(readlink -f "$exeFile" | sed "s:bin/$1::")
}

PATH=/usr/bin:/bin:/usr/sbin:/sbin

# add centos user with no passwd
action "Adding live user" useradd \$USERADDARGS -c "Live System User" liveuser
passwd -d liveuser > /dev/null

usermod -aG wheel liveuser > /dev/null

# Remove root password lock
passwd -d root > /dev/null
echo "localhost" > /etc/hostname

# don't use prelink on a running live image
sed -i 's/PRELINKING=yes/PRELINKING=no/' /etc/sysconfig/prelink &>/dev/null || :

/bin/bash /root/virtualbox/autorun.sh
rm -fr /root/virtualbox


yum install -y --nogpgcheck /root/rstudio-0.98.1087-x86_64.rpm
# yum update -y # ---> 14: PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'"

rm /root/rstudio-0.98.1087-x86_64.rpm

/usr/sbin/plymouth-set-default-theme labgem --rebuild-initrd


/usr/sbin/alternatives --install /usr/local/bin/mvn       mvn       /opt/maven/apache-maven-3.2.2/bin/mvn       30202 \
             --slave /usr/local/bin/mvnDebug    mvnDebug  /opt/maven/apache-maven-3.2.2/bin/mvnDebug        \
             --slave /usr/local/bin/mvnDebug    mvnDebug  /opt/maven/apache-maven-3.2.2/bin/mvnDebug        \
             --slave /usr/local/bin/mvnyjp      mvnyjp    /opt/maven/apache-maven-3.2.2/bin/mvnyjp


/usr/sbin/alternatives --auto mvn


/usr/sbin/alternatives --install /usr/local/bin/play play /opt/playframework/playframework-2.2.4/play 20204


#http://downloads.typesafe.com/typesafe-activator/1.2.3/typesafe-activator-1.2.3.zip


/usr/sbin/alternatives --install /usr/local/bin/gradle gradle /opt/gradle/gradle-2.1/bin/gradle 210


config_java /opt/java/jdk1.8.0_11 180011
JAVA_HOME=$(getHomeTool javac)
echo $JAVA_HOME
keytool -import -trustcacerts -noprompt -alias gsphere -file gsphere.pem -keystore ${JAVA_HOME}/jre/lib/security/cacerts -storepass changeit


config_java /opt/java/jdk1.7.0_55 170055
JAVA_HOME=$(getHomeTool javac)
echo $JAVA_HOME
keytool -import -trustcacerts -noprompt -alias gsphere -file gsphere.pem -keystore ${JAVA_HOME}/jre/lib/security/cacerts -storepass changeit


config_java /opt/java/jdk1.6.0_45 160045
JAVA_HOME=$(getHomeTool javac)
echo $JAVA_HOME
keytool -import -trustcacerts -noprompt -alias gsphere -file /root/gsphere.pem -keystore ${JAVA_HOME}/jre/lib/security/cacerts -storepass changeit

/usr/sbin/alternatives --auto java


/usr/sbin/alternatives --install /usr/local/bin/idea idea                          /opt/idea/idea-IC-135.1289/bin/idea.sh 130105   \
             --slave   /usr/local/bin/libbreakgen.so   libbreakgen.so    /opt/idea/idea-IC-135.1289/bin/libbreakgen.so   \
             --slave   /usr/local/bin/libbreakgen64.so libbreakgen64.so  /opt/idea/idea-IC-135.1289/bin/libbreakgen64.so \
             --slave   /usr/local/bin/fsnotifier       fsnotifier        /opt/idea/idea-IC-135.1289/bin/fsnotifier       \
             --slave   /usr/local/bin/fsnotifier64     fsnotifier64      /opt/idea/idea-IC-135.1289/bin/fsnotifier64     \
             --slave   /usr/local/bin/inspect.sh       inspect.sh        /opt/idea/idea-IC-135.1289/bin/inspect.sh


/sbin/chkconfig rsyslog on
/sbin/chkconfig rsyslog --levels 345 on

gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type string  --set /desktop/gnome/background/picture_filename "/usr/share/backgrounds/labgem_bacteria.jpg"
gconftool-2 --direct --config-source xml:readwrite:/etc/gconf/gconf.xml.mandatory --type boolean --set /apps/nautilus/preferences/always_use_browser true
gconftool-2 --direct --config-source=xml::/etc/gconf/gconf.xml.vendor --set /desktop/gnome/background/picture_filename --type=string /usr/share/backgrounds/bacteria.jpeg
%end
Dernière modification par bioinfornatics le 06 novembre 2014, 15:08, modifié 1 fois.

Avatar de l’utilisateur
Arrfab
Administrateur
Messages : 305
Inscription : 16 octobre 2009, 18:04
Localisation : /dev/irc.freenode.net/#centos
Contact :

Re: Kickstart et livecd, problème d'affichage

Message par Arrfab » 06 novembre 2014, 11:52

Je n'ai pas eu le temps de lire tout ton kickstart, mais tu peux trouver ceux utilisés pour les LiveCD/DVD CentOS 6 ici
http://people.centos.org/arrfab/CentOS6/LiveCD-DVD/
http://people.centos.org/arrfab/CentOS6/SRPMS/
----
test -e /dev/human/brain || ( echo 1 > /proc/sys/kernel/sysrq ; echo c > /proc/sysrq-trigger )

bioinfornatics
Messages : 5
Inscription : 06 novembre 2014, 11:12

Re: Kickstart et livecd, problème d'affichage

Message par bioinfornatics » 06 novembre 2014, 12:49

Merci Arrfab j'essaye avec les kickstart que tu m'a donné.

Juste pour info il vaut mieux faire

Code : Tout sélectionner

 cat > monfichier.txt << "EOF"
que

Code : Tout sélectionner

 cat > monfichier.txt << EOF
car ainsi on a pas besoins de mettre des \ partout ce qui complique la lecture et on est pas à l'abri d'un oubli de \ (on va me dire fix it ...)

bioinfornatics
Messages : 5
Inscription : 06 novembre 2014, 11:12

Re: Kickstart et livecd, problème d'affichage

Message par bioinfornatics » 06 novembre 2014, 15:10

Bon en essayant de lire les log de Xorg.0.log il semble qu'il trouve pas le module vboxvideo je vais enlever les groupes liéé à la virtualisation peut êtres qu'ils sont à l'origine du soucis

Répondre