<?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>~ overflow ~ &#187; linux</title>
	<atom:link href="http://www.overflow.biz/blog/lang/en-us/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.overflow.biz/blog</link>
	<description>Coding and Internet Randomness</description>
	<lastBuildDate>Sun, 08 Jan 2012 23:34:17 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en-us</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>FTP not working?</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2011/05/24/ftp-not-working?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=ftp-not-working</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2011/05/24/ftp-not-working#comments</comments>
		<pubDate>Tue, 24 May 2011 20:40:14 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Linux Happyness]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[ftpd]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[selinux]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=530</guid>
		<description><![CDATA[Problem:
FTPd is working however when you try to login you get access denied on user&#8217;s home folder, no matter what accesses and group/user combination.
Solution:
Check /var/log/audit/autit.log and /var/log/messages
This usually is a SELinux block, fix it using:
 setsebool -P ftp_home_dir=1
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>FTPd is working however when you try to login you get access denied on user&#8217;s home folder, no matter what accesses and group/user combination.</p>
<p><strong>Solution:</strong><br />
Check /var/log/audit/autit.log and /var/log/messages<br />
This usually is a SELinux block, fix it using:</p>
<pre class="brush: bash;"> setsebool -P ftp_home_dir=1</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2011/05/24/ftp-not-working/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change sendmail&#8217;s outgoing ip</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2011/04/16/change-sendmails-outgoing-ip?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=change-sendmails-outgoing-ip</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2011/04/16/change-sendmails-outgoing-ip#comments</comments>
		<pubDate>Sat, 16 Apr 2011 15:21:47 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux Happyness]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sendmail]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=528</guid>
		<description><![CDATA[Problem:
How to change sendmail&#8217;s outgoing ip?
Solution:
This is the ip that will be used to deliver messages, this ip might get blacklisted if one of your happy clients on a shared server decides to send a mass email.
Sendmail is always a bitch to config, but this time it wasn&#8217;t, just change your .m4 file adding:

CLIENT_OPTIONS(`Addr=123.456.789')dnl

rebuild the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>How to change sendmail&#8217;s outgoing ip?</p>
<p><strong>Solution:</strong></p>
<p>This is the ip that will be used to deliver messages, this ip might get blacklisted if one of your happy clients on a shared server decides to send a mass email.<br />
Sendmail is always a bitch to config, but this time it wasn&#8217;t, just change your .m4 file adding:</p>
<pre class="brush: bash;">
CLIENT_OPTIONS(`Addr=123.456.789')dnl
</pre>
<p>rebuild the .cf file, restart sendmail and you&#8217;re done. In my case, I had a specific ip on the server that got &#8220;temporary&#8221; (permanently) blocked by gmail. Although new mail wasn&#8217;t being sent after the flood, google never unblocked my server, even after a week i still getting &#8220;limit rate exceeded&#8221; messages. Since I have many IPs on the server it was easier just to bind sendmail to another IP.</p>
<p><strong>Source:</strong></p>
<p><a href="http://serverfault.com/questions/90706/sendmail-default-ip">Server Fault</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2011/04/16/change-sendmails-outgoing-ip/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding big files on linux</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2011/04/02/finding-big-files-on-linux?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=finding-big-files-on-linux</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2011/04/02/finding-big-files-on-linux#comments</comments>
		<pubDate>Sat, 02 Apr 2011 21:44:05 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Linux Happyness]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=522</guid>
		<description><![CDATA[Problem:
How to find big files on linux?
Solution:

 find / -type f -size +50000k

This will find files bigger than 50MB (50000k)
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>How to find big files on linux?</p>
<p><strong>Solution:</strong></p>
<pre class="brush: bash;">
 find / -type f -size +50000k
</pre>
<p>This will find files bigger than 50MB (50000k)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2011/04/02/finding-big-files-on-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>rsync over ssh with custom port</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/10/29/rsync-over-ssh-with-custom-port?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=rsync-over-ssh-with-custom-port</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/10/29/rsync-over-ssh-with-custom-port#comments</comments>
		<pubDate>Fri, 29 Oct 2010 18:12:19 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Linux Happyness]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rsync]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=496</guid>
		<description><![CDATA[Problem:
How to do a rsync with custom ssh port ?
Solution:
This was a bit hard to find, so i&#8217;m posting it.
add:
-e &#8220;ssh -p PORT_NUMBER -C -oCompressionLevel=9&#8243;
to the command, like this:

rsync -azv --bwlimit=400 -e &#34;ssh -p 12345 -C -oCompressionLevel=9&#34; YOUR_HAPPY_USER@YOUR_SERVER:/path/to/files/from/server /path/to/local

Source:
mostly code
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>How to do a rsync with custom ssh port ?</p>
<p><strong>Solution:</strong></p>
<p>This was a bit hard to find, so i&#8217;m posting it.<br />
add:<br />
<strong>-e &#8220;ssh -p <span style="text-decoration: underline;">PORT_NUMBER</span> -C -oCompressionLevel=9&#8243;</strong></p>
<p>to the command, like this:</p>
<pre class="brush: bash;">
rsync -azv --bwlimit=400 -e &#34;ssh -p 12345 -C -oCompressionLevel=9&#34; YOUR_HAPPY_USER@YOUR_SERVER:/path/to/files/from/server /path/to/local
</pre>
<p><strong>Source:</strong></p>
<p><a href="http://mostlycode.wordpress.com/2009/11/14/rsync-over-ssh-with-custom-port/" target="_blank">mostly code</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/10/29/rsync-over-ssh-with-custom-port/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable local email delivery on hosted domains</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/09/04/disable-local-email-delivery-on-hosted-domains?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=disable-local-email-delivery-on-hosted-domains</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/09/04/disable-local-email-delivery-on-hosted-domains#comments</comments>
		<pubDate>Sat, 04 Sep 2010 04:24:48 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Linux Happyness]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mail delivery]]></category>
		<category><![CDATA[mx]]></category>
		<category><![CDATA[sendmail]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=482</guid>
		<description><![CDATA[Problem:
There&#8217;s some domains on a server that users a external server to process the emails (eg. google servers, aspmx.l.google.com) those emails are all fine when sent from outside the box but when sent from the box they fail to reach the destination or get delivered to a local user.
Solution:

define(`MAIL_HUB', `example.com.')dnl
define(`LOCAL_RELAY', `example.com.')dnl

For sendmail, this will make [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>There&#8217;s some domains on a server that users a external server to process the emails (eg. google servers, aspmx.l.google.com) those emails are all fine when sent from outside the box but when sent from the box they fail to reach the destination or get delivered to a local user.</p>
<p><strong>Solution:</strong></p>
<pre class="brush: plain;">
define(`MAIL_HUB', `example.com.')dnl
define(`LOCAL_RELAY', `example.com.')dnl
</pre>
<p>For sendmail, this will make the domain&#8217;s emails to be delivered to the ip address assigned at the domain&#8217;s MX record.</p>
<p><strong>Note:</strong></p>
<p>This seemed promising for me at first look, but it will redirect ALL local domains to this MX record, ruining everything. Nothing new when dealing with sendmail, anyway when i find a better solution for this i will update this post again.</p>
<p><strong>Source:</strong></p>
<p><a href="http://serverfault.com/questions/65365/disable-local-delivery-in-sendmail/128450#128450" target="_blank">ServerFault</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/09/04/disable-local-email-delivery-on-hosted-domains/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find disk UUID</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/07/05/how-to-find-disk-uuid?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-find-disk-uuid</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/07/05/how-to-find-disk-uuid#comments</comments>
		<pubDate>Mon, 05 Jul 2010 18:23:05 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Linux Happyness]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[blkid]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[fstab]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[uuid]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=460</guid>
		<description><![CDATA[Problem:
I wanted to change the default mounts at /etc/fstab, but i couldn&#8217;t find the disks UUID.
Solution:

blkid /dev/DEVNAME

]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>I wanted to change the default mounts at /etc/fstab, but i couldn&#8217;t find the disks UUID.</p>
<p><strong>Solution:</strong></p>
<pre class="brush: bash;">
blkid /dev/DEVNAME
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/07/05/how-to-find-disk-uuid/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to figure out how many sectors a disk has on linux</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/07/05/how-to-figure-out-how-many-sectors-a-disk-has-on-linux?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-figure-out-how-many-sectors-a-disk-has-on-linux</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/07/05/how-to-figure-out-how-many-sectors-a-disk-has-on-linux#comments</comments>
		<pubDate>Mon, 05 Jul 2010 18:21:43 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Linux Happyness]]></category>
		<category><![CDATA[hdparm]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[sectors]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=458</guid>
		<description><![CDATA[Problem:
How to find out the absolute count of sectors on a disk at linux?
Solution:

hdparm /dev/YOURDEV

]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>How to find out the absolute count of sectors on a disk at linux?</p>
<p><strong>Solution:</strong></p>
<pre class="brush: bash;">
hdparm /dev/YOURDEV
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/07/05/how-to-figure-out-how-many-sectors-a-disk-has-on-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to clone a disk on linux</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/07/05/how-to-clone-a-disk-on-linux?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-clone-a-disk-on-linux</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/07/05/how-to-clone-a-disk-on-linux#comments</comments>
		<pubDate>Mon, 05 Jul 2010 18:20:14 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Linux Happyness]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[dd]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mkiso]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=456</guid>
		<description><![CDATA[Problem:
How to do a 1:1 copy of a disk on linux?
Solution:

dd bs=4k if=/dev/SOURCE of=/dev/DESTINATION conv=noerror,sync

This will make a 1:1 copy directly into the destination device, you should be aware that both devices should have the same size, so make sure you know which one is the source and destination in order to avoid catastrophic fail.
For [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>How to do a 1:1 copy of a disk on linux?</p>
<p><strong>Solution:</strong></p>
<pre class="brush: bash;">
dd bs=4k if=/dev/SOURCE of=/dev/DESTINATION conv=noerror,sync
</pre>
<p>This will make a 1:1 copy directly into the destination device, you should be aware that both devices should have the same size, so make sure you know which one is the source and destination in order to avoid catastrophic fail.</p>
<p>For your enjoyment, you can also make a iso image:</p>
<pre class="brush: bash;">
dd if=/dev/SOURCE of=/path/to/image.iso
</pre>
<p><strong>Source:</strong></p>
<p><a href="http://www.ehow.com/how_4924091_clone-hard-drive-linux.html" target="_blank">E-How (Spam Warning)</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/07/05/how-to-clone-a-disk-on-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to scroll on a bash screen</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/05/25/how-to-scroll-on-a-bash-screen?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=how-to-scroll-on-a-bash-screen</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/05/25/how-to-scroll-on-a-bash-screen#comments</comments>
		<pubDate>Tue, 25 May 2010 13:58:13 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Notes]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[scroll]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=433</guid>
		<description><![CDATA[Problem:
It&#8217;s so cool to have many screens at bash, but i never figured out how to scroll up on them, somehow i never looked after as well.
Solution:
CTRL + A -> ESC -> PAGE UP / PAGE DOWN
Source:
SaltyCrane
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>It&#8217;s so cool to have many screens at bash, but i never figured out how to scroll up on them, somehow i never looked after as well.</p>
<p><strong>Solution:</strong></p>
<p>CTRL + A -> ESC -> PAGE UP / PAGE DOWN</p>
<p><strong>Source:</strong></p>
<p><a href="http://www.saltycrane.com/blog/2008/01/how-to-scroll-in-gnu-screen/" target="_blank">SaltyCrane</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/05/25/how-to-scroll-on-a-bash-screen/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find dependencies of a rpm with yum</title>
		<link>http://www.overflow.biz/blog/lang/en-us/2010/05/08/find-dependencies-of-a-rpm-with-yum?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=find-dependencies-of-a-rpm-with-yum</link>
		<comments>http://www.overflow.biz/blog/lang/en-us/2010/05/08/find-dependencies-of-a-rpm-with-yum#comments</comments>
		<pubDate>Sat, 08 May 2010 03:07:42 +0000</pubDate>
		<dc:creator>z3n</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Linux Happyness]]></category>
		<category><![CDATA[Tips & Hints]]></category>
		<category><![CDATA[deps]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://www.overflow.biz/blog/?p=420</guid>
		<description><![CDATA[Problem:
While installing virtualbox on my server i found out that it had a hell of deps, which i can&#8217;t seem to find.
Solution:
Search around i found out that yum is able to find and install deps off a rpm, like this:

yum localinstall --nogpgcheck VirtualBox-2.1.2_41885_fedora9-1.i386.rpm

]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>While installing virtualbox on my server i found out that it had a hell of deps, which i can&#8217;t seem to find.</p>
<p><strong>Solution:</strong></p>
<p>Search around i found out that yum is able to find and install deps off a rpm, like this:</p>
<pre class="brush: bash;">
yum localinstall --nogpgcheck VirtualBox-2.1.2_41885_fedora9-1.i386.rpm
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.overflow.biz/blog/lang/en-us/2010/05/08/find-dependencies-of-a-rpm-with-yum/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

