<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.stereopi.com/app.php/feed/topic/1102" />

	<title>StereoPi Forum</title>
	<subtitle>StereoPi Forum</subtitle>
	<link href="https://forum.stereopi.com/index.php" />
	<updated>2021-03-18T13:58:11+00:00</updated>

	<author><name><![CDATA[StereoPi Forum]]></name></author>
	<id>https://forum.stereopi.com/app.php/feed/topic/1102</id>

		<entry>
		<author><name><![CDATA[zoldaten]]></name></author>
		<updated>2021-03-18T13:58:11+00:00</updated>

		<published>2021-03-18T13:58:11+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2538#p2538</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2538#p2538"/>
		<title type="html"><![CDATA[Re: S.L.P. Raspbian old image optimization]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2538#p2538"><![CDATA[
i`ve added to the web-page shutdown button.<br>It looks like this -<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=186" class="postimage" alt="2021-03-18_16h51_11.png" onclick="viewableArea(this);" /></dt></dl></div>On push it just shutdown stereopi <img class="smilies" src="https://forum.stereopi.com/images/smilies/icon_mrgreen.gif" width="15" height="17" alt=":mrgreen:" title="Mr. Green"> <br><br>To do the same put to /var/www/html updated index.php - <div class="inline-attachment"><dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://forum.stereopi.com/download/file.php?id=185">index.rar</a></dt></dl></div>and to /var/www/html/imgs - <div class="inline-attachment"><dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://forum.stereopi.com/download/file.php?id=187">shutdown_icon.rar</a></dt></dl></div> (after unpack ofcause).<br><br>Make shutdown.php at the same dir where index.php is and put in it 1 string:<div class="codebox"><p>Code: </p><pre><code>&lt;?php system('sudo /sbin/shutdown -h now'); ?&gt;</code></pre></div>Make shutdown.php executable:<div class="codebox"><p>Code: </p><pre><code>chmod +x shutdown.php</code></pre></div><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Thu Mar 18, 2021 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zoldaten]]></name></author>
		<updated>2021-03-18T12:30:42+00:00</updated>

		<published>2021-03-18T12:30:42+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2536#p2536</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2536#p2536"/>
		<title type="html"><![CDATA[Re: S.L.P. Raspbian old image optimization]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2536#p2536"><![CDATA[
Additional optimisation.<br>Web file-manager. <div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=179" class="postimage" alt="2021-03-18_15h16_52.png" onclick="viewableArea(this);" /></dt></dl></div>Web-page time load before:<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=180" class="postimage" alt="2021-03-18_11h27_46.png" onclick="viewableArea(this);" /></dt></dl></div>After optimisation:<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=181" class="postimage" alt="2021-03-18_15h19_35.png" onclick="viewableArea(this);" /></dt></dl></div>What have done ?<br>All external links of js and css put to filesystem (most of all).<br><br>To do that you need put updated index.php to /var/www/html/files<br>And js and css after unpack to /var/www/html/files/js<br><br>Files - <div class="inline-attachment"><dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://forum.stereopi.com/download/file.php?id=182">js.rar</a></dt></dl></div> and <div class="inline-attachment"><dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://forum.stereopi.com/download/file.php?id=183">index.php.rar</a></dt></dl></div><p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Thu Mar 18, 2021 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[zoldaten]]></name></author>
		<updated>2021-03-17T18:21:35+00:00</updated>

		<published>2021-03-17T18:21:35+00:00</published>
		<id>https://forum.stereopi.com/viewtopic.php?p=2535#p2535</id>
		<link href="https://forum.stereopi.com/viewtopic.php?p=2535#p2535"/>
		<title type="html"><![CDATA[S.L.P. Raspbian old image optimization]]></title>

		
		<content type="html" xml:base="https://forum.stereopi.com/viewtopic.php?p=2535#p2535"><![CDATA[
I noticed that when page loads tons of time taken by loading images ) :<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=175" class="postimage" alt="2021-03-17_20h42_39.jpg" onclick="viewableArea(this);" /></dt></dl></div>So to speed up i just pass them through optimisator and result became:<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=176" class="postimage" alt="2021-03-17_21h09_25.jpg" onclick="viewableArea(this);" /></dt></dl></div>So to do so u just need to upload optimized images and replace old ones. It can be tricky as there`s no VNC.<br>I recommend ftp. For example - <a href="https://www.xlightftpd.com/" class="postlink">https://www.xlightftpd.com/</a><br>After that u can upload them this way:<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://forum.stereopi.com/download/file.php?id=177" class="postimage" alt="2021-03-17_21h18_47.jpg" onclick="viewableArea(this);" /></dt></dl></div>New images - <div class="inline-attachment"><dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://forum.stereopi.com/download/file.php?id=178">new_images.zip</a></dt></dl></div>Next i`ll look after <strong class="text-strong">js </strong>may be it can be optimized too.<p>Statistics: Posted by <a href="https://forum.stereopi.com/memberlist.php?mode=viewprofile&amp;u=60">zoldaten</a> — Wed Mar 17, 2021 6:21 pm</p><hr />
]]></content>
	</entry>
	</feed>
