<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>linux-tutorial on Demoniak Network</title>
		<link>https://blog.demoniak.ch/categories/linux-tutorial/</link>
		<description>Recent content in linux-tutorial on Demoniak Network</description>
		<generator>Hugo</generator>
		<language>en-US</language>
		
		
		
		
			<lastBuildDate>Mon, 14 Feb 2022 00:00:00 +0100</lastBuildDate>
		
			<atom:link href="https://blog.demoniak.ch/categories/linux-tutorial/index.xml" rel="self" type="application/rss+xml" />
			<item>
				<title>Debian - Firewall avec UFW</title>
				<link>https://blog.demoniak.ch/tutoriels/debian-firewall-avec-ufw/</link>
				<pubDate>Mon, 14 Feb 2022 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/tutoriels/debian-firewall-avec-ufw/</guid>
				<description>&lt;p&gt;La sécurité est un point crucial. Il ne se passe pas une journée sans qu&amp;rsquo;un serveur soit piraté de par le monde. Que ce soit une attaque ciblée et tout simplement les travaux de recherche d&amp;rsquo;un jeune étudiant en informatique, les serveurs sont des cibles privilégiées, car bien souvent directement exposés sur internet. Bien entendu, sécuriser un serveur ne se limite pas à installer et configurer un firewall, mais c&amp;rsquo;est déjà un bon début ! N&amp;rsquo;oubliez pas non plus de le mettre à jour régulièrement afin de combler d&amp;rsquo;éventuelles failles de sécurité.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debian – Installer un serveur VPN OpenVPN</title>
				<link>https://blog.demoniak.ch/tutoriels/debian-installer-serveur-vpn-openvpn/</link>
				<pubDate>Thu, 18 Feb 2016 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/tutoriels/debian-installer-serveur-vpn-openvpn/</guid>
				<description>&lt;p&gt;L&amp;rsquo;utilisation d&amp;rsquo;un VPN est depuis plusieurs années devenue quelque chose de commun. Les raisons d&amp;rsquo;utiliser un VPN peuvent être multiples variées. Dans cet article, nous ne rentrerons pas en matière du bien-fondé ou non de ce choix, qui finalement vous appartient.&lt;/p&gt;&#xA;&lt;p&gt;Les VPN PPTP étant devenus perfectibles avec les années, nous ne pouvons que vous recommander de ne plus utiliser cette technologie, mais d&amp;rsquo;opter pour une solution basée sur OpenVPN.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debian - Installer Plex Media Server</title>
				<link>https://blog.demoniak.ch/tutoriels/debian-installer-plex-media-server/</link>
				<pubDate>Wed, 17 Feb 2016 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/tutoriels/debian-installer-plex-media-server/</guid>
				<description>&lt;p&gt;Pour ceux qui ne connaissent pas Plex, je vous invite à lire &lt;a href=&#34;https://blog.demoniak.ch/posts/2015/01/plex-un-systeme-multimedia-puissant-et-convivial/&#34;&gt;l&amp;rsquo;article&lt;/a&gt; que j&amp;rsquo;ai écrit à son sujet. Vous y découvrirez à quel point ce système multimédia surpasse tous ses concurrents du moment. Pour résumer très rapidement le produit, sachez qu&amp;rsquo;il se compose de deux composants principaux: la partie serveur et client. Dans ce tutoriel nous allons nous intéresser à la partie serveur&amp;hellip; C&amp;rsquo;est parti !&lt;/p&gt;&#xA;&lt;h3 id=&#34;prérequis&#34;&gt;Prérequis&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Un serveur installé sous Debian version 7 ou 8 de préférence.&lt;/li&gt;&#xA;&lt;li&gt;Un accès SSH au serveur&lt;/li&gt;&#xA;&lt;li&gt;Un compte avec les droits d&amp;rsquo;administration.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;installation-du-paquet-et-de-son-dépôt&#34;&gt;Installation du paquet et de son dépôt&lt;/h3&gt;&#xA;&lt;p&gt;On commence par mettre à jour son serveur Debian à l&amp;rsquo;aide de la commande suivante:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debian - Installer UnixBench</title>
				<link>https://blog.demoniak.ch/tutoriels/debian-installer-unixbench/</link>
				<pubDate>Tue, 16 Feb 2016 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/tutoriels/debian-installer-unixbench/</guid>
				<description>&lt;p&gt;Dans ce tutoriel, nous allons voir qu&amp;rsquo;il est très simple d&amp;rsquo;installer UnixBench sur un serveur Debian/Ubuntu. Pour rappel, UnixBench est un utilitaire permettant de mesurer de manière assez précise les performances d&amp;rsquo;une machine fonctionnant sous Linux.&lt;/p&gt;&#xA;&lt;h3 id=&#34;prérequis&#34;&gt;Prérequis&lt;/h3&gt;&#xA;&lt;p&gt;Pour installer et utiliser UnixBench, il vous faut:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Une machine fonctionnant sous Linux, dans notre exemple un serveur avec Debian 8&lt;/li&gt;&#xA;&lt;li&gt;L&amp;rsquo;accès &amp;ldquo;root&amp;rdquo;, ou un accès avec des privilèges d&amp;rsquo;administrateur.&lt;/li&gt;&#xA;&lt;li&gt;Une bonne heure de libre devant vous.&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;recommandations&#34;&gt;Recommandations&lt;/h3&gt;&#xA;&lt;p&gt;Pour se faire une idée la plus précise possible des performances de la machine à tester, je vous recommande d&amp;rsquo;utiliser une installation toute fraiche du système d&amp;rsquo;exploitation, de préférence sans interface graphique ni logiciels superflus. L&amp;rsquo;idéal est d&amp;rsquo;utiliser une distribution serveur. Pour comparer plusieurs machines, utilisez toujours la même distribution, sinon vous pourriez fausser les résultats.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Purger le cache du DNS</title>
				<link>https://blog.demoniak.ch/posts/2015/01/purger-le-cache-du-dns/</link>
				<pubDate>Wed, 21 Jan 2015 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/posts/2015/01/purger-le-cache-du-dns/</guid>
				<description>&lt;p&gt;Il est parfois nécessaire de purger le cache du DNS, par exemple, lorsque vous avez changé d&amp;rsquo;hébergeur pour votre site web. Pour se faire, et selon votre système d&amp;rsquo;exploitation, il faut utiliser les commandes suivantes:&lt;/p&gt;&#xA;&lt;h2 id=&#34;sous-mac-os-x&#34;&gt;Sous Mac OS X&lt;/h2&gt;&#xA;&lt;p&gt;Mac OS X 10.10.4 à 10.11.x&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo killall -HUP mDNSResponder&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Mac OS X 10.10.0 à 10.10.3&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo discoveryutil udnsflushcache&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Mac OS X 10.7 à 10.9&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo killall -HUP mDNSResponder&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Mac OS X 10.5 à 10.6&lt;/p&gt;</description>
			</item>
			<item>
				<title>Connexion SSH sans mot de passe</title>
				<link>https://blog.demoniak.ch/posts/2012/01/connexion-ssh-sans-mot-de-passe/</link>
				<pubDate>Thu, 19 Jan 2012 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/posts/2012/01/connexion-ssh-sans-mot-de-passe/</guid>
				<description>&lt;p&gt;Pour ce connecter sur un serveur distant via SSH sans devoir entrer son mot de passe à chaque connexion, il suffit de créer un certificat sur la machine cliente et de copier ensuite la clé publique sur le serveur distant.&lt;/p&gt;&#xA;&lt;h2 id=&#34;sur-la-machine-cliente&#34;&gt;Sur la machine cliente:&lt;/h2&gt;&#xA;&lt;p&gt;On commence donc par générer les clés nécessaires:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ssh-keygen -t rsa&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Cette commande à généré deux clés dans le répertoire .ssh de l&amp;rsquo;utilisateur courant. La clé publique (id_rsa.pub) et la clé privée (id_rsa). On copie dans le presse-papier le contenu de la clé publique que l&amp;rsquo;on copiera ensuite sur le serveur distant.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debian - Adresse IP, DNS et Hostname</title>
				<link>https://blog.demoniak.ch/posts/2012/01/debian-adresse-ip-dns-et-hostname/</link>
				<pubDate>Sun, 15 Jan 2012 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/posts/2012/01/debian-adresse-ip-dns-et-hostname/</guid>
				<description>&lt;h3 id=&#34;configuration-dune-adresse-ip-fixe&#34;&gt;Configuration d&amp;rsquo;une adresse IP fixe&lt;/h3&gt;&#xA;&lt;p&gt;Editez le fichier &lt;strong&gt;interfaces&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;nano /etc/network/interfaces&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Votre fichier devrait ressembler à ceci:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;auto eth0&#xA;# Pour IPv4&#xA;# =========&#xA;iface eth0 inet static&#xA;address 192.168.0.1&#xA;netmask 255.255.255.0&#xA;network 192.168.1.0&#xA;broadcast 192.168.0.255&#xA;gateway 192.168.0.254&#xA;&#xA;# Pour IPv6&#xA;# =========&#xA;iface eth0 inet6 static&#xA;address 2001:41D0:2:2B9f::1&#xA;netmask 64&#xA;gateway 2001:41D0:2::1&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Si vous avez plusieurs adresses IP sur la même interface, il suffit d&amp;rsquo;ajouter une commande post-up et pre-down par adresse IP.&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debian - Backup MX</title>
				<link>https://blog.demoniak.ch/posts/2012/01/debian-backup-mx/</link>
				<pubDate>Sun, 15 Jan 2012 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/posts/2012/01/debian-backup-mx/</guid>
				<description>&lt;p&gt;Dan ce tutoriel, nous allons installer et configurer un serveur Debian avec Postfix afin d&amp;rsquo;en faire un serveur de mail secondaire, plus communément appelé &amp;ldquo;Backup MX&amp;rdquo;&lt;/p&gt;&#xA;&lt;h2 id=&#34;principe&#34;&gt;Principe&lt;/h2&gt;&#xA;&lt;p&gt;Pourquoi créer un serveur secondaire pour ses emails ? La réponse est en soit assez simple; pour ne pas perdre des emails en cas de panne du serveur principal.&lt;/p&gt;&#xA;&lt;h2 id=&#34;prérequis-et-installations&#34;&gt;Prérequis et installations&lt;/h2&gt;&#xA;&lt;h3 id=&#34;serveurs-dns&#34;&gt;Serveurs DNS&lt;/h3&gt;&#xA;&lt;p&gt;Avant toute chose, il faut s&amp;rsquo;assurer que vous ayez au moins deux serveurs DNS externes afin de palier toute panne. A quoi vous servirait-il d&amp;rsquo;avoir deux serveurs de mails si votre seul et unique serveur DNS venait à tomber en panne ? Il vous faut donc deux serveurs :&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debian - Installer Parallels Tools</title>
				<link>https://blog.demoniak.ch/posts/2012/01/debian-installer-parallels-tools/</link>
				<pubDate>Sun, 15 Jan 2012 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/posts/2012/01/debian-installer-parallels-tools/</guid>
				<description>&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Charger l&amp;rsquo;image des &amp;ldquo;Parallel Tools&amp;rdquo; dans la machine virtuelle.&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Si le répertoire &amp;ldquo;/mnt/cdrom&amp;rdquo; n&amp;rsquo;existe pas, il faut alors le créer avec la commande:&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;mkdir /mnt/cdrom&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;3&#34;&gt;&#xA;&lt;li&gt;Depuis Debian, on monte le CD:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;mount -t iso9660 /dev/cdrom /mnt/cdrom&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;4&#34;&gt;&#xA;&lt;li&gt;On se positionne sur le CD:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cd /mnt/cdrom&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;5&#34;&gt;&#xA;&lt;li&gt;On lance l&amp;rsquo;installation:&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;./install&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ol start=&#34;6&#34;&gt;&#xA;&lt;li&gt;Suivez les informations à l&amp;rsquo;écran pour finaliser l&amp;rsquo;installation. N&amp;rsquo;oubliez pas de rebooter la machine une fois l&amp;rsquo;installation terminée.&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
			</item>
			<item>
				<title>Debian - Installer un serveur FTP avec vsftpd</title>
				<link>https://blog.demoniak.ch/posts/2012/01/debian-installer-un-serveur-ftp-avec-vsftpd/</link>
				<pubDate>Sun, 15 Jan 2012 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/posts/2012/01/debian-installer-un-serveur-ftp-avec-vsftpd/</guid>
				<description>&lt;h2 id=&#34;principe&#34;&gt;Principe&lt;/h2&gt;&#xA;&lt;p&gt;Il s&amp;rsquo;agit d&amp;rsquo;installer un serveur FTP. vsftpd est l&amp;rsquo;un des serveur FTP les plus simple à installer et configurer, en quelques minutes le système sera opérationnel.&lt;/p&gt;&#xA;&lt;h2 id=&#34;prérequis&#34;&gt;Prérequis&lt;/h2&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Debian&lt;/li&gt;&#xA;&lt;li&gt;Ubuntu&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;installation&#34;&gt;Installation&lt;/h2&gt;&#xA;&lt;p&gt;Pour installer vsftpd:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;apt-get update &amp;amp;&amp;amp; apt-get upgrade -y&#xA;apt-get install vsftpd&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Le serveur FTP est maintenant installé et démarré avec une configuration de base.&lt;/p&gt;&#xA;&lt;h2 id=&#34;configuration&#34;&gt;Configuration&lt;/h2&gt;&#xA;&lt;p&gt;Tous les paramètres se trouvent dans le fichier &amp;ldquo;&lt;strong&gt;vsftpd.conf&amp;rdquo;&lt;/strong&gt; que l&amp;rsquo;on édite avec la commande suivante:&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debian - Installer un serveur VPN PPTP</title>
				<link>https://blog.demoniak.ch/posts/2012/01/debian-installer-un-serveur-vpn-pptp/</link>
				<pubDate>Sun, 15 Jan 2012 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/posts/2012/01/debian-installer-un-serveur-vpn-pptp/</guid>
				<description>&lt;h2 id=&#34;dont-cross-the-line&#34;&gt;&lt;img&#xA;    src=&#34;https://blog.demoniak.ch/posts/2012/01/debian-installer-un-serveur-vpn-pptp/images/dont-cross-the-line-149x30-1.jpg&#34; alt=&#34;dont-cross-the-line&#34;&#xA;    &#xA;    width=&#34;149&#34; height=&#34;30&#34;&#xA;     /&gt;&lt;/h2&gt;&#xA;&lt;table class=&#34;aligncenter&#34; style=&#34;width: 600px;&#34; border=&#34;1&#34;&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td style=&#34;width: 100px;&#34;&gt;&amp;nbsp;&lt;img class=&#34;aligncenter size-Grande wp-image-10398&#34; src=&#34;https://blog.demoniak.ch/posts/2012/01/debian-installer-un-serveur-vpn-pptp/images/attention-35x30.png&#34; alt=&#34;attention&#34; width=&#34;35&#34; height=&#34;30&#34;&gt;&lt;/td&gt;&lt;td style=&#34;width: 400px; text-align: justify;&#34;&gt;&lt;p style=&#34;text-align: center;&#34;&gt;&lt;strong&gt;Ce tutoriel n&#39;est plus à jour !&lt;/strong&gt;&lt;/p&gt;&lt;p style=&#34;text-align: center;&#34;&gt;&lt;strong&gt;Pour installer très simplement un serveur VPN sécurisé, nous vous recommandons ce guide:&lt;/strong&gt;&lt;/p&gt;&lt;p style=&#34;text-align: center;&#34;&gt;&lt;strong&gt;&lt;a href=&#34;https://blog.demoniak.ch/debian-installer-serveur-vpn-openvpn/&#34;&gt;Debian - Installer un serveur VPN OpenVPN&lt;/a&gt;&lt;/strong&gt;&lt;/p&gt;&lt;/td&gt;&lt;td style=&#34;width: 100px;&#34;&gt;&amp;nbsp;&lt;img class=&#34;aligncenter size-Grande wp-image-10398&#34; src=&#34;https://blog.demoniak.ch/posts/2012/01/debian-installer-un-serveur-vpn-pptp/images/attention-35x30.png&#34; alt=&#34;attention&#34; width=&#34;35&#34; height=&#34;30&#34;&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&#xA;&lt;p&gt;&lt;img&#xA;    src=&#34;https://blog.demoniak.ch/posts/2012/01/debian-installer-un-serveur-vpn-pptp/images/dont-cross-the-line-149x30-1.jpg&#34; alt=&#34;dont-cross-the-line&#34;&#xA;    &#xA;    width=&#34;149&#34; height=&#34;30&#34;&#xA;     /&gt;&lt;/p&gt;&#xA;&lt;h2 id=&#34;principe&#34;&gt;Principe&lt;/h2&gt;&#xA;&lt;p&gt;Voici un petit tutoriel pour permettre l&amp;rsquo;installation d&amp;rsquo;un serveur VPN PPTP sous Debian.&lt;/p&gt;&#xA;&lt;h3 id=&#34;prérequis&#34;&gt;Prérequis&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Un serveur installé avec Debian 6&lt;/li&gt;&#xA;&lt;li&gt;Un accès en SSH&lt;/li&gt;&#xA;&lt;li&gt;Un compte avec des droits d&amp;rsquo;administrateur&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;installation&#34;&gt;Installation&lt;/h3&gt;&#xA;&lt;p&gt;La première opération conciste donc à installer le paquet pptp :&lt;/p&gt;</description>
			</item>
			<item>
				<title>Debian - Monter un partage SMB ou CIFS</title>
				<link>https://blog.demoniak.ch/posts/2012/01/debian-monter-un-partage-smb-ou-cifs/</link>
				<pubDate>Sun, 15 Jan 2012 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/posts/2012/01/debian-monter-un-partage-smb-ou-cifs/</guid>
				<description>&lt;p&gt;Pour monter un partage SMB ou CIFS sur un serveur Debian, il faut utiliser la commande suivante:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mount -t smbfs -o username&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;mylogin,password&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;mypassword //server/share/&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
			</item>
			<item>
				<title>Debian - Serveur DNS secondaire avec BIND</title>
				<link>https://blog.demoniak.ch/posts/2012/01/debian-serveur-dns-secondaire-avec-bind/</link>
				<pubDate>Sun, 15 Jan 2012 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/posts/2012/01/debian-serveur-dns-secondaire-avec-bind/</guid>
				<description>&lt;p&gt;Editez le fichier &amp;ldquo;&lt;strong&gt;/etc/bind/named.conf.local&lt;/strong&gt;&amp;rdquo;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;nano /etc/bind/named.conf.local&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Modifiez le fichier comme suit, en y ajoutant le nom de domaine ainsi que l&amp;rsquo;adresse IP du serveur primaire.&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;zone &amp;#34;domaine.com&amp;#34; {&#xA;type slave;&#xA;file &amp;#34;db.domaine.com&amp;#34;;&#xA;masters {1.2.3.4; };&#xA;};&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Relancez le service Bind:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/etc/init.d/bind9 restart&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Pour forcer le téléchargement de la zone:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;/etc/init.d/bind9 reload&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
			</item>
			<item>
				<title>Debian - Shell Script</title>
				<link>https://blog.demoniak.ch/posts/2012/01/debian-shell-script/</link>
				<pubDate>Sun, 15 Jan 2012 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/posts/2012/01/debian-shell-script/</guid>
				<description>&lt;p&gt;Créer un Shell Script est relativement simple. C&amp;rsquo;est l&amp;rsquo;équivalent du fichiet BAT sous DOS ou Windows. On commence par créer un fichier à l&amp;rsquo;ade de la commande suivante:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;nano monscript.sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;et on y ajoute les commandes que l&amp;rsquo;on veut, dans notre exemple:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;#!/bin/sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;clear&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;echo &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;Salut, c&amp;#39;est mon premier script !&amp;#34;&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;On rend ensuite le fichier executable:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;chmod +x monscript.sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;et on l&amp;rsquo;execute:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;./monscript.sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
			</item>
			<item>
				<title>Synology - Crontab</title>
				<link>https://blog.demoniak.ch/posts/2012/01/synology-crontab/</link>
				<pubDate>Sun, 15 Jan 2012 00:00:00 +0100</pubDate>
				<guid>https://blog.demoniak.ch/posts/2012/01/synology-crontab/</guid>
				<description>&lt;p&gt;Pour planifier une tâche sur un Synology, il faut éditer le fichier de configuration de cron:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;vi /etc/crontab&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Ensuite on apporte les modification désirées, dans mon example, un script de backup se lancera tous les jours à 20h00:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#75715e&#34;&gt;#minute hour mday month wday who command&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; * * * root /usr/sbin/ntpdate -b ch.pool.ntp.org&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;0&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;20&lt;/span&gt; * * * root /bin/sh /root/movie.sh&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;On stop cron:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;/usr/syno/etc.defaults/rc.d/S04crond.sh stop&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;On relance cron:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;/usr/syno/etc.defaults/rc.d/S04crond.sh start&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;et voilà&amp;hellip;&lt;/p&gt;</description>
			</item>
	</channel>
</rss>
