<?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>Sanjeev Shrestha &#187; Fedora</title>
	<atom:link href="http://www.sanjeevshrestha.com.np/category/linux/fedora/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sanjeevshrestha.com.np</link>
	<description>Blogging on Joomla Development /Codeigniter/JQuery/Mootools/Wordpress - All Related to Web</description>
	<lastBuildDate>Sun, 09 May 2010 08:15:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mounting CIFS network share in linux</title>
		<link>http://www.sanjeevshrestha.com.np/2009/04/mounting-cifs-network-share-in-linux/</link>
		<comments>http://www.sanjeevshrestha.com.np/2009/04/mounting-cifs-network-share-in-linux/#comments</comments>
		<pubDate>Mon, 13 Apr 2009 07:19:39 +0000</pubDate>
		<dc:creator>Sanjeev</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>

		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/2009/04/mounting-cifs-network-share-in-linux/</guid>
		<description><![CDATA[This is a simple sub-tutorial on mounting network shares in linux &#8211; not only fedora. These network shares can be mounted with SMB and CIFS but in this tutorial, I am talking about CIFS mounts. This, Common Internet File System (CIFS) is a proposed standard protocol that lets programs make requests for files and services [...]]]></description>
			<content:encoded><![CDATA[<p><img style="max-width: 800px; float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="http://www.sanjeevshrestha.com.np/wp-content/uploads/2009/04/610px-tux-g2-svgsvg.png" />This is a simple sub-tutorial on mounting network shares in linux &#8211; not only fedora. These network shares can be mounted with SMB and CIFS but in this tutorial, I am talking about CIFS mounts. This, Common Internet File System (CIFS) is a proposed standard protocol that lets programs make requests for files and services on remote computers on the Internet. (I got this definition from <a href="http://searchcio-midmarket.techtarget.com/sDefinition/0,,sid183_gci213851,00.html">http://searchcio-midmarket.techtarget.com/sDefinition/0,,sid183_gci213851,00.html</a>).</p>
<p>To mount a network share in linux, make sure you have smbfs daemon running. </p>
<p>The example given below talks about ad-hoc mounting a network share. This is not a permanent mount.</p>
<blockquote><p>mount -t cifs -o username=username,password=password //192.168.2.18/share_name&nbsp; /path_to/mount_point</p></blockquote>
<p><span id="more-171"></span><br />This will mount the network share at <b>192.168.2.18 </b>to <b>/path_to/mount_point</b>. After this you can access the network folder from <b>/path_to/mount_point<br /></b><br />This is useful mounting a windows share in linux. (Yes there are other ways too, but this is handy!)</p>
<blockquote><p>A little explanation<br />mount &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8211; Everyone knows about the mount command<br />-t&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &#8211; filesystem type (vfat, nfs, cifs etc. )<br />-o&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &#8211; options</p>
<p>username&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &#8211; owner username in network share<br />password&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &#8211; password for the same<br />//192.168.2.18/share_name&nbsp;&nbsp; &#8211; A publicly available share name. <br />/path_to/mount_point&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211; A local mount point. That is where to mount the network share</p></blockquote>
<p>Try it once. Happy reading <img src='http://www.sanjeevshrestha.com.np/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=861dcc28-0585-888a-9717-59fa4ac68dce" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sanjeevshrestha.com.np/2009/04/mounting-cifs-network-share-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>One fine morning, We migrated to Linux</title>
		<link>http://www.sanjeevshrestha.com.np/2009/04/one-fine-morning-we-migrated-to-linux/</link>
		<comments>http://www.sanjeevshrestha.com.np/2009/04/one-fine-morning-we-migrated-to-linux/#comments</comments>
		<pubDate>Thu, 02 Apr 2009 11:13:25 +0000</pubDate>
		<dc:creator>Sanjeev</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MyUpdates]]></category>
		<category><![CDATA[News]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[CVS. bind. .bd.]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[Migrate]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/2009/04/one-fine-morning-we-migrated-to-linux/</guid>
		<description><![CDATA[I work as a project manager/Team Lead and also look after Systems and Networks. Looking after Systems and Networks is not my primary job there but I like to tickle with Networks and Systems. 
Our system had been infested with lots of viruses and it is natural when we use Microsoft windows in almost all [...]]]></description>
			<content:encoded><![CDATA[<p><img style="max-width: 800px; float: left; margin-top: 10px; margin-bottom: 10px; margin-right: 10px;" src="http://www.sanjeevshrestha.com.np/wp-content/uploads/2009/04/fedora-logo.png" />I work as a project manager/Team Lead and also look after Systems and Networks. Looking after Systems and Networks is not my primary job there but I like to tickle with Networks and Systems. </p>
<p>Our system had been infested with lots of viruses and it is natural when we use Microsoft windows in almost all the systems. This infestation, really introduced the slag in projects. So we decided to switch our systems to linux. (We knew linux is secure and least infested by viruses and worms)</p>
<p>One fine morning of Saturday we set out to remove all the windows OS and install Linux in almost all of the systems. We still needed few windows OS, as we have applications that run on <b>.net </b>framework. <br /><span id="more-137"></span></p>
<p>We have 10 systems that are used within my team members that was to be migrated. The number though small (10), meant 10 fresh installations of Linux that could take almost a day for few people with few Fedora DVDs to install and configure the system with networks. So we decided to use DVD to install the system in 2 PCs and for others we Used network install. Network installation was tough. indeed! but we managed to install the system with USB drive and Cobbler. (I did not know about Cobbler the day before). Luckily our systems supported PXE boot. So it was easy after few hours of self study and search through internet. We managed to install other 7 system from Network. </p>
<p>After all successfull installation (except for 1 PC), we managed to install network. We use static IP given to us by our ISP so installing a <b>DHCP </b>meant more incoming&nbsp; problems so we decided to use static IPs for our system. We switched off the Network Manager, switched on the network services (This is necessary if you use Static IP otherwise your ip configuration is lost on every reboot.), configured our <b>IPs</b>, Configured&nbsp; <b>HTTP</b>, <b>FTP</b>, <b>Mysql </b>other servers in our central development server. So we are ready to roll in linux (Fedora 9 Sulphur).</p>
<p>We tested our systems it was working all right with the freshness in the air. This felt good! </p>
<p>All well,&nbsp; untill we faced a small problem with firewalls and http configurations. We were not able to browse our local server through IP. That was bad! So we decided to set up a DNS (bind) Server for easy browsing of local sites. This was how we came up with our internal TLD (.bd) that would be suffixed in every development stage for every projects. </p>
<p>This .bd is not related to TLD of bangladesh by any means, it is just a simple acronym for braindigit and is used for our convenience only. These .bd sites are not browseable outside our intranet. <img src='http://www.sanjeevshrestha.com.np/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>So bind was setup and few primary zones were created for testing. All good till this part. </p>
<p>Yes we migrated to Linux and we felt good about it. But still, there was a huge problem ahead. <b>Development tools</b>. My team had been accustomed to <b>Adobe Dreamweaver</b> and other windows tools for long, so they wanted something similar to Dreamweaver in linux too.&nbsp; I used eclipse since long so it was easy to decide the development IDE. And we have eclipse in linux too. So I advised all my team members to use eclipse. It will take some time for them to get accustomed to eclipse but for now this is solved.</p>
<p>We still needed few more applications to collaborate and work in central server. This was tough one. We hardly used SVN, CVS for development internally and setting up CVS, SVN server was though easy but useless, unless the team get accustomed to SVN or CVS. This was a huge problem. We thought for a while and I asked for suggestion from my team. As a response, they wanted something similar to windows. A folder browsing through IP (I don&#8217;t know what it is called exactly. maybe Network sharing). I knew this can be done with SSH but using SSH every now and then for development that is ridiculous and stupid (in my view). So to remedy this problem, I created NFS shares for most of the used folders in central server and mounted these folder in every team member PC. Yes I used fstab. So now they are happy developing directly in central server. </p>
<p>I know this solution is stupid but we need to get running quickly so this was the work around. </p>
<p>We set up <b>streber </b>for our small project collaboration. We have <b>openfire </b>for internal collaboration. </p>
<p>So we have successfully migrated to Linux in machines but we need more time to migrate completely to Linux in thoughts. </p>
<p>This is my first experience with Linux in workplace and I feel good that I took the initiative to migrate to Linux. I am not against Windows or Gates. This is only a quest for better and stable system and ofcourse environment. </p>
<p>I will write about all the installation steps I took to setup central servers, setting up NFS and creating a working development environment in my later posts.</p>
<p>Till then Happy Reading <img src='http://www.sanjeevshrestha.com.np/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=a22a7b8e-a453-8a44-a793-7c22484f5fac" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sanjeevshrestha.com.np/2009/04/one-fine-morning-we-migrated-to-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Listing Users in Linux</title>
		<link>http://www.sanjeevshrestha.com.np/2009/03/listing-users-in-linux/</link>
		<comments>http://www.sanjeevshrestha.com.np/2009/03/listing-users-in-linux/#comments</comments>
		<pubDate>Wed, 25 Mar 2009 12:28:17 +0000</pubDate>
		<dc:creator>Sanjeev</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[cat]]></category>
		<category><![CDATA[cut]]></category>
		<category><![CDATA[User]]></category>

		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/2009/03/listing-users-in-linux/</guid>
		<description><![CDATA[Have you ever tried to list all registered users in linux? I tried it today. I hit the terminal with users and it responded with few names. I noticed that this is much less number of people than that I have registered in the system. Oh! Where are the other users? I googled for a [...]]]></description>
			<content:encoded><![CDATA[<p>Have you ever tried to list all registered users in linux? I tried it today. I hit the terminal with <i><b>users</b></i> and it responded with few names. I noticed that this is much less number of people than that I have registered in the system. <br />Oh! Where are the other users? I googled for a while and found out a quirk technique. The <i><b>users</b></i> command only lists the currenly logged users. To list all the registered users in Linux you should </p>
<blockquote><p>cat /etc/passwd | cut -d&#8217;:&#8217; -f1</p></blockquote>
<p>This command will list all the registered users in the system.</p>
<p>I think a Little explanation is necessary.</p>
<blockquote><p>cat&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211; It joins all the strings in the file and prints it<br />/etc/passwd&nbsp;&nbsp;&nbsp; &#8211; This is the file where all the&nbsp; usernames along with their password is stored<br />|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211; Pipe the output to next program ;<br />cut &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211; cut some portion of the every line in the file with the delimeter<br />-d&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211; A switch of cat to define delimeter; here in the case :<br />-f&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#8211; Select field. Here in this case select 1st field i.e f1</p></blockquote>
<p>Happy reading <img src='http://www.sanjeevshrestha.com.np/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=8e915c61-fe4c-4bd3-9566-c5da41b24bbc" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sanjeevshrestha.com.np/2009/03/listing-users-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>chkconfig and my problem</title>
		<link>http://www.sanjeevshrestha.com.np/2009/03/chkconfig-and-my-problem/</link>
		<comments>http://www.sanjeevshrestha.com.np/2009/03/chkconfig-and-my-problem/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 08:58:55 +0000</pubDate>
		<dc:creator>Sanjeev</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[chkconfig]]></category>
		<category><![CDATA[openfire]]></category>
		<category><![CDATA[su]]></category>

		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/?p=73</guid>
		<description><![CDATA[chkconfig is used to add service, activate and deactivate the services during boot. We can say that!  . This is a handy tool to set up services to start during boot. This can relieve users from activating services manually.&#160; Enough said about chkconfig!
Sometime ago I wanted to start openfire &#8211; A Collaborative software by [...]]]></description>
			<content:encoded><![CDATA[<p>chkconfig is used to add service, activate and deactivate the services during boot. We can say that! <img src='http://www.sanjeevshrestha.com.np/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> . This is a handy tool to set up services to start during boot. This can relieve users from activating services manually.&nbsp; Enough said about chkconfig!</p>
<p>Sometime ago I wanted to start openfire &#8211; A Collaborative software by Ignite Realtime at startup with chkconfig at startup. I logged on with the general user account. And then <b>&#8217;su&#8217;</b>. (I use fedora) and then root password and tried to hit the chkconfig. But it prompted back with <i><b>&#8220;bash: chkconfig: command not found&#8221;</b></i>. I was taken aback. I remembered I ran the chkconfig earlier but also remembered I was logged in to the system as root. </p>
<p><b>So what was the problem?</b> <br />The problem was that&nbsp; I logged in to the system as general user and still issuing the &#8217;su&#8217; only changed the user but did not change the environment. (chkconfig is not available in general user environment).</p>
<p><b>The solution</b><br />The solution is simple. Change the environment along with user that is change the environment to &#8216;root&#8217; along with the user &#8216;root&#8217;. This can be done with &#8217;su -&#8217;. (Remember the dash). </p>
<blockquote><p>$su -</p>
<p>$chkconfig &#8211;level 345 openfired on // openfired is a openfire daemon already registered as service</p></blockquote>
<p>That is all!! <img src='http://www.sanjeevshrestha.com.np/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=8176e302-9015-41bd-a849-408a7d614c58" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sanjeevshrestha.com.np/2009/03/chkconfig-and-my-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Deleting Folders with rm in linux</title>
		<link>http://www.sanjeevshrestha.com.np/2009/03/deleting-folders-with-rm-in-linux/</link>
		<comments>http://www.sanjeevshrestha.com.np/2009/03/deleting-folders-with-rm-in-linux/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 08:25:33 +0000</pubDate>
		<dc:creator>Sanjeev</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Folders]]></category>

		<guid isPermaLink="false">http://www.sanjeevshrestha.com.np/2009/03/deleting-folders-with-rm-in-linux/</guid>
		<description><![CDATA[A newbie in linux with some basic knowledge of linux commands usually get stuck deleting folders in linux terminal. I happen to be newbie and had to face problems when deleting folders in linux earlier. I use fedora.
Usually there are folders with many deep rooted sub folders which you might need to delete in one [...]]]></description>
			<content:encoded><![CDATA[<p>A newbie in linux with some basic knowledge of linux commands usually get stuck deleting folders in linux terminal. I happen to be newbie and had to face problems when deleting folders in linux earlier. I use fedora.</p>
<p>Usually there are folders with many deep rooted sub folders which you might need to delete in one command call. I faced the similar problem. I knew there is a command <b>rm</b>. I used it but alas it kept on prompting <i>&#8220;cannot remove &#8216;&#8212;&#8217; : Is a directory.&#8221;</i></p>
<p>So here is a way to use rm to delete all folders and its subfolders. You can delete folders and its subfolders with -rf switch in rm command. i.e. </p>
<blockquote><p>$ rm -rf path/to/folder</p></blockquote>
<p>It will remove all the folders and its sub folders in the path. A Little Explanation:</p>
<blockquote><p><strong>rm </strong>= remove<br /><strong>-r </strong>= remove recursively<br /><strong>-f </strong>= forcefully remove </p></blockquote>
<p>Try now! <img src='http://www.sanjeevshrestha.com.np/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=475d5025-2112-43b9-b097-d8215de5b651" /></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sanjeevshrestha.com.np/2009/03/deleting-folders-with-rm-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
