<?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>Misc Archives - Tom Barbette</title>
	<atom:link href="https://perso.uclouvain.be/tom.barbette/category/passions/misc/feed/" rel="self" type="application/rss+xml" />
	<link>https://perso.uclouvain.be/tom.barbette/category/passions/misc/</link>
	<description></description>
	<lastBuildDate>Thu, 08 Jun 2023 13:55:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://perso.uclouvain.be/tom.barbette/wp-content/uploads/2022/04/cropped-logo-uclouvain-2021-barbette-32x32.png</url>
	<title>Misc Archives - Tom Barbette</title>
	<link>https://perso.uclouvain.be/tom.barbette/category/passions/misc/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Looking for the right archive format with deduplication</title>
		<link>https://perso.uclouvain.be/tom.barbette/looking-for-the-right-archive-format-with-deduplication/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Tue, 18 Apr 2023 08:51:17 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Server management]]></category>
		<category><![CDATA[Unix]]></category>
		<guid isPermaLink="false">https://perso.uclouvain.be/tom.barbette/?p=1773</guid>

					<description><![CDATA[<p>I&#8217;m often copying my files to an external disk as a backup option. So far, nothing fancy. However, I end up with many copies of more or less the same folders over time. And that takes a lot of space for nothing. Incremental backups, that only add new files to an archive, might look as &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/looking-for-the-right-archive-format-with-deduplication/" class="more-link">Continue reading<span class="screen-reader-text"> "Looking for the right archive format with deduplication"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/looking-for-the-right-archive-format-with-deduplication/">Looking for the right archive format with deduplication</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">I&#8217;m often copying my files to an external disk as a backup option. So far, nothing fancy.</p>



<p class="wp-block-paragraph">However, I end up with many copies of more or less the same folders over time.  And that takes a lot of space for nothing.</p>



<p class="wp-block-paragraph">Incremental backups, that only add new files to an archive, might look as a solution for that, but over time the paths changes, the structure changes. So the deduplication would break.</p>



<p class="wp-block-paragraph">One solution could be to format my disk with a system such as ZFS or BTRFS which have a deduplication built-in. However I can&#8217;t use my disk for quick operations/archiving on Windows, nor on Mac (easily at least).</p>



<p class="wp-block-paragraph">So I want an archive format with:</p>



<ul class="wp-block-list">
<li>Deduplication</li>



<li>Some compression (lot of source code files)</li>
</ul>



<p class="wp-block-paragraph">One might think, and I often came across that statement while searching on the web for a solution, that one shouldn&#8217;t worry about that as compression algorithm inheritely support deduplication. That is actually wrong, they&#8217;re not made to merge very large patterns. The following experiment shows it with file of random data (incompressible) :</p>



<p class="wp-block-paragraph">-rwxrwxrwx 1 tbarbette tbarbette 10M Apr 17 21:09 binA<br>-rwxrwxrwx 1 tbarbette tbarbette 10M Apr 17 21:10 binACOPY<br>-rwxrwxrwx 1 tbarbette tbarbette 10M Apr 17 21:09 binB<br>-rwxrwxrwx 1 tbarbette tbarbette 256M Apr 17 21:19 binBIG<br>-rwxrwxrwx 1 tbarbette tbarbette 256M Apr 17 21:19 binBIGCOPY<br>-rwxrwxrwx 1 tbarbette tbarbette 10M Apr 17 21:09 binC</p>



<p class="wp-block-paragraph">Here&#8217;s the size for a few formats :</p>



<figure class="wp-block-table"><table><tbody><tr><td></td><td>Size</td><td>Time</td><td>Comma,d</td></tr><tr><td>tar.gz</td><td>553M</td><td>19.48s</td><td>tar -cpazf [archive] [file]</td></tr><tr><td>tar.xz</td><td>553M</td><td>303s</td><td>tar -cpaJf [archive] [file]</td></tr><tr><td>zpaq</td><td>287M</td><td>18.7s</td><td>zpaq add [archive] [file]</td></tr><tr><td>wim</td><td>287M</td><td>4.4s</td><td>7zz a [archive].wim [file]</td></tr><tr><td>.7z</td><td>543M</td><td>37s</td><td>7zz a [archive].7z [file]</td></tr><tr><td>.7z (512M dictionnary)</td><td>287M</td><td>140s</td><td>7zz a [archive].7z -m0=LZMA2:d512m [file]</td></tr><tr><td>.7z (1513M dictionnary)</td><td>287M</td><td>114s</td><td>7zz a [archive].7z -m0=LZMA2:d1513m [file]</td></tr></tbody></table></figure>



<p class="wp-block-paragraph">zpaq is the clear winner considering it can also compress at the same time, however it&#8217;s not very widespread, and has no good GUI available. I&#8217;m wondering about recovery in case of problems.</p>



<p class="wp-block-paragraph">wim has no compression, so it will need to be encapsulated in something else. The problem is then to add some files. I have to uncompress the inner wim format first. The idea being to save the same computer again and again, one of those archives is 200G, so it means adding a single file would take a huge time. While zpaq can add one quite fast.</p>



<p class="wp-block-paragraph">7zip with a dictionary large enough to hold big duplicates would seem to be a good compromise. </p>



<p class="wp-block-paragraph">Any input?</p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/looking-for-the-right-archive-format-with-deduplication/">Looking for the right archive format with deduplication</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Leaving ownCloud for good</title>
		<link>https://perso.uclouvain.be/tom.barbette/leaving-owncloud-for-good/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Sun, 13 Nov 2022 13:27:45 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">https://perso.uclouvain.be/tom.barbette/?p=1343</guid>

					<description><![CDATA[<p>ownCloud was kind of abandonned after the fork to nextcloud. I wanted to stay true to my historic &#8220;own&#8221; cloud provider. But the lack of support for PHP 8.1 now that 7.X is EOL killed it for good. Two messages for anyone that comes here through random search :</p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/leaving-owncloud-for-good/">Leaving ownCloud for good</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">ownCloud was kind of abandonned after the fork to nextcloud. I wanted to stay true to my historic &#8220;own&#8221; cloud provider. But the lack of support for PHP 8.1 now that 7.X is EOL killed it for good.</p>



<p class="wp-block-paragraph">Two messages for anyone that comes here through random search :</p>



<ul class="wp-block-list">
<li>There is no way to migrate automatically to nextcloud anymore. Chances are you updated beyond ownCloud 10.5, and there&#8217;s no downgrade possible. So don&#8217;t try.</li>



<li>Long life nextCloud! I didn&#8217;t realise the many things I was missing with ownCloud&#8230; NextCloud has million more features. So leave ownCloud now and go to nextCloud.</li>
</ul>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/leaving-owncloud-for-good/">Leaving ownCloud for good</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Limit rate of mail sent by motion detection daemon (motiond) for webcam surveillance</title>
		<link>https://perso.uclouvain.be/tom.barbette/limit-rate-of-mail-sent-by-motion-detection-daemon-motiond-for-webcam-surveillance/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Wed, 29 Oct 2014 14:40:33 +0000</pubDate>
				<category><![CDATA[Domotic]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Unix]]></category>
		<guid isPermaLink="false">http://queen.run.montefiore.ulg.ac.be/~barbette/?p=360</guid>

					<description><![CDATA[<p>Maybe you use the &#8220;on_picture_save&#8221; to send yourself an e-mail with motiond when your webcam detect an  intruder. But when someone enters, you&#8217;ll receive a lot of pictures. And if it was just you forgetting to stop the detection before entering, your smartphone will become a christmas tree for nothing&#8230; I just published my last &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/limit-rate-of-mail-sent-by-motion-detection-daemon-motiond-for-webcam-surveillance/" class="more-link">Continue reading<span class="screen-reader-text"> "Limit rate of mail sent by motion detection daemon (motiond) for webcam surveillance"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/limit-rate-of-mail-sent-by-motion-detection-daemon-motiond-for-webcam-surveillance/">Limit rate of mail sent by motion detection daemon (motiond) for webcam surveillance</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Maybe you use the &#8220;on_picture_save&#8221; to send yourself an e-mail with motiond when your webcam detect an  intruder. But when someone enters, you&#8217;ll receive a lot of pictures. And if it was just you forgetting to stop the detection before entering, your smartphone will become a christmas tree for nothing&#8230;</p>
<p>I just published my last program &#8220;limitrate&#8221; on Github :</p>
<p>https://github.com/tbarbette/limitrate</p>
<p>This programs allows you to limit the rate of launching a certain command. Instead of launching</p>
<blockquote><p>/usr/bin/program argument1 argument2</p></blockquote>
<p>call :</p>
<blockquote><p>limitrate 30 &#8220;/usr/bin/program % argument2&#8221; argument1</p></blockquote>
<p>To launch only this command at maximum once every 30 seconds. If you call multiple times the last line in 30 seconds, limitrate will run the command only after 30 seconds replacing the &#8220;%&#8221; by the concatenation of all &#8220;argument 1&#8221;. For example to send an alert e-mail containing files (for example webcam picture) at max every 30 seconds :</p>
<pre><code>10:24:30 : limitrate 30 "echo \"Alert!\" | mailx % destination@mail.com" "-A /path/to/file1"
--&gt; Send a mail with file1
10:24:32 : limitrate 30 "echo \"Alert!\" | mailx % destination@mail.com" "-A /path/to/file2"
10:24:38 : limitrate 30 "echo \"Alert!\" | mailx % destination@mail.com" "-A /path/to/file3"
10:24:41 : limitrate 30 "echo \"Alert!\" | mailx % destination@mail.com" "-A /path/to/file4"
10:25:05 : limitrate 30 "echo \"Alert!\" | mailx % destination@mail.com" "-A /path/to/file5"
--&gt; Send a mail with file 2,3,4 and 5
</code></pre>
<p>Example configuration for motion detection daemon (Camera surveillance) :</p>
<blockquote><p>on_picture_save /usr/local/bin/limitrate 15 &#8220;echo \&#8221;See attachment below.\&#8221; | mailx -s &#8216;Motion in the saloon !&#8217; %<a href="mailto:destination@tombarbette.be">destination@tombarbette.be</a>&#8221; &#8220;-A %f&#8221;</p></blockquote>
<p>When an intrusion is detected, you&#8217;ll receive a first e-mail with one image. 15 seconds later you&#8217;ll receive all the new images in only one mail, and so on.</p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/limit-rate-of-mail-sent-by-motion-detection-daemon-motiond-for-webcam-surveillance/">Limit rate of mail sent by motion detection daemon (motiond) for webcam surveillance</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Installing Spotify 9.10 (may 20), 9.11 (july 2) on fedora 20 64 bits</title>
		<link>https://perso.uclouvain.be/tom.barbette/installing-spotify-9-10-may-20-on-fedora-20-64-bits/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Thu, 22 May 2014 09:36:48 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[spotify]]></category>
		<guid isPermaLink="false">http://queen.run.montefiore.ulg.ac.be/~barbette/?p=331</guid>

					<description><![CDATA[<p>UPDATE : Tested for 9.11 on July 2 &#160; Remove any old version of spotify : yum remove &#8220;*spotify*&#8221; rm -rf /usr/local/share/spotify* &#160; Remove any configuration file of the last spotify version : rm -rf /home/$USER/.config/spotify rm -rf /home/$USER/.cache/spotify &#160; Download the debian package at http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.10.17.g4129e1c.78-1_amd64.deb  http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.11.26.g995ec04.78-1_amd64.deb: wget http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.11.26.g995ec04.78-1_amd64.deb &#160; Install alien to convert the deb to &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/installing-spotify-9-10-may-20-on-fedora-20-64-bits/" class="more-link">Continue reading<span class="screen-reader-text"> "Installing Spotify 9.10 (may 20), 9.11 (july 2) on fedora 20 64 bits"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/installing-spotify-9-10-may-20-on-fedora-20-64-bits/">Installing Spotify 9.10 (may 20), 9.11 (july 2) on fedora 20 64 bits</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>UPDATE : Tested for 9.11 on July 2</p>
<p>&nbsp;</p>
<p>Remove any old version of spotify :</p>
<p>yum remove &#8220;*spotify*&#8221;</p>
<p>rm -rf /usr/local/share/spotify*</p>
<p>&nbsp;</p>
<p>Remove any configuration file of the last spotify version :</p>
<p>rm -rf /home/$USER/.config/spotify</p>
<p>rm -rf /home/$USER/.cache/spotify</p>
<p>&nbsp;</p>
<p>Download the debian package at <del>http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.10.17.g4129e1c.78-1_amd64.deb</del>  http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.11.26.g995ec04.78-1_amd64.deb:</p>
<p>wget http://repository.spotify.com/pool/non-free/s/spotify/spotify-client_0.9.11.26.g995ec04.78-1_amd64.deb</p>
<p>&nbsp;</p>
<p>Install alien to convert the deb to RPM :</p>
<p>sudo yum install alien</p>
<p>&nbsp;</p>
<p>Convert the deb to RPM with alien :</p>
<p>fakeroot alien -r spotify-client_0.9.10.17.g4129e1c.78-1_amd64.deb</p>
<p>&nbsp;</p>
<p>Install the rpm :</p>
<p>sudo rpm -ivh &#8211;nodeps &#8211;force spotify-client-0.9.10.17.g4129e1c.78-2.x86_64.rpm</p>
<p>&nbsp;</p>
<p>You will very probably have problems of dependencies to old libraries when launching spotify, like for libssl.so.1.0.0 , libudev.so.0 and libcrypto.so.1.0.0, I made a tarball with them.</p>
<p>&nbsp;</p>
<p>Download <a href="https://www.tombarbette.be/wp-content/uploads/2014/05/oldlibs.tar.gz">oldlibs.tar</a> :</p>
<p>wget https://www.tombarbette.be/wp-content/uploads/2014/05/oldlibs.tar.gz</p>
<p>&nbsp;</p>
<p>Untar them :</p>
<p>tar -zxvf oldlibs.tar.gz</p>
<p>&nbsp;</p>
<p>Copy them to /usr/lib64 :</p>
<p>cp -rf oldlibs/* /usr/lib64/</p>
<p>&nbsp;</p>
<p>Remove the tarball :</p>
<p>rm -rf oldlibs*</p>
<p>&nbsp;</p>
<p>If you don&#8217;t have any shorcut to launch spotify, copy the desktop entry :</p>
<p>cp -rf /opt/spotify/spotify-client/spotify.desktop /usr/share/applications/</p>
<p>&nbsp;</p>
<p>If when you type &#8220;spotify&#8221; it doesn&#8217;t launch anything (and say this command is not found) :</p>
<p>sudo ln -s /opt/spotify/spotify-client/spotify /usr/bin/spotify</p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/installing-spotify-9-10-may-20-on-fedora-20-64-bits/">Installing Spotify 9.10 (may 20), 9.11 (july 2) on fedora 20 64 bits</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SourceForts Console commands</title>
		<link>https://perso.uclouvain.be/tom.barbette/sourceforts-console-commands/</link>
		
		<dc:creator><![CDATA[Tom Barbette]]></dc:creator>
		<pubDate>Mon, 07 Apr 2014 08:09:07 +0000</pubDate>
				<category><![CDATA[Misc]]></category>
		<guid isPermaLink="false">http://queen.run.montefiore.ulg.ac.be/~barbette/?p=294</guid>

					<description><![CDATA[<p>SourceForts is really a great mod for Half-Life 2 multiplayer, featuring a construction phase with blocks and panels before a combat phase. But the wiki has died a long time ago, and I decided to copy a save of the console commands here, as it&#8217;s not findable anymore. Common Commands [edit] Phase Limits addtime [integer] &#8230; </p>
<p class="link-more"><a href="https://perso.uclouvain.be/tom.barbette/sourceforts-console-commands/" class="more-link">Continue reading<span class="screen-reader-text"> "SourceForts Console commands"</span></a></p>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/sourceforts-console-commands/">SourceForts Console commands</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>SourceForts is really a great mod for Half-Life 2 multiplayer, featuring a construction phase with blocks and panels before a combat phase. But the wiki has died a long time ago, and I decided to copy a save of the console commands here, as it&#8217;s not findable anymore.</p>
<h2>Common Commands</h2>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=3" title="Edit section: Phase Limits">edit</a>]</div>
<p><a name="Phase_Limits"></a></p>
<h3>Phase Limits</h3>
<ul>
<li><b>addtime [integer]</b> <i>Adds time (in seconds) to the current phase (can remove time too if integer is negative)</i>
</li>
<li><b>sf_build_long_length</b> <i>Length of the long <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Getting_started#Build_Phase" title="Getting started">Build Phase</a> in seconds. Default 600</i>
</li>
<li><b>sf_build_short_length</b> <i>Length of the short build phase in seconds. Default 240</i>
</li>
<li><b>sf_combat_length</b> <i>Length of <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Getting_started#Combat_Phase" title="Getting started">Combat Phase</a> in seconds. Default 600</i>
</li>
<li><b>togglephase</b> <i>Changes the phase (either from build to fight or vice versa)</i>
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=4" title="Edit section: Match Limits">edit</a>]</div>
<p><a name="Match_Limits"></a></p>
<h3>Match Limits</h3>
<ul>
<li><b>sf_roundlimit</b> <i>Number of rounds (cycles of Build / Combat) a map is played for. Default 4</i>
</li>
<li><b>sf_scorelimit [integer]</b> <i>Amount of points for a team to win the game. Default 1000</i>
</li>
<li><b>map_restart</b> <i>cmd</i> &#8211;  Completely restarts game, all scores returned to zero and all blocks removed.
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=5" title="Edit section: Team Limits">edit</a>]</div>
<p><a name="Team_Limits"></a></p>
<h3>Team Limits</h3>
<ul>
<li><b>sf_forcebalance</b> <i>Default&nbsp;: 1</i> &#8211;  Force team balancing on connect. While on, you can only join the team with the least players.
</li>
<li><b>sf_team_blocklimit [integer]</b> <i>Sets the blocklimit for both teams</i>
</li>
<li><b>sf_team_autoassign [0/1]</b> <i>Setting of 1 forces joining players to join smallest team</i>
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=6" title="Edit section: Blocks">edit</a>]</div>
<p><a name="Blocks"></a></p>
<h2>Blocks</h2>
<ul>
<li><b>sf_block_damage_multiplier</b> <i>Default&nbsp;: 3</i> &#8211;  Multiplier of damage dealt to blocks by weapons. Higher number = blocks are easier to destroy.
</li>
<li><b>sf_block_extra_force</b> <i>Default&nbsp;: 10</i> &#8211;  Physics damage multiplier if hit by a block in combat.
</li>
<li><b>sf_block_health</b> <i>Default&nbsp;: 6000</i> &#8211;  Block damage health
</li>
<li><b>sf_block_unfreeze_health</b> <i>Default&nbsp;: 1250</i> &#8211;  Block unfreeze health, basically sets the time it takes to unfreeze a block.
</li>
<li><b>sf_combat_freeze_friendly</b> <i>Default&nbsp;: 6</i> &#8211;  Time in seconds to freeze a friendly block
</li>
<li><b>sf_combat_unfreeze_enemy</b> <i>Default&nbsp;: 12</i> &#8211;  Time in seconds to unfreeze an enemy block
</li>
<li><b>sf_combat_unfreeze_friendly</b> <i>Default&nbsp;: 4</i> &#8211;  Time in seconds to unfreeze a friendly block.
</li>
<li><b>sf_freeze_continue_distance_combat</b> <i>Default&nbsp;: 16</i> &#8211; How far, in units, you have to be from a block to freeze it.
</li>
<li><b>sf_freeze_continue_player_move_distance_combat</b> <i>Default&nbsp;: 16</i> &#8211; How far, in units, you can move from a block while freezing it without stopping.
</li>
<li><b>sf_freeze_distance_build</b> <i>Default&nbsp;: 600</i> &#8211;  How far, in units, you can freeze/unfreeze blocks in build phase
</li>
<li><b>sf_freeze_starting_distance_combat</b> <i>Default&nbsp;: 128</i>
</li>
<li><b>sf_repair_delay</b> <i>Default&nbsp;: 0</i> &#8211;  How long, after holding fire, it takes for you to start repairing a block (obsolete)
</li>
<li><b>sf_repair_distance</b> <i>Default&nbsp;: 96</i> &#8211;  How far you can be from a block to repair it.
</li>
<li><b>sf_repair_increment</b> <i>Default&nbsp;: 45</i> &#8211;  How many HP you return to a block while repairing
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=7" title="Edit section: Class Settings">edit</a>]</div>
<p><a name="Class_Settings"></a></p>
<h2>Class Settings</h2>
<ul>
<li><b>sf_armor_builder</b> <i>Default&nbsp;: 20</i> &#8211;  <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Engineer" title="Engineer">Engineer</a> armour
</li>
<li><b>sf_armor_heavysoldier</b> <i>Default&nbsp;: 75</i> &#8211;  <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Soldier" title="Soldier">Soldier</a> armour
</li>
<li><b>sf_armor_rocketeer</b> <i>Default&nbsp;: 40</i> &#8211;  <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Rocketeer" title="Rocketeer">Rocketeer</a> armour
</li>
<li><b>sf_armor_scout</b> <i>Default&nbsp;: 15</i> &#8211;  <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Scout" title="Scout">Scout</a> armour
</li>
<li><b>sf_armor_sniper</b> <i>Default&nbsp;: 0</i> &#8211;  <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Sniper" title="Sniper">Sniper</a> armour
</li>
<li><b>sf_health_builder</b> <i>Default&nbsp;: 80</i> &#8211;  Engineers health
</li>
<li><b>sf_health_heavysoldier</b> <i>Default&nbsp;: 100</i> &#8211;  Soldiers health
</li>
<li><b>sf_health_rocketeer</b> <i>Default&nbsp;: 100</i> &#8211;  Rocketeers health
</li>
<li><b>sf_health_scout</b> <i>Default&nbsp;: 100</i> &#8211;  Scouts health
</li>
<li><b>sf_health_sniper</b> <i>Default&nbsp;: 75</i> &#8211;  Snipers health
</li>
<li><b>sf_player_limits_enabled</b> <i>Default&nbsp;: 1</i> &#8211;  Enables/disables percentage based class limiting
</li>
<li><b>sf_player_limits_engineer_percentage</b> <i>Default&nbsp;: 75</i> &#8211; Percentage limit for engineer
</li>
<li><b>sf_player_limits_rocketeer_percentage</b> <i>Default&nbsp;: 60</i> &#8211; Percentage limit for rocketeer
</li>
<li><b>sf_player_limits_scout_percentage</b> <i>Default&nbsp;: 100</i> &#8211; Percentage limit for scout
</li>
<li><b>sf_player_limits_sniper_percentage</b> <i>Default&nbsp;: 25</i> &#8211; Percentage limit for sniper
</li>
<li><b>sf_player_limits_soldier_percentage</b> <i>Default&nbsp;: 66</i> &#8211; Percentage limit for soldier
</li>
<li><b>sf_run_builder</b> <i>Default&nbsp;: 0</i>
</li>
<li><b>sf_run_heavysoldier</b> <i>Default&nbsp;: 0</i>
</li>
<li><b>sf_run_rocketeer</b> <i>Default&nbsp;: 1</i>
</li>
<li><b>sf_run_scout</b> <i>Default&nbsp;: 1</i>
</li>
<li><b>sf_run_sniper</b> <i>Default&nbsp;: 0</i>
</li>
<li><b>sf_sprint_builder</b> <i>Default&nbsp;: 1</i>
</li>
<li><b>sf_sprint_drain_builder</b> <i>Default&nbsp;: 1</i>
</li>
<li><b>sf_sprint_drain_heavysoldier</b> <i>Default&nbsp;: 1</i>
</li>
<li><b>sf_sprint_drain_rocketeer</b> <i>Default&nbsp;: 1</i>
</li>
<li><b>sf_sprint_drain_scout</b> <i>Default&nbsp;: 0</i>
</li>
<li><b>sf_sprint_drain_sniper</b> <i>Default&nbsp;: 1</i>
</li>
<li><b>sf_sprint_heavysoldier</b> <i>Default&nbsp;: 1</i>
</li>
<li><b>sf_sprint_rocketeer</b> <i>Default&nbsp;: 1</i>
</li>
<li><b>sf_sprint_scout</b> <i>Default&nbsp;: 1</i>
</li>
<li><b>sf_sprint_sniper</b> <i>Default&nbsp;: 1</i>
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=8" title="Edit section: Flag Settings">edit</a>]</div>
<p><a name="Flag_Settings"></a></p>
<h2>Flag Settings</h2>
<ul>
<li><b>sf_flag_drop_distance</b> <i>Default&nbsp;: 50</i> &#8211;  How far away from you the flag is dropped if you drop it.
</li>
<li><b>sf_flag_returntime</b> <i>Default&nbsp;: 30</i> &#8211;  Time in seconds for the flag to return itself to its base.
</li>
<li><b>sf_flag_x</b> <i>Default&nbsp;: 0</i> &#8211;  Unknown
</li>
<li><b>sf_flag_y</b> <i>Default&nbsp;: 0</i> &#8211;  Unknown
</li>
<li><b>sf_flag_z</b> <i>Default&nbsp;: 100</i> &#8211;  Unknown
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=9" title="Edit section: League Commands">edit</a>]</div>
<p><a name="League_Commands"></a></p>
<h2>League Commands</h2>
<ul>
<li><b>league_flip</b> <i>cmd</i> &#8211;  Flips teams over, while maintaining scores.
</li>
<li><b>league_flipscores</b> <i>cmd</i> &#8211;  Flips scores only
</li>
<li><b>league_flipteams</b> <i>cmd</i> &#8211;  Flips teams only
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=10" title="Edit section: Map Elements">edit</a>]</div>
<p><a name="Map_Elements"></a></p>
<h2>Map Elements</h2>
<ul>
<li><b>sf_charger_armor_increment</b> <i>Default&nbsp;: 2</i> &#8211;  Suit charger speed
</li>
<li><b>sf_charger_health_increment</b> <i>Default&nbsp;: 2</i> &#8211;  Health charger speed
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=11" title="Edit section: Undocumented / Beta Commands">edit</a>]</div>
<p><a name="Undocumented_.2F_Beta_Commands"></a></p>
<h2>Undocumented / Beta Commands</h2>
<ul>
<li><b>sf_ar2_range1_damage</b> <i>Default&nbsp;: 0</i> &#8211;  Beta cvars used to test the dissipating power/range ratios on the AR2.
</li>
<li><b>sf_ar2_range1_distance</b> <i>Default&nbsp;: 1000</i> &#8211;  See above.
</li>
<li><b>sf_ar2_range2_damage</b> <i>Default&nbsp;: 0</i> &#8211;  See above.
</li>
<li><b>sf_ar2_range2_distance</b> <i>Default&nbsp;: 2000</i> &#8211;  See above.
</li>
<li><b>sf_deny_respawn</b> <i>Default&nbsp;: 0</i> &#8211;  Unknown, probably beta command.
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=12" title="Edit section: Weapon Settings">edit</a>]</div>
<p><a name="Weapon_Settings"></a></p>
<h2>Weapon Settings</h2>
<ul>
<li><b>sf_damage_crossbow</b> <i>Default&nbsp;: 100</i> &#8211;  <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Crossbow" title="Crossbow">Crossbow</a> damage
</li>
<li><b>sf_damage_rpg</b> <i>Default&nbsp;: 125</i> &#8211;  <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/RPG" title="RPG">RPG</a> damage (if hit directly. Damage dissipates the further from explosion you are)
</li>
<li><b>sf_grenade_throw_force_multiplier</b> <i>Default&nbsp;: 800</i> &#8211;  Controls range of <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Grenades" title="Grenades">grenades</a>
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=13" title="Edit section: Half Life 2 Deathmatch Commands">edit</a>]</div>
<p><a name="Half_Life_2_Deathmatch_Commands"></a></p>
<h1>Half Life 2 Deathmatch Commands</h1>
<p>For a more complete list of console commands for Half-Life 2, see the <a href="https://web.archive.org/web/20071214195309/http://www.hl2world.com/wiki/index.php/Category:Console_Commands" class="external text" title="http://www.hl2world.com/wiki/index.php/Category:Console_Commands" rel="nofollow">HL2World wiki</a>. Some of the most common and useful commands are shown below.
</p>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=14" title="Edit section: Useful Commands">edit</a>]</div>
<p><a name="Useful_Commands"></a></p>
<h2>Useful Commands</h2>
<ul>
<li><b>sv_cheats</b> <i>Default&nbsp;: 0</i> &#8211; Server setting that turns cheat mode on or off.
</li>
<li><b>sv_lan</b> <i>Default&nbsp;: 0</i> &#8211; <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Category:Server_Guides" title="Category:Server Guides">Server</a> setting, value of 0 is an internet server, 1 is a LAN server.
</li>
<li><b>ip</b> <i>Default&nbsp;: localhost</i> &#8211; <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Category:Server_Guides" title="Category:Server Guides">Server</a> setting, needs to be changed to global IP address on servers utilizing <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Router_Configuration" title="Router Configuration">routed Internet connections</a>.
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=15" title="Edit section: Using Cheat Codes">edit</a>]</div>
<p><a name="Using_Cheat_Codes"></a></p>
<h2>Using Cheat Codes</h2>
<p>The following commands require that the server have cheats enabled.
</p>
<ul>
<li><b>impulse 101</b> <i>cmd</i> &#8211; Gives you one of every weapon. <i>Needs cheats</i>
</li>
<li><b>impulse 200</b> <i>cmd</i> &#8211; Removes your HUD good for taking screenshots. <i>Needs cheats</i>
</li>
<li><b>impulse 203</b> <i>cmd</i> &#8211; Removes an entity, used for removing SourceForts blocks. <i>Needs cheats</i> <b>Warning: Using this on players will crash your server</b>
</li>
</ul>
<div class="editsection" style="float:right;margin-left:5px;">[<a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php?title=Console_commands&#038;action=edit&#038;section=16" title="Edit section: Spawning Blocks">edit</a>]</div>
<p><a name="Spawning_Blocks"></a></p>
<h3>Spawning Blocks</h3>
<p>If the cheat mode is turned on players can give themselves blocks, without using a blockspawner. This adds to the blueteams <a href="https://web.archive.org/web/20071214195309/http://wiki.sourcefortsmod.com/index.php/Getting_started#Block_Limits" title="Getting started">block limit</a>, so it is considered a cheat.
</p>
<pre>*give prop_block_2d_1x2
*give prop_block_2d_2x3
*give prop_block_2d_1x5
*give prop_block_3d_1x2
*give prop_block_3d_1x1
</pre>
<p>The post <a href="https://perso.uclouvain.be/tom.barbette/sourceforts-console-commands/">SourceForts Console commands</a> appeared first on <a href="https://perso.uclouvain.be/tom.barbette">Tom Barbette</a>.</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
