<?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>33dots &#187; Cent OS</title>
	<atom:link href="http://www.33dots.com/index.php/category/centos/feed" rel="self" type="application/rss+xml" />
	<link>http://www.33dots.com</link>
	<description></description>
	<lastBuildDate>Wed, 12 Oct 2011 17:07:54 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Firefox 3.6 crashing X Server in CentOS 5.3</title>
		<link>http://www.33dots.com/index.php/linux/firefox-3-6-crashing-x-server-in-centos-5-3.html</link>
		<comments>http://www.33dots.com/index.php/linux/firefox-3-6-crashing-x-server-in-centos-5-3.html#comments</comments>
		<pubDate>Thu, 17 Feb 2011 17:49:44 +0000</pubDate>
		<dc:creator>tony</dc:creator>
				<category><![CDATA[Cent OS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.33dots.com/?p=335</guid>
		<description><![CDATA[I recently did a yum update firefox. This caused my FF to be updated to 3.6 from the earlier 3.0.
Very soon i noticed that while browsing certain sites, i was getting logged out from the X server. The FF seemed to crash my X server.
One such site was this: http://wiki.centos.org/HowTos/VNC-Server
A quick google search reveals that [...]]]></description>
			<content:encoded><![CDATA[<p>I recently did a <code>yum update firefox</code>. This caused my FF to be updated to 3.6 from the earlier 3.0.<br />
Very soon i noticed that while browsing certain sites, i was getting logged out from the X server. The FF seemed to crash my X server.</p>
<p>One such site was this: <a href="http://wiki.centos.org/HowTos/VNC-Server">http://wiki.centos.org/HowTos/VNC-Server</a></p>
<p>A quick google search reveals that this is a known issue with the the video driver.<br />
The solution was to update the CentOS to the latest 5.5.</p>
<p>However, a quick fix can be done,<br />
Add the following line to the &#8216;<em>Device</em>&#8216; section of your <em>xorg.conf</em> file (<em>/etc/X11/xorg.conf</em>).<br />
<code>Option    "XAANoOffscreenPixmaps" "true"</code><br />
Restart X by <em>Ctrl-Alt-Backspace</em></p>
<p>Check out the problem page again.</p>
<p>In some computers it might also be required to add this line too<br />
<code>Option     "AccelMethod" "XAA"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.33dots.com/index.php/linux/firefox-3-6-crashing-x-server-in-centos-5-3.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding an initialization file for XBoard in Linux</title>
		<link>http://www.33dots.com/index.php/linux/adding-an-initialization-file-for-xboard-in-linux.html</link>
		<comments>http://www.33dots.com/index.php/linux/adding-an-initialization-file-for-xboard-in-linux.html#comments</comments>
		<pubDate>Mon, 08 Nov 2010 16:38:21 +0000</pubDate>
		<dc:creator>tony</dc:creator>
				<category><![CDATA[Cent OS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.33dots.com/?p=283</guid>
		<description><![CDATA[You can set the different startup options as X resources (typically in your .Xdefaults file) or in a file named XBoard in your home directory.
A typical option sometimes has two names; a short name and a long name. Short names cannot be specified in the initialization file, they are used by typing them on the [...]]]></description>
			<content:encoded><![CDATA[<p>You can set the different startup options as <span style="text-decoration: underline;">X resources</span> (typically in your <em>.Xdefaults</em> file) or in a file named <em>XBoard</em> in your home directory.<br />
A typical option sometimes has two names; a short name and a long name. Short names cannot be specified in the initialization file, they are used by typing them on the shell command line you use  to  start  xboard.</p>
<p>The format of the file contains, one option per line like,<br />
<code>XBoard*longOptionName attributeIfAny</code></p>
<p>For Boolean options it is,<br />
<code>XBoard*longOptionName: True</code></p>
<p>My XBoard file,</p>
<pre>
[tony@localhost ~]$ cat XBoard
XBoard*searchDepth 5
XBoard*searchTime 0:5
XBoard*showThinking: True
XBoard*showCoords: True
XBoard*internetChessServerInputBox: True
XBoard*ponderNextMove: False </pre>
<p>The full list of available options can be found in <code>man Xboard</code></p>
<p>If you play over ICS (Internet chess server) frequently, you could create a <em>.icsrc</em> file in your home directory so that XBoard feeds the file&#8217;s contents to the ICS as commands upon connecting.<br />
Usually the first two lines of the file should  be your  ICS  username  and password. This will automatically log you in to ICS upon connecting.</p>
<p>Here is mine,</p>
<pre>
[tony@localhost ~]$ cat .icsrc
tonyjjose
myPassword
games
</pre>
<p>The third command <code>games</code> just prints a list of the ongoing games.</p>
<p>Btw it may be also very useful to create an application launcher (shortcut icon).<br />
In GNOME, Rightclick on <em>Desktop</em> &gt; <em>Create Launcher</em><br />
Type : Application in Terminal<br />
Name: XBoard ICS<br />
Command: xboard -ics -icshost freechess.org</p>
<p>Ok done. 1.E4 E5! <img src='http://www.33dots.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.33dots.com/index.php/linux/adding-an-initialization-file-for-xboard-in-linux.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>To test the speed of your DNS server</title>
		<link>http://www.33dots.com/index.php/linux/to-test-the-speed-of-your-dns-server.html</link>
		<comments>http://www.33dots.com/index.php/linux/to-test-the-speed-of-your-dns-server.html#comments</comments>
		<pubDate>Thu, 16 Sep 2010 17:36:19 +0000</pubDate>
		<dc:creator>tony</dc:creator>
				<category><![CDATA[Cent OS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.33dots.com/?p=278</guid>
		<description><![CDATA[Modern webpages reference resources from many domains. So time for DNS lookups can cause significant delay in browsing.
These days i was having slow internet speeds, and i suspect its due to bad performance by my ISP&#8217;s DNS server.
The speed of DNS lookup can be determined by the dig command combined with a time command,
[root@localhost ~]# [...]]]></description>
			<content:encoded><![CDATA[<p>Modern webpages reference resources from many domains. So time for DNS lookups can cause significant delay in browsing.</p>
<p>These days i was having slow internet speeds, and i suspect its due to bad performance by my ISP&#8217;s DNS server.</p>
<p>The speed of DNS lookup can be determined by the <code>dig</code> command combined with a <code>time</code> command,</p>
<pre>[root@localhost ~]# time dig @10.0.0.1 www.yahoo.co.in
......
rc.a07.yahoodns.net.    148     IN      A       87.248.120.14
.....
real    0m0.607s
.....</pre>
<p>replace 10.0.0.1 with your DNS server&#8217;s IP address.</p>
<p>you could also use <code>nslookup</code> instead of <code>dig</code></p>
<pre>[root@localhost ~]# time nslookup www.yahoo.co.in 8.8.8.8
.....
Address: 87.248.120.148
.....
real    0m0.366s
.....</pre>
<p>Here i am checking the resolution time taken from GoogleDNS</p>
<p>You could compare the performance of your DNS server with some of the free open DNS servers like, <a title="Google DNS" href="http://code.google.com/speed/public-dns/">GoogleDNS</a>(8.8.8.8), <a title="OpenDNS" href="http://www.opendns.com/">OpenDNS</a>(208.67.222.222)</p>
<p>Make sure you test with less commonly used domains as the common ones will be already cached in the DNS server&#8217;s cache.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.33dots.com/index.php/linux/to-test-the-speed-of-your-dns-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount an .iso image in linux</title>
		<link>http://www.33dots.com/index.php/linux/mount-an-iso-image-in-linux.html</link>
		<comments>http://www.33dots.com/index.php/linux/mount-an-iso-image-in-linux.html#comments</comments>
		<pubDate>Thu, 09 Sep 2010 05:19:08 +0000</pubDate>
		<dc:creator>tony</dc:creator>
				<category><![CDATA[Cent OS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.33dots.com/?p=275</guid>
		<description><![CDATA[I just wanted to extract the USB boot image from the .iso of the CentOS DVD image that i downloaded.
Now i mounted it by

[root@localhost ~]# mkdir /mnt/iso
[root@localhost ~]# mount /home/dloads/CentOS-5.2-i386-bin-DVD.iso /mnt/iso/ -t iso9660 -o loop,ro
ro mounts it read only so that we dont accidentally make no changes.
loop is required to mount it as a loop [...]]]></description>
			<content:encoded><![CDATA[<p>I just wanted to extract the USB boot image from the <code>.iso</code> of the CentOS DVD image that i downloaded.</p>
<p>Now i mounted it by
<pre>
[root@localhost ~]# mkdir /mnt/iso
[root@localhost ~]# mount /home/dloads/CentOS-5.2-i386-bin-DVD.iso /mnt/iso/ -t iso9660 -o loop,ro</pre>
<p><code>ro</code> mounts it read only so that we dont accidentally make no changes.<br />
<code>loop</code> is required to mount it as a loop device (so as to access the file as a block device).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.33dots.com/index.php/linux/mount-an-iso-image-in-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resized my root filesystem online</title>
		<link>http://www.33dots.com/index.php/linux/resized-my-root-filesystem-online.html</link>
		<comments>http://www.33dots.com/index.php/linux/resized-my-root-filesystem-online.html#comments</comments>
		<pubDate>Fri, 26 Feb 2010 17:32:25 +0000</pubDate>
		<dc:creator>tony</dc:creator>
				<category><![CDATA[Cent OS]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.33dots.com/?p=252</guid>
		<description><![CDATA[Wanted to increase the size of my root filesystem. I have my CentOS 5.3 in an LVM
[tony@localhost ~]$ df -h /
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/CentOsVG-RootLV
16G   11G  3.8G  75% /

Decided to use a less used NTFS partition. (i [...]]]></description>
			<content:encoded><![CDATA[<p>Wanted to increase the size of my <em>root</em> filesystem. I have my CentOS 5.3 in an <a href="http://en.wikipedia.org/wiki/Logical_Volume_Manager_(Linux)" title="Wikipedia article on LVM">LVM</a></p>
<pre>[tony@localhost ~]$ df -h /
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/CentOsVG-RootLV
16G   11G  3.8G  75% /
</pre>
<p>Decided to use a less used NTFS partition. (i have a Linux/Windows multiboot system)</p>
<p>The steps i did,<br />
<strong>1.</strong> Created a new <em>Physical volume</em> using the spare partition</p>
<pre>[tony@localhost ~]$ su -
Password:
[root@localhost ~]# pvcreate /dev/sda8
Physical volume "/dev/sda8" successfully created
</pre>
<p>Use  <code>pvdisplay</code>  to see the newly created physical volume, if required.</p>
<p><strong>2.</strong> Extended the <em>Volume Group</em> to include this physical volume.</p>
<pre>[root@localhost ~]# vgextend CentOsVG /dev/sda8
Volume group "CentOsVG" successfully extended
</pre>
<p><strong>3.</strong> Now, Enlarge the size of the <em>Logical volume</em> and then the <em>filesystem.</em><br />
I knew i have to use <code>lvextend</code> command, but got confused after reading the man pages, so finally decided to use the Graphical Utiliy. <img src='http://www.33dots.com/blog/wp-includes/images/smilies/icon_biggrin.gif' alt=':-D' class='wp-smiley' /><br />
<em>System &gt; Administration &gt; Logical Volume Management</em><br />
Clicked on my volume group and then, the required logical volume and &#8216;<em>Edit Properties</em>&#8216;.<br />
Set the size to use the &#8216;<em>Use Remaining</em>&#8216; and <em>Ok</em><br />
The system prompted for enlarging file system size,  and it was all over!</p>
<p>Later i figured out that i should have used the command,<br />
<code>lvextend  /dev/CentOsVG/CentOsVG-RootLV /dev/sda8</code><br />
or<br />
<code>lvextend  /dev/CentOsVG/CentOsVG-RootLV/ -l +100%FREE</code></p>
<p>And perhaps increase the size of <em>root filesystem</em> by using <code>resize2fs</code></p>
<p>Shouldn&#8217;t this require an <code>umount</code> of the /? And so use a &#8216;rescue environment&#8217; or live CD?<br />
No! Online increase of <em>ext3</em> partitions are available from kernel 2.6.10</p>
<p>Finally checked the size of the root</p>
<pre>[tony@localhost ~]$ df -h /
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/CentOsVG-RootLV
25G   11G   13G  47% /
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.33dots.com/index.php/linux/resized-my-root-filesystem-online.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

