<?xml version="1.0" encoding="UTF-8"?> <rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:wfw="http://wellformedweb.org/CommentAPI/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
> <channel><title>Libre-Astux.info &#187; Sécurité</title> <atom:link href="http://www.libre-astux.info/tag/securite/feed" rel="self" type="application/rss+xml" /><link>http://www.libre-astux.info</link> <description></description> <lastBuildDate>Thu, 26 Jan 2012 11:36:46 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>Linux, un minimum de précaution tout de même</title><link>http://www.libre-astux.info/639/linux-un-minimum-de-precaution-tout-de-meme.html</link> <comments>http://www.libre-astux.info/639/linux-un-minimum-de-precaution-tout-de-meme.html#comments</comments> <pubDate>Sat, 20 Feb 2010 05:45:39 +0000</pubDate> <dc:creator>Gatien</dc:creator> <category><![CDATA[Planet-Libre]]></category> <category><![CDATA[Tutos]]></category> <category><![CDATA[antivirus]]></category> <category><![CDATA[clamav]]></category> <category><![CDATA[configuration]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[mises à jours]]></category> <category><![CDATA[parefeu]]></category> <category><![CDATA[prévention]]></category> <category><![CDATA[Sécurité]]></category> <guid
isPermaLink="false">http://www.libre-astux.info/?p=639</guid> <description><![CDATA[Aujourd&#8217;hui je vous propose un article plutôt à destination des nouveaux venus sous Gnu/Linux. Bien que l&#8217;on vous présente ce type de système comme sûr, à toute épreuve, Gnu/Linux étant un système d&#8217;exploitation comme un autre, il reste vulnérable. Il existe donc quelques principes de bases à appliquer: Effectuer les mises à jours de sécurité [...]]]></description> <content:encoded><![CDATA[<p>Aujourd&#8217;hui je vous propose un article plutôt à destination des nouveaux venus sous Gnu/Linux.</p><p>Bien que l&#8217;on vous présente ce type de <strong>système</strong> comme<strong> sûr</strong>, à toute épreuve, <strong>Gnu/Linux</strong> étant un système d&#8217;exploitation comme un autre, il <a
href="http://www.commentcamarche.net/faq/5865-mythe-linux-est-invulnerable-face-aux-virus"><strong>reste vulnérable</strong></a>.</p><p><span
style="text-decoration: underline;">Il existe donc quelques principes de bases à appliquer:</span></p><ul><li>Effectuer les mises à jours de sécurité de votre distribution régulièrement</li><li>Mettre en place un pare-feu minimaliste</li><li>Mettre en place un antivirus afin d&#8217;éviter si ce n&#8217;est d&#8217;être infecté, de propager des virus à d&#8217;autres systèmes (via e-mail, clé usb, &#8230;)</li></ul><p>Par défaut sous certaines distributions telles qu&#8217;Ubuntu, aucun pare-feu n&#8217;est configuré et aucun antivirus n&#8217;est installé.</p><ol><li><strong><span
style="text-decoration: underline;">Effectuer les mises à jours de sécurité de votre distribution régulièrement:</span></strong></li><p>La plupart des distributions mettent à disposition un gestionnaire de mise à jour graphique dans leur outils, cela permet de configurer les mises à jour automatique ainsi, plus besoin de vous en soucier.</p><p>Si vous désirez passer par la ligne de commande, en fonction de votre gestionnaire de paquet, la commande diffère mais pour l&#8217;automatiser, il suffit de la placer dans le <a
href="http://www.libre-astux.info/?p=193">crontab</a> (gestionnaire de tâches):</p><fieldset><legend><strong><span
style="color: #800000;">Exemple d&#8217;automatisation simple sous Debian</span></strong></legend><p><code><strong><span
style="color: #0000ff;">sudo crontab -e</span></strong></code></p><p><strong><span
style="color: #008000;">00  02  */5  *  *  apt-get update &amp;&amp; apt-get upgrade<a
href="http://www.debian.org/"><img
class="alignright size-full wp-image-289" title="gnome-debian" src="http://www.libre-astux.info/wp-content/2009/08/gnome-debian.png" alt="logo debian" width="48" height="48" /></a></span></strong></p><p>La première ligne permet d&#8217;entrer dans la crontab de l&#8217;utilisateur root</p><p>La seconde est à insérer dans ce fichier afin d&#8217;automatiser la mise à jour du système tous les 5 jours à 2h du matin.</fieldset><li><span
style="text-decoration: underline;"><strong>Mettre en place un pare-feu minimaliste</strong></span></li><p>Avec tout système Gnu/Linux est livré un <strong>outil très puissant</strong>, <strong>iptables</strong>. C&#8217;est cet outil que nous allons utiliser ici afin de verrouiller un minimum nos machines. Bien que je ne prétende pas faire ici un cours sur iptables, je vais succinctement vous expliquer l&#8217;utilité des diverses commandes:</p><fieldset><legend><strong><span
style="color: #800000;">Exemple d&#8217;utilisation d&#8217;iptables pour un poste utilisateur</span></strong></legend><p><span
style="color: #0000ff;"><strong><code>/sbin/iptables-save</code></strong></span></p><p>Cette commande permet d&#8217;afficher les règles Iptables appliquées en ce moment.</p><p><code> <strong><span
style="color: #0000ff;">/sbin/iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT<br
/> /sbin/iptables -A INPUT -i eth0 -j DROP</span><br
/> </strong> </code><strong><br
/> </strong>Ces <strong>2 commandes suffisent à bloquer toute entrées</strong> de données <strong>sur votre machine</strong> (sur l&#8217;interface eth0) hormis celles demandées par celle-ci. Ici, nous bloquons simplement tout en entrée et rien en sortie puisqu&#8217;il s&#8217;agit d&#8217;un poste utilisateur et non d&#8217;un serveur. Cela conviendra donc pour la plupart des postes utilisateurs.</p><p>N&#8217;oublier pas cependant d&#8217;adapter ces règles suivant votre cas (quelqu&#8217;un doit il pouvoir accéder à cette machine à distance ? (moi y compris ?), à quoi doit on avoir accés sur cette machine (http, ftp, icmp, dns, &#8230;)), notamment si vous partagez des données via un partage réseau sur votre machine.</p><p>Connaître ces quelques règles, où bien les exécuter une fois n&#8217;aura d&#8217;impact que jusqu&#8217;au prochain redémarrage du poste. Si vous désirez appliquer ces règles en permanence, il suffit de les placer dans un fichier <span
style="color: #008000;"><strong>firewall.sh</strong></span>, de rendre ce script exécutable et d&#8217;ajouter une ligne dans <span
style="color: #008000;"><strong>/etc/network/interface</strong></span>. Ce qui donne:</p><p><span
style="text-decoration: underline;"><span
style="color: #008000;"><strong>firewall.sh:</strong></span></span></p><blockquote><p><span
style="color: #008000;"><code><strong>#!/bin/bash<br
/> /sbin/iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT<br
/> /sbin/iptables -A INPUT -i eth0 -j DROP</strong></code></span></p></blockquote><p><strong>Il faut ensuite rendre ce script exécutable et en limiter les possibilités de modification:<br
/> </strong></p><blockquote><p><code><span
style="color: #0000ff;"><strong>chmod 700 firewall.sh</strong></span><br
/> </code></p></blockquote><p><span
style="text-decoration: underline;"><span
style="color: #008000;"><strong>/etc/network/interface:</strong></span></span></p><blockquote><p><span
style="color: #008000;"><code><strong>up chemin/vers/script/firewall.sh</strong></code></span></p></blockquote></fieldset><li><span
style="text-decoration: underline;"><strong>Mettre en place un antivirus</strong></span></li><p>Bien qu&#8217;il existe à l&#8217;heure actuelle peu de manace pour ce système d&#8217;exploitation, un poste non protégé pourrait contaminer d&#8217;autres postes tout en étant parfaitement opérationnel (porteur sain &#8230;).<br
/> Afin de limiter les risques de contamination de postes sous des OS différents, il convient donc d&#8217;installer un antivirus.<br
/> <a
href="http://www.clamav.net/lang-pref/fr/">Clamav</a> est un <a
href="http://fr.wikipedia.org/wiki/Logiciel_antivirus">antivirus</a> libre, gratuit très performant qui va vous permettre d&#8217;être tranquille de ce côté là.<br
/> Disponible dans les dépôts il s&#8217;installe avec votre gestionnaire de paquets habituel (exemple sous Debian: <a
href="apt://clamav">apt-get install clamav</a>)</p><p
style="text-align: left;"><a
href="http://www.clamav.net/lang-pref/fr/"><img
class="aligncenter size-thumbnail wp-image-640" title="clamav" src="http://www.libre-astux.info/wp-content/2010/02/clamav-150x150.png" alt="" width="150" height="150" /></a></p></ol><p><span
style="text-decoration: underline;">Quelques ressources intéressantes à ce sujet:</span></p><ul><li> <a
href="http://www.commentcamarche.net/faq/5865-mythe-linux-est-invulnerable-face-aux-virus">Le mythe de l&#8217;invulnérabilité de Gnu/Linux</a></li><li><a
href="http://doc.ubuntu-fr.org/antivirus">La documentation Ubuntu à propos des antivirus</a></li><li><a
href="http://web.mit.edu/rhel-doc/4/RH-DOCS/rhel-sg-fr-4/s1-fireall-ipt-act.html">Documentation sur l&#8217;utilisation d&#8217;Iptables</a></li></ul> ]]></content:encoded> <wfw:commentRss>http://www.libre-astux.info/639/linux-un-minimum-de-precaution-tout-de-meme.html/feed</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Le multiplexage des connexions SSH.</title><link>http://www.libre-astux.info/577/le-multiplexage-des-connexions-ssh.html</link> <comments>http://www.libre-astux.info/577/le-multiplexage-des-connexions-ssh.html#comments</comments> <pubDate>Sun, 29 Nov 2009 11:44:51 +0000</pubDate> <dc:creator>Gatien</dc:creator> <category><![CDATA[Mémos]]></category> <category><![CDATA[connexions]]></category> <category><![CDATA[multiplexage]]></category> <category><![CDATA[Sécurité]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[unixgarden]]></category> <guid
isPermaLink="false">http://www.libre-astux.info/?p=577</guid> <description><![CDATA[Bonjour à tous, voici aujourd&#8217;hui un lien vers un article de qualité permettant à tous de comprendre le principe du multiplexage ainsi que son intérêt dans l&#8217;utilisation d&#8217; SSH. SSH est un protocole incontournable, à la fois parce que c’est une manière fiable et sécurisée pour accéder à des machines quand on n’a qu’une confiance [...]]]></description> <content:encoded><![CDATA[<p>Bonjour à tous,</p><p>voici aujourd&#8217;hui un lien vers un article de qualité permettant à tous de comprendre le principe du multiplexage ainsi que son intérêt dans l&#8217;utilisation d&#8217; SSH.</p><p>SSH est un protocole incontournable, à la fois parce que c’est une manière fiable et sécurisée pour accéder à des machines quand on n’a qu’une confiance limitée dans le réseau qui va acheminer nos messages, et aussi parce qu’il peut servir de transport pour d’autres protocoles non sécurisés.</p><p><span
id="more-1451"> </span></p><p>Cet article va aborder une fonctionnalité très utile d’OpenSSH et de la version 2 du protocole pour partager des connexions.</p><p>Même si ce n’est pas une nouveauté (la première implémentation est apparue dans OpenSSH version 3.9p1), c’est fichtrement commode, et une petite explication de texte n’est pas totalement superflue.</p><p><a
href="http://www.unixgarden.com/index.php/administration-reseau/multiplexage-des-connexions-ssh">Lire la suite de cet article sur UnixGarden</a>.</p> ]]></content:encoded> <wfw:commentRss>http://www.libre-astux.info/577/le-multiplexage-des-connexions-ssh.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Personnaliser un Live-cd (Ubuntu 9.10)</title><link>http://www.libre-astux.info/449/personnaliser-un-live-cd-ubuntu-9-10.html</link> <comments>http://www.libre-astux.info/449/personnaliser-un-live-cd-ubuntu-9-10.html#comments</comments> <pubDate>Mon, 21 Sep 2009 15:54:17 +0000</pubDate> <dc:creator>Gatien</dc:creator> <category><![CDATA[Planet-Libre]]></category> <category><![CDATA[Planet-Ubuntu]]></category> <category><![CDATA[Tutos]]></category> <category><![CDATA[chroot]]></category> <category><![CDATA[iso]]></category> <category><![CDATA[karmic koala]]></category> <category><![CDATA[live-cd]]></category> <category><![CDATA[personnalisation]]></category> <category><![CDATA[réseau]]></category> <category><![CDATA[Sécurité]]></category> <category><![CDATA[squashfs]]></category> <category><![CDATA[ubuntu]]></category> <guid
isPermaLink="false">http://www.libre-astux.info/?p=449</guid> <description><![CDATA[Je vous ai fait part, dans l&#8217;un de mes précédents articles, de mon intention de créer une distribution Live Ubuntu personnalisée orientée vers la récupération de données et le réseau. Voici donc la première étape, la personnalisation d&#8217;un Live-cd à partir de la version 9.10 d&#8217;Ubuntu, Karmic Koala. Pour ceux qui ont l&#8217;habitude de ce [...]]]></description> <content:encoded><![CDATA[<p>Je vous ai fait part, dans l&#8217;un de mes précédents articles, de mon intention de créer une distribution Live Ubuntu personnalisée orientée vers la récupération de données et le réseau. Voici donc la première étape, la personnalisation d&#8217;un Live-cd à partir de la version 9.10 d&#8217;Ubuntu, Karmic Koala.</p><p>Pour ceux qui ont l&#8217;habitude de ce genre de manipulations, je ne vais pas vous cacher que je me suis essentiellement servi de la documentation Ubuntu qui est d&#8217;ailleurs relativement complète à ce sujet. Vous retrouverez toutes les ressources utilisées en fin d&#8217;article. Ce tutoriel étant adapté à la personnalisation d&#8217;Ubuntu 9.10, certains éléments présentés ici ne sont pas encore dans la documentation officielle.</p><p><span
style="text-decoration: underline;"><strong>Récupération de l&#8217;image originale et création de la structure nécessaire:</strong></span></p><blockquote><p><span
style="color: #0000ff;"><em><strong>mkdir /livecd</strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>cd /livecd</strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>mkdir iso squashfs<br
/> </strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>wget <a
href="http://cdimage.ubuntu.com/releases/karmic/alpha-6/karmic-desktop-i386.iso">http://cdimage.ubuntu.com/releases/karmic/alpha-6/karmic-desktop-i386.iso</a></strong></em></span></p></blockquote><p><span
style="text-decoration: underline;"><strong>Montage et copie du contenu de l&#8217;iso:</strong></span></p><blockquote><p><span
style="color: #0000ff;"><em><strong>mount -o loop <em><strong>karmic-desktop-i386.iso /cdrom</strong></em></strong></em></span></p><p><span
style="color: #0000ff;"><em><strong><em><strong>cp -av /cdrom/. iso</strong></em></strong></em></span></p><p><span
style="color: #0000ff;"><em><strong><span
style="color: #0000ff;"><em><strong>umount /cdrom</strong></em></span></strong></em></span></p></blockquote><p><span
style="color: #000000;"><span
style="text-decoration: underline;"><strong><strong>Supp</strong></strong><strong><strong>ression des éléments inutiles (présents pour Windows):</strong></strong></span></span></p><blockquote><p><span
style="color: #0000ff;"><em><strong><span
style="color: #0000ff;"><em><strong>cd iso</strong></em></span></strong></em></span></p><p><span
style="color: #0000ff;"><em><strong><span
style="color: #0000ff;"><em><strong>rm Autorun.inf wubi.exe</strong></em></span></strong></em></span></p><p><span
style="color: #0000ff;"><em><strong><span
style="color: #0000ff;"><em><strong>rm -r pics</strong></em></span></strong></em></span></p><p><span
style="color: #0000ff;"><em><strong><span
style="color: #0000ff;"><em><strong>cd ..</strong></em></span></strong></em></span></p></blockquote><p><span
style="text-decoration: underline;"><span
style="color: #000000;"><strong><strong>Montage et copie du squashfs</strong></strong></span></span></p><p><span
style="color: #ff0000;"><a
href="http://www.libre-astux.info/wp-content/2009/08/info.png"><img
class="alignnone size-full wp-image-333" title="info" src="http://www.libre-astux.info/wp-content/2009/08/info.png" alt="info" width="32" height="32" /></a>C&#8217;est ici qu&#8217;intervient un premier problème, n&#8217;ayant pas installé Karmic Koala sur mon poste, je pensais tout de même pouvoir personnaliser le Live-cd en utilisant comme système hôte, Ubuntu 9.04. Or le squashfs présent sur Karmic Koala est en version 4, celui-ci est intégré au noyau Linux 2.6.31 et n&#8217;est pas rétrocompatible avec la version 3.3 présente dans les noyaux Linux plus anciens. Il est donc nécessaire d&#8217;utiliser un système hôte utilisant un noyau Linux &gt;= 2.6.31. Ce qui m&#8217;a amené à effectuer toute la manipulation sur une machine virtuelle utilisant comme système le live-cd d&#8217;Ubuntu 9.10 lui-même.</span></p><blockquote><p><span
style="color: #000000;">Afin de compresser / décompresser le système squashfs, nous allons installer les outils nécessaires:</span></p><p><span
style="color: #000000;"><strong><em><span
style="color: #0000ff;">apt-get install squashfs-tools</span></em></strong></span></p></blockquote><p><span
style="color: #000000;">Puis nous pouvons continuer la procédure:</span></p><blockquote><p><span
style="color: #0000ff;"><strong><em>mount -t squashfs -o loop iso/casper/filesystem.squashfs /cdrom</em></strong></span></p><p><span
style="color: #0000ff;"><strong><em>cp -av /cdrom/. squashfs</em></strong></span></p><p><span
style="color: #0000ff;"><strong><em>umount /cdrom</em></strong></span></p></blockquote><p><span
style="color: #0000ff;"><strong><em> </em></strong></span><span
style="color: #0000ff;"><strong><em> </em></strong></span></p><p><span
style="text-decoration: underline;"><span
style="color: #000000;"><strong><strong>Préparation du chroot</strong></strong></span></span><span
style="color: #0000ff;"> </span></p><blockquote><p><span
style="color: #0000ff;"><em><strong>mount &#8211;bind /proc squashfs/proc</strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>mount &#8211;bind /dev squashfs/dev</strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>mount &#8211;bind /sys squashfs/sys</strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>cp /etc/resolv.conf squashfs/etc/resolv.conf</strong></em></span></p><p><span
style="color: #000000;"><strong><strong><em><span
style="color: #0000ff;">chroot squashfs</span></em></strong></strong></span><span
style="text-decoration: underline;"><span
style="color: #000000;"><strong><strong><br
/> </strong></strong></span></span></p></blockquote><p><span
style="color: #0000ff;"><strong><span
style="color: #0000ff;"><strong><span
style="color: #ff0000;">À partir de maintenant, nous allons effectuer des modifications directement sur le système en cours de personnalisation.</span></strong></span></strong><em><strong><span
style="color: #0000ff;"><em><strong><br
/> </strong></em></span></strong></em></span></p><p><span
style="text-decoration: underline;"><strong>Mise à jour du système</strong></span></p><blockquote><p>Décommenter les lignes contenant universe dans <em><strong><span
style="color: #008000;">/etc/apt/source.list</span></strong></em><span
style="color: #000000;"><strong> </strong> afin d&#8217;activer les dépôts universe.</span><em><strong><span
style="color: #008000;"><br
/> </span></strong></em></p><p><strong><em><span
style="color: #0000ff;">apt-get update</span></em></strong></p><p><strong><em><span
style="color: #0000ff;">apt-get dist-upgrade</span></em></strong></p></blockquote><p>Une fois cette étape franchie, nous entrons dans le vif du sujet avec le choix des paquets à ajouter / supprimer. Les choix suivants correspondent à mes besoins, vous pouvez adapter les manipulations ci-dessous selon vos besoins.</p><p><strong><span
style="text-decoration: underline;">Applications et ressources supprimées:</span></strong></p><blockquote><p>Suppression des langues, d&#8217;evolution et du paquet ubuntu-desktop(dépends d&#8217;evolution) afin d&#8217;alléger cette distribution.<strong><span
style="text-decoration: underline;"><br
/> </span></strong></p><p><span
style="color: #0000ff;"><em><strong>apt-get remove &#8211;purge language* evolution pidgin ekiga<br
/> </strong></em></span></p><p>Le paquet ubuntu-desktop doit être réinstallé avant une mise à niveau vers une nouvelle distribution Ubuntu.</p></blockquote><p><span
style="text-decoration: underline;"><strong>Applications et ressources ajoutées:</strong></span></p><blockquote><p>Ajout de la gestion du français et des outils sélectionnés:</p><p><em><strong><span
style="color: #0000ff;">apt-get install language-pack-fr language-pack-gnome-fr language-support-fr language-pack-kde-fr language-selector</span></strong></em></p><p><em><strong><span
style="color: #0000ff;">apt-get install openssh-server x11vnc terminator localepurge<br
/> </span></strong></em></p><p><em><strong><span
style="color: #0000ff;">apt-get install foremost testdisk ntfsprogs gparted e2undel nfs-common</span></strong></em></p><p><em><strong><span
style="color: #0000ff;">apt-get install thunderbird amsn iptux</span></strong></em></p></blockquote><p><span
style="text-decoration: underline;"><strong>Vérification des dépendances et nettoyage de la base des paquets disponibles et téléchargés:</strong></span></p><blockquote><p><span
style="color: #0000ff;"><em><strong>apt-get -f install<br
/> </strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>apt-get autoremove<br
/> </strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>apt-get autoclean</strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>apt-get clean</strong></em></span></p></blockquote><p><span
style="text-decoration: underline;"><strong>Sortie du chroot</strong></span></p><blockquote><p><span
style="color: #0000ff;"><em><strong>rm /etc/resolv.conf</strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>umount /sys</strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>umount /dev</strong></em></span></p><p><span
style="color: #0000ff;"><em><strong>umount /proc</strong></em></span></p><p>En cas d&#8217;erreur, ne pas en tenir compte, cela ne gênera pas la suite de la manipulation.</p><p><strong><em><span
style="color: #0000ff;">exit</span></em></strong></p></blockquote><p>De nombreuses autres modifications sont possibles sans rentrer dans le chroot, notamment tous ce qui concerne la modification de thèmes graphiques, les fichiers de configurations par défaut, …</p><p>Il est possible d&#8217;ajouter tout ce que l&#8217;on veut simplement en le copiant à l&#8217;endroit souhaité dans le répertoire squashfs.</p><p>Ainsi, afin de modifier plus facilement l&#8217;aspect graphique, le plus simple est de reconstruire l&#8217;iso puis de lancer celui-ci dans une machine virtuelle et d&#8217;effectuer les modifications souhaitées. Il suffira ensuite d&#8217;ajouter les fichiers modifiés au répertoire squashfs (au bon emplacement), par exemple dans <em><strong><span
style="color: #008000;">squashfs/etc/skel</span></strong></em> pour que cela soit présent dans le <em><strong><span
style="color: #008000;">home</span></strong></em> de tout utilisateur,  puis reconstruire à nouveau l&#8217;iso.</p><p><span
style="text-decoration: underline;"><strong>Voici la manipulation permettant de reconstruire l&#8217;image iso:</strong></span><span
style="text-decoration: underline;"><strong><br
/> </strong></span></p><p>Mettre le français en langue par défaut:</p><blockquote><p><span
style="color: #0000ff;"><em><strong>echo &laquo;&nbsp;fr&nbsp;&raquo; | sudo tee iso/isolinux/lang</strong></em></span></p></blockquote><p>Prise en compte de toutes les modifications:</p><blockquote><p><span
style="color: #0000ff;"><em><strong>chroot squashfs update-initramfs -k all -u</strong></em></span></p></blockquote><p>Reconstruire le système squashfs:</p><blockquote><p><span
style="color: #0000ff;"><strong><em>rm iso/casper/filesystem.squashfs</em></strong></span></p><p><span
style="color: #0000ff;"><strong><em>chmod a+w iso/casper/filesystem.manifest</em></strong></span></p><p><span
style="color: #0000ff;"><strong><em>chroot squashfs dpkg-query -W &#8211;showformat=&#8217;${Package} ${Version}\n&#8217; &gt; iso/casper/filesystem.manifest</em></strong></span><span
style="color: #0000ff;"><strong><em><br
/> </em></strong></span></p><p><span
style="color: #0000ff;"><strong><em>chmod go-w iso/casper/filesystem.manifest</em></strong></span><span
style="color: #0000ff;"><strong><em><br
/> </em></strong></span></p><p><span
style="color: #0000ff;"><strong><em>chmod a+w iso/casper/filesystem.manifest-desktop </em></strong></span><span
style="color: #0000ff;"><strong><em><br
/> </em></strong></span></p><p><span
style="color: #0000ff;"><strong><em>chroot squashfs dpkg-query -W &#8211;showformat=&#8217;${Package} ${Version}\n&#8217; &gt; iso/casper/filesystem.manifest-desktop </em></strong></span><span
style="color: #0000ff;"><strong><em><br
/> </em></strong></span></p><p><span
style="color: #0000ff;"><strong><em>chmod go-w iso/casper/filesystem.manifest-desktop</em></strong></span></p></blockquote><p><span
style="color: #000000;">Compression du système squashfs: </span></p><blockquote><p><span
style="color: #0000ff;"><strong><em>cd squashfs<br
/> </em></strong></span></p><p><span
style="color: #0000ff;"><strong><em>mksquashfs . ../iso/casper/filesystem.squashfs -info<br
/> </em></strong></span></p><p><span
style="color: #0000ff;"><strong><em>cd ..</em></strong></span></p></blockquote><p><span
style="color: #000000;">Et pour finir, la génération de l&#8217;iso: </span></p><blockquote><p><span
style="color: #000000;"><span
style="color: #0000ff;"><em><strong>cp squashfs/boot/vmlinuz-2.6* iso/casper/vmlinuz </strong></em></span><span
style="color: #0000ff;"><em><strong><br
/> </strong></em></span></span></p><p><span
style="color: #000000;"><span
style="color: #0000ff;"><em><strong>cp squashfs/boot/initrd.img-2.6* iso/casper/initrd.gz</strong></em></span><span
style="color: #0000ff;"><em><strong><br
/> </strong></em></span></span></p><p><span
style="color: #000000;"><span
style="color: #0000ff;"><em><strong>cd iso</strong></em></span><span
style="color: #0000ff;"><em><strong><br
/> </strong></em></span></span></p><p><span
style="color: #000000;"><span
style="color: #0000ff;"><em><strong>bash -c &laquo;&nbsp;find . -path ./isolinux -prune -o -type f -not -name md5sum.txt -print0 | xargs -0 md5sum | tee md5sum.txt&nbsp;&raquo;</strong></em></span><span
style="color: #0000ff;"><em><strong><br
/> </strong></em></span></span></p><p><span
style="color: #000000;"><span
style="color: #0000ff;"><em><strong>cd ..</strong></em></span><span
style="color: #0000ff;"><em><strong><br
/> </strong></em></span></span></p><p><span
style="color: #000000;"><span
style="color: #0000ff;"><em><strong>mkisofs -r -V &laquo;&nbsp;Libre-Astux Live CD&nbsp;&raquo; -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o libre-astux-live-cd-i386.iso iso</strong></em></span><br
/> </span></p></blockquote><p>Vous voici à présent avec un Live-cd Ubuntu personnalisé. Je suis passé ici un petit peu vite sur la personnalisation de la distribution au niveau graphique car je ne m&#8217;y suis pas vraiment attardé. Je préciserai certainement ce point à la suite de billet lorsque j&#8217;y aurai regardé de plus près.</p><p>Ceux qui connaîtraient d&#8217;autres outils interressant concernant la récupération de données ou le test du matériel, n&#8217;hésitez pas à laisser ceux-ci en commentaire.</p><hr
/><strong><span
style="text-decoration: underline;">Ressources utilisées:</span></strong></p><p><a
href="http://doc.ubuntu-fr.org/personnaliser_livecd">La documentation Ubuntu sur la personnalisation de live-cd</a></p><p><a
href="http://doc.ubuntu-fr.org/personnaliser_livecd"></a><a
href="http://doc.ubuntu-fr.org/personnalisation">Documentation sur une personnalisation plus poussée (thèmes, grub, …)</a></p> ]]></content:encoded> <wfw:commentRss>http://www.libre-astux.info/449/personnaliser-un-live-cd-ubuntu-9-10.html/feed</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Mettre à jour son noyau Linux sans redémarrer avec ksplice</title><link>http://www.libre-astux.info/276/mettre-a-jour-son-noyau-linux-sans-redemarrer-avec-ksplice.html</link> <comments>http://www.libre-astux.info/276/mettre-a-jour-son-noyau-linux-sans-redemarrer-avec-ksplice.html#comments</comments> <pubDate>Fri, 14 Aug 2009 21:26:58 +0000</pubDate> <dc:creator>Gatien</dc:creator> <category><![CDATA[Astuces]]></category> <category><![CDATA[Planet-Ubuntu]]></category> <category><![CDATA[ksplice]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[noyau]]></category> <category><![CDATA[Sécurité]]></category> <guid
isPermaLink="false">http://www.libre-astux.info/?p=276</guid> <description><![CDATA[Pour tous ceux qui administrent des serveurs, un point critique est l&#8217;application des mises à jours notamment au niveau du noyau. En effet, certaines de ces mises à jours nécessitent un redémarrage du système. Une solution pour éviter de perturber les services fournis par ce serveur consiste à appliquer les mises à jours de sécurité [...]]]></description> <content:encoded><![CDATA[<p>Pour tous ceux qui administrent des serveurs, un point critique est l&#8217;application des mises à jours notamment au niveau du noyau. En effet, certaines de ces mises à jours nécessitent un redémarrage du système. Une solution pour éviter de perturber les services fournis par ce serveur consiste à appliquer les mises à jours de sécurité du noyau à chaud via <a
href="http://www.ksplice.com/" target="_self">ksplice</a>.</p><p>Un paquet deb est disponible <a
href="http://www.ksplice.com/uptrack/download?now=y" target="_self">ici</a>. Celui-ci permet l&#8217;installation de cet outil sur Ubuntu 9.04 mais aussi sur Debian.</p><blockquote><p><em><span
style="color: #ff0000;"><img
class="alignleft size-full wp-image-333" title="info" src="http://www.libre-astux.info/wp-content/2009/08/info.png" alt="" width="32" height="32" />Ce paquet n&#8217;est pas issu des dépôts officiels Ubuntu, son installation et utilisation se fait donc à vos risques.</span></em></p></blockquote> ]]></content:encoded> <wfw:commentRss>http://www.libre-astux.info/276/mettre-a-jour-son-noyau-linux-sans-redemarrer-avec-ksplice.html/feed</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
