<?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; réseau</title> <atom:link href="http://www.libre-astux.info/tag/reseau/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>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>Installer une imprimante partagée sur Linux et Windows</title><link>http://www.libre-astux.info/154/installer-une-imprimante-partagee-sur-linux-et-windows.html</link> <comments>http://www.libre-astux.info/154/installer-une-imprimante-partagee-sur-linux-et-windows.html#comments</comments> <pubDate>Tue, 04 Aug 2009 10:15:13 +0000</pubDate> <dc:creator>Gatien</dc:creator> <category><![CDATA[Planet-Libre]]></category> <category><![CDATA[Tutos]]></category> <category><![CDATA[clients]]></category> <category><![CDATA[cups]]></category> <category><![CDATA[imprimante]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[réseau]]></category> <category><![CDATA[serveur]]></category> <category><![CDATA[windows]]></category> <guid
isPermaLink="false">http://libre-astux.info/?p=154</guid> <description><![CDATA[Il arrive de plus en plus souvent d&#8217;avoir chez soi une imprimante installée sur un PC sous un système Linux et de vouloir rendre cette imprimante accessible directement depuis les autres postes du réseau, que ces machines soient sous Linux ou Windows. Voici donc la marche à suivre dans ces deux cas de figure pour [...]]]></description> <content:encoded><![CDATA[<p>Il arrive de plus en plus souvent d&#8217;avoir chez soi une<strong><em> imprimante installée sur un PC</em></strong> sous un système <strong><em>Linux </em></strong>et de vouloir <strong><em>rendre cette imprimante accessible</em></strong> directement depuis les autres postes du réseau, que ces machines soient sous <strong><em>Linux</em></strong> ou<strong><em> Windows</em></strong>.</p><p>Voici donc la marche à suivre dans ces deux cas de figure pour <em><strong>installer l&#8217;imprimante sur les autres postes sans utiliser Samba</strong></em>.</p><p><em><strong>Au niveau du serveur:</strong></em></p><blockquote><p>L<em><strong>&#8216;imprimante</strong></em> doit être <strong><em>activée et partagée</em></strong>. Elle doit être<strong><em> accessible depuis cups</em></strong>.</p><p>On peut le vérifier via un navigateur web à l&#8217;adresse</p><p><a
href="http://localhost:631/" target="_blank">http://localhost:631/</a></p><p>Dans l&#8217;onglet imprimante, nous pouvons voir les caractéristiques des différentes imprimantes installées.</p></blockquote><p><em><strong>Au niveau des postes clients:</strong></em></p><p><em><strong>Sous Linux:</strong></em></p><blockquote><p>Ouvrir le gestionnaire d&#8217;imprimante</p><p>Ajouter une imprimante</p><p>-&gt;<em><strong> Imprimante réseau</strong></em></p><p>-&gt;<em><strong> Imprimante IPP</strong></em></p><p>Mettre l&#8217;<strong><em>adresse IP du serveur</em></strong> sur lequel est branché l&#8217;imprimante</p><p>Cliquer sur <em><strong>détecter la file d&#8217;attente</strong></em></p><p>Séléctionner votre imprimante</p><p>Puis terminer l&#8217;installation</p><p>Votre imprimante est à présent installée.</p><p><em><strong><span
style="color: #ff0000;">Si vous ne pouvez ajouter une nouvelle imprimante, vérifier que cups soit bien actif, sinon l&#8217;installer ou le relancer</span></strong></em></p></blockquote><p><em><strong>Sous Windows:</strong></em></p><blockquote><p>Sous Windows la<strong><em> manipulation</em></strong> est légèrement <em><strong>plus complexe</strong></em> puisque l&#8217;on ne peut saisir directement une adresse IP comme serveur d&#8217;impression.</p><p>Il faut donc <em><strong>éditer le fichier hosts de Windows</strong></em> et y faire figurer notre serveur d&#8217;impression:</p><p>edit c:/windows/system32/drivers/etc/hosts</p><p>-&gt; <strong><span
style="color: #008000;">192.168.0.200 printserv</span></strong></p><p>Il faut ensuite ajouter une <em><strong>nouvelle imprimante</strong></em> via le <strong><em>panneau de configuration</em></strong>.</p><p>Choisir <strong><em>imprimante réseau</em></strong> puis <strong><em>saisir l&#8217;url de l&#8217;imprimante</em></strong></p><p>-&gt; <strong><em><span
style="color: #008000;">http://printserv:631/printers/Nom-de-l&#8217;imprimante</span></em></strong></p><p>Le<em><strong> nom de l&#8217;imprimante</strong></em> est <strong><em>visible sous cups</em></strong> sur le serveur d&#8217;impression.</p><p>Une fois cette imprimante sélectionnée, il faut choisir le pilote:</p><p><strong><em>Generique -&gt; MS publisher color printer</em></strong></p></blockquote><p>Et voici une imprimante réseau installée sur un poste Linux et accessible sur les différents postes du réseau.</p> ]]></content:encoded> <wfw:commentRss>http://www.libre-astux.info/154/installer-une-imprimante-partagee-sur-linux-et-windows.html/feed</wfw:commentRss> <slash:comments>2</slash:comments> </item> </channel> </rss>
