<?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>System Network Programming Solution - Linux - windows - centos- security- cpanel - plesk -directadmin helm&#187; admin</title>
	<atom:link href="http://thegioinguonmo.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://thegioinguonmo.com</link>
	<description>SHARING EVERYTHING</description>
	<lastBuildDate>Sat, 19 May 2012 21:40:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>DirectAdmin 1.391 : pcfg_openfile: unable to check htaccess file, ensure it is readable</title>
		<link>http://thegioinguonmo.com/hosting-controller/directadmin/directadmin-1391-pcfgopenfile-unable-check-htaccess-file-ensure-readable.html</link>
		<comments>http://thegioinguonmo.com/hosting-controller/directadmin/directadmin-1391-pcfgopenfile-unable-check-htaccess-file-ensure-readable.html#comments</comments>
		<pubDate>Sat, 19 May 2012 21:40:10 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DirectAdmin]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[directadmin]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=2059</guid>
		<description><![CDATA[Today, I got a problem with one of my website. Suddenly, I could access my website using Nginx but all themes were gone. I, then, switched back to Apache. It became worse. I can&#8217;t access my website at all. The error when access my website using Apache is below : Forbidden You don't have permission [...]]]></description>
			<content:encoded><![CDATA[<p>Today, I got a problem with one of my website. Suddenly, I could access my website using Nginx but all themes were gone. I, then, switched back to Apache. It became worse. I can&#8217;t access my website at all. The error when access my website using Apache is below :</p>
<div>
<div><strong><span style="color: #ff0000;"><code>Forbidden</code></span></strong></div>
<div></div>
<div><strong><span style="color: #ff0000;"><code>You don't have permission to access / on this server.</code></span></strong></div>
<div></div>
<div><strong><span style="color: #ff0000;"><code>Additionally, a 403 Forbidden error was encountered </code><code>while</code> <code>trying to use an ErrorDocument to handle the request.</code></span></strong></div>
</div>
<div></div>
<div>At first, I thought something is wrong with my configuration but then, I could access DA control panel, Munin, phpmyadmin and any other pages without any problem. Also checked permission but it looks like it&#8217;s ok. Nothing is wrong. So, I checked error log and found error like below :</div>
<div>
<pre class="brush:shell">[Thu Dec 29 14:53:01 2011] [crit] [client xx.xx.xx.xx] (13)Permission denied: /home/admin/domains/.htaccess pcfg_openfile: unable to check htaccess file, ensure it is readable</pre>
<p>Google and found in DirectAdmin. Basically, it&#8217;s something about permission which I may not know what it is. John is kindly provided an updated <strong>set_permissions.sh</strong> allow us to set permission to specific user. You can get it from here -&gt; <a rel="nofollow" target="_blank" href="http://files.directadmin.com/services/all/set_permissions.sh">http://files.directadmin.com/services/all/set_permissions.sh</a></p>
<p>Use it by type :</p>
<pre class="brush:shell">./set_permisions.sh set_user_home username</pre>
<p>where <strong>username</strong> has to changed to the one you want. John said that <strong>set_permissions.sh</strong> will be included in the future version of DirectAdmin.</p>
<p><strong>Source : </strong><a rel="nofollow" target="_blank" href="http://www.directadmin.com/forum/showthread.php?t=39278">http://www.directadmin.com/forum/showthread.php?t=39278</a></p>
</div>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/hosting-controller/directadmin/directadmin-1391-pcfgopenfile-unable-check-htaccess-file-ensure-readable.html" title="(13)permission denied: / htaccess pcfg_openfile: unable to check htaccess file ensure it is readable cpanel vps">(13)permission denied: / htaccess pcfg_openfile: unable to check htaccess file ensure it is readable cpanel vps</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/hosting-controller/directadmin/directadmin-1391-pcfgopenfile-unable-check-htaccess-file-ensure-readable.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Back Up LVM XEN Guest Containing LVs</title>
		<link>http://thegioinguonmo.com/virtualization/xen/back-up-lvm-xen-guest-containing-lvs.html</link>
		<comments>http://thegioinguonmo.com/virtualization/xen/back-up-lvm-xen-guest-containing-lvs.html#comments</comments>
		<pubDate>Sat, 19 May 2012 09:41:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Xen]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[root]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1794</guid>
		<description><![CDATA[In my day-job all our Linux boxes (bar 3) are Xen VMs. I wanted a way to take a backup of these with out the risk of the files changing underneath. For performance reasons I am running all of them on Logical Volumes. Within these VMs the DomU OS is once again using LVM for [...]]]></description>
			<content:encoded><![CDATA[<p>In my day-job all our Linux boxes (bar 3) are Xen VMs. I wanted a way to take a backup of these with out the risk of the files changing underneath. For performance reasons I am running all of them on Logical Volumes.</p>
<p>Within these VMs the DomU OS is once again using LVM for various reasons. This does create some headaches for taking the backup.</p>
<p>The basic idea is:</p>
<ol>
<li>Create a snapshot Logical Volume</li>
<li>Allow the Dom0 to see the Logical Volumes within the Logical Volume (phew).</li>
<li>Mount the newly discovered Logical Volumes.</li>
<li>Take backup</li>
<li>Tidy up</li>
</ol>
<p>There are couple of assumptions that I have made. I have assumed that you have used custom names for the Volume Groups in either (or both) the Dom0 (host) or DomU (guest). Personally, I always use a kickstart file to create my DomUs, so I have the main VG set to XenVG00. All my DomU’s are all in a VG on the Dom0 called vg_xen &#8211; this is not essential though.</p>
<p>The second assumption is that you have some spare space in the Volume Group holding the DomU images. It does not need to be much, as we will be removing the snapshot volume when we have finished with it.</p>
<p>First off, we need to create our snapshot:</p>
<p>[root@dom0 ~]# lvcreate -L 1G -s -n lv_snapshot/dev/vg_xen/lv_xen_snaptest</p>
<p>Logical volume “lv_snapshot” created</p>
<p>This creates a snapshot volume called lv_snapshot of the a DomU which is using a Dom0 LV called lv_xen_snaptest. This is useful in itself as you could now take an image of this LV. I do exactly this for Disaster Recovery (dd if=/dev/vg_xen/lv_snapshot | bzip2 | dd of=/path/to/dr_image.bz2). In a worst case scenario, this image could be dd’ed back into a new Logical Volume, on a new system, for a new instance of Xen to run.</p>
<p>What we want to do though is get to the files in this snapshot. As the DomU is using LVM, this is unfortunately non-trivial. First we have to use kpartx to extract the LV data:</p>
<p>[root@dom0 ~]# kpartx -av /dev/vg_xen/lv_snapshot</p>
<p>add map lv_snapshot1 : 0 208782 linear /dev/vg_xen/lv_snapshot 63<br />
add map lv_snapshot2 : 0 20755980 linear /dev/vg_xen/lv_snapshot 208845</p>
<p>You can see 2 LVs have been found. As lv_snapshot1 is smaller, we know that is the swap file and lv_snapshot2 is the / file system. We now need to get LVM to see these LVs and activate them.</p>
<p>[root@dom0 ~]# vgscan</p>
<p>Reading all physical volumes. This may take a while…<br />
Found volume group “vg_xen” using metadata type lvm2<br />
Found volume group “XenVG00″ using metadata type lvm2<br />
Found volume group “VolGroup00″ using metadata type lvm2</p>
<p>[root@dom0 ~]# vgchange -ay XenVG00</p>
<p>2 logical volume(s) in volume group “XenVG00″ now active</p>
<p>Now the LVs are active we can mount them as if they were any other disk.</p>
<p>[root@dom0 ~]# mount /dev/XenVG00/LVroot /mnt/</p>
<p>And run any command we like</p>
<p>[root@dom0 ~]# rsync -avhp /mnt/ /backup/xen_test/</p>
<p>Obviously we now have to clean after ourselves:</p>
<p>[root@dom0 ~]# umount /mnt<br />
[root@dom0 ~]# vgchange -an XenVG00</p>
<p>0 logical volume(s) in volume group “XenVG00″ now active</p>
<p>[root@dom0 ~]# kpartx -d /dev/vg_xen/lv_snapshot<br />
[root@dom0 ~]# lvremove /dev/vg_xen/lv_snapshot</p>
<p>Do you really want to remove active logical volume “lv_snapshot”? [y/n]: y<br />
Logical volume “lv_snapshot” successfully removed</p>
<p>The important thing here is that we have not at any point paused our VM, but we have been able to make a full backup of it.</p>
<p>The size of the snapshot volume is the hard bit here. I have used a 1G snapshot LV. To give an idea of how big it needs to be: by the time a DR image of my wiki has been taken, bzipped and sent over SSH to another box for storage, the snapshot usage has reached nearly 7%.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/virtualization/xen/back-up-lvm-xen-guest-containing-lvs.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD How to restart inetd service / daemon</title>
		<link>http://thegioinguonmo.com/os/linux/freebsd-how-to-restart-inetd-service-daemon.html</link>
		<comments>http://thegioinguonmo.com/os/linux/freebsd-how-to-restart-inetd-service-daemon.html#comments</comments>
		<pubDate>Fri, 18 May 2012 21:42:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[HUP]]></category>
		<category><![CDATA[killall]]></category>
		<category><![CDATA[root user]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[use]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1600</guid>
		<description><![CDATA[inetd is referred to as the Internet Super-Server because it manages connections for several services. When a connection is received by inetd, it determines which program the connection is destined for, spawns the particular process and delegates the socket to it. First login as a root user. FreeBSD version 5.0/6.0 or later Newer version of [...]]]></description>
			<content:encoded><![CDATA[<p>inetd is referred to as the Internet Super-Server because it manages connections for several services. When a connection is received by inetd, it determines which program the connection is destined for, spawns the particular process and delegates the socket to it. First login as a root user.</p>
<h3>FreeBSD version 5.0/6.0 or later</h3>
<p>Newer version of FreeBSD has special start, stop, restart script, you can use this script restart inetd:</p>
<pre>#/etc/rc.d/inetd restart</pre>
<p>Old method (works on all variant of UNIX/Linux/BSD oses)<br />
Once you made changes to inetd (internet super-server)configuration file (/etc/inetd.conf) you can use kill or killall command as follows to restart inetd:</p>
<pre># killall -HUP inetd</pre>
<p>OR</p>
<pre># kill -HUP inetd</pre>
<p>OR</p>
<pre># kill -HUP `cat /var/run/inetd.pid`</pre>
<p>This causes the inetd program to restart and examine its configuration files. This is especially useful if you have changed the configuration settings.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/freebsd-how-to-restart-inetd-service-daemon.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PPP in container</title>
		<link>http://thegioinguonmo.com/virtualization/openvz/ppp-in-container.html</link>
		<comments>http://thegioinguonmo.com/virtualization/openvz/ppp-in-container.html#comments</comments>
		<pubDate>Fri, 18 May 2012 09:41:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[OpenVZ]]></category>
		<category><![CDATA[HN]]></category>
		<category><![CDATA[lsmod]]></category>
		<category><![CDATA[machine]]></category>
		<category><![CDATA[modprobe]]></category>
		<category><![CDATA[PPP]]></category>
		<category><![CDATA[ppp async]]></category>
		<category><![CDATA[pppd]]></category>
		<category><![CDATA[setup]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1445</guid>
		<description><![CDATA[Our goal is to start the pppd daemon in a virtual machine. Then it is possible, for example, to connect to your DSL provider in a VM. Caveat This feature is experimental. It currently requires a version of vzctl patched with this patch. It is also necessary to run one of these 2 kernels : 2.6.27 [...]]]></description>
			<content:encoded><![CDATA[<p>Our goal is to start the pppd daemon in a virtual machine. Then it is possible, for example, to connect to your DSL provider in a VM.<br />
<a id="Caveat" name="Caveat"></a></p>
<h2>Caveat</h2>
<p>This feature is experimental. It currently requires a version of vzctl patched with <a rel="nofollow" target="_blank" title="http://git.openvz.org/?p=vzctl;a=commitdiff;h=d78a7653d983269553763d536f69de0bb5109353" href="http://git.openvz.org/?p=vzctl;a=commitdiff;h=d78a7653d983269553763d536f69de0bb5109353" rel="nofollow">this patch</a>.</p>
<p>It is also necessary to run one of these 2 kernels :</p>
<ul>
<li>2.6.27 briullov.1 or later</li>
<li>rhel5 064.4 or later</li>
</ul>
<p><a id="Howto" name="Howto"></a></p>
<h2>Howto</h2>
<ul>
<li>ppp modules need to be loaded in the HN :</li>
</ul>
<blockquote><p>HN # modprobe ppp_async<br />
HN # modprobe ppp_deflate<br />
HN # lsmod | grep ppp<br />
ppp_deflate 9793 2<br />
zlib_deflate 21977 1 ppp_deflate<br />
ppp_async 15169 1<br />
crc_ccitt 6337 1 ppp_async<br />
ppp_generic 30165 6 ppp_deflate,ppp_async<br />
slhc 10561 1 ppp_generic</p></blockquote>
<ul>
<li>set “ppp” feature for stoppped VE:</li>
</ul>
<pre class="brush:plain">HN # vzctl set [VEnumber] --features ppp:on --save</pre>
<ul>
<li>start VE :</li>
</ul>
<pre class="brush:plain">HN # vzctl start [VEnumber]</pre>
<ul>
<li>Prepare /dev/ppp within VE:</li>
</ul>
<pre class="brush:plain">HN # vzctl set [VEnumber] --devices c:108:0:rw --save
HN # vzctl exec [VEnumber] mknod /dev/ppp c 108 0
HN # vzctl exec [VEnumber] chmod 600 /dev/ppp</pre>
<p>&nbsp;</p>
<ul>
<li>See if it works (as root):</li>
</ul>
<pre class="brush:plain">VE# /usr/sbin/pppd</pre>
<p>You should see gibberish in the standard output like</p>
<blockquote>
<pre class="brush:plain">    ~�}#�!}!}!} }4}”}&amp;} } } } }%}&amp;)Q�}4}’}”}(}”p})</pre>
</blockquote>
<p>If there is an error message instead, something went wrong.</p>
<ul>
<li>From that point, you can finish your setup as in a real hardware environment.</li>
</ul>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/virtualization/openvz/ppp-in-container.html" title="plesk iptables ipv6 error">plesk iptables ipv6 error</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/virtualization/openvz/ppp-in-container.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>howto: turn off safe_mode in Plesk?</title>
		<link>http://thegioinguonmo.com/hosting-controller/plesk-control-panel/howto-turn-off-safe_mode-in-plesk.html</link>
		<comments>http://thegioinguonmo.com/hosting-controller/plesk-control-panel/howto-turn-off-safe_mode-in-plesk.html#comments</comments>
		<pubDate>Thu, 17 May 2012 21:40:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Plesk]]></category>
		<category><![CDATA[domainname]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[lt domain]]></category>
		<category><![CDATA[mode]]></category>
		<category><![CDATA[panel]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[plesk control panel]]></category>
		<category><![CDATA[psa]]></category>
		<category><![CDATA[way]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=514</guid>
		<description><![CDATA[How to turn of safe_mode in Plesk? There are 2 ways to turn off safe_mode for a domain in Plesk. 1) From the Plesk control panel.  Login to Plesk &#62;&#62; click “Domains” &#62;&#62; click “domainname.tld”  &#62;&#62; click “WebSite Settings” &#62;&#62; make sure PHP support is checked, but “safe_mode” is  unchecked &#62;&#62; click Save. 2) The [...]]]></description>
			<content:encoded><![CDATA[<p><strong>How to turn of safe_mode in Plesk?</strong> There are 2 ways to turn off safe_mode for a domain in Plesk.</p>
<blockquote><p><strong>1) From the Plesk control panel.  Login to Plesk &gt;&gt; click “Domains” &gt;&gt; click “domainname.tld”  &gt;&gt; click “WebSite Settings” &gt;&gt; make sure PHP support is checked, but “safe_mode” is  unchecked &gt;&gt; click Save.</strong></p></blockquote>
<blockquote><p><strong>2) The second way is to turn off sqfe_mode using vhost.conf file. Create a vhost.conf file under “/var/www/vhosts/domainname.tld/conf/” directory and place the following lines:</strong></p></blockquote>
<blockquote><p><strong>&lt;Directory /home/httpd/vhosts/&lt;domain.com&gt;/httpdocs&gt;<br />
php_admin_flag safe_mode off<br />
&lt;/Directory&gt;</strong></p></blockquote>
<p>Now, in order <strong>for Plesk to read these changes</strong>, execute</p>
<blockquote><p><strong>/usr/local/psa/admin/bin/websrvmng -a<br />
service httpd restart</strong></p></blockquote>
<p>You can <strong>enable “register_globals” for a domain the same way mentioned in the 2nd step</strong> but make sure to execute the 2 commands for the changes to take effect.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/hosting-controller/plesk-control-panel/howto-turn-off-safe_mode-in-plesk.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script to find how many mails sent from an account</title>
		<link>http://thegioinguonmo.com/os/linux/script-to-find-how-many-mails-sent-from-an-account.html</link>
		<comments>http://thegioinguonmo.com/os/linux/script-to-find-how-many-mails-sent-from-an-account.html#comments</comments>
		<pubDate>Thu, 17 May 2012 09:40:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=145</guid>
		<description><![CDATA[grep xxx@xxx.com /var/log/exim_mainlog &#124; grep “&#60;=” &#124; awk {’print $3′} &#124; wc -l]]></description>
			<content:encoded><![CDATA[<p>grep <a rel="nofollow" target="_blank" href="mailto:nursing@reseller9.serverc1.com" target="_blank">xxx@xxx.com</a> /var/log/exim_mainlog | grep “&lt;=” | awk {’print $3′} | wc -l</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/script-to-find-how-many-mails-sent-from-an-account.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to read core.xxx files in linux</title>
		<link>http://thegioinguonmo.com/os/linux/how-to-read-core-xxx-files-in-linux.html</link>
		<comments>http://thegioinguonmo.com/os/linux/how-to-read-core-xxx-files-in-linux.html#comments</comments>
		<pubDate>Wed, 16 May 2012 21:40:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux servers]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[state]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1022</guid>
		<description><![CDATA[How to view core.xx files in Linux? The core.xxx files are created on Linux servers and holds the current state of a process working memory when a process is crashed. To view the core.xx files in Linux, execute the command: root@host [~]# strings core.xxx It will list different state of a process on each line.]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>How to view core.xx files in Linux? </strong></span></p>
<p>The <strong>core.xxx files</strong> are created on Linux servers and <strong>holds the current state of a process working memory when a process is crashed.</strong> To view the core.xx files in Linux, execute the command:</p>
<blockquote>
<pre class="brush:plain">root@host [~]# strings core.xxx</pre>
</blockquote>
<p>It will list different state of a process on each line.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/how-to-read-core-xxx-files-in-linux.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>error: PIX_FMT_RGBA32 undeclared</title>
		<link>http://thegioinguonmo.com/os/linux/error-pix_fmt_rgba32-undeclared.html</link>
		<comments>http://thegioinguonmo.com/os/linux/error-pix_fmt_rgba32-undeclared.html#comments</comments>
		<pubDate>Wed, 16 May 2012 09:43:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[frame c]]></category>
		<category><![CDATA[Message]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[RGB]]></category>
		<category><![CDATA[undefined symbol]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=992</guid>
		<description><![CDATA[The error message “Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so” is received when you add the ffmpeg.so extension to the PHP configuration file i.e. php.ini file and tries to run PHP. You can easily reproduce the error message by executing “php -v”: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so’ – /usr/lib64/php/modules/ffmpeg.so: undefined symbol: [...]]]></description>
			<content:encoded><![CDATA[<p>The error message <strong>“Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so”</strong> is received when you add the ffmpeg.so extension to the PHP configuration file i.e. php.ini file and tries to run PHP. You can easily reproduce the error message by executing “php -v”:</p>
<blockquote>
<pre class="brush:plain">PHP Warning:  PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so’ – /usr/lib64/php/modules/ffmpeg.so:
undefined symbol: _php_create_ffmpeg_frame in Unknown on line 0</pre>
</blockquote>
<p>You may also notice the “PIX_FMT_RGBA32″ error message while compiling ffmpeg-php</p>
<blockquote><p><strong>ffmpeg-php-0.5.0/ffmpeg_frame.c:495: error: ‘PIX_FMT_RGBA32′ undeclared (first use in this function)</strong></p></blockquote>
<p><strong>The above error messages is the result of incorrect function declared in the ffmpeg_frame.c file</strong> under the ffmpeg-php-0.x.0 directory.</p>
<p><strong>Solution:</strong></p>
<p>Goto the the ffmpeg-php-0.x.0 directory and edit the ffmpeg_frame.c file</p>
<blockquote><p><strong>vi ffmpeg-php-0.x.0/ffmpeg_frame.c</strong></p></blockquote>
<p>Now replace every instance of ‘PIX_FMT_RGBA32′ with ‘PIX_FMT_RGB32′ in the file by executing</p>
<blockquote><p><strong>:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32</strong></p></blockquote>
<p><strong>OR</strong></p>
<blockquote><p><strong>replace “PIX_FMT_RGBA32″ “PIX_FMT_RGB32″ — ffmpeg_frame.c</strong><strong><br />
</strong></p></blockquote>
<p>Save the file and compile ‘ffmpeg-php’ again using the following steps</p>
<blockquote>
<pre class="brush:plain">cd ffmpeg-php-0.x.0
make clean
./configure
make
make install</pre>
</blockquote>
<p>Once done, ffmpeg should work along with PHP now.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/error-pix_fmt_rgba32-undeclared.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ghosting The Machine</title>
		<link>http://thegioinguonmo.com/os/linux/ghosting-the-machine.html</link>
		<comments>http://thegioinguonmo.com/os/linux/ghosting-the-machine.html#comments</comments>
		<pubDate>Tue, 15 May 2012 21:40:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PC]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1286</guid>
		<description><![CDATA[This is a short but potentially extremely handy guide to ghosting one Linux box to another (or simply making a full backup of a desktop/server). Credit goes to ‘topdog’ for this. You might have a small office where you customise one desktop just how you like it and need to roll this out to N [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short but potentially extremely handy guide to ghosting one Linux box to another (or simply making a full backup of a desktop/server). Credit goes to ‘topdog’ for this.</p>
<p>You might have a small office where you customise one desktop just how you like it and need to roll this out to N other PC’s or simply want a backup of a server or desktop to another machine or even to an image file.</p>
<p>The main tool here is netcat which is extremely powerful and has a multitude of other great uses that won’t be covered here.</p>
<p>Target Machine:</p>
<p>** Boot to linux rescue mode with networking (CentOS works fine)</p>
<p>Initiate netcat to listen on port 30 – # nc -l -p<br />
| dd of=/dev/sda (assuming the hard drive is sda and not hda):</p>
<p><code># nc -l -p 30 | dd of=/dev/sda</code></p>
<p>Source Machine:</p>
<p>Dump the contents of the disk to the target PC – #dd if=/dev/sda | nc</p>
<p><code># dd if=/dev/sda | nc 192.168.0.20 30</code></p>
<p>Then to check that traffic is flowing, on the source go to another terminal (ALT/F2) and dump the tcp data on the NIC (assuming it’s eth0):</p>
<p><code>tcpdump -tnli eth0 port 30</code></p>
<p>If you just want a backup image you could change the above output on the taget to:</p>
<p><code># nc -l -p 30 | dd of=mybackup.img</code></p>
<p>That’s it. Naturally the target PC/disk cannot be smaller than the source:) I hope this saves someone a lot of time.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/ghosting-the-machine.html" title="centos nc and dd">centos nc and dd</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/ghosting-the-machine.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Renaming files with –– at the start</title>
		<link>http://thegioinguonmo.com/os/linux/renaming-files-with-%e2%80%93%e2%80%93-at-the-start.html</link>
		<comments>http://thegioinguonmo.com/os/linux/renaming-files-with-%e2%80%93%e2%80%93-at-the-start.html#comments</comments>
		<pubDate>Tue, 15 May 2012 09:39:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1383</guid>
		<description><![CDATA[I’m making a post about this because I ran into this today and I couldn’t remember how to rename a file starting with — (two or double hyphens) in Linux (e.g. –index.html). The customer has obviously used a Windows FTP client to rename index.html to –index.html so it is out of their way, and now [...]]]></description>
			<content:encoded><![CDATA[<p>I’m making a post about this because I ran into this today and I couldn’t remember how to rename a file starting with — (two or double hyphens) in Linux (e.g. –index.html). The customer has obviously used a Windows FTP client to rename index.html to –index.html so it is out of their way, and now me, the server administrator or company sysadmin, has come along with my migration script to relocate it and it has fallen over, crashed, and burned!</p>
<p>When you try and rename it the following is given:</p>
<blockquote>
<pre class="brush:plain">$ mv ––index.html index.html.renamed
mv: unrecognized option `––index.html’
Try `mv ––help’ for more information.</pre>
</blockquote>
<p>I also tried delimiting it the normal way, but it wouldn’t work either:</p>
<blockquote>
<pre class="brush:plain">    mv \–\–index.html index.html.renamed</pre>
</blockquote>
<p>The correct way to rename it is:</p>
<blockquote>
<pre class="brush:plain">    mv ./––index.html index.html.renamed</pre>
</blockquote>
<p>Because –– has special meaning, you can’t delimit it with a simple backslash (\), you have to put a path reference in there to delimit it. So my path working directory (pwd) was /home/user/data/ where the file was located, so I could use ./ to reference the current pwd. The other option is to put the full path in:</p>
<blockquote>
<pre class="brush:plain">    mv /home/user/data/––index.html index.html.renamed</pre>
</blockquote>
<p>Hopefully this helps out some other Linux server administrator out there who’s mind it has slipped.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/renaming-files-with-%e2%80%93%e2%80%93-at-the-start.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: thegioinguonmo.com @ 2012-05-20 17:45:15 -->
