<?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>.zugiart &#187; linux</title>
	<atom:link href="http://www.zugiart.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zugiart.com</link>
	<description>Software Engineering, buddhism, and everything else in between.</description>
	<lastBuildDate>Mon, 09 Jan 2012 05:50:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>mount.cifs Centos5 and Windows Server 2003</title>
		<link>http://www.zugiart.com/2012/01/mount-cifs-centos5-and-windows-server-2003/</link>
		<comments>http://www.zugiart.com/2012/01/mount-cifs-centos5-and-windows-server-2003/#comments</comments>
		<pubDate>Mon, 09 Jan 2012 05:06:53 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[cifs]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[server2003]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/?p=1805</guid>
		<description><![CDATA[We were trying to mount a remote directory shared by Windows Server 2003 SP2 machine using CIFS, or Common internet filesystem,&#160;from a Linux CentOS5 machine and we couldn&#8217;t get it going. So then I went on and scoured info from the net, until finally I stumbled upon all this info.&#160;In many post/pages on the net, [...]]]></description>
			<content:encoded><![CDATA[<p>We were trying to mount a remote directory shared by Windows Server 2003 SP2 machine using CIFS, or Common internet filesystem,&nbsp;from a Linux CentOS5 machine and we couldn&#8217;t get it going. So then I went on and scoured info from the net, until finally I stumbled upon all this info.&nbsp;In many post/pages on the net, people usually only tell you either information on Windows side, or information on Linux side, I&#8217;ll try to post both of my finding.&nbsp;</p>
<p><span style="font-size: large;">Windows Server authentication configuration</span></p>
<p style="padding-left: 30px;">It is important to know what specific protocol is being used to authenticate the client that tries to access the shared folder (e.g. NTLM or NTLMv2 ?). Especially in a corporate setting, the authentication setting is quite key and is strongly enforced. I figure out the settings when I stumble upon the guide to <a href="http://www.imss.caltech.edu/node/395">Enable NTLMv2 on Windows Server 2003</a>&nbsp;(from which I link the image below without prior consent <img src='http://www.zugiart.com/main/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> )</p>
<p style="padding-left: 30px;">To do this, you go to Start &gt; Program Files &gt; Administration Tools &gt; Local Security Policy</p>
<p style="padding-left: 30px;"><img src="http://www-test.imss.caltech.edu/sites/default/files/legacy/ntlmv2-w2k3sp1-02.jpg" alt="Enabling NTLMv2 On Windows Server 2003" width="600" height="304" /></p>
<p style="padding-left: 30px;">The guide shows how to set Windows Server 2003 to use NTLMv2, but in knowing this, you will know what the configuration is on the server that you are trying to access/mount into the linux box. If you are the sysadmin of the windows server, then all is well. But otherwise, you know how and what to ask from the sysadmin.&nbsp;</p>
<p><span style="font-size: large;">Using mount.cifs in /etc/fstab</span></p>
<p style="padding-left: 30px;">As we know, <a href="http://en.wikipedia.org/wiki/Fstab">/etc/fstab</a>&nbsp;is used to specify the filesystem mounting. Mount directive specified here will be executed during system startup, so whatever you put in here will persist across reboots. The command <strong>mount -a</strong>&nbsp;forces Linux to reload the config.</p>
<p style="padding-left: 30px;">Information about CIFS mount can be found in the man page. The command <a href="http://linux.die.net/man/8/mount.cifs">man mount.cifs</a>&nbsp;reveals all that you need to know about CIFS mount in Linux.</p>
<p style="padding-left: 30px;">The below is extracted from Wikipedia, which actually provides the working configuration that got our problem solved:</p>
<pre class="de1" style="font-family: monospace, Courier !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; background-color: #f9f9f9; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-bottom: 0px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; vertical-align: top; font-size: 13px; text-align: left; border-image: initial; padding-left: 30px; border: 0px none white;"><span class="co0" style="color: #666666; font-style: italic;"># mounting cifs</span>
<span class="sy0" style="font-weight: bold;">//</span>pingu<span class="sy0" style="font-weight: bold;">/</span>ashare  <span class="sy0" style="font-weight: bold;">/</span>store<span class="sy0" style="font-weight: bold;">/</span>pingu cifs <span class="re2" style="color: #007800;">credentials</span>=<span class="sy0" style="font-weight: bold;">/</span>root<span class="sy0" style="font-weight: bold;">/</span>smbpass.txt,<span style="color: #007800;">sec</span>=ntlmv2 <span class="nu0">0</span> <span class="nu0">0</span></pre>
<p style="padding-left: 30px;">&nbsp;</p>
<p style="padding-left: 30px;"><strong><span style="font-size: medium;">credentials=/path/to/file</span></strong></p>
<p style="padding-left: 30px;">The option can be used to specify the file that contains the credential information. In this case, the file may look like this:</p>
<pre class="de1" style="font-family: monospace, Courier !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; background-color: #f9f9f9; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-bottom: 0px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; vertical-align: top; font-size: 13px; text-align: left; border-image: initial; padding-left: 30px; border: 0px none white;"><span class="re2" style="color: #007800;">username</span>=&lt;username&gt;
</pre>
<pre class="de1" style="font-family: monospace, Courier !important; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; background-color: #f9f9f9; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-bottom: 0px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; vertical-align: top; font-size: 13px; text-align: left; border-image: initial; padding-left: 30px; border: 0px none white;">
<pre class="de1" style="font-family: monospace, Courier !important; border-image: initial; font: normal normal normal 1em/1.2em monospace; margin-top: 0px; margin-bottom: 0px; background-image: none; background-attachment: initial; background-origin: initial; background-clip: initial; vertical-align: top; padding: 0px; border: 0px none white;"><span class="re2" style="color: #007800;">password</span>=&lt;password&gt;</pre>
</pre>
<p style="padding-left: 30px;">The nice thing with this approach is, as the creds are stored in the file, even though it is in clear text, you can protect it as usual with the good ol&#8217; filesystem security. You may put it in /root, or in any other directory and set the appropriate permission. On top of <strong>username</strong>&nbsp;and <strong>password</strong>, you can also specify <strong>domain</strong>&nbsp;in the credential file. However, Windows server usually assumes a default domain (as the server should be registerer against a domain controller). So usually, the domain part is not needed.</p>
<p style="padding-left: 30px;"><span style="font-size: medium;"><strong>sec=ntlmv2</strong></span></p>
<p style="padding-left: 30px;">Credentials&nbsp;are not the only option you can use. If you try the above and fail, know that CIFS support different authentication protocol. So check the server side config, choose the right auth type try it on in <strong>/etc/fstab</strong>, do <strong>mount -a</strong> and see what happens.&nbsp;</p>
<p><span style="font-size: large;">Debugging</span></p>
<p style="padding-left: 30px;">To see what the OS is doing you can try <strong>dmesg | less</strong></p>
<p style="padding-left: 30px;">To see the CIFS mount status, you can try <strong>cat /proc/fs/cifs/DebugData</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2012/01/mount-cifs-centos5-and-windows-server-2003/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rotate your wallpaper in Ubuntu</title>
		<link>http://www.zugiart.com/2009/08/rotate-your-wallpaper-in-ubuntu/</link>
		<comments>http://www.zugiart.com/2009/08/rotate-your-wallpaper-in-ubuntu/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 15:02:51 +0000</pubDate>
		<dc:creator>zen</dc:creator>
				<category><![CDATA[geeky]]></category>
		<category><![CDATA[deviantart]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[wallpaper]]></category>

		<guid isPermaLink="false">http://www.zugiart.com/2009/08/rotate-your-wallpaper-in-ubuntu/</guid>
		<description><![CDATA[Ever wanted toautomatically rotate your Linux Ubuntu desktop wallpaper, like in mac? I just found out a Gnome utility that'll get the job done in no time.]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to rotate your desktop wallpaper automatically, like in mac? I just found this neat utility in Gnome: <a href="https://help.ubuntu.com/community/WallpaperTray">wallpaper-tray</a></p>
<p>Insallation is as easy as</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> wallpaper-tray</pre></div></div>

<p>To use it:</p>
<ol>
<li>Right click in your Gnome taskbar</li>
<li>Add to Panel..</li>
<li>Choose wallpaper-tray</li>
</ol>
<p>you can make it point to multiple directories in your filesystem. You can even make it follow symlinks. Indeed, it is now time to browse the <a href="http://browse.deviantart.com/customization/wallpaper/widescreen/?order=15">best HDTV wallpaper this month from Deviantart</a>.</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=7ff94722-4d1b-8fd8-bff0-12bc3493be3e" alt="" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.zugiart.com/2009/08/rotate-your-wallpaper-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

