<?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>Autarchy of the Private Cave &#187; install</title> <atom:link href="https://bogdan.org.ua/tags/install/feed" rel="self" type="application/rss+xml" /><link>https://bogdan.org.ua</link> <description>Tiny bits of bioinformatics, [web-]programming etc</description> <lastBuildDate>Wed, 28 Dec 2022 16:09:04 +0000</lastBuildDate> <language>en-US</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>https://wordpress.org/?v=3.8.27</generator> <item><title>Instructions on installing libmp3lame-enabled ffmpeg on shared linux hosting</title><link>https://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html</link> <comments>https://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html#comments</comments> <pubDate>Wed, 12 Mar 2008 06:25:54 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[*nix]]></category> <category><![CDATA[PHP]]></category> <category><![CDATA[Programming]]></category> <category><![CDATA[Software]]></category> <category><![CDATA[Web]]></category> <category><![CDATA[ffmpeg]]></category> <category><![CDATA[install]]></category> <category><![CDATA[libmp3lame]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[shared hosting]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html</guid> <description><![CDATA[Note: this post is based on the comment by Simon, who generously shared his experience. Step-by-step: Download the compiled ffmpeg with libmp3lame support (direct download links: older version ffmpeg.with.lame and newer version ffmpeg.2007-10-28.with-libmp3lame-support). Rename the downloaded executable file to &#8220;ffmpeg&#8221; (no extension), upload it to the directory on your server (in this example /home/myusername/). Download [&#8230;]]]></description> <content:encoded><![CDATA[<p><em>Note:</em> this post is based on the <a
href="http://bogdan.org.ua/2007/10/25/using-libmp3lame-enabled-ffmpeg-on-shared-hosting.html#comment-59670">comment by Simon</a>, who generously shared his experience.</p><p>Step-by-step:</p><ul><li>Download the <a
title="this page will be irregularly updated with new compiled binaries of ffmpeg" href="http://bogdan.org.ua/2007/06/28/compiled-linux-ffmpeg-binary-for-gallery2-download.html">compiled ffmpeg with libmp3lame support</a> (direct download links: older version <a
href="http://bogdan.org.ua/wp-content/uploads/2007/06/ffmpeg.with.lame">ffmpeg.with.lame</a> and newer version <a
href="http://bogdan.org.ua/wp-content/uploads/2007/10/ffmpeg.2007-10-28.with-libmp3lame-support">ffmpeg.2007-10-28.with-libmp3lame-support</a>).</li><li>Rename the downloaded executable file to &#8220;ffmpeg&#8221; (no extension), upload it to the directory on your server (in this example /home/myusername/).</li><li>Download <a
href="http://bogdan.org.ua/wp-content/uploads/2008/03/libmp3lame.so.0">libmp3lame.so.0</a>.</li><li>Upload libmp3lame.so.0 to the same directory where you placed ffmpeg in.</li><li>Create a php file with the following code (remember to change the paths to your own, where you actually uploaded binaries in previous steps):<div
id="ig-sh-1" class="syntax_hilite"><div
class="code"><ol
class="php" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #000000; font-weight: bold;">&lt;?php</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #990000;">exec</span><span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">&quot;export LD_LIBRARY_PATH=/home/myusername/&quot;</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #b1b100;">echo</span> <span
style="color: #990000;">passthru</span><span
style="color: #009900;">&#40;</span><span
style="color: #0000ff;">&quot;/home/myusername/ffmpeg -formats&quot;</span><span
style="color: #009900;">&#41;</span><span
style="color: #339933;">;</span></div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;"><span
style="color: #000000; font-weight: bold;">?&gt;</span></div></li></ol></div></div></li><li>If you access that PHP file with your browser, you should be able to see a list of formats which are supported by ffmpeg, and if you find &#8220;EA libmp3lame&#8221; somewhere in the output, then it means you now can Encode Audio in libmp3lame!</li><li>If that doesn&#8217;t work for you: LD_LIBRARY_PATH can be a protected variable in PHP (you can check for this by searching for the &#8220;safe_mode_protected_env_vars&#8221; value in phpinfo() output). The workaround here can be to write your commands to a file from php, then <strong>chmod</strong> that file with 0755 permissions (rwx-rx-rx), and run the file through <strong>exec()</strong>. In this way, PHP is not changing the LD_LIBRARY_PATH, but telling the server to run a file, which tells the server to change it. This method worked for the original author of these instructions.</li></ul><p>For passing arguments to the PHP wrapper script &#8211; check out PHP&#8217;s $argv variable (more on this <a
href="http://www.php.net/features.commandline">here</a>). If you decided to use shell-script as a wrapper for &#8220;export LD_LIBRARY_PATH&#8221;, then using $1, $2 etc will allow you to pass parameters to the shell script, e.g. in the example below</p><div
id="ig-sh-2" class="syntax_hilite"><div
class="code"><ol
class="code" style="font-family:monospace;"><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">#!/bin/bash</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">export LD_LIBRARY_PATH=/home/myusername/</div></li><li
style="font-weight: normal; vertical-align:top;"><div
style="font: normal normal 1em/1.2em monospace; margin:0; padding:0; background:none; vertical-align:top;">/home/myusername/ffmpeg -i /home/myusername/$1 $2 /home/myusername/$3</div></li></ol></div></div><p>you could pass &#8220;input file&#8221; as first argument, &#8220;parameters&#8221; as second and &#8220;output file&#8221; as third to make such a wrapper script work.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&amp;linkname=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&amp;linkname=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&amp;linkname=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&amp;linkname=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&amp;linkname=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2008%2F03%2F12%2Finstructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html&#038;title=Instructions%20on%20installing%20libmp3lame-enabled%20ffmpeg%20on%20shared%20linux%20hosting" data-a2a-url="https://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html" data-a2a-title="Instructions on installing libmp3lame-enabled ffmpeg on shared linux hosting"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2008/03/12/instructions-on-installing-libmp3lame-enabled-ffmpeg-on-shared-linux-hosting.html/feed</wfw:commentRss> <slash:comments>19</slash:comments> </item> <item><title>Fresh install of Debian Etch 4.0r1 hangs/freezes dead after boot: solution</title><link>https://bogdan.org.ua/2007/10/24/fresh-install-of-debian-etch-40r1-hangsfreezes-dead-after-boot-solution.html</link> <comments>https://bogdan.org.ua/2007/10/24/fresh-install-of-debian-etch-40r1-hangsfreezes-dead-after-boot-solution.html#comments</comments> <pubDate>Wed, 24 Oct 2007 12:38:02 +0000</pubDate> <dc:creator><![CDATA[Bogdan]]></dc:creator> <category><![CDATA[*nix]]></category> <category><![CDATA[Links]]></category> <category><![CDATA[Debian]]></category> <category><![CDATA[install]]></category> <category><![CDATA[laptop]]></category> <category><![CDATA[module]]></category> <category><![CDATA[problem]]></category> <guid
isPermaLink="false">http://bogdan.org.ua/2007/10/24/fresh-install-of-debian-etch-40r1-hangsfreezes-dead-after-boot-solution.html</guid> <description><![CDATA[Recently, I installed Debian Etch 4.0r1 onto my laptop. However, after the first boot into plain console, computer was dead-frozen after some console usage. I rebooted using the Power button &#8211; this time to gdm; and again, after some keyboard input system was hanging dead. I found the reason at debianhelp.org forums. Basically, it&#8217;s the [&#8230;]]]></description> <content:encoded><![CDATA[<p>Recently, I installed Debian Etch 4.0r1 onto my laptop. However, after the first boot into plain console, computer was dead-frozen after some console usage. I rebooted using the Power button &#8211; this time to gdm; and again, after some keyboard input system was hanging dead.</p><p>I found the reason at debianhelp.org forums. Basically, it&#8217;s the PC speaker module (pcspr) not functioning correctly. I suspect this problem manifests itself only on some types of laptops. The solution is either to somehow reconfigure the pcspkr module, or just disable it. More on how to disable the module below.<br
/> <span
id="more-240"></span><br
/> First of all, boot into console-only mode or even single-user mode. On my install GRUB loader, configured by the Debian Installer, had an option in the boot menu to boot into single-user mode.</p><p>Remember, that any sound emission attempt will freeze your computer in this scenario. So avoid any actions, which might generate a system beep. These actions include (but are in no way limited to): using TAB filename/command autocompletion, using up/down arrows in command line when there is nothing in the history above or below the current command, etc.</p><p>After successfully booting, remove the pcspkr module: <strong>modprobe -r pcspkr</strong> (if that doesn&#8217;t work, try <strong>rmmod pcspkr</strong>). Note, that this command only removes pcspkr module for the current session, and the module will be loaded again on next boot.</p><p>To permanently disable the pcspkr module, you can blacklist it. To do so, add the line <strong>blacklist pcspkr</strong> to the <strong>/etc/modprobe.d/blacklist.local</strong> file. If this file does not exist, you can create it.</p><p>On my system I already had <strong>/etc/modprobe.d/blacklist</strong> file, so I also added <strong>blacklist pcspkr</strong> line to that file. I did not check which one actually worked for me, but on the next boot pcspkr didn&#8217;t load.</p><p>I also did one more thing &#8211; configured console not to beep. This is done in <strong>/etc/inputrc</strong> file by uncommenting the following line: <strong>set bell-style visible</strong> (or you can uncomment <strong>set bell-style none</strong> to have absolutely no bell notifications).</p><p>There&#8217;s also a <a
href="http://www.ducea.com/2006/06/01/disable-ipv6-module-on-default-kernels/">method to disable IPv6 module</a>, which can be adopted for the pcspkr module. However, I didn&#8217;t use it &#8211; methods listed above helped me.</p><p>References other than already cited: <a
href="http://www.thinkwiki.org/wiki/How_to_disable_the_pc_speaker_(beep!)">how to disable PC speaker</a>, <a
href="http://ramblingfoo.blogspot.com/2007/01/how-to-disable-pcspkr-in-etch.html">how to disable PC speaker in Etch</a>.</p><p><a
class="a2a_button_citeulike" href="https://www.addtoany.com/add_to/citeulike?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F24%2Ffresh-install-of-debian-etch-40r1-hangsfreezes-dead-after-boot-solution.html&amp;linkname=Fresh%20install%20of%20Debian%20Etch%204.0r1%20hangs%2Ffreezes%20dead%20after%20boot%3A%20solution" title="CiteULike" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F24%2Ffresh-install-of-debian-etch-40r1-hangsfreezes-dead-after-boot-solution.html&amp;linkname=Fresh%20install%20of%20Debian%20Etch%204.0r1%20hangs%2Ffreezes%20dead%20after%20boot%3A%20solution" title="Pocket" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_kindle_it" href="https://www.addtoany.com/add_to/kindle_it?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F24%2Ffresh-install-of-debian-etch-40r1-hangsfreezes-dead-after-boot-solution.html&amp;linkname=Fresh%20install%20of%20Debian%20Etch%204.0r1%20hangs%2Ffreezes%20dead%20after%20boot%3A%20solution" title="Kindle It" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_evernote" href="https://www.addtoany.com/add_to/evernote?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F24%2Ffresh-install-of-debian-etch-40r1-hangsfreezes-dead-after-boot-solution.html&amp;linkname=Fresh%20install%20of%20Debian%20Etch%204.0r1%20hangs%2Ffreezes%20dead%20after%20boot%3A%20solution" title="Evernote" rel="nofollow noopener" target="_blank"></a><a
class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F24%2Ffresh-install-of-debian-etch-40r1-hangsfreezes-dead-after-boot-solution.html&amp;linkname=Fresh%20install%20of%20Debian%20Etch%204.0r1%20hangs%2Ffreezes%20dead%20after%20boot%3A%20solution" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a
class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fbogdan.org.ua%2F2007%2F10%2F24%2Ffresh-install-of-debian-etch-40r1-hangsfreezes-dead-after-boot-solution.html&#038;title=Fresh%20install%20of%20Debian%20Etch%204.0r1%20hangs%2Ffreezes%20dead%20after%20boot%3A%20solution" data-a2a-url="https://bogdan.org.ua/2007/10/24/fresh-install-of-debian-etch-40r1-hangsfreezes-dead-after-boot-solution.html" data-a2a-title="Fresh install of Debian Etch 4.0r1 hangs/freezes dead after boot: solution"><img
src="https://static.addtoany.com/buttons/share_save_120_16.png" alt="Share"></a></p>]]></content:encoded> <wfw:commentRss>https://bogdan.org.ua/2007/10/24/fresh-install-of-debian-etch-40r1-hangsfreezes-dead-after-boot-solution.html/feed</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>