<?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>Bhutan Horizon &#187; Linux</title>
	<atom:link href="http://bhutanhorizon.com/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://bhutanhorizon.com</link>
	<description>ICT Bhutan, E-Learning, Information Technology Blog, Web Design, Linux, PHP, Wordpress, Visual Studio .NET, Windows, SQL Server, ASP.NET, C#</description>
	<lastBuildDate>Sat, 28 Jan 2012 08:33:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Create User With Full Name in Linux</title>
		<link>http://bhutanhorizon.com/linux/create-user-with-full-name-in-linux.html</link>
		<comments>http://bhutanhorizon.com/linux/create-user-with-full-name-in-linux.html#comments</comments>
		<pubDate>Tue, 25 Oct 2011 13:44:06 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=345</guid>
		<description><![CDATA[If you want to add a user along with his/her full name. Here is how to do it. useradd -s /sbin/nologin -c &#8220;Younten Jamtsho&#8221; younten With the above command, I am creating a user younten, who&#8217;s full name is Younten Jamtsho. Addition to that, I am assigning nologin shell to the user younten so that he [...]]]></description>
			<content:encoded><![CDATA[<p>If you want to add a user along with his/her full name. Here is how to do it.</p>
<p><strong>useradd -s /sbin/nologin -c &#8220;Younten Jamtsho&#8221; younten</strong></p>
<p>With the above command, I am creating a user younten, who&#8217;s full name is Younten Jamtsho. Addition to that, I am assigning nologin shell to the user younten so that he cannot log in to ssh.</p>
<p>Now that you have created the user, use finger command to see the details of the user.</p>
<p><strong>finger younten</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/linux/create-user-with-full-name-in-linux.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IPTABLE Linux Firewall</title>
		<link>http://bhutanhorizon.com/linux/iptable-linux-firewall.html</link>
		<comments>http://bhutanhorizon.com/linux/iptable-linux-firewall.html#comments</comments>
		<pubDate>Sun, 15 May 2011 06:04:18 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=307</guid>
		<description><![CDATA[Linux have its own firewall package named iptables. iptables are installed by default. iptables file is located in /etc/sysconfig/iptables. Unfortunately, the /etc/sysconfig/iptables file doesn&#8217;t support the loading of modules, so you&#8217;ll have to add the statements to your /etc/rc.local file which is run at the end of every reboot. Now lets check what modules are [...]]]></description>
			<content:encoded><![CDATA[<p>Linux have its own firewall package named iptables. iptables are installed by default. iptables file is located in /etc/sysconfig/iptables. Unfortunately, the /etc/sysconfig/iptables file doesn&#8217;t support the loading of modules, so you&#8217;ll have to add the statements to your /etc/rc.local file which is run at the end of every reboot. Now lets check what modules are being loaded for iptables:</p>
<p>lsmod | grep ip_tables</p>
<p>Now lets add module for iptables.</p>
<p>vi /etc/rc.local</p>
<p># Module to track the state of connections<br />
modprobe ip_conntrack</p>
<p>Download my <a href="http://www.bhutanhorizon.com/wp-content/uploads/2011/05/iptables.txt">iptables</a> file. In this iptables file i have added so many features. Freely use it and secure your network. After downloading rename the file. as iptables only. That mean you have to remove &#8220;.txt&#8221; from the file name iptables.txt</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/linux/iptable-linux-firewall.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Clamav Antivirus</title>
		<link>http://bhutanhorizon.com/linux/install-clamav-antivirus.html</link>
		<comments>http://bhutanhorizon.com/linux/install-clamav-antivirus.html#comments</comments>
		<pubDate>Tue, 26 Apr 2011 07:27:05 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=302</guid>
		<description><![CDATA[Before you start installing Clamav Antivirus in your Linux box, please add the extra repository for yum. Install Dag repository, and how to install, go to my post Add Repository for yum. yum &#8211; -enablerepo=dag install clamav -y After installing there is few changed needed in configuration file. vim /etc/freshclam.conf #locate the line below and [...]]]></description>
			<content:encoded><![CDATA[<p>Before you start installing Clamav Antivirus in your Linux box, please add the extra repository for yum. Install Dag repository, and how to install, go to my post <a href="http://www.bhutanhorizon.com/linux/add-repositories-for-yum.html">Add Repository for yum</a>.</p>
<p>yum &#8211; -enablerepo=dag install clamav -y</p>
<p>After installing there is few changed needed in configuration file.</p>
<p>vim /etc/freshclam.conf<br />
#locate the line below and comment it<br />
#NotifyClamd /etc/clamd.conf</p>
<p>Now update the clamd and its virus defination<br />
#freshclam</p>
<p>To scan for Virus<br />
#clamscan &#8211; -infected &#8211; -remove &#8211; -recursive <location></p>
<p>eg.<br />
#clamscan &#8211; -infected &#8211; -remove &#8211; -recursive /home</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/linux/install-clamav-antivirus.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>chown</title>
		<link>http://bhutanhorizon.com/linux/chown.html</link>
		<comments>http://bhutanhorizon.com/linux/chown.html#comments</comments>
		<pubDate>Mon, 25 Apr 2011 09:47:11 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=297</guid>
		<description><![CDATA[chown stands for Change Ownership. To change the ownership and group of files and directories Change ownership of a single file chown : eg. chown root:root message.txt Change ownership of a directory and all sub files and directories chown -R : eg. chown -R root:root photo]]></description>
			<content:encoded><![CDATA[<p><strong>chown</strong> stands for Change Ownership.<br />
To change the ownership and group of files and directories</p>
<p>Change ownership of a single file</p>
<p>chown <newowner>:<newgroup> <filename></p>
<p>eg.<br />
chown root:root message.txt</p>
<p><strong>Change ownership of a directory and all sub files and directories</strong></p>
<p>chown -R <newowner>:<newgroup> <filename></p>
<p>eg.<br />
chown -R root:root photo</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/linux/chown.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fail2ban &#8211; Block attacks</title>
		<link>http://bhutanhorizon.com/linux/fail2ban-block-attacks.html</link>
		<comments>http://bhutanhorizon.com/linux/fail2ban-block-attacks.html#comments</comments>
		<pubDate>Sun, 17 Apr 2011 04:43:39 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=279</guid>
		<description><![CDATA[Your server is venerable to attacks, and you have to time and again monitor. After monitoring you have to block the attackers IP’s. Use Fail2ban package, which would ease you a bit. To install Fail2ban you need to add extra 3rd party repositories &#8211; Extra Package for Enterprise Linux (EPEL). After that you can use [...]]]></description>
			<content:encoded><![CDATA[<p>Your server is venerable to attacks, and you have to time and again monitor. After monitoring you have to block the attackers IP’s. Use Fail2ban package, which would ease you a bit. To install Fail2ban you need to add extra 3rd party repositories &#8211; Extra Package for Enterprise Linux (EPEL). After that you can use yum to install the package.</p>
<p>How to install addition repositories for your linux box (<a href="http://www.bhutanhorizon.com/linux/add-repositories-for-yum.html">Add Repository</a>)</p>
<blockquote><p>yum install fail2ban</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/linux/fail2ban-block-attacks.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add repositories for yum</title>
		<link>http://bhutanhorizon.com/linux/add-repositories-for-yum.html</link>
		<comments>http://bhutanhorizon.com/linux/add-repositories-for-yum.html#comments</comments>
		<pubDate>Sun, 17 Apr 2011 04:38:31 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=275</guid>
		<description><![CDATA[Add Dag RPM Repository for yum because that has many useful packages. wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt rpm &#8211; -import RPM-GPG-KEY.dag.txt rm -f RPM-GPG-KEY.dag.txt vim /etc/yum.repos.d/dag.repo # create new file like below [dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el5/en/$basearch/dag/ gpgcheck=1 enabled=0 When you use DAG repository, Input yum command like below. yum &#8211; -enablerepo=dag install [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Add Dag RPM Repository for yum because that has many useful packages.</strong></p>
<p>wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt<br />
rpm &#8211; -import RPM-GPG-KEY.dag.txt<br />
rm -f RPM-GPG-KEY.dag.txt<br />
vim /etc/yum.repos.d/dag.repo</p>
<p># create new file like below<br />
[dag]<br />
name=Dag RPM Repository for Red Hat Enterprise Linux<br />
baseurl=http://apt.sw.be/redhat/el5/en/$basearch/dag/<br />
gpgcheck=1<br />
enabled=0</p>
<p>When you use DAG repository, Input yum command like below.</p>
<p>yum &#8211; -enablerepo=dag install [package]</p>
<p><strong>Add repository Extra Package for Enterprise Linux (EPEL) that is provided from Fedora project.</strong></p>
<p>wget http://download.fedora.redhat.com/pub/epel/RPM-GPG-KEY-EPEL<br />
rpm &#8211; -import RPM-GPG-KEY-EPEL<br />
rm -f RPM-GPG-KEY-EPEL<br />
vim /etc/yum.repos.d/epel.repo</p>
<p># create new file like below<br />
[epel]<br />
name=EPEL RPM Repository for Red Hat Enterprise Linux<br />
baseurl=http://download.fedora.redhat.com/pub/epel/$releasever/$basearch/<br />
gpgcheck=1<br />
enabled=0</p>
<p>When you use EPEL repository, Input yum command like below.</p>
<p>yum &#8211; -enablerepo=epel install [package]</p>
<p><strong>Add <a href="http://blog.famillecollet.com/pages/Config-en">Remi Collent Repository</a></strong></p>
<p>wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm<br />
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm<br />
rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm</p>
<p>When you use Remi repository, Input yum command like below</p>
<p>yum &#8211; -enablerepo=remi install [package]</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/linux/add-repositories-for-yum.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DHCP Server</title>
		<link>http://bhutanhorizon.com/linux/dhcp-server.html</link>
		<comments>http://bhutanhorizon.com/linux/dhcp-server.html#comments</comments>
		<pubDate>Wed, 13 Apr 2011 13:59:33 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=273</guid>
		<description><![CDATA[Set DHCP ( Dynamic Host Configuration Protocol ) Server in Linux Box. Lets first install DHCP package in 1. yum -y install dhcp Now that you have installed the dhcp package in your linux box, lets start configuring it. 2. cp /usr/share/doc/dhcp*/dhcpd.conf.sample /etc/dhcpd.conf 3. vim /etc/dhcpd.conf #line 4: specify your network and subnet subnet 192.168.0.0 [...]]]></description>
			<content:encoded><![CDATA[<p>Set DHCP ( Dynamic Host Configuration Protocol ) Server in Linux Box.</p>
<p>Lets first install DHCP package in<br />
1. yum -y install dhcp</p>
<p>Now that you have installed the dhcp package in your linux box, lets start configuring it.</p>
<p>2. cp /usr/share/doc/dhcp*/dhcpd.conf.sample /etc/dhcpd.conf</p>
<p>3. vim /etc/dhcpd.conf</p>
<p>#line 4: specify your network and subnet</p>
<p>subnet 192.168.0.0 netmask 255.255.255.0 {</p>
<p># line 7 : specify default gateway<br />
option routers192.168.0.1;</p>
<p># line 8: specify subnetmask<br />
option subnet-mask255.255.255.0;</p>
<p># line 10: specify NIS domain name if you are using.<br />
# make it comment if you don not use.<br />
option nis-domain &#8220;bhutanhorizon.com&#8221;;</p>
<p># line 11: specify domain name<br />
option domain-name &#8220;bhutanhorizon.com&#8221;;</p>
<p># line 12: specify IP address of DNS<br />
option domain-name-servers 192.168.0.10;</p>
<p># line 14: make it comment<br />
# option time-offset-18000;</p>
<p># line 21: specify the range of IP addresses for clients<br />
range dynamic-bootp 192.168.0.128 192.168.0.254;</p>
<p># line 22: default&#8217;s terms of lease<br />
default-lease-time 21600;</p>
<p># line 23: maximun terms of lease<br />
max-lease-time 43200;</p>
<p># line 26: make following lines comment<br />
#host ns {<br />
#next-server marvin.redhat.com;<br />
#hardware ethernet 12:34:56:78:AB:CD;<br />
#fixed-address 207.175.42.254;<br />
#}</p>
<p>4. Now you have configured the DHCP server. Now you need to start the service named dhcpd</p>
<p>service dhcpd start</p>
<p>5. Now you have to make the service start when ever the linux box starts/reboot</p>
<p>chkconfig dhcpd on</p>
<p>That&#8217;s it! you see how easy it is to configure DHCP in linux box compare to Windows Server OS.</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/linux/dhcp-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Yum to access through Proxy Server</title>
		<link>http://bhutanhorizon.com/linux/yum-to-access-through-proxy-server.html</link>
		<comments>http://bhutanhorizon.com/linux/yum-to-access-through-proxy-server.html#comments</comments>
		<pubDate>Sat, 08 Jan 2011 05:11:18 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=240</guid>
		<description><![CDATA[In some network where you have to enter the IP Address of the proxy server to access the internet and you are not able to use the yum command to update your system. You normally put the Proxy Server IP and Ports in your browser setting, but in Linux box that doesnot solve the problem. [...]]]></description>
			<content:encoded><![CDATA[<p>In some network where you have to enter the IP Address of the proxy server to access the internet and you are not able to use the yum command to update your system. You normally put the Proxy Server IP and Ports in your browser setting, but in Linux box that doesnot solve the problem. You need to edit the file <strong>/etc/yum.conf</strong>, and make a new entry in the bottom of the file as below:</p>
<blockquote><p>proxy=http://<Proxy Address>:
<proxy port></blockquote>
<p>Now run the yum command and you will see its now working.</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/linux/yum-to-access-through-proxy-server.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Broadband Connection setup in Fedora 14</title>
		<link>http://bhutanhorizon.com/linux/broadband-connection-setup-in-fedora-14.html</link>
		<comments>http://bhutanhorizon.com/linux/broadband-connection-setup-in-fedora-14.html#comments</comments>
		<pubDate>Fri, 07 Jan 2011 13:20:51 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=238</guid>
		<description><![CDATA[I just installed Fedora 14 in my Laptop, after that I wanted to setup a Druknet broadband connection to access internet. After so much of trying i finally did it. My Current Situation of broadband connection was: Connecting to druknet Broadband through my home wireless network. 1. I connected to my wireless network 2. I [...]]]></description>
			<content:encoded><![CDATA[<p>I just installed Fedora 14 in my Laptop, after that I wanted to setup a Druknet broadband connection to access internet. After so much of trying i finally did it. My Current Situation of broadband connection was:</p>
<p>Connecting to druknet Broadband through my home wireless network.</p>
<p>1. I connected to my wireless network<br />
2. I went to System > Administration > Network<br />
3. Clicked New<br />
4. Select xDSL Connection from the Device Type<br />
5. Provider Name: broadband<br />
    Account Type: Normal<br />
    Login Name: dnetXXXXXXXX<br />
    Password: XXXXXXXXXXXXXXX<br />
6. Apply<br />
7. I edited /etc/sysconfig/network-scripts/ifcfg-broadband, the line that had <strong>ETH</strong> to below<br />
   ETH:wlan0<br />
8. System > Administration > Network. Then Select the current xDSL broadband connection and Activate it. </p>
<p>Yahoooo, now you are connected to internet! </p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/linux/broadband-connection-setup-in-fedora-14.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem accessing through FTP Client</title>
		<link>http://bhutanhorizon.com/linux/problem-accessing-through-ftp-client.html</link>
		<comments>http://bhutanhorizon.com/linux/problem-accessing-through-ftp-client.html#comments</comments>
		<pubDate>Thu, 06 Jan 2011 09:10:32 +0000</pubDate>
		<dc:creator>younten</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.bhutanhorizon.com/?p=232</guid>
		<description><![CDATA[There are times when you come across an error message when you use FTP Client, the error message with be something like Failed to list directory or something like that. During such error make sure your Linux server has port 20 and 21 opened in IPTABLES. If those ports are allowed in your IPTABLES than [...]]]></description>
			<content:encoded><![CDATA[<p>There are times when you come across an error message when you use FTP Client, the error message with be something like Failed to list directory or something like that. During such error make sure your Linux server has port 20 and 21 opened in IPTABLES. If those ports are allowed in your IPTABLES than make sure &#8220;ip_conntrack_ftp&#8221; module is loaded. Check in <strong>/etc/sysconfig/iptables-config </strong> if the following line exist:<br />
IPTABLES_MODULES=&#8221;ip_conntrack_ftp&#8221;</p>
<p>If it doesn&#8217;t contain then add it or load it in module of kernal.</p>
<p>Loading module for Kernal using rc.local file.</p>
<p># File: /etc/rc.local</p>
<p># Module to track the state of connections<br />
modprobe ip_conntrack</p>
<p># Load the iptables active FTP module, requires ip_conntrack<br />
modprobe ip_conntrack_ftp</p>
<p># Load iptables NAT module when required<br />
modprobe iptable_nat</p>
<p># Module required for active an FTP server using NAT<br />
modprobe ip_nat_ftp</p>
]]></content:encoded>
			<wfw:commentRss>http://bhutanhorizon.com/linux/problem-accessing-through-ftp-client.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

