Le blog de pingou - Tag - BlogLe blog de pingou, ses actualités sur Fedora, ses RPMs, ses tests, son Linux... :-)
Pingou's weblog, his fedora's news, his RPMs, his tests, his Linux... :-)2022-02-17T10:46:15+01:00pingouurn:md5:66db5ce1ed1a80cb2f424695b4bb7780DotclearNew look !urn:md5:b1d7dc26274bafa55e69ae315b693ab82009-09-03T23:07:00+02:002009-09-03T23:07:00+02:00Pierre-YvesGénéralartworkBlogdotclear<p>Nouveau thème pour le blog</p>
<p>New theme for my blog</p> <p><strong><em>French version</em></strong></p>
<p>Ce soir j'ai décidé de passer mon blog à un thème perso :-)</p>
<p>J'avais depuis longtemps envie de changer le thème que j'utilisais avant (White Road pour le pas le nommer) qui avais quelques erreurs css est été très lourd niveau code.</p>
<p>J'ai donc pris le thème par défaut et l'ai modifié comme je voulais. J'y ai adjoint l'image tiré d'un fond d'écran venant <a href="http://ftp.gnome.org/pub/GNOME/teams/art.gnome.org/backgrounds/NATURE-WhiteFlower_1024x768.jpg">de art.gnome</a>.</p>
<p>De fait j'avais fait un autre thème mais la license l'image que j'utilisais (CC BY-NC-ND) ne me permets pas de la modifier, j'ai demandé à l'auteur s'il me donnerai son accord quand même et j'attends une réponse, donc le thème est peut être encore amené à changer ;-)</p>
<p>Vous aimez ??</p>
<p>PS: C'est vraiment une période de renouveau pour le blog, j'ai même refais mon avatar !! :-D</p>
<p><br />
<br />
<strong><em>English version</em></strong></p>
<p>Tonight I have decided to change the theme of my blog.</p>
<p>For some time I wanted to change the theme that I was using (White Road to not name it) which had some css issues and whose code wasn't the simplest.</p>
<p>I therefore took the default theme and changed it the way I wanted it, I added the picture taken from <a href="http://ftp.gnome.org/pub/GNOME/teams/art.gnome.org/backgrounds/NATURE-WhiteFlower_1024x768.jpg">art.gnome</a>.</p>
<p>Originally I made another theme with another picture but I realized too late that the license of the picture was CC BY-NC-ND so I couldn't modify it. I asked the author for his permission and I'm waiting for an answer, so the theme of the blog might still change ;-)</p>
<p>Do you like it ??</p>
<p>PS: It really is a time for change for this blog, I even redraw my avatar !! :-D</p>Nouveau changement sur Fedora-frurn:md5:d08feca3ed75e19f5521737c8ccc444b2008-04-23T20:08:00+02:002008-04-23T19:11:24+02:00Pierre-YvesGénéralBlog<p>Another change</p>
<p>Ici aussi ça bouge</p> <p><strong><em>French version </em></strong></p>
<p>Après le changement de <a href="http://blog.ulysses.fr/index.php/post/15/04/2008/Le-TrashiestBlog-demenage-Et-moi-avec">trasher</a> c'est mon tour.</p>
<p>Mon blog change d'adresse. Il reste dans le domaine du connu, c'est toujours <a href="http://pingoured.fr/blog">pingoured.fr/blog</a> mais le serveur derrière à changer :)</p>
<p>Pensez à mettre vos rss et favoris à jours ;)</p>
<p><strong><em>English version</em></strong></p>
<p>After the domain name change of <a href="http://blog.ulysses.fr/index.php/post/15/04/2008/Le-TrashiestBlog-demenage-Et-moi-avec" hreflang="fr">trasher</a> it is my turn.</p>
<p>My webblog changes, its address, not a lot it still remains <a href="http://pingoured.fr/blog">pingoured.fr/blog</a> but the server behind has changed now. :)</p>
<p>Do not forget to update your bookmarks or rss ;)</p>Comment j'ai cassé mon blog...urn:md5:5704945cc9f35d16910861ec5d6467892007-06-04T21:49:00+02:002007-06-04T21:01:31+02:00Pierre-YvesGénéralBlogdotclear<p>How I have break my weblog</p>
<p>Eh oui j'ai cassé mon blog... et comme il faut... :-)</p> <p><strong><em>French version</em></strong></p>
<p>Ce week-end j'ai cassé mon <a href="http://fr.wikipedia.org/wiki/Blog" hreflang="fr">blog,</a> en effet suite à une erreur de ma part je me suis retrouvé à devoir changer le mot de passe de mon blog. Le problème c'est que ni <a href="http://fr.wikipedia.org/wiki/Sendmail" hreflang="fr">sendmail</a> ni <a href="http://fr.wikipedia.org/wiki/Postfix" hreflang="fr">postfix</a> ne sont configuré sur mon serveur, donc je ne pouvais recevoir le mail contenant le nouveau mot de passe...</p>
<p><ins>J'ai essayé :</ins></p>
<ul>
<li>De changer le mot de passe directement dans la table <a href="http://fr.wikipedia.org/wiki/Mysql" hreflang="fr">mysql</a></li>
<li>Changer le mot de passe par <a href="http://fr.wikipedia.org/wiki/Phpmyadmin" hreflang="fr">phpMyAdmin</a></li>
<li>Changer le code <a href="http://fr.wikipedia.org/wiki/Php" hreflang="fr">php</a> pour lui demander de ne plus générer un mot de passe aléatoire mais un fixé</li>
</ul>
<p>Aucune de ces solutions n'a permis d'ouvrir mon blog...</p>
<p><ins>La solution :</ins></p>
<ul>
<li>J'ai commencé par sauvegarder la base du blog (phpMyAdmin)</li>
<li>Exportation de la base mysql dans un fichier texte</li>
<li>J'ai supprimé le fichier config.php</li>
<li>Réinstallation de <a href="http://www.dotclear.net/" hreflang="fr">dotclear 2</a></li>
<li>Importation des données de la base du premier blog dans le deuxième blog (par le fichier texte)</li>
<li>Création de tous les anciens billets (autrement dis j'ai recrée tous mes messages par <a href="http://fr.wikipedia.org/wiki/Copier-coller" hreflang="fr">copier-coller</a> depuis phpMyAdmin dans le blog)</li>
</ul>
<p><ins>Conclusion :</ins></p>
<ul>
<li>La solution est valable pour les petits blog comme le mien où le nombre de messages n'est pas trop important</li>
<li>J'ai crée un utilisateur de sauvegarde sur mon blog, en cas de problème il me permettra de me connecter à l'interface utilisateur est corriger ce qui dois l'être</li>
<li>Je dois vraiment faire quelque chose pour mes mots de passe... :-)</li>
</ul>
<p><br />
<br />
<strong><em>English version</em></strong></p>
<p>This week end I made a mistake that has the consequence to obliged me to change the password of my <a href="http://en.wikipedia.org/wiki/Weblog" hreflang="en">weblog</a>. As neither <a href="http://en.wikipedia.org/wiki/Sendmail" hreflang="en">sendmail</a> or <a href="http://en.wikipedia.org/wiki/Postfix" hreflang="en">postfix</a> are configured on my server I could not receive the mail with the new password.</p>
<p><ins>I tried:</ins></p>
<ul>
<li>To change the password directly in the <a href="http://en.wikipedia.org/wiki/Mysql" hreflang="en">mysql</a>'s table</li>
<li>To change the password using <a href="http://en.wikipedia.org/wiki/Phpmyadmin" hreflang="en">phpMyAdmin</a></li>
<li>To change directly the code <a href="http://en.wikipedia.org/wiki/Php" hreflang="en">php</a> to stop the generation of a random password and to put a fixed one instead.</li>
</ul>
<p><ins>My solution:</ins></p>
<ul>
<li>First make a copy of the database as backup (phpMyAdmin)</li>
<li>Export of the database itself into a text file (using phpMyAdmin)</li>
<li>delete the file config.php</li>
<li>Set up a new <a href="http://en.wikipedia.org/wiki/Dotclear" hreflang="en">dotclear 2</a> (my weblog's plateform)</li>
<li>Import the data from the first database to the new one (using the text file)</li>
<li>Creation of all the old post (Basically I have have just <a href="http://en.wikipedia.org/wiki/Copypaste" hreflang="en">copy-paste</a> the data from phpMyAdmin to the weblog)</li>
</ul>
<p><ins> My conclusion:</ins></p>
<ul>
<li>This solution works but it is only feasible/suitable for small weblog like mine...</li>
<li>I created a new user to be able to have another access to dotclear's administrator interface in such a case</li>
<li>I really have to do something for my passwords...</li>
</ul>Installer un deuxième blogurn:md5:bdec3762da29da1dd697ecb35faccdab2007-05-16T17:52:00+00:002007-06-04T18:04:56+00:00Pierre-YvesGénéralBlogdotclear<p>How to set up a second blog under dotclear 2</p>
<p>Comment installer et configurer un second blog dans dotclear 2</p> <p><strong><em>French version</em></strong></p>
<p>Une des nouvelles offres avec <a href="http://doc.dotclear.net/2.0" hreflang="fr">dotclear 2</a> est la possibilité d'héberger plusieurs <a href="http://fr.wikipedia.org/wiki/Blog" hreflang="fr">blogs</a> sur un même serveur.</p>
<p>Alors je me suis dis, pourquoi ne pas tester ça :-)</p>
<p><a href="http://doc.dotclear.net/2.0/admin/multiblog" hreflang="fr">Site officiel</a></p>
<p>Brièvement comment faire :</p>
<ul>
<li>Installer <a href="http://doc.dotclear.net/2.0/admin/install" hreflang="fr">dotclear 2</a> dans votre dossier <code>html</code> de apache dans un dossier appelé ici <strong>dc2</strong></li>
<li>Toujours dans votre dossier <code>html</code></li>
</ul>
<pre> => Créer un dossier pour chacun de vos blogs
-> ici Blog1 et Blog 2</pre>
<ul>
<li>Dans ces dossiers mettre un dossier <code><strong>themes</strong></code> et <code> <strong>public</strong></code><br /><em>(pensez à mettre une copie de vos thèmes dans chacun des dossiers <code><strong>themes</strong></code> que vous venez de créer)</em></li>
<li>Toujours dans ces deux dossiers.</li>
</ul>
<pre> => Créer un fichier <code><strong>index.php</strong></code> contenant</pre>
<pre>
<?php
define('DC_BLOG_ID','Blog2'); # identifiant du blog
require dirname(__FILE__ )'/../dc2/inc/public/prepend.php';
?>
</pre>
<p>et</p>
<pre>
<?php
define('DC_BLOG_ID','Blog2'); # identifiant du blog
require dirname(__FILE__).'/../dc2/inc/public/prepend.php';
?>
</pre>
<ul>
<li>Ensuite créer les blogs par l'interface graphique de dotclear</li>
</ul>
<p>=> onglet "blog" en haut à gauche => créer un nouveau blog (ici Blog1)</p>
<p>-ID Blog1</p>
<p>-URL http://votredomaine/Blog1</p>
<p>-Titre votrepremierblog</p>
<ul>
<li>Puis dans l'onglet <code>about:config</code> pour chaque blog faire les mises à jours suivantes</li>
</ul>
<pre> * public_path : <strong>..</strong>/blog1/public
* public_url : /blog1/public
* theme_path : <strong>..</strong>/blog1/themes
* theme_url : /blog1/themes</pre>
<p><em>Attention aux <strong>..</strong> dans les path ils sont très importants</em></p>
<ul>
<li>Enfin crée dans le dossier <code>/dc2/Blog2/</code> crée le fichier <code><strong>index.php</strong></code> contenant :</li>
</ul>
<pre>
<?php
# ***** BEGIN LICENSE BLOCK *****
# This file is part of DotClear.
# Copyright (c) 2005 Olivier Meunier and contributors. All rights
# reserved.
#
# DotClear is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# DotClear is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DotClear; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ***** END LICENSE BLOCK *****
if (isset($_SERVER['DC_BLOG_ID'])) {
define('DC_BLOG_ID',$_SERVER['DC_BLOG_ID']);
} elseif (isset($_SERVER['REDIRECT_DC_BLOG_ID'])) {
define('DC_BLOG_ID',$_SERVER['REDIRECT_DC_BLOG_ID']);
} elseif (isset($_SERVER['REDIRECT_REDIRECT_DC_BLOG_ID'])) {
define('DC_BLOG_ID',$_SERVER['REDIRECT_REDIRECT_DC_BLOG_ID']);
}else {
# Define your blog here
define('DC_BLOG_ID','Blog2');
}
require dirname(__FILE__).'/inc/public/prepend.php';
?>
</pre>
<hr />
<p><strong><em>English version</em></strong></p>
<p>One of the new possiblity with <a href="http://doc.dotclear.net/2.0" hreflang="fr">dotclear 2</a> is the ability to make different <a href="http://en.wikipedia.org/wiki/Blog" hreflang="En">blogs</a> on the same server.</p>
<p>So I decide to try this possibility :-)</p>
<p><a href="http://doc.dotclear.net/2.0/admin/multiblog" hreflang="fr">Official website</a></p>
<p>Briefly how to proceed:</p>
<ul>
<li>Set up <a href="http://doc.dotclear.net/2.0/admin/install" hreflang="fr">dotclear 2</a> in your <code>html</code> folder from <a href="http://en.wikipedia.org/wiki/Apache_HTTP_Server" hreflang="en">apache</a> in a folder that we will be called <strong>dc2</strong> for the example.</li>
<li>In the same folder <code>html</code></li>
</ul>
<pre> => Make a new directory for each of your blog
-> Here it will be Blog1 and Blog 2</pre>
<ul>
<li>In these two directory add the directory <code><strong>themes</strong></code> and <code> <strong>public</strong></code><br /><em>(Do not forget to copy your themes in the directory <code><strong>themes</strong></code> that you have just made</em></li>
<li>In the same two folder</li>
</ul>
<pre> => Make the file <code><strong>index.php</strong></code> including for the Blog1</pre>
<pre>
<?php
define('DC_BLOG_ID','Blog1'); # identifiant du blog
require dirname(__FILE__ )'/../dc2/inc/public/prepend.php';
?>
</pre>
<p>and for the Blog2</p>
<pre>
<?php
define('DC_BLOG_ID','Blog2'); # identifiant du blog
require dirname(__FILE__).'/../dc2/inc/public/prepend.php';
?>
</pre>
<ul>
<li>Then create the two new blog from the graphical interface of Dotclear</li>
</ul>
<p>=> Bouton on the top-left => créer un nouveau blog (ici Blog1)</p>
<p>-ID Blog1</p>
<p>-URL http://yourdomain/Blog1</p>
<p>-Titre myfirstblog</p>
<ul>
<li>In the section <code>about:config</code> for each blog make the following change</li>
</ul>
<pre> * public_path : <strong>..</strong>/blog1/public
* public_url : /blog1/public
* theme_path : <strong>..</strong>/blog1/themes
* theme_url : /blog1/themes</pre>
<p><em>Take care to the <strong>..</strong> in the path they are very important!!</em></p>
<ul>
<li>Then in the directory <code>/dc2/Blog2/</code> make the file <code><strong>index.php</strong></code> with :</li>
</ul>
<pre>
<?php
# ***** BEGIN LICENSE BLOCK *****
# This file is part of DotClear.
# Copyright (c) 2005 Olivier Meunier and contributors. All rights
# reserved.
#
# DotClear is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# DotClear is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with DotClear; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# ***** END LICENSE BLOCK *****
if (isset($_SERVER['DC_BLOG_ID'])) {
define('DC_BLOG_ID',$_SERVER['DC_BLOG_ID']);
} elseif (isset($_SERVER['REDIRECT_DC_BLOG_ID'])) {
define('DC_BLOG_ID',$_SERVER['REDIRECT_DC_BLOG_ID']);
} elseif (isset($_SERVER['REDIRECT_REDIRECT_DC_BLOG_ID'])) {
define('DC_BLOG_ID',$_SERVER['REDIRECT_REDIRECT_DC_BLOG_ID']);
}else {
# Define your blog here
define('DC_BLOG_ID','Blog2');
}
require dirname(__FILE__).'/inc/public/prepend.php';
?>
</pre>