<?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>HowConfig &#187; Linux</title>
	<atom:link href="http://www.howconfig.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.howconfig.com</link>
	<description>Quick tips on software configuration.</description>
	<lastBuildDate>Fri, 13 Jan 2012 12:55:44 +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>Crontab</title>
		<link>http://www.howconfig.com/linux/crontab/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=crontab</link>
		<comments>http://www.howconfig.com/linux/crontab/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 12:55:44 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[anacron]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[crontab]]></category>
		<category><![CDATA[schedule]]></category>
		<category><![CDATA[scheduler]]></category>
		<category><![CDATA[time]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=317</guid>
		<description><![CDATA[What is Crontab ? One can enter the list of commands that he wishes to execute at a particular time in future, or they can be scheduled to execute on a daily basis. Crontab is a general text file which holds this list. The commands entered in crontab and the times to execute them is [...]]]></description>
			<content:encoded><![CDATA[<p>What is Crontab ?<br />
One can enter the list of commands that he wishes to execute at a particular time in future, or they can be scheduled to execute on a daily basis. Crontab is a general text file which holds this list. The commands entered in crontab and the times to execute them is handled by cron daemon. It runs in background. Crontab&#8217;s man page explains about itself pretty well. Later we have lined up a crontab example for better understanding.<br />
<span id="more-317"></span><br />
Working with Crontab</p>
<p>A crontab file is maintained for each user by system. For creating and editing a crontab file, one can use text editor that a system specifies. Most linux distros officially comes with vi as default text editor. The text editor is started by executing the crontab command with -e option. One must type following command in terminal to get started with crontab:</p>
<pre>
#crontab -e
</pre>
<p>It will invoke vi text editor with a black window. The desired schedules and/for commands go there. Crontab commands are separated by line space, that is, one &#8216;cron-job&#8217; per line. Every cron command is called a cron-job. Sections are separated buy a space and final section having one or more than one space. There cannot be spaces within sections. The schedule goes in the sections 1-5.</p>
<p>How do we lay down a cron job ?</p>
<p>minute[0-59], hour[0-23, 0= midnight],<br />
day[1-31],month[1-12],weekday[0-6, 0=Sunday],</p>
<p>command </p>
<pre>01 04 1 1 1 /usr/bin/Directory/Command</pre>
<p>The above command will execute “Command” at 04:01AM on any Monday which falls on January 1st. If we want to use every instance of the specified time period, we can use asterisk(*). It will now be repeated at every hour, week, month, etc..</p>
<pre>08 06 * * * /usr/bin/TheDirectory/ACommand</pre>
<p>Above instruction will execute /usr/bin/TheDirectory/ACommand at 6:08 every day for uninterruptedly every month.</p>
<p>If one wishes to execute multiple instances of some command in a particular time period, values can be separated by comma and that should do. If separated via dash, it will run them continuously. </p>
<pre>02,15 06,07 1-15 1,6 * /usr/bin/MyDirectory/MyCommand</pre>
<p>Above instruction will be executed when minute hand strikes 02 and 15 after hour hand reaches 6:00 AM and 7:00 AM on 1st,all the way to 15 of January and June, every year.</p>
<p>It is always recommended that the full path of desired commands are used, as we used in above examples. Once cron file is properly edited and saved, it will work like a charm.</p>
<p>We have a -l option which displays the current crontab on standard output. While option -r can remove the current crontab. To edit the current crontab, option -e is used which opens appropriate editor. Upon exit from editor, all the changes made to crontab will be checked for errors and accuracy, if error free, changes will be installed automatically.</p>
<p>One more noteworthy technique, a double-ampersand can be inserted between commands in an event of multiple commands. It executes mentioned commands consecutively.</p>
<pre>15 03 * * * /usr/bin/command1 &#038;&#038; /usr/bin/command2</pre>
<p>This will execute command1 and command 2 at 03:15 daily.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/crontab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Squid Proxy server on RHEL 5 / CentOS 5 linux</title>
		<link>http://www.howconfig.com/linux/setting-up-squid-proxy-server-on-rhel-5-centos-5-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setting-up-squid-proxy-server-on-rhel-5-centos-5-linux</link>
		<comments>http://www.howconfig.com/linux/setting-up-squid-proxy-server-on-rhel-5-centos-5-linux/#comments</comments>
		<pubDate>Fri, 13 Jan 2012 12:38:54 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[manual]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[proxy server]]></category>
		<category><![CDATA[proxy service]]></category>
		<category><![CDATA[rhel]]></category>
		<category><![CDATA[squid]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=313</guid>
		<description><![CDATA[Proxy is one of the major component of adding security to the network. It also acts as a Gateway that receives the request from the clients and then validates it, when it is fine it forwards it to the destination server. Squid is one of the most popular Open Source Proxy server and a Web [...]]]></description>
			<content:encoded><![CDATA[<p>Proxy is one of the major component of adding security to the network. It also acts as a Gateway that receives the request from the clients and then validates it, when it is fine it forwards it to the destination server. </p>
<p>Squid is one of the most popular Open Source Proxy server and a Web Cache Daemon.</p>
<p>It has the wide variety of features from:</p>
<p>1. Speeding up a web server by caching repeated requests.</p>
<p>2. Caching Web, DNS, and other lookups.</p>
<p>3. Controlling bandwidth, Access controlling, etc. </p>
<p>This article explains how to setup Squid Proxy server in your RHEL 5 / CentOS 5 in a easy step-by-step procedure.<br />
<span id="more-313"></span><br />
Requirements:</p>
<p>      1. Active Internet Connection via any means.</p>
<p>      2. Super user or root access. </p>
<p>Procedure:<br />
Step 1: To install Squid Proxy Server on your RHEL / CentOS 5, run the following command:</p>
<pre> # yum install squid </pre>
<p>Step 2: Adding Squid to system start up (program starts when system boots up).</p>
<pre># chkconfig --level 35 squid on </pre>
<p>Numbers 3 and 5 indicates the run-levels of Squid. ‘3‘ indicates text mode and ‘5‘ indicates GUI mode. </p>
<p>Step 3: Now to start the Squid Service:</p>
<pre># service squid start </pre>
<p>Step 4: To open the squid configuration file</p>
<pre># vi /etc/squid/squid.conf </pre>
<p>If you see this error on the log file:</p>
<p>“﻿WARNING: Could not determine this machines public hostname.</p>
<p>Please configure one or set &#8216;visible_hostname&#8217; ”. </p>
<p>This needs to be changed, and do something like this:</p>
<p>visible_hostname yourhost </p>
<p>Step 5: Defining Access Control Lists (ACL)</p>
<p>Access Control Lists are used for purposes like:</p>
<p>      1. restrict usages</p>
<p>      2. limit web access for host(s).</p>
<p>      3. To allow your network to use internet</p>
<p>ACL Syntax:</p>
<p>      ﻿</p>
<p>acl aclname acltype value<br />
aclname = rulename (something like personalnetwork )<br />
acltype = type of acl like : src, dst (src:source ip | dst:destination ip)<br />
value = this could be ip address, networks, URLs , etc.<br />
Example: This example will allow the localhost to access the internet.</p>
<p>﻿
<pre>acl localhost src 127.0.0.1/40
http_access allow localhost </pre>
<p>Step 6: Allowing a particular network ip range to access internet</p>
<p>Find these lines in squid.conf file:</p>
<pre># http_access allow localhost
# http_access deny all</pre>
<p>Replace the above two lines like this:</p>
<pre>﻿# acl personalnetwork src 10.10.1.0/24
# http_access allow localhost
# http_access allow personalnetwork
# http_access deny all </pre>
<p>Step 7: Restart your Squid server</p>
<pre># service squid restart</pre>
<p>Note: if you encounter some error for using “/24“ change it to “ /255.255.255.0 “</p>
<p>and now restart your squid server </p>
<p>Step 8: Blocking Internet access for a particular IP address</p>
<pre># ﻿acl block_it src 10.10.1.20
# http_access deny block_it
# acl personalnetwork src 10.10.1.0/24
# http access allow personalnetwork </pre>
<p>The above acl will block internet access only for 10.10.1.20 and the rest will have access.<br />
Step 9: Restricting internet access by time or Working hours</p>
<p>﻿
<pre># acl personalnetwork src 10.10.1.0/24
# acl working_hours time M T W H F 13:00-17:00
# acl block_it src 10.10.1.20
# http_access deny block_it
# http_access allow personalnetwork working_hours
Step 10: Block particular URL</pre>
<p>﻿# acl block_website dst www.facebook.com<br />
# http_access deny block_website </p>
<p>Step 11: Blocking a domain and its sub-domains</p>
<pre>﻿# acl blocked_domain dstdomain .google.com
# http_access deny blocked_domain</pre>
<p>Step 12: Blocking a list of websites using a text file</p>
<p>We need to create a text file with a list of sites to be blocked and to give read permissions for this file, run the below commands in terminal </p>
<pre>﻿# touch /etc/squid/black_list.txt
# chmod 444 /etc/squid/black_list.txt
# vi /etc/squid/black_list.txt </pre>
<p>Enter the url of the websites need to be blocked like this</p>
<p>www.xxx.com</p>
<p>www.yyy.com<br />
Now create a create rules in ACL by opening the config file and type the below rules</p>
<p>﻿
<pre># acl black_list url_regex "/etc/squid/black_list.txt"
# http_access deny black_list </pre>
<p>Also you can block URL’s containing specific words like this:</p>
<pre>﻿# acl prevent_word url_regex sex
# http_access deny prevent_word</pre>
<p>Case sensitive words can also be blocked like this &#8221; -i sex &#8221;  </p>
<p>Step 13: Block types of files for download</p>
<p>﻿
<pre># acl block_type url_regex .*\.exe$
# http_access deny block_type 

﻿# acl block_type dstdom_regex \.br$
# http_access deny block_type </pre>
<p>Step 14: Prompting Username and Password from clients</p>
<pre>﻿# htpasswd -c /etc/squid/squid_pass your_username </pre>
<p>When it prompts for the password enter a new password that you would like to authenticate.<br />
Now set permissions for this file</p>
<pre>﻿# chmod o+r /etc/squid/squid_pass </pre>
<p>Now open the config file and add these lines </p>
<pre># ﻿auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/squid_pass
# acl ncsa_user proxy_auth REQUIRED
# http_access allow ncsa_user </pre>
<p>We hope that this article has enlightened you how to configure Squid Proxy server in your network running Linux Servers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/setting-up-squid-proxy-server-on-rhel-5-centos-5-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting User and Group Permissions for executing programs in Linux</title>
		<link>http://www.howconfig.com/linux/setting-user-and-group-permissions-for-executing-programs-in-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setting-user-and-group-permissions-for-executing-programs-in-linux</link>
		<comments>http://www.howconfig.com/linux/setting-user-and-group-permissions-for-executing-programs-in-linux/#comments</comments>
		<pubDate>Wed, 21 Dec 2011 14:50:56 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[chmod]]></category>
		<category><![CDATA[chown]]></category>
		<category><![CDATA[gid]]></category>
		<category><![CDATA[id]]></category>
		<category><![CDATA[identity]]></category>
		<category><![CDATA[os]]></category>
		<category><![CDATA[permissions]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=307</guid>
		<description><![CDATA[Every User or group in a Linux or (Unix like) Operating system is associated with a unique identity called UserID (UID) for a user and GroupID(GID) for a group. To know the uid, gid of your account simply type the &#8216;id&#8217; command in your terminal. To know the id of any user account, simply type [...]]]></description>
			<content:encoded><![CDATA[<p> Every User or group in a Linux or (Unix like) Operating system is associated with a unique identity called UserID (UID) for a user and GroupID(GID) for a group.<br />
To know the uid, gid of your account simply type the &#8216;id&#8217; command in your terminal.<br />
To know the id of any user account, simply type &#8216;id username&#8217;. Replace username with corresponding username.<br />
<span id="more-307"></span><br />
Eg: </p>
<pre>
id user1    (or) id -u user1
</pre>
<p>Association of UID / GID with Programs: </p>
<p>      Whenever a user or group runs a program in Linux, they should have the permission to execute the program or else they are not allowed to execute the program. In order to make the program executable under this user account, the user need to set the Sticky bit which is called SUID (SetUserID) or SGID (SetGroupID). </p>
<p>Although this can be done by using Graphical User Interface, here we show you the way of how to achieve this in terminal which is very easy and faster.<br />
Checking permission for files: </p>
<p>Step 1: To find &#8216; What is existing permission for a file or directory ? &#8216;, supply this command in your terminal: </p>
<pre>
# ls -l
</pre>
<p>this command will display the permission for all the files in a directory. </p>
<p>Step 2: To find the permission for a specific file </p>
<pre>
# ls -l filename
</pre>
<p>replace the filename with the respective name of the file that you want to check.<br />
The above commands specified will return something like &#8216; drwxr-xr-x &#8216;. where,</p>
<p>d- directory.</p>
<p>r-read, w-write, x-executable.<br />
If x is missing then it means, the file or program has not got the executable permission.<br />
To Set Permission for files or Programs: </p>
<p>&#8216; chmod &#8216; is the command used to achieve the task. </p>
<p>chmod changes the file mode bits of each given file according to mode, which can be either a symbolic representation of changes to make, or an octal number representing the bit pattern for the new mode bits. </p>
<p>chmod preserves  a  directory&#8217;s set-user-ID and set-group-ID bits unless you explicitly specify otherwise.  You can set or clear the bits with symbolic modes like u+s and g-s, and you can set (but not clear) the bits with a numeric mode. </p>
<p>Step 1: </p>
<pre>
# chmod u+s filename
</pre>
<p>Note: Replace filename with the name of the file for which permission has to be set.<br />
Here,</p>
<p>u &#8211; Associates of sets the user&#8217;s id as the owner of the file.</p>
<p>s &#8211; Sets the SUID; where g+s, sets the SGID. </p>
<p>Step 2: Now in order to check the changes we made, run the below command:</p>
<pre>
# ls -l filename
</pre>
<p>Step 3: Now you can run the program with desired and proper executable permission.<br />
The chmod command has now changed the scenario, now after setting the permission for a program, the program will run with the Permissions that the user who runs the program have. </p>
<p>To know more about chmod command type: &#8216; man chmod  &#8216; in your terminal.<br />
Hence, you can check the permissions for the file and similarly you can disable permission for executing some files if you wish it lacks security.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/setting-user-and-group-permissions-for-executing-programs-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up A Ubuntu Web-Server On A Remote Host &#8211; Ubuntu Lamp</title>
		<link>http://www.howconfig.com/linux/setting-up-a-ubuntu-web-server-on-a-remote-host-ubuntu-lamp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setting-up-a-ubuntu-web-server-on-a-remote-host-ubuntu-lamp</link>
		<comments>http://www.howconfig.com/linux/setting-up-a-ubuntu-web-server-on-a-remote-host-ubuntu-lamp/#comments</comments>
		<pubDate>Sat, 17 Dec 2011 17:01:23 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[web server]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=304</guid>
		<description><![CDATA[The main advantage of using and setting up a Linux server is that it will be interesting and informative as you learn lot of things on how to customize and fine tune the Open Source operating system to your needs,‭ ‬and of course this is fun and you will feel happy when you yourself do [...]]]></description>
			<content:encoded><![CDATA[<p>The main advantage of using and setting up a Linux server is that it will be interesting and informative as you learn lot of things on how to customize and fine tune the Open Source operating system to your needs,‭ ‬and of course this is fun and you will feel happy when you yourself do things on your own,‭ ‬isn’t it‭?<br />
In this Tutorial you will learn how to install LAMP on Ubuntu server. Including all the components &#8211; fast and easy straight from the repo.<br />
<span id="more-304"></span><br />
Requirements:‭ ‬We assume the following are true.<br />
‎<br />
	1.‎ ‏Working Internet connection via any means.<br />
‎	‏2.‎ ‏Root user access.<br />
‎	‏3.‎ ‏SSH access to your Remote host.</p>
<p>Here we go,‭ ‬with Step-by-Step procedure:</p>
<p>‎	‏Step‭ ‬1:‭ ‬Open your terminal and‭ ‬ssh‭ ‬to your Remote host.‭ ‬To know about ssh type</p>
<p>‎
<pre> ‏man ssh‭ ‬ </pre>
<p>	in your terminal.</p>
<p>‎	‏Step‭ ‬2:‭ ‬Update your remote host to ensure they are up to mark,‭ ‬using the following‭<br />
	commands:</p>
<pre>
‎	‏#‎ ‏sudo apt-get update
‎	‏#‎ ‏sudo apt-get upgrade
</pre>
<p>‎	‏Step‭ ‬3:‭ ‬Change the password if you are logged in as a root user in the remote host,‭ ‬to‭<br />
	change run the following command while being logged in via ssh:</p>
<pre>
‎	‏#‎ ‏passwd
</pre>
<p>‎	‏This will prompt for a password for the root user.</p>
<p>‎	‏Step‭ ‬4:‭ ‬Now add‭ ‬/‭ ‬create a new user account:</p>
<pre>
‎	‏#‎ ‏adduser user_name
</pre>
<p>‎	‏Note:‭ ‬Replace‭ ‬user_name‭ ‬with the desired username you wish to have.</p>
<p>‎	‏Step‭ ‬5:‭ ‬Now add the new user account to the‭ ‘‬ sudoers‭ ‘ ‬list,‭ ‬to get the administrative‭<br />
	privileges using the below command:</p>
<pre>
‎	‏#‎ ‏adduser username sudo
</pre>
<p>‎	‏Step‭ ‬6:‭ ‬We need to install‭ ‬LAMP‭ (‬Linux Apache MySQL PHP‭)‬ SERVER,‭ ‬and to do it run‭<br />
	the below command:</p>
<pre>
‎	‏#‎ ‏sudo apt-get install tasksel
‎	‏#‎ ‏sudo tasksel install lamp-server
</pre>
<p>	You may be asked to set up a new account for mysql database during installation.</p>
<p>‎	</p>
<p>	Step‎ ‏7:‎ ‏After the installation of Lamp-server is completed,‭ ‬make sure that Apache,‭ ‬Mysql‭ servers are up and running in your remote host and now from the<br />
	web-browser,‭ ‬enter the‭ domain name or the Ip-address associated with the remote host,‎ ‏and if it shows‭ “‬It‭<br />
	works‎”‏,‎ ‏Congratulations,‭ ‬you have done it perfect.</p>
<p>‎	‏Step‭ ‬8:‭ ‬Now in-order to secure the MySQL run the following command in terminal:</p>
<pre>
‎	‏#‎ ‏mysql_secure_installation
</pre>
<p>‎	‏If you feel the password is not secure,‭ ‬make it now and answer‭ ‘‬y‭’ ‬-‭ ‬yes for all the below:<br />
‎	‏1.‎ ‏Remove anonymous users<br />
‎	‏2.‎ ‏Disallow root login remotely<br />
‎	‏3.‎ ‏Remote test database and access to it<br />
‎	‏4.‎ ‏Reload privilege table now</p>
<p>	Well,‎ ‏everything is fine and you are completed with setting up your Ubuntu server‭<br />
	successfully.</p>
<p>Additional Steps:</p>
<p>‎	‏1.‎ ‏Phpmyadmin‭ ‬-‭ ‬(GUI for MySQL via Web-browser‭)‬.<br />
‎<br />
		Step‎ ‏1:‎ ‏Install‭ ‬PHPMyAdmin‭ </p>
<pre>
		#‎ ‏sudo apt-get install phpmyadmin
‎		‏#‎ ‏sudo nano‭ ‬/etc/apache2/apache.conf
</pre>
<p>‎		‏and paste the following line at the end of the this file:<br />
‎		‏﻿Include‭ ‬/etc/phpmyadmin/apache.conf</p>
<p>‎		‏Step‭ ‬2:‭ ‬Restart Apache server:</p>
<pre>
‎		‏#‎ ‏sudo‭ ‬/etc/init.d/apache2‭ ‬restart
</pre>
<p>‎	 	‏Now at the web-browser go to the following url:<br />
‎		‏http://ipaddress_of_this_host/phpmyadmin</p>
<p>‎		‏Note:‭ ‬Replace‭ ‬ipaddress_of_this_host‭ ‬by the desired Ip address.<br />
‎		‏Now you should see the PhpMyadmin page.</p>
<p>‎	‏2.‎ ‏Webmin‭ ‬-‭ ‬It is an Browser based Control panel for administrators to manage their‭<br />
	servers without the need of terminal.</p>
<p>‎		‏Step‭ ‬1:‭ ‬
<pre>#‭ ‬sudo nano‭ ‬/etc/apt/sources.list</pre>
<p>‎		‏Now add the following two lines to the end of the file<br />
‎
<pre>
		﻿deb http://download.webmin.com/download/repository sarge contrib‭
		‬deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib
</pre>
<p>‎		‏Save the file and exit.</p>
<p>‎	</p>
<p>		Step‎ ‏2:‎ ‏Download the key and install Webmin by following steps in terminal</p>
<pre>
‎		‏#‎ ‏wget http://www.webmin.com/jcameron-key.asc‭
		‬#‭ ‬sudo apt-key‭ ‬add jcameron-key.asc
‎		‏#‎ ‏sudo apt-get update
‎		‏#‎ ‏sudo apt-get install webmin
</pre>
<p>‎		‏Note:‭ ‬The default port number for webmin to access is‭ ‬10000,‭ ‬so go to web‭<br />
		browser and navigate to the following url:</p>
<pre>
‎		‏http://ipaddress_of_this_host:10000/
‎	</pre>
<p>		This will bring the Webmin interface to you to access.‭ ‬Now you have set up‭<br />
		additional tools required for your servers so that you can access them with ease‎<br />
		of use.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/setting-up-a-ubuntu-web-server-on-a-remote-host-ubuntu-lamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade Fedora 15 to Fedora 16</title>
		<link>http://www.howconfig.com/linux/upgrade-fedora-15-to-fedora-16/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=upgrade-fedora-15-to-fedora-16</link>
		<comments>http://www.howconfig.com/linux/upgrade-fedora-15-to-fedora-16/#comments</comments>
		<pubDate>Thu, 15 Dec 2011 17:19:26 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora 15]]></category>
		<category><![CDATA[fedora 16]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=299</guid>
		<description><![CDATA[It&#8217;s really very easy to upgrade from Fedora 15 to Fedora 16 and this tutorial describes in simple step-by-step procedure on how to upgrade from Fedora 15 to Fedora 16 (both Desktop and Server). Requirements: 1. Active Internet Connection by any means 2. Super user or Root&#8217;s password. Important Note: If you gain root access [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s really very easy to upgrade from Fedora 15 to Fedora 16 and this tutorial describes in simple step-by-step procedure on how to upgrade from Fedora 15 to Fedora 16 (both Desktop and Server). </p>
<p>Requirements:</p>
<p>      1. Active Internet Connection by any means</p>
<p>      2. Super user or Root&#8217;s password. </p>
<p>Important Note: If you gain root access using “su”  command, ignore the keyword “sudo“ before every command mentioned in the following steps. If you are not gaining Root access and performing the upgrade as normal user use the command as it is mentioned.<br />
“sudo“ works only if the user has been added to perform Administrative privileges at the time of installation or it can be performed manually after installation.<br />
<span id="more-299"></span><br />
Procedure:<br />
1. Fedora 16 &#8211; Desktop:<br />
      Step 1: In order to upgrade our system first the local repositories and Package manager must be update so that they support variety of packages to be installed for upgrading.</p>
<p>      Open your terminal and run the following commands (provide passwords wherever necessary).</p>
<pre>
            # sudo yum update rpm

            # sudo yum -y update

            # sudo yum clean all

            # sudo reboot
</pre>
<p>      Step 2: Prior to upgrade process, you need to perform pre-upgrade process and this can be done by running the following commands in terminal.</p>
<pre>
            # sudo yum install preupgrade

            # sudo preupgrade
</pre>
<p>      Step 3: Now the Pre-upgrade process will start like a wizard and your system will be prepared for upgrade process and let it complete and Reboot the system manually if it doesn’t prompts to reboot. </p>
<p>2. Fedora 16 &#8211; Server:<br />
      Step 1 of Server is same as the Step 1 of Desktop, so perform the same operations mentioned above in Step 1. </p>
<p>      Step 2: Similar to Desktop upgrade, we need to perform the pre-upgrade process for server too. Execute the below commands in terminal:</p>
<pre>
            # ﻿yum install preupgrade

            # preupgrade-cli
</pre>
<p>      Step 3: The result of the previous command should produce some lines of output and the last line should show
<pre>Fedora 16 (Verne)</pre>
<p>      Step 4: To start the Upgrade process append the last line to the below command like this</p>
<pre>
            # preupgrade-cli “Fedora 16 (Verne)”
</pre>
<p>      Step 5 : Now Reboot the system manually if it doesn’t prompts using the following command:</p>
<pre>
            #sudo reboot
</pre>
<p>Note : Updates will be installed as you reboot and it may take extra time to completely gets booted up, please be patient as your updates will be installed and you can log in into your  new Fedora 16 Linux Operating System.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/upgrade-fedora-15-to-fedora-16/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring VSFTPD in CentOS‭ ‬6.0</title>
		<link>http://www.howconfig.com/linux/configuring-vsftpd-in-centos%e2%80%ad-%e2%80%ac6-0/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=configuring-vsftpd-in-centos%25e2%2580%25ad-%25e2%2580%25ac6-0</link>
		<comments>http://www.howconfig.com/linux/configuring-vsftpd-in-centos%e2%80%ad-%e2%80%ac6-0/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 12:03:47 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[centos 6]]></category>
		<category><![CDATA[centos6]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[ftp server]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[vsftpd]]></category>
		<category><![CDATA[vsftpd server]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=289</guid>
		<description><![CDATA[Configuring VSFTPD in CentOS‭ ‬6.0 vsftpd stands for‭ ‬Very‭ ‬Secure‭ ‬File‭ ‬Transfer‭ ‬Protocol‭ ‬Daemon and it is an popular and well known FTP server for Unix-like‭ (‬Linux‭) ‬Operating system. It is Licensed under GNU General Public License. In this tutorial we cover how to configure‭ ‘‬vsftpd‭’ FTP server ‬on CentOS‭ ‬6.0. Assumptions: We assume that [...]]]></description>
			<content:encoded><![CDATA[<p>Configuring VSFTPD in CentOS‭ ‬6.0</p>
<p>vsftpd stands for‭ ‬Very‭ ‬Secure‭ ‬File‭ ‬Transfer‭ ‬Protocol‭ ‬Daemon and it is an popular and well known FTP server for Unix-like‭ (‬Linux‭) ‬Operating system.</p>
<p>It is Licensed under GNU General Public License.</p>
<p>In this tutorial we cover how to configure‭ ‘‬vsftpd‭’ FTP server ‬on CentOS‭ ‬6.0.</p>
<p>Assumptions:</p>
<p>	We assume that you are using CentOS‭ ‬6‭ (‬Linux operating system based on RedHat Distribution‭)‬.<br />
	And using‭ ‬vsftpd‭ ‬version‭ ‬2.2.2<br />
	Your system is connected to Internet via any means.<br />
<span id="more-289"></span><br />
Step-by-Step Procedure:</p>
<p>‎	‏Step‭ ‬1:‭ ‬Open Terminal in your CentOS.<br />
‎<br />
	Step‭ ‬2:‭ ‬Gain the root access by executing the following command:<br />
‎
<pre>
‏su‭ ‬-root</pre>
<p>‎<br />
	Step‭ ‬3:‭ ‬After gaining the root access,‭ ‬now run the following command in the root shell:<br />
‎
<pre>‏
yum install vsftpd</pre>
<p>‎	‏Step‭ ‬4:‭ ‬The above command will download the‭ ‬vsftpd‭ ‬from the CentOS repository and‭<br />
		will be installed automatically.</p>
<p>‎	‏Step‭ ‬5:‭ ‬Once the installation is completed,‭ ‬a default configuration file will be placed in<br />
‎		‏following directory‭ “‬ /etc/vsftpd/‭ “‬.</p>
<p>‎	‏Step‭ ‬6:‭ ‬Now navigate to the following directory using the cd command in terminal:<br />
‎
<pre>‏
cd‭ ‬/etc/vsftpd/</pre>
<p>‎	‏Step‭ ‬7:‭ ‬We need to make some changes in the‭ ‬config file present in this directory.‭<br />
		Use any of your favorite text editor to edit this file,‎ ‏here we are using‭ ‬gedit<br />
‎		‏text editor.‭	“ ‬gedit config‭  &#038;“ ‬or if you wish use‭ “ ‬vi config‭ “‬.</p>
<p>‎	‏Step‭ ‬8:‭ ‬﻿In this file comment/add or uncomment the following and leave the rest as is.</p>
<pre>
‎‏﻿anonymous_enable=NO‭ 	‬        This is set to‭ ‬YES by default.
‎local_enable=YES‭ 		‬This is set to‭ ‬NO by default and change when you want the local users to have ftp access.
‎‏xferlog_enable=Yes‭ 		‬This is set to‭ ‬NO by default.‭ ‬Your logs will be written to‭ ‬/var/log/xferlog.
</pre>
<p>Common Errors:<br />
‎<br />
	Most of the Linux systems have SELinux‎ (‏Security Enhanced Linux‭) ‬is a linux feature installed by default and enabled in order to enhance the security of a Linux system and this throws an error when the installer does not take care of the SELinux policy’s.‭ ‬The Error is as follows:‭ 	‬﻿500‭ ‬OOPS:‭ ‬cannot change directory:/home/someuser</p>
<p>Need not panic,‭ ‬this can be fixed by either disabling the SELinux or Setting the SELinux boolean option.</p>
<p>Solution‭ ‬1:‭ ‬Disabling SELinux.</p>
<p>‎	‏Step‭ ‬1:‭ ‬Open the linux terminal and edit the following file:<br />
‎
<pre>
‏vi‭ ‬/etc/selinux/config</pre>
<p>‎	‏Step‭ ‬2:‭ ‬Now change the value of SELINUX‭ = ‬enabled to‭ ‘ ‬disabled‭ ‘ ‬and save the file.</p>
<p>Solution‭ ‬2:‭ ‬Tuning SELinux for ftp access.</p>
<p>‎	‏ 	Open the linux terminal and run the following commands in terminal‎ (‏you may<br />
‎		‏need to execute these commands as a super user‭)‬.</p>
<p>‎
<pre>	‏﻿
getsebool‭ ‬-a‭ | ‬grep ftp</pre>
<p>‎<br />
		This will list a group of ftp Boolean options,‭ ‬the value of‭  ‬ftp_home_dir will be<br />
‎		‏set‭ ‘‬off‭’ ‬by default and we need to set it‭ ‘‬on‭’ ‬by using the following command.</p>
<p>‎
<pre>
‏﻿setsebool‎ ‏-P ftp_home_dir on</pre>
<p>‎<br />
		Execution of the above command may take some time to be completed,‎ ‏a minute<br />
‎		‏or two and please wait until you get back the prompt.‭ ‬To check back whether it‭<br />
		is set on check using the former command‎ (‏getsebool‭)‬.</p>
<p>Configuring VSFTPD for local and virtual users‭’ ‬access</p>
<p>	The virtual users home folders will be under‎ ‏/var/ftp/‎ ‏and we need root access to do‭<br />
	access this directory.</p>
<p>‎	‏Step‭ ‬1:‭	‬Run the following command in terminal:‭ ‬﻿‭	‬yum install db4-utils<br />
‎	</p>
<p>	Step‎ ‏2:‎ ‏Create the virtual users as a simple text file in the‭ ‬/etc/vsftpd/‭ ‬directory with‭<br />
		username of virtual users and their respective password on the next line and save‎<br />
		this file with name user1_list‎ (‏use any of your favorite text editor‭)‬.<br />
‎		‏Eg:-‭ </p>
<pre>
‬                user1
‎		‏password1
‎		‏admin
‎		‏password2
</pre>
<p>‎	‏Step‭ ‬3:‭ ‬Now make sure you are in the‭ ‬/etc/vsftpd/‭ ‬directory and run the following:</p>
<pre>
‎		‏
mkdir user1		‏
cp user1_list user1/		‏﻿
db_load‭ ‬-T‭ ‬-t hash‭ ‬/etc/vsftpd/user1/user1_list‭ ‬/etc/vsftpd/user1/user1_db.db
</pre>
<p>‎	‏﻿A hashed DB file of the user1_list is created named user1_db.db.‎<br />
	Note that the file has a‎ ‏.db extension and this is necessary.</p>
<p>‎	‏Step‭ ‬4:‭ ‬You need to append to the file‭ ‬/etc/pam.d/vsftpd the following contents and‭<br />
		follow the below commands to perform it.<br />
‎
<pre>
cd‭ ‬/etc/pam.d/
‎‏vim vsftpd
</pre>
<p>‎Now add the following‭ ‬2‭ ‬lines to the file as it is:<br />
‎
<pre>
auth‭       ‬sufficient pam_userdb.so db‭=‬/etc/vsftpd/user1/user1_db
‎account‭  ‬sufficient pam_userdb.so db‭=‬/etc/vsftpd/user1/user1_db
</pre>
<p>‎	‏Step‭ ‬5:‭ ‬﻿Append Options to‭ ‬/etc/vsftpd/vsftpd.conf‭ ‬file from following:<br />
‎
<pre>
guest_enable=YES‎ ‏#‎ ‏activate the virtual users
‎virtual_use_local_privs=YES‎ ‏#‎ ‏virtual users have local priveleges
‎user_sub_token‎=‏$USER
local_root‭=‬/var/ftp/user1/$USER‭ ‬#‭ ‬specifies a home directory for each virtual user
‏chroot_local_user=YES‭ ‬#‭ ‬Restricting the user to the FTP area and HOME dir's only
</pre>
<p>‎	‏Step‭ ‬6:‭ ‬﻿Create the Virtual User Folders<br />
‎
<pre>
	﻿‎‏cd‭ ‬/var/ftp‭
	‬mkdir user1‭
	‬mkdir user1/user1‭
	‬mkdir user1/user2‭
	‬chown‭ ‬-R ftp:ftp‭ ‬/etc/ftp/user1/
‎	</pre>
<p>	Step‭ ‬7:‭ ‬For local users,‭ ‬do the following</p>
<pre>
‎	‏cd‭ ‬/var/ftp/user1/
‎	‏﻿mkdir yourlocaluser‎
	‏
	chown ftp:ftp yourlocaluser‭
	‬ln‭ ‬-s‭ ‬/var/ftp/user1/yourlocaluser‭ ‬/home/yourlocaluser/ftphome

‎	</pre>
<p>	Step‎ ‏8:‎ ‏Testing the server<br />
‎
<pre>
service vsftpd start‎</pre>
<p>(‏or‭)
<pre>
service vsftpd restart</pre>
<p>‎	‏Step‭ ‬9:‭ ‬From another machine in the network connect to this server either using a GUI‭<br />
	client or CLI client.‎ ‏Its simple right.</p>
<p>‎	‏Step‭ ‬10:‭ ‬If you want the ftp service to run automatically whenever your computer boots then just type the command given below.<br />
‎	</p>
<pre>
chkconfig vsftpd on</pre>
<p>	You can stop the service from running automatically by replacing‎ “‏on‭” ‬with‭ “‬off‭”‬.‭ </p>
<p>That is all about the FTP using VSFTPD package.‭ </p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/configuring-vsftpd-in-centos%e2%80%ad-%e2%80%ac6-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install GNOME 3 and Mate on Ubuntu 11.10</title>
		<link>http://www.howconfig.com/linux/how-to-install-gnome-3-and-mate-on-ubuntu-11-10/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-install-gnome-3-and-mate-on-ubuntu-11-10</link>
		<comments>http://www.howconfig.com/linux/how-to-install-gnome-3-and-mate-on-ubuntu-11-10/#comments</comments>
		<pubDate>Wed, 14 Dec 2011 08:55:01 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gnome 2]]></category>
		<category><![CDATA[gnome 3]]></category>
		<category><![CDATA[gnome2]]></category>
		<category><![CDATA[gnome3]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[manual]]></category>
		<category><![CDATA[repo]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=283</guid>
		<description><![CDATA[In this tutorial I am going to show you how to install GNOME 3 on your Ubuntu 11.10 desktop. We will install it with some shell extensions so that you can get the feel and look of GNOME 2 on GNOME 3. This is for those guys who want to revert to GNOME 2. For [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial I am going to show you how to install GNOME 3 on your Ubuntu 11.10 desktop. We will install it with some shell extensions so that you can get the feel and look of GNOME 2 on GNOME 3. This is for those guys who want to revert to GNOME 2. For GNOME 3 lovers there is no need to install this extension.</p>
<p>Preliminaries:<br />
This works perfectly with Ubuntu 11.10, may work with other versions of Ubuntu but I am not sure about that. You may try, I won’t guarantee on this.<br />
<span id="more-283"></span><br />
Adding Repository:<br />
First of all we will have to add the repository which is appropriate for GNOME 3. For this purpose open your terminal and type the commands given below:</p>
<pre>
 sudo add-apt-repository ppa:webupd8team/gnome3

 sudo apt-get update
</pre>
<p>Installing GNOME 3:<br />
Since we have added the repository now we are able to download packages for GNOME 3 by typing:</p>
<pre>sudo apt-get install mgse-bottompanel mgse-menu mgse-windowlist gnome-shell-classic-systray gnome-tweak-tool</pre>
<p>Installation has been completed. Now just log out and then the login option will come where it will ask for the password. Just click on cog-wheel and select GNOME from the submenu. When you select GNOME the GNOME 3 desktop will appear to you. </p>
<p>Now we will have to enable all the installed features and for that purpose we will have to configure them using “GNOME Tweak Tool”. You will find it in “Activities->Advance Settings”. Select the “Shell Extensions” from there and then it will show a list of all the features. From there you can select the features of your choice and can turn on or turn off those particular features. </p>
<p>Installing Mate:<br />
First of all we will have to add repository of Linux Mint. For that open the “sources.list” file as</p>
<pre>sudo gedit /etc/apt/sources.list</pre>
<p>and at the end of the file add the text given below:</p>
<pre>deb http://packages.linuxmint.com/ lisa main upstream import</pre>
<p>Close the file after saving it. Then update the packages.</p>
<pre>sudo apt-get update</pre>
<p>Then install the mint keyring</p>
<pre>
 sudo apt-get install linuxmint-keyring

 sudo apt-get update

 sudo apt-get install mint-meta-mate
</pre>
<p>After the installation has been complete just log out and select the cog-wheel and select MATE from the list. Now you will see that all the mint based features has been installed on your system. You can change this by going to “System-> Preferences-> Appearance”. You will see many themes there. Select the default theme for Ubuntu which is “Ambiance”. </p>
<p>So, we saw how to install GNOME 3 on Ubuntu 11.10 and using Mint based features (theme) on your system with the help of Mate. If you faced any problem or got any error then let me know in the comments. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/how-to-install-gnome-3-and-mate-on-ubuntu-11-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora 15 with GNOME 3 &#8211; A glimpse</title>
		<link>http://www.howconfig.com/linux/fedora-15-with-gnome-3-a-glimpse/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fedora-15-with-gnome-3-a-glimpse</link>
		<comments>http://www.howconfig.com/linux/fedora-15-with-gnome-3-a-glimpse/#comments</comments>
		<pubDate>Tue, 13 Dec 2011 07:53:39 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gnome 2]]></category>
		<category><![CDATA[gnome 3]]></category>
		<category><![CDATA[gnome3]]></category>
		<category><![CDATA[shell gnome2]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unity]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=280</guid>
		<description><![CDATA[Fedora project, powered by Red Hat, has released another beast into the wild, Fedora 15, Linux-based operating system. In previous versions, there have been similarities between the two leading distros- Ubuntu and Fedora. Ubuntu fans are now going to have second thoughts about it. Fedora 15, has got over the leap and now major differences [...]]]></description>
			<content:encoded><![CDATA[<p>Fedora project, powered by Red Hat, has released another beast into the wild, Fedora 15, Linux-based operating system.<br />
In previous versions, there have been similarities between the two leading distros- Ubuntu and Fedora. Ubuntu fans are now going to have second thoughts about it. Fedora 15, has got over the leap and now major differences can be pointed out. The brain storm only got worse.<br />
Skipping all regular debate remarks, the discussion can be narrowed down to comparison between GNOME 3 and Unity. Fedora has always been different from the league.<br />
<span id="more-280"></span><br />
While Unity Shell was busy creating waves in Ubuntu community, bad ones too, Fedora 15 came as a rescue boat for frustrated users of Unity. GNOME 3 is now Fedora&#8217;s default desktop environment, looks way better than Ubuntu&#8217;s Unity. It is totally different from any previous versions of GNOME.<br />
GNOME 3 will do offend some who are used to GNOME 2.x but after moving around it a bit, it really feels home, an improved one. The reason is simple enough, previous version&#8217;s design was inspired from Windows 95 which is no longer cutting-edge. It really needed a break. A matter of fact, GNOME 3&#8242;s most ravishing visual appeal is only because it is not a cheap mimic of Windows. No offense intended, GNOME 2.x.</p>
<p>Still, many people have a thing for GNOME 2.x even with outdated looks. Reason being, a feel of Windows without actually using it. Due to similar looks, transition was easy from Windows to Linux. An undeniable fact is that GNOME was never even close to be considered as a desktop, who knows it was &#8216;their&#8217; plan of mimicking windows UI ! GNOME 3 changed the game, it is no near to any kind of similarities with Windows.</p>
<p>GNOME 3 presents a whole new working environment, different, to be specific. It is free from orthodox menus and icons on desktop screen, and a lot of features borrowed from Windows. The design is developed around “Shell”, it contains features from menus of old times. They are off the screen now, but in shell, from where they can be invoked when needed and dismiss post completion of task. The ultimate design is, in simple words, cleaner. It is worth mentioning that it appears very different from most of the operating systems.</p>
<p>Fedora 15 does not ship with a desktop, as such. You do not get to have some sort of main menu, or click-able icons. Its the shell which does all the job, it can be invoked through key-combinations or mouse gestures. All the features appear in a full-screen mode from where one can browse through different features.</p>
<p>Right from this panel, applications can be launched, searched using search box. Upon completion of the task you intended to do, shell fades back into the background leaving way for everything else.</p>
<p>To conclude with, it can be proclaimed that GNOME 3 is going to be future of desktop, though users might take a while to get used to cleaner look. Revolution has started, there is no stopping now.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/fedora-15-with-gnome-3-a-glimpse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to secure emails with SSL certificates</title>
		<link>http://www.howconfig.com/linux/how-to-secure-emails-with-ssl-certificates/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-secure-emails-with-ssl-certificates</link>
		<comments>http://www.howconfig.com/linux/how-to-secure-emails-with-ssl-certificates/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 18:06:53 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[e-mail]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[encrypted]]></category>
		<category><![CDATA[encryption]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[secure]]></category>
		<category><![CDATA[self-signed]]></category>
		<category><![CDATA[signed]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=267</guid>
		<description><![CDATA[In this tutorial we will learn how to secure emails by encrypting them using S/MIME function. There are trusted certificates available online by CA (certificate authority) but you can also create SSL certificates (self signed SSL certificate) by yourself. The procedure is given below: Preliminaries S/MIME is a key paired system. It has one public [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial we will learn how to secure emails by encrypting them using S/MIME function. There are trusted certificates available online by CA (certificate authority) but you can also create SSL certificates (self signed SSL certificate) by yourself. The procedure is given below:</p>
<p>Preliminaries<br />
S/MIME is a key paired system. It has one public key and one private key. For example if you want to send some encrypted emails from your system then receiver i.e. to whom you are sending the encrypted email must use S/MIME and his public key must be known to you. Sending an email signed with the certificate is the method to send someone your public key.<br />
<span id="more-267"></span></p>
<p>Installing SSL package<br />
First of all install SSL package by:</p>
<pre>sudo apt-get install openssl</pre>
<p>Self signed certificates<br />
We will create a directory where we will place all the files which belongs to the certificate. For example I am putting all the certificates files in /home/testuser/ssl. Here testuser is my username.</p>
<pre>mkdir /home/testuser/ssl</pre>
<pre>cd /home/testuser/ssl</pre>
<p>Now we will generate the key.</p>
<pre>openssl –des3 –out cert.key 4096</pre>
<p>An option will appear which says enter the passphrase.<br />
The next step is to make certificate signing request by</p>
<pre>openssl req –new –key cert.key –out cert.csr</pre>
<p>It will ask for some data. Enter the data which it is asking for like<br />
• Country Name<br />
• State<br />
• Locality<br />
• Organization Name<br />
• Organization Unit Name<br />
• Common Name<br />
• Email Address<br />
The “Common Name” field contains the address of the server. After that we will have to sign the request which we have created with the key as:</p>
<pre>openssl x509 –req –days 365 –in cert.csr –signkey cert.key –out cert.crt</pre>
<p>It will ask for the passphrase which you have entered before. After this step the certificate will be created. Now our task is to make it able to be used in the mail clients. For this the format of the certificate should be in .p12 format.</p>
<pre>openssl pkcs12 –export –in cert.crt –inkey cert.key –name “Your Name” –out cert.p12</pre>
<p>Now run the
<pre>ls -l</pre>
<p> command and you will see 4 files in the directory. These are<br />
1. Cert.crt<br />
2. Cert.csr<br />
3. Cert.key<br />
4. Cert.p12<br />
If any file is missing then you have done something wrong or you missed some step.<br />
Using CA to sign certificate<br />
The procedure is quite same as the above with some little changes in the commands. The steps are given below:</p>
<pre>openssl genrsa –des3 –out ca.key 4096</pre>
<pre>openssl req –new -x509 –days 365 –key ca.key –out ca.crt</pre>
<pre>openssl genrsa –des3 –out cert.key 4096</pre>
<pre>openssl req –new –key cert.key –out cert.csr</pre>
<pre>openssl x509 –req –days 365 –in cert.csr –CA ca.crt –Cakey ca.key –set_serial 00 –out cert.crt</pre>
<pre>openssl pkcs12 –export –in cert.crt –inkey cert.key –name “Your Name” –out cert.p12</pre>
<p>Check by
<pre>ls –l</pre>
<p> as before and you will see same 4 files. This verifies that everything goes well and the certificate key has been generated successfully.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/how-to-secure-emails-with-ssl-certificates/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to mount remote directory on Ubuntu 11.10 using SSHFS</title>
		<link>http://www.howconfig.com/linux/how-to-mount-remote-directory-on-ubuntu-11-10-using-sshfs/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-mount-remote-directory-on-ubuntu-11-10-using-sshfs</link>
		<comments>http://www.howconfig.com/linux/how-to-mount-remote-directory-on-ubuntu-11-10-using-sshfs/#comments</comments>
		<pubDate>Mon, 12 Dec 2011 09:18:50 +0000</pubDate>
		<dc:creator>config</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[sshfs]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.howconfig.com/?p=261</guid>
		<description><![CDATA[In this tutorial I will teach you how to mount a complete directory to a local server from a remote server using SSHFS i.e. securely. SSHFS stands for Secure Shell FileSystem. This kind of filesystem provides the directories and files securely over SSH and all the local users can access those files as if they [...]]]></description>
			<content:encoded><![CDATA[<p>In this tutorial I will teach you how to mount a complete directory to a local server from a remote server using SSHFS i.e. securely. SSHFS stands for Secure Shell FileSystem. This kind of filesystem provides the directories and files securely over SSH and all the local users can access those files as if they are local files or directories. The remote share is mounted using FUSE which means FileSystem in Userspace.</p>
<p><span id="more-261"></span></p>
<p>Preliminaries:</p>
<p>Local System: server1.example.com (192.168.0.100)</p>
<p>Remote System: server2.example.com (192.168.0.101)</p>
<p>You must be logged in as root user.</p>
<p>Installing SSHFS</p>
<p>On server1 use this command to install sshfs</p>
<pre>apt-get install sshfs</pre>
<p>Now if you want to mount the remote directory /home/backup to the local /backup directory then first of all you will have to add the root user to fuse group by using the command given below:</p>
<pre>adduser root fuse</pre>
<p>Mounting</p>
<p>Now create the local /backup directory and change the owner of the directory to root.</p>
<pre>mkdir /backup</pre>
<pre>chown root /backup</pre>
<p>After that mount the remote directory /home/backup to /backup as:</p>
<p>Full path method:</p>
<pre>sshfs –o idmap=user root@192.168.0.101:/home/backup /backup</pre>
<p>Relative path method:</p>
<pre>sshfs –o idmap=user root@192.168.0.101:backup /backup</pre>
<p>This corresponds to /root/backup.</p>
<p>You can also omit the remote directory by</p>
<pre>sshfs –o idmap=user root@192.168.0.101: /backup</pre>
<p>And in this case it would be /root only.</p>
<p>Notice the –o idmap=user in the command. This means that it would not affect if the local system and the remote system are using different user ID. If you omit this chunk of code then there may be some permission related problems.</p>
<p>If everything goes well then the directory will get mounted. You can check it using the command
<pre>mount</pre>
<p>Unmount</p>
<p>If you want to unmount the directory then use:</p>
<pre>fusermount –u /backup</pre>
<p>Creating key pair on server1</p>
<p>Every time we share a remote directory it will ask for the password for verification. We usually don’t want it to ask password every time so we will generate a key and will send it to server2 so that it will not ask for the password every time.</p>
<p>For this, just follow the steps given below:</p>
<pre>ssh-keygen</pre>
<p>Some options will come. Just press enter 3 times to skip the steps and let it be default settings.</p>
<p>Now we have to copy the key to the remote server which is server2.</p>
<pre>ssh-copy-id –i $HOME/.ssh/id_rsa.pub root@192.168.0.101</pre>
<p>Check on server2 if it has been copied or not by:</p>
<pre>cat $HOME/.ssh/authorized_keys</pre>
<p>Mounting at boot time</p>
<p>If you want to mount the directories at the boot time so you don’t have to mount it manually then just open the /etc/rc.local file and add the mounting command at the end of the file as:</p>
<pre>vi /etc/rc.local</pre>
<p>add the line given below at the end of the file.</p>
<pre>/usr/sbin/sshfs –o idmap=user root@192.168.0.101:/home/backup /backup</pre>
<p>That is all.</p>
<p>Now you can share the files remotely at boot time without having to enter password each time you share.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.howconfig.com/linux/how-to-mount-remote-directory-on-ubuntu-11-10-using-sshfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

