<?xml version="1.0" encoding="UTF-8" ?>
<!-- RSS generated by PHPBoost on Mon, 06 Apr 2026 01:43:31 +0200 -->
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[master]]></title>
		<atom:link href="https://sneckx.ddns.net/syndication/?url=/rss/articles/9" rel="self" type="application/rss+xml"/>
		<link>https://sneckx.ddns.net</link>
		<description><![CDATA[]]></description>
		<copyright>(C) 2005-2026 PHPBoost</copyright>
		<language>fr</language>
		<generator>PHPBoost</generator>
		
            <item>
                <title><![CDATA[Passer un périphérique usb à une machine virtuelle proxmox USB PASSTHROUGH]]></title>
                <link>https://sneckx.ddns.net/articles/?url=/9-proxmox/11-passer-un-peripherique-usb-a-une-machine-virtuelle-proxmox-usb-passthrough/</link>
                <guid>https://sneckx.ddns.net/articles/?url=/9-proxmox/11-passer-un-peripherique-usb-a-une-machine-virtuelle-proxmox-usb-passthrough/</guid>
                <description><![CDATA[Code bash servant à passer une carte son usb c-media à une machine virtuelle proxmox<br />
<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;">configFile</span>=<span style="color: #ff0000;">"/etc/pve/qemu-server/100.conf"</span>;
<span style="color: #007800;">usbString</span>=<span style="color: #ff0000;">"usb0: host"</span>;
<span style="color: #007800;">usbName</span>=<span style="color: #ff0000;">"c-media"</span>;
<span style="color: #007800;">id</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span>lsusb <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">"<span style="color: #007800;">$usbName</span>"</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">":"</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">2</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">" "</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">3</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #007800;">usbDev</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #007800;">$id</span> <span style="color: #000000; font-weight: bold;">/</span>sys<span style="color: #000000; font-weight: bold;">/</span>bus<span style="color: #000000; font-weight: bold;">/</span>usb<span style="color: #000000; font-weight: bold;">/</span>devices<span style="color: #000000; font-weight: bold;">/*/</span>idVendor <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-d</span> <span style="color: #ff0000;">"/"</span> <span style="color: #660033;">-f</span> <span style="color: #000000;">6</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
<span style="color: #666666; font-style: italic;"># Suppression de la configuration actuelle de la carte son par defaut</span>
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> <span style="color: #000000; font-weight: bold;">/</span><span style="color: #ff0000;">"<span style="color: #007800;">$usbString</span> *"</span><span style="color: #000000; font-weight: bold;">/</span>d <span style="color: #ff0000;">"<span style="color: #007800;">$configFile</span>"</span>;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">"usb0: host=<span style="color: #007800;">$usbDev</span>"</span> <span style="color: #000000; font-weight: bold;">>></span> <span style="color: #ff0000;">"<span style="color: #007800;">$configFile</span>"</span>;
<span style="color: #7a0874; font-weight: bold;">exit</span>
&nbsp;</pre></pre></div></div>]]></description>
                <pubDate>Tue, 19 Sep 2023 11:03:00 +0200</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Supprimer le message de souscription proxmox]]></title>
                <link>https://sneckx.ddns.net/articles/?url=/9-proxmox/10-supprimer-le-message-de-souscription-proxmox/</link>
                <guid>https://sneckx.ddns.net/articles/?url=/9-proxmox/10-supprimer-le-message-de-souscription-proxmox/</guid>
                <description><![CDATA[Créer un fichier deleteMessage.sh dans le dossier /root<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>deleteMessage.sh
&nbsp;</pre></pre></div></div><br />
et y coller ces lignes<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-v</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>javascript<span style="color: #000000; font-weight: bold;">/</span>proxmox-widget-toolkit<span style="color: #000000; font-weight: bold;">/</span>proxmoxlib.js.back;
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-v</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>javascript<span style="color: #000000; font-weight: bold;">/</span>proxmox-widget-toolkit<span style="color: #000000; font-weight: bold;">/</span>proxmoxlib.js <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>javascript<span style="color: #000000; font-weight: bold;">/</span>proxmox-widget-toolkit<span style="color: #000000; font-weight: bold;">/</span>proxmoxlib.js.back;
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">"s/data.status.toLowerCase() !== 'active')/data.status.toLowerCase() == 'active')/g"</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>javascript<span style="color: #000000; font-weight: bold;">/</span>proxmox-widget-toolkit<span style="color: #000000; font-weight: bold;">/</span>proxmoxlib.js;
<span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">"s/res.data.status.toLowerCase() == 'active')/res.data.status.toLowerCase() !== 'active');/"</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>javascript<span style="color: #000000; font-weight: bold;">/</span>proxmox-widget-toolkit<span style="color: #000000; font-weight: bold;">/</span>proxmoxl<span style="color: #000000; font-weight: bold;">></span>
systemctl restart pveproxy.service;
<span style="color: #7a0874; font-weight: bold;">exit</span>
&nbsp;</pre></pre></div></div><br />
Rendre ce fichier exécutable<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #c20cb9; font-weight: bold;">chmod</span> +x <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>deleteMessage.sh
&nbsp;</pre></pre></div></div><br />
Editer le fichier crontab<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">&nbsp;
crontab <span style="color: #660033;">-e</span>
<span style="color: #000000; font-weight: bold;">@</span>reboot <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span>.<span style="color: #000000; font-weight: bold;">/</span>deleteMessage.sh
&nbsp;</pre></pre></div></div>]]></description>
                <pubDate>Wed, 13 Sep 2023 12:14:00 +0200</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Démarrage ou arrêt planifié d'une machine dans proxmox]]></title>
                <link>https://sneckx.ddns.net/articles/?url=/9-proxmox/9-demarrage-ou-arret-planifie-d-une-machine-dans-proxmox/</link>
                <guid>https://sneckx.ddns.net/articles/?url=/9-proxmox/9-demarrage-ou-arret-planifie-d-une-machine-dans-proxmox/</guid>
                <description><![CDATA[<ul class="formatter-ul">
    <li class="formatter-li">Lister les vm<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">qm list</pre></pre></div></div>

    </li><li class="formatter-li">Lister les containers<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">pct list</pre></pre></div></div>

    </li><li class="formatter-li">Démarrer la vm 100 5 secondes après le démarrage du pc<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">crontab <span style="color: #660033;">-e</span>
<span style="color: #000000; font-weight: bold;">@</span>reboot $<span style="color: #7a0874; font-weight: bold;">&#40;</span> <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">5</span>; <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>qm start <span style="color: #000000;">100</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>;
&nbsp;</pre></pre></div></div>

</li><li class="formatter-li">Arrêter la vm 101 chaque jour à 18h00<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;">crontab <span style="color: #660033;">-e</span>
00 <span style="color: #000000;">18</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">*</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>qm stop <span style="color: #000000;">101</span>;
&nbsp;</pre></pre></div></div><br />
</li></ul>]]></description>
                <pubDate>Wed, 13 Sep 2023 11:59:00 +0200</pubDate>
                
            </item>
		
            <item>
                <title><![CDATA[Installer proxmox sur un pc portable]]></title>
                <link>https://sneckx.ddns.net/articles/?url=/9-proxmox/8-installer-proxmox-sur-un-pc-portable/</link>
                <guid>https://sneckx.ddns.net/articles/?url=/9-proxmox/8-installer-proxmox-sur-un-pc-portable/</guid>
                <description><![CDATA[Après avoir installer proxmox sur le pc, il faut<br />
<br />
<ul class="formatter-ul">
    <li class="formatter-li">Empècher que l'ordinateur entre en veille quand on referme l'écran, pour cela, il suffit de décomenter et modifier ces lignes dans le fichier /etc/systemd/logind.conf.<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>systemd<span style="color: #000000; font-weight: bold;">/</span>logind.conf
&nbsp;
<span style="color: #007800;">HandleLidSwitch</span>=ignore
<span style="color: #007800;">HandleLidSwitchExternalPower</span>=ignore
<span style="color: #007800;">HandleLidSwitchDocked</span>=ignore
systemctl restart systemd-logind.service
&nbsp;</pre></pre></div></div>

    </li><li class="formatter-li">Eteindre l'écran après une minute, ici, il faut modifier une ligne dans le fichier /etc/default/grub<br />
<div class="formatter-container formatter-code code-BASH"><span class="formatter-title">Code BASH : </span><div class="formatter-content"><pre style="display:inline;"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">vi</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>default<span style="color: #000000; font-weight: bold;">/</span>grub
<span style="color: #007800;">GRUB_CMDLINE_LINUX</span>=<span style="color: #ff0000;">"consoleblank=60"</span>
update-grub
&nbsp;</pre></pre></div></div><br />
</li></ul>]]></description>
                <pubDate>Wed, 13 Sep 2023 11:29:00 +0200</pubDate>
                
            </item>
		
	</channel>
</rss>
