<?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>Sabin Shrestha&#039;s Personal Site</title>
	<atom:link href="http://www.sabinshrestha.com.np/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sabinshrestha.com.np</link>
	<description>IT Professional and Consultant</description>
	<lastBuildDate>Mon, 28 Jun 2010 20:27:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SEO My Notes</title>
		<link>http://www.sabinshrestha.com.np/sabincat/seo-my-notes/</link>
		<comments>http://www.sabinshrestha.com.np/sabincat/seo-my-notes/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 20:20:47 +0000</pubDate>
		<dc:creator>sabin</dc:creator>
				<category><![CDATA[Sabin Personel]]></category>

		<guid isPermaLink="false">http://www.sabinshrestha.com.np/?p=217</guid>
		<description><![CDATA[http://www.google.com/support/webmasters/bin/answer.py?answer=35769#3 http://www.webhostingtalk.com/wiki/White_hat,_black_hat,_and_gray_hat_SEO http://www.googleguide.com/google_works.html http://www.blackhatseo.com/ (one of the best) http://www.searchengineoptimising.com/glossary/seo-glossary-of-terms/display/1/all-terms http://www.smashingmagazine.com/2007/06/05/google-pagerank-what-do-we-really-know-about-it/ http://www.seochat.com/seo-tools/ http://www.rankingtoday.com/seo/ http://www.linkpopularity.com/ http://www.seomoz.org/dp/the-internet-marketing-handbook http://www.youtube.com/GoogleWebmasterHelp#p/c/B52807846359D2EA https://sites.google.com/site/webmasterhelpforum/en/faq&#8211;crawling&#8211;indexing&#8212;ranking#not-indexed http://seo-optimization-tips-tools.blogspot.com/2009/03/vtc-seo-optimization-training-tutorial.html (Video Tutor) http://www.mattcutts.com/blog/type/googleseo/  (programmer of google site) http://www.ninebyblue.com/blog/social-media/should-restaurants-care-about-local-search/ (programmer of google) http://googlewebmastercentral.blogspot.com/search/label/webmaster%20guidelines (google seo blog must view all the videos) http://www.seoresource.net/Search-Engine-Optimization.htm http://www.chromaticsites.com/blog/9-practical-tips-for-building-your-website-authority/ http://www.scriptol.com/seo/faq/ (Very Nice One) ================ My Notes http://www.googleguide.com/google_works.html http://websearch.about.com/od/seononos/a/spamseo.htm http://www.pushon.co.uk/articles/top-5-white-hat-and-black-hat-search-optimisation-techniques/ status code 302 http://www.seoglossary.com/cat/H#681 meta tag [...]]]></description>
			<content:encoded><![CDATA[<div id="_mcePaste">
<div id="_mcePaste"><a href="http://www.google.com/support/webmasters/bin/answer.py?answer=35769#3 http://www.webhostingtalk.com/wiki/White_hat,_black_hat,_and_gray_hat_SEO http://www.googleguide.com/google_works.html http://www.blackhatseo.com/ (one of the best) http://www.searchengineoptimising.com/glossary/seo-glossary-of-terms/display/1/all-terms http://www.smashingmagazine.com/2007/06/05/google-pagerank-what-do-we-really-know-about-it/ http://www.seochat.com/seo-tools/ http://www.rankingtoday.com/seo/ http://www.linkpopularity.com/ http://www.seomoz.org/dp/the-internet-marketing-handbook http://www.youtube.com/GoogleWebmasterHelp#p/c/B52807846359D2EA https://sites.google.com/site/webmasterhelpforum/en/faq--crawling--indexing---ranking#not-indexed http://seo-optimization-tips-tools.blogspot.com/2009/03/vtc-seo-optimization-training-tutorial.html (Video Tutor) http://www.mattcutts.com/blog/type/googleseo/  (programmer of google site) http://www.ninebyblue.com/blog/social-media/should-restaurants-care-about-local-search/ (programmer of google) http://googlewebmastercentral.blogspot.com/search/label/webmaster%20guidelines (google seo blog must view all the videos) http://www.seoresource.net/Search-Engine-Optimization.htm http://www.chromaticsites.com/blog/9-practical-tips-for-building-your-website-authority/ http://www.scriptol.com/seo/faq/ (Very Nice One)  ================ My Notes http://www.googleguide.com/google_works.html http://websearch.about.com/od/seononos/a/spamseo.htm http://www.pushon.co.uk/articles/top-5-white-hat-and-black-hat-search-optimisation-techniques/ status code 302 http://www.seoglossary.com/cat/H#681 meta tag length 150  SEO Clustering In search engine search results pages, clustering is limiting each represented website to one or two listings.  six segma http://www.seochat.com/c/a/Search-Engine-Optimization-Help/Implementing-Six-Sigma-Methodology-for-SEO/ google quality guideline http://www.google.com/support/webmasters/bin/answer.py?answer=35769 ======================= Top Ten SEO Steps recommended for a successful web campaign Keyword Research &amp; Selection Competition Analysis Site Structure Content Optimization Link Building Social Media PPC Statistics Analysis Conversion Optimization Keeping It Up ====================== Keyword Research Tools: Google: https://adwords.google.com/select/KeywordToolExternal Yahoo: Gone (old overture tool is gone) MSN: http://adlab.msn.com/Keyword-Research.aspx Wordtracker: http://www.wordtracker.com/ Keyword Discovery: http://www.keyworddiscovery.com Submit Express: http://www.submitexpress.com/keytracker.php Paid Search Keyword Tools: Google: https://adwords.google.com/select/KeywordToolExternal 7Search: http://conversion.7search.com/scripts/advertisertools/keywordsuggestion.aspx Miva: https://account.uk.miva.com/advertiser/Account/Popups/KeywordGenBox.asp Keyword List Generators and Misc: Google: https://adwords.google.com/select/KeywordToolExternal SEOBook.com: http://tools.seobook.com/keyword-list/generator.php RustyBrick.com: http://www.rustybrick.com/keyword-phrase-tool.php For Local keywords: http://5minutesite.com/local_keywords.php Google Sets: http://labs.google.com/sets Tag Clouds and keyword definitions: http://searchradar.webaroo.com/ Related Terms: http://www.kwmap.net/ Related Terms: http://www.urbandictionary.com/ Keyword Aggregators: SEOBook: http://tools.seobook.com/keyword-tools/seobook/ =================================== Top Ten Google AdWords Keywords Quality Score Tips Posted in Top Ten SEO Resources | No Comments » Geo targeted campaign to specific city Use one exact matched and one phrase matched keyword per ad group Use the keyword in ad title, text &amp; display URL Link the ad to a Landing Page that contains that keyword in the head and body Increase your CTR. Look into the speed of your landing page. Try to create best performing ads. Change your Call-to-Action. Include the city’s name in your ad. Duplicate the keywords you already have and add the city’s name to them. Try to write ads that are different from your competitors’ ones. Generate a search query report (daily or weekly) and see if you could add some negative keywords… Include the target keyword in your meta tags and body of the landing page PUNISHED FOR OTHERS’ POOR PERFORMANCE We’ve seen advertisers who are doing everything right, but because their industry was/is plagued by shady affiliates or advertisers who’ve done a sloppy job with their campaigns, they struggle to get a decent quality score. And even when they do, the minimum first page bids are sometimes quite high. LOOK OUT FOR IMPRESSION BLEEDERS A solid CTR is the main factor in getting a good quality score so watch out for any keywords that are accumulating a high volume of impressions with a low CTR. Over time these keywords will erode your quality score. DON’T COMPLETELY IGNORE BROAD MATCH You might want to experiment with some broad match keywords as long as you can maintain a solid CTR – aim for at least your campaign’s average or better. This could help you discover some high value, high CTR keyword variations that you can add as phrase or exact matches (Just try to avoid one word broad match or keyword variation that are too generic because they may generate a high volume of impressions with a lower CTR). ========================================================== Black Hat search engine optimization is customarily defined as techniques that are used to get higher search rankings in an unethical manner. These black hat SEO techniques usually include one or more of the following characteristics: breaks search engine rules and regulations creates a poor user experience directly because of the black hat SEO techniques utilized on the Web site unethically presents content in a different visual or non-visual way to search engine spiders and search engine users. A lot of what is known as black hat SEO actually used to be legit, but some folks went a bit overboard and now these techniques are frowned upon by the general SEO community at large. These black hat SEO practices will actually provide short-term gains in terms of rankings, but if you are discovered utilizing these spammy techniques on your Web site, you run the risk of being penalized by search engines. Black hat SEO basically is a short-sighted solution to a long-term problem, which is creating a Web site that provides both a great user experience and all that goes with that.  Black Hat SEO Techniques To Avoid Keyword stuffing: Packing long lists of keywords and nothing else onto your site will get you penalized eventually by search engines. Learn how to find and place keywords and phrases the right way on your Web site with my article titled Learn Where And How To Put Keywords In Your Site Pages. Invisible text: This is putting lists of keywords in white text on a white background in hopes of attracting more search engine spiders. Again, not a good way to attract searchers or search engine crawlers.  Doorway Pages: A doorway page is basically a “fake” page that the user will never see. It is purely for search engine spiders, and attempts to trick them into indexing the site higher. Read more about doorway pages.  Black Hat SEO is tempting; after all, these tricks actually do work, temporarily. They do end up getting sites higher search rankings; that is, until these same sites get banned for using unethical practices. It’s just not worth the risk. Use efficient search engine optimization techniques to get your site ranked higher, and stay away from anything that even looks like Black Hat SEO. Here's a few articles that can get you on the road to knowing search engine optimization:  Search Engines Define Spam Google defines spam as &quot;trying to deceive (spam) our web crawler by means of hidden text, deceptive cloaking or doorway pages.&quot; You can report sites you suspect of spam at Google's Report A Spam Result page. Yahoo defines spam as &quot;pages (that) are created deliberately to trick the search engine into offering inappropriate, redundant or poor-quality search results.&quot; They have a pretty extensive list of what techniques they consider spam at their Yahoo Search Technology Content Quality Guidelines page. MSN Search gives a few spamming techniques &quot;discouraged&quot; by MSN Search; among them are keyword stuffing, invisible text, or false links. Ask defines spam as &quot;the practice of purposely deceiving a search engine into returning a result that is unrelated to a user’s query, or that is ranked artificially high in the result set.&quot; They give quite a few examples of search engine spam. While not an exhaustive list of search engines, this should give you a good idea of what is considered spam by search engines. Spam Techniques To Avoid Invisible Text. Text that is the same color as the background pages; enables site owner to place more keywords on the page and attract more spiders. Keyword Stuffing. Pretty much what it sounds like. Keyword stuffing consists of placing as many relevant or irrevelant keywords and phrases as you possibly can in content and Meta tags. Unrelated Keywords. If you have a site about Depression era glass bowls and your keywords include &quot;Viagra&quot; and &quot;Britney Spears&quot;, that would be considered unrelated keywords. Doorway Pages. Doorways are pages optimized only for search engine spiders in order to attract more spiders, thus more users. Usually optimized for just one word or phrase and only meant for spiders, not users. Read more about doorway pages. Tiny Text/Alt Text. Tiny text consists of placing keywords and phrases in the tiniest text imaginable all over your site. Most people can't see them, but spiders can. Alt text spamming is stuffing the alt text tags (for images) with unrelated keywords or phrases. Mirror or Duplicate Sites. Don’t duplicate your site, name it something different, and submit it again. This is not only ill advised, but it borders on stupid. Search engines will know if you do this. Submitting Repeatedly. Submitting your site to a search engine or directory repeatedly in a short period of time is a great way to get your site banned, or at least delayed. Read more about site submission. Spam - Only Good For Breakfast To recap: spamming the search engines may seem like the quick road to Easy Street, but it can get you in big trouble and is usually quickly discovered. The bottom line about spam and search engine optimization is this: a person who is determined to get around search engines, inflate their search rankings, or perform unethical SEO maneuvers is asking for trouble. Here are some good search engine optimization resources for beginners to SEO:   ==================================     Hallway Page A hallway page is referred to as a web page that comprises the records of all the web pages as well as the links that later links up to the main website. The major reason why a hallway page is created is to help the search engine spider for indexing all the web pages and then later crawling into all the links which are made available in the hallway page. Generally the page ranks of these hallway pages are very high. Therefore this is an important consideration in emarketing. Usually it has been seen that webmasters do not correctly adopt the seo technique. They are sometimes of the opinion that submitting a website and carrying out the seo services is very easy just as clicking a “accept” tab on any website. But then they usually fail to understand that the way in which they carry out these seo services is what will determine their page ranks in the search engines making the seo services more effective. Hallway pages are one such seo technique that should be made use of by all the webmasters to grow on the search engine preferences. This is because some of the times the search engines give out ranks to the pages only as per the scoring given to the web pages by the search engine spider. Here comes the need for a seo technique that is Hallway pages. This seo technique will enhance your search engine page rankings and make your website appear in the first five results of the search engine pages. This is because the hallway page that you will create will be linked up to all your doorway pages that you might have written for the purpose of seo optimisation. Then at appoint of time when these pages are submitted to any of the search engines the search engine spiders crawl into all these hallway pages and all the other branches that are connected to the links mentioned here. The search engine spiders indexes the pages that the website owner actually wants to get indexed. In this case or seo service the hallway pages that are crawled upon by the search engine spider will be ranked at a higher position than the pages that are individually submitted to the search engine by the web site owner himself. Therefore it is advisable for the seo service providers to advice the web masters to submit all their pages at one point of time. In the recent times according to the seo analyzers it has been seen that the search engines give higher ranks to the main web page than any other webpage of your website. So it is advisable and also important for the seo service providers to advice the webmasters to link up the links to the main webpage of the website than making an altogether a different page as a hallway page. For gaining higher leverage all you can do is placing your hallway pages on a different domain which you may own and then submitting it to the search engines. Thus if correct seo techniques are opted for then you can always make your website rank higher in the search engines.  ================ http://www.alistapart.com/articles/accessibilityseo/ DESIGN AND CONTENT GUIDELINES: Make a site with a clear hierarchy and text links. Every page should be reachable from at least one static text link. Offer a site map to your users with links that point to the important parts of your site. If the site map is larger than 100 or so links, you may want to break the site map into separate pages. Create a useful, information-rich site, and write pages that clearly and accurately describe your content. Think about the words users would type to find your pages, and make sure that your site actually includes those words within it. Try to use text instead of images to display important names, content, or links. The Google crawler doesn’t recognize text contained in images. Make sure that your title and alt tags are descriptive and accurate. [...] TECHNICAL GUIDELINES: Use a text browser such as Lynx to examine your site, because most search engine spiders see your site much as Lynx would. If fancy features such as JavaScript, cookies, session IDs, frames, DHTML, or Flash keep you from seeing all of your site in a text browser, then search engine spiders may have trouble crawling your site. ======================== Long Tail SEO Strategy There has been a lot of talk lately about the “long tail” strategy in search engine optimization. People have been asking me how to work this into their campaign. First, let me explain to everyone what “long tail” means in SEO. Picture a graph of your search terms in relation to traffic provided. That graph would have a peak for your most popular term, and then get shorter and shorter down to the least trafficked term. The idea of long tail is that the bulk of your traffic is made from these lesser terms, thus the long tail. USWeb treats long tail as content development approach. With few exceptions, long tail is a common trend for our clients. The most notable exceptions being in certain e-commerce clients where only a handful of search terms convert. Still, search is not only about gaining the initial conversion, it’s about increased visibility to a targeted audience. For example, USWeb sees a significant long tail effect in search engines. Even though we rank on the first page for terms like “online marketing” and “internet marketing”. We see the bulk of our traffic from terms that were not intentional targets. This isn’t a bad thing, especially since most of the these less relvant terms are business related. The long tail SEO strategy is one of the most effective traffic building approaches you can take. USWeb accomplishes much of our clients long tail success through constant content development. For most clients we try to determine the top 1000 search phrases. We figure out which terms they already rank for, which terms have pages of content ready to optimize, and then which terms we will need to create content. USWeb is different than most search marketing firms in that most of the expense to our clients is for content development and link building, not just consulting. Try to imagine the type of impact 1,000 targeted terms have on long tail. Suddenly your site is visible for all sorts of terms that you would have never thought of. One of the biggest clients USWeb has came to us through search, but not one of our prime target terms, but because they were searching for someone by name, who happened to be someone we mentioned. The trick to converting long tail is to make sure that every page of your site properly explains who you are, what you offer, and a direct call to action. This is easier done for some sites than others, but the pay offs are significant. One additional benefit to our search engine optimization clients is the search terms they discover once they optimize their site. It’s amazing the terms you can find by seeing how people find your site. You can then add those terms to your Yahoo and Google AdWords list and increase your visibility on terms that most likely are very inexpensive =========================== Authority of a Page or Web site Google and other engines determine if a page or site is important &quot;in general&quot; as well as for a specific keyword. The importance of a Web site or page, expressed as Google Pagerank (or other variables not published by other engines) depends on: How large the site is (in pages). The age of the site/page. Whether it is a main domain or a subsidiary domain. Whether it is a &quot;free Web site&quot; subdomain - ranked lower. Commercial or not - *.org *.info and *.edu may have more authority than *.com or *.biz. How many pages link to that page within the site. The number and importance of the pages/sites linking to that page. &quot;Demerits&quot; or penalties that the site incurred for promoting itself in ways that that the search engine considers to be &quot;underhanded&quot; - &quot;Black Hat&quot; SEO. Authority of a Web site is important because it is often used to determine the weight given to links to your Web site. A link from a large Web site is better than a link from a small new one, and a link from the main page of a Web site may help you more than a link from a back page of that Web site. --------- Authority Sites     Authority sites (or rather authority site status) is what you are interested in if you are in the hunt for top position on the search engines. In search engine optimization terms, authority sites make your job 10 times easier than a website that has not already achieved this status. Some websites are already authority sites, but since they have not undergone search engine optimization they are not recognized by the search engines as such. Other websites either lack content our lack the links to be considered authority sites. On most search engines, for the highly competitive, high traffic keywords, you will notice that generally the top 10 results are loaded with authority sites. There are some exceptions of course, but in general the search engines smile favorably upon the websites they define as authority sites and reward these sites with top rankings. What makes an authority site? Authority sites generally have more content and more pages than other sites. The search engines feed on content-rich websites and those with many pages and much content per page will do better when going head-to-head with a smaller site. In addition, links from other authority sites to your site will help establish your site as an authority site as well. Search engines generally give more weight to the incoming links from authority sites as long as their main keyword is the same as your own. How do you establish your site as an authority site? First, add more pages to your site. Second, add more content to those pages. Third, find some authority link partners willing to link to your site. Sounds simple, doesn't it? Before adding more pages to the website, most likely some research will have to be conducted. Get some ideas by checking out what the competition is doing and how they are doing it. You may come up with some good ideas as to why they are beating you in the search engine rankings and you may take corrective action. Once you know what pages to add, you will either need to write some content, delegate this task to someone else, or hire a copywriter to do this for you. If you already know how to write content-rich, keyword-rich text, then you can take this task on with very little expense. If this is not your strength, then you may delegate this task or hire someone else to do it. There are even places online for article exchanges where you can pick up content by simply linking back to the author's site. Once you have more pages with more content, you will need to solicit other authority sites to becoming link partners with you. This can be accomplished through email. Some will and some will not answer your requests and of those who answer some will and some will not link to you. The more content and better design of your website, however, the more likely others will want to link to you. Once your site has more pages, more content and more high-ranking link partners, you will want to make sure your pages are optimized for the search engines properly. After all of these steps have been taken, then it is time to submit your website to the major search engines and directories once again so that they may re-index the website and move your site higher up in the rankings.     ======= seo spam SEO spam is also called spamdexing (because you’re spamming indexes) and can come in all kinds of shapes and sizes. There are some spam techniques that are obviously spam. But then there are some that aren’t clearly spam, but that you should avoid. The list of spamming techniques is huge. But there are a dozen or so items on that list that are constant.  Transparent links: These are links that are included in the page, but that users can’t see because they’re the same color as the background.  Hidden links: These links are on the page but are hidden behind elements like graphics. They don’t turn the graphic into a hyperlink, but a search engine can find them and follow them, even when people can’t.  Misleading links: Misleading links are those that appear to lead to one place but actually lead to another. An example of a misleading link is one that reads www.onewebsite.com but actually takes you to www.differentwebsite.com. Inconspicuous links: These links appear on a page, but they’re usually unnoticeable because they’re represented as graphics that are 1 x 1 pixels in size.  Keyword stuffing: Loading the content or the meta tags of a web site with keywords that are repeated over and over.  Meta tag stuffing: Stuffing meta tags with keywords that are repeated over and over.  Doorway pages (or gateway pages): These pages are designed specifically to draw search crawlers but are essentially useless to visitors. Often, a doorway page will have only the visible text, “click here to enter.”  Scraper sites: These are web sites that “scrape,” or copy their content from other pages on the Web. Search engines don’t like scraper sites because they’re not original and because they usually direct visitors to another site that’s less relevant to their search terms.  Machine-generated pages: These are web pages put together by a program that grabs the content from other web sites. The content that’s grabbed could be from within the current site or from sites belonging to other people. Usually these pages are considered spam because they are of no value to web-site users.  Links in punctuation: This is a clever scheme. Some unethical SEOs create a hyperlink that’s contained in a piece of punctuation. It’s done by using the following tag: &lt;a href=link&gt; &lt;/a&gt;Include real words here&lt;/a&gt; &lt;a href=link&gt;.&lt;/a&gt; That little snippet of code will leave the words in the link (and you can replace link with the web-site address of your choice) in plain text, but the period at the end of the link will contain the link. It’s small, so most people won’t notice it, but the link is there, so search engines will notice it.  Cloaking: This technique is used to make a highly optimized version of your page appear to search engines, but a more user-friendly page appear to site visitors.  Excessive cross-linking: Excessive cross-linking can be a sign that a company has created multiple=">http://www.google.com/support/webmasters/bin/answer.py?answer=35769#3</a></div>
<div id="_mcePaste"><a href="http://www.webhostingtalk.com/wiki/White_hat,_black_hat,_and_gray_hat_SEO ">http://www.webhostingtalk.com/wiki/White_hat,_black_hat,_and_gray_hat_SEO</a></div>
<div id="_mcePaste">http://www.googleguide.com/google_works.html</div>
<div id="_mcePaste"><a href="http://www.blackhatseo.com/">http://www.blackhatseo.com/</a> (one of the best)</div>
<div id="_mcePaste">http://www.searchengineoptimising.com/glossary/seo-glossary-of-terms/display/1/all-terms</div>
<div id="_mcePaste">http://www.smashingmagazine.com/2007/06/05/google-pagerank-what-do-we-really-know-about-it/</div>
<div><a href="http://www.seochat.com/seo-tools">http://www.seochat.com/seo-tools</a>/</div>
<div id="_mcePaste"><a href="http://www.rankingtoday.com/seo/">http://www.rankingtoday.com/seo/</a></div>
<div id="_mcePaste">http://www.linkpopularity.com/</div>
<div id="_mcePaste">http://www.seomoz.org/dp/the-internet-marketing-handbook</div>
<div id="_mcePaste">http://www.youtube.com/GoogleWebmasterHelp#p/c/B52807846359D2EA</div>
<div id="_mcePaste">https://sites.google.com/site/webmasterhelpforum/en/faq&#8211;crawling&#8211;indexing&#8212;ranking#not-indexed</div>
<div id="_mcePaste"><a href="http://seo-optimization-tips-tools.blogspot.com/2009/03/vtc-seo-optimization-training-tutorial.html">http://seo-optimization-tips-tools.blogspot.com/2009/03/vtc-seo-optimization-training-tutorial.html</a> (Video Tutor)</div>
<div id="_mcePaste">http://www.mattcutts.com/blog/type/googleseo/  (programmer of google site)</div>
<div id="_mcePaste">http://www.ninebyblue.com/blog/social-media/should-restaurants-care-about-local-search/ (programmer of google)</div>
<div>http://googlewebmastercentral.blogspot.com/search/label/webmaster%20guidelines (google seo blog must view all the videos)</div>
<div id="_mcePaste">http://www.seoresource.net/Search-Engine-Optimization.htm</div>
<div id="_mcePaste">http://www.chromaticsites.com/blog/9-practical-tips-for-building-your-website-authority/</div>
<div><a href="http://www.scriptol.com/seo/faq/">http://www.scriptol.com/seo/faq/</a> (Very Nice One)</div>
<div></div>
<div>================</div>
<h1>My Notes</h1>
<div id="_mcePaste">http://www.googleguide.com/google_works.html</div>
<div id="_mcePaste">http://websearch.about.com/od/seononos/a/spamseo.htm</div>
<div id="_mcePaste">http://www.pushon.co.uk/articles/top-5-white-hat-and-black-hat-search-optimisation-techniques/</div>
<div id="_mcePaste">status code 302</div>
<div id="_mcePaste">http://www.seoglossary.com/cat/H#681</div>
<div id="_mcePaste">meta tag length 150</div>
<div id="_mcePaste">SEO Clustering</div>
<div id="_mcePaste">In search engine search results pages, clustering is limiting each represented website to one or two listings.</div>
<div id="_mcePaste">six segma</div>
<div id="_mcePaste">http://www.seochat.com/c/a/Search-Engine-Optimization-Help/Implementing-Six-Sigma-Methodology-for-SEO/</div>
<div id="_mcePaste">google quality guideline</div>
<div id="_mcePaste">http://www.google.com/support/webmasters/bin/answer.py?answer=35769</div>
<div></div>
<div id="_mcePaste">=======================</div>
<div id="_mcePaste"></div>
<h1>Top Ten SEO Steps recommended for a successful web campaign</h1>
<div id="_mcePaste">Keyword Research &amp; Selection</div>
<div id="_mcePaste">Competition Analysis</div>
<div id="_mcePaste">Site Structure</div>
<div id="_mcePaste">Content Optimization</div>
<div id="_mcePaste">Link Building</div>
<div id="_mcePaste">Social Media</div>
<div id="_mcePaste">PPC</div>
<div id="_mcePaste">Statistics Analysis</div>
<div id="_mcePaste">Conversion Optimization</div>
<div id="_mcePaste">Keeping It Up</div>
<div id="_mcePaste">======================</div>
<h1>Keyword Research Tools:</h1>
<div id="_mcePaste">Google: https://adwords.google.com/select/KeywordToolExternal</div>
<div id="_mcePaste">Yahoo: Gone (old overture tool is gone)</div>
<div id="_mcePaste">MSN: http://adlab.msn.com/Keyword-Research.aspx</div>
<div id="_mcePaste">Wordtracker: http://www.wordtracker.com/</div>
<div id="_mcePaste">Keyword Discovery: http://www.keyworddiscovery.com</div>
<div id="_mcePaste">Submit Express: http://www.submitexpress.com/keytracker.php</div>
<div id="_mcePaste">Paid Search Keyword Tools:</div>
<div id="_mcePaste">Google: https://adwords.google.com/select/KeywordToolExternal</div>
<div id="_mcePaste">7Search: http://conversion.7search.com/scripts/advertisertools/keywordsuggestion.aspx</div>
<div id="_mcePaste">Miva: https://account.uk.miva.com/advertiser/Account/Popups/KeywordGenBox.asp</div>
<div id="_mcePaste">Keyword List Generators and Misc:</div>
<div id="_mcePaste">Google: https://adwords.google.com/select/KeywordToolExternal</div>
<div id="_mcePaste">SEOBook.com: http://tools.seobook.com/keyword-list/generator.php</div>
<div id="_mcePaste">RustyBrick.com: http://www.rustybrick.com/keyword-phrase-tool.php</div>
<div id="_mcePaste">For Local keywords: http://5minutesite.com/local_keywords.php</div>
<div id="_mcePaste">Google Sets: http://labs.google.com/sets</div>
<div id="_mcePaste">Tag Clouds and keyword definitions: http://searchradar.webaroo.com/</div>
<div id="_mcePaste">Related Terms: http://www.kwmap.net/</div>
<div id="_mcePaste">Related Terms: http://www.urbandictionary.com/</div>
<div id="_mcePaste">Keyword Aggregators:</div>
<div id="_mcePaste">SEOBook: http://tools.seobook.com/keyword-tools/seobook/</div>
<div id="_mcePaste">===================================</div>
<h1>Top Ten Google AdWords Keywords Quality Score Tips</h1>
<div id="_mcePaste">Posted in Top Ten SEO Resources | No Comments »</div>
<div id="_mcePaste">Geo targeted campaign to specific city</div>
<div id="_mcePaste">Use one exact matched and one phrase matched keyword per ad group</div>
<div id="_mcePaste">Use the keyword in ad title, text &amp; display URL</div>
<div id="_mcePaste">Link the ad to a Landing Page that contains that keyword in the head and body</div>
<div id="_mcePaste">Increase your CTR.</div>
<div id="_mcePaste">Look into the speed of your landing page.</div>
<div id="_mcePaste">Try to create best performing ads.</div>
<div id="_mcePaste">Change your Call-to-Action.</div>
<div id="_mcePaste">Include the city’s name in your ad.</div>
<div id="_mcePaste">Duplicate the keywords you already have and add the city’s name to them.</div>
<div id="_mcePaste">Try to write ads that are different from your competitors’ ones.</div>
<div id="_mcePaste">Generate a search query report (daily or weekly) and see if you could add some negative keywords…</div>
<div id="_mcePaste">Include the target keyword in your meta tags and body of the landing page</div>
<div id="_mcePaste">PUNISHED FOR OTHERS’ POOR PERFORMANCE</div>
<div id="_mcePaste">We’ve seen advertisers who are doing everything right, but because their industry was/is plagued by shady affiliates or advertisers who’ve done a sloppy job with their campaigns, they struggle to get a decent quality score. And even when they do, the minimum first page bids are sometimes quite high.</div>
<div id="_mcePaste">LOOK OUT FOR IMPRESSION BLEEDERS</div>
<div id="_mcePaste">A solid CTR is the main factor in getting a good quality score so watch out for any keywords that are accumulating a high volume of impressions with a low CTR. Over time these keywords will erode your quality score.</div>
<div id="_mcePaste">DON’T COMPLETELY IGNORE BROAD MATCH</div>
<div id="_mcePaste">You might want to experiment with some broad match keywords as long as you can maintain a solid CTR – aim for at least your campaign’s average or better. This could help you discover some high value, high CTR keyword variations that you can add as phrase or exact matches (Just try to avoid one word broad match or keyword variation that are too generic because they may generate a high volume of impressions with a lower CTR).</div>
<div id="_mcePaste">==========================================================</div>
<div id="_mcePaste">Black Hat search engine optimization is customarily defined as techniques that are used to get higher search rankings in an unethical manner. These black hat SEO techniques usually include one or more of the following characteristics:</div>
<div id="_mcePaste">breaks search engine rules and regulations</div>
<div id="_mcePaste">creates a poor user experience directly because of the black hat SEO techniques utilized on the Web site</div>
<div id="_mcePaste">unethically presents content in a different visual or non-visual way to search engine spiders and search engine users.</div>
<div id="_mcePaste">A lot of what is known as black hat SEO actually used to be legit, but some folks went a bit overboard and now these techniques are frowned upon by the general SEO community at large. These black hat SEO practices will actually provide short-term gains in terms of rankings, but if you are discovered utilizing these spammy techniques on your Web site, you run the risk of being penalized by search engines. Black hat SEO basically is a short-sighted solution to a long-term problem, which is creating a Web site that provides both a great user experience and all that goes with that.</div>
<div id="_mcePaste">Black Hat SEO Techniques To Avoid</div>
<div id="_mcePaste">Keyword stuffing: Packing long lists of keywords and nothing else onto your site will get you penalized eventually by search engines. Learn how to find and place keywords and phrases the right way on your Web site with my article titled Learn Where And How To Put Keywords In Your Site Pages.</div>
<div id="_mcePaste">Invisible text: This is putting lists of keywords in white text on a white background in hopes of attracting more search engine spiders. Again, not a good way to attract searchers or search engine crawlers.</div>
<div id="_mcePaste">Doorway Pages: A doorway page is basically a “fake” page that the user will never see. It is purely for search engine spiders, and attempts to trick them into indexing the site higher. Read more about doorway pages.</div>
<div id="_mcePaste">Black Hat SEO is tempting; after all, these tricks actually do work, temporarily. They do end up getting sites higher search rankings; that is, until these same sites get banned for using unethical practices. It’s just not worth the risk. Use efficient search engine optimization techniques to get your site ranked higher, and stay away from anything that even looks like Black Hat SEO. Here&#8217;s a few articles that can get you on the road to knowing search engine optimization:</div>
<div id="_mcePaste">Search Engines Define Spam</div>
<div id="_mcePaste">Google defines spam as &#8220;trying to deceive (spam) our web crawler by means of hidden text, deceptive cloaking or doorway pages.&#8221; You can report sites you suspect of spam at Google&#8217;s Report A Spam Result page.</div>
<div id="_mcePaste">Yahoo defines spam as &#8220;pages (that) are created deliberately to trick the search engine into offering inappropriate, redundant or poor-quality search results.&#8221; They have a pretty extensive list of what techniques they consider spam at their Yahoo Search Technology Content Quality Guidelines page.</div>
<div id="_mcePaste">MSN Search gives a few spamming techniques &#8220;discouraged&#8221; by MSN Search; among them are keyword stuffing, invisible text, or false links.</div>
<div id="_mcePaste">Ask defines spam as &#8220;the practice of purposely deceiving a search engine into returning a result that is unrelated to a user’s query, or that is ranked artificially high in the result set.&#8221; They give quite a few examples of search engine spam.</div>
<div id="_mcePaste">While not an exhaustive list of search engines, this should give you a good idea of what is considered spam by search engines.</div>
<div id="_mcePaste">Spam Techniques To Avoid</div>
<div id="_mcePaste">Invisible Text. Text that is the same color as the background pages; enables site owner to place more keywords on the page and attract more spiders.</div>
<div id="_mcePaste">Keyword Stuffing. Pretty much what it sounds like. Keyword stuffing consists of placing as many relevant or irrevelant keywords and phrases as you possibly can in content and Meta tags.</div>
<div id="_mcePaste">Unrelated Keywords. If you have a site about Depression era glass bowls and your keywords include &#8220;Viagra&#8221; and &#8220;Britney Spears&#8221;, that would be considered unrelated keywords.</div>
<div id="_mcePaste">Doorway Pages. Doorways are pages optimized only for search engine spiders in order to attract more spiders, thus more users. Usually optimized for just one word or phrase and only meant for spiders, not users. Read more about doorway pages.</div>
<div id="_mcePaste">Tiny Text/Alt Text. Tiny text consists of placing keywords and phrases in the tiniest text imaginable all over your site. Most people can&#8217;t see them, but spiders can. Alt text spamming is stuffing the alt text tags (for images) with unrelated keywords or phrases.</div>
<div id="_mcePaste">Mirror or Duplicate Sites. Don’t duplicate your site, name it something different, and submit it again. This is not only ill advised, but it borders on stupid. Search engines will know if you do this.</div>
<div id="_mcePaste">Submitting Repeatedly. Submitting your site to a search engine or directory repeatedly in a short period of time is a great way to get your site banned, or at least delayed. Read more about site submission.</div>
<div id="_mcePaste">Spam &#8211; Only Good For Breakfast</div>
<div id="_mcePaste">To recap: spamming the search engines may seem like the quick road to Easy Street, but it can get you in big trouble and is usually quickly discovered. The bottom line about spam and search engine optimization is this: a person who is determined to get around search engines, inflate their search rankings, or perform unethical SEO maneuvers is asking for trouble. Here are some good search engine optimization resources for beginners to SEO:</div>
<div id="_mcePaste">==================================</div>
<h1>Hallway Page</h1>
<div id="_mcePaste">A hallway page is referred to as a web page that comprises the records of all the web pages as well as the links that later links up to the main website. The major reason why a hallway page is created is to help the search engine spider for indexing all the web pages and then later crawling into all the links which are made available in the hallway page. Generally the page ranks of these hallway pages are very high. Therefore this is an important consideration in emarketing.</div>
<div id="_mcePaste">Usually it has been seen that webmasters do not correctly adopt the seo technique. They are sometimes of the opinion that submitting a website and carrying out the seo services is very easy just as clicking a “accept” tab on any website. But then they usually fail to understand that the way in which they carry out these seo services is what will determine their page ranks in the search engines making the seo services more effective.</div>
<div id="_mcePaste">Hallway pages are one such seo technique that should be made use of by all the webmasters to grow on the search engine preferences. This is because some of the times the search engines give out ranks to the pages only as per the scoring given to the web pages by the search engine spider. Here comes the need for a seo technique that is Hallway pages. This seo technique will enhance your search engine page rankings and make your website appear in the first five results of the search engine pages.</div>
<div id="_mcePaste">This is because the hallway page that you will create will be linked up to all your doorway pages that you might have written for the purpose of seo optimisation. Then at appoint of time when these pages are submitted to any of the search engines the search engine spiders crawl into all these hallway pages and all the other branches that are connected to the links mentioned here. The search engine spiders indexes the pages that the website owner actually wants to get indexed. In this case or seo service the hallway pages that are crawled upon by the search engine spider will be ranked at a higher position than the pages that are individually submitted to the search engine by the web site owner himself. Therefore it is advisable for the seo service providers to advice the web masters to submit all their pages at one point of time.</div>
<div id="_mcePaste">In the recent times according to the seo analyzers it has been seen that the search engines give higher ranks to the main web page than any other webpage of your website. So it is advisable and also important for the seo service providers to advice the webmasters to link up the links to the main webpage of the website than making an altogether a different page as a hallway page. For gaining higher leverage all you can do is placing your hallway pages on a different domain which you may own and then submitting it to the search engines. Thus if correct seo techniques are opted for then you can always make your website rank higher in the search engines.</div>
<div id="_mcePaste">================</div>
<div id="_mcePaste">http://www.alistapart.com/articles/accessibilityseo/</div>
<h1>DESIGN AND CONTENT GUIDELINES:</h1>
<div id="_mcePaste">Make a site with a clear hierarchy and text links. Every page should be reachable from at least one static text link.</div>
<div id="_mcePaste">Offer a site map to your users with links that point to the important parts of your site. If the site map is larger than 100 or so links, you may want to break the site map into separate pages.</div>
<div id="_mcePaste">Create a useful, information-rich site, and write pages that clearly and accurately describe your content.</div>
<div id="_mcePaste">Think about the words users would type to find your pages, and make sure that your site actually includes those words within it.</div>
<div id="_mcePaste">Try to use text instead of images to display important names, content, or links. The Google crawler doesn’t recognize text contained in images.</div>
<div id="_mcePaste">Make sure that your title and alt tags are descriptive and accurate. [...]</div>
<div id="_mcePaste">TECHNICAL GUIDELINES:</div>
<div id="_mcePaste">Use a text browser such as Lynx to examine your site, because most search engine spiders see your site much as Lynx would. If fancy features such as JavaScript, cookies, session IDs, frames, DHTML, or Flash keep you from seeing all of your site in a text browser, then search engine spiders may have trouble crawling your site.</div>
<div id="_mcePaste">========================</div>
<h1>Long Tail SEO Strategy</h1>
<div id="_mcePaste">There has been a lot of talk lately about the “long tail” strategy in search engine optimization. People have been asking me how to work this into their campaign.</div>
<div id="_mcePaste">First, let me explain to everyone what “long tail” means in SEO. Picture a graph of your search terms in relation to traffic provided. That graph would have a peak for your most popular term, and then get shorter and shorter down to the least trafficked term. The idea of long tail is that the bulk of your traffic is made from these lesser terms, thus the long tail.</div>
<div id="_mcePaste">USWeb treats long tail as content development approach. With few exceptions, long tail is a common trend for our clients. The most notable exceptions being in certain e-commerce clients where only a handful of search terms convert. Still, search is not only about gaining the initial conversion, it’s about increased visibility to a targeted audience. For example, USWeb sees a significant long tail effect in search engines. Even though we rank on the first page for terms like “online marketing” and “internet marketing”. We see the bulk of our traffic from terms that were not intentional targets. This isn’t a bad thing, especially since most of the these less relvant terms are business related.</div>
<div id="_mcePaste">The long tail SEO strategy is one of the most effective traffic building approaches you can take. USWeb accomplishes much of our clients long tail success through constant content development. For most clients we try to determine the top 1000 search phrases. We figure out which terms they already rank for, which terms have pages of content ready to optimize, and then which terms we will need to create content.</div>
<div id="_mcePaste">USWeb is different than most search marketing firms in that most of the expense to our clients is for content development and link building, not just consulting.</div>
<div id="_mcePaste">Try to imagine the type of impact 1,000 targeted terms have on long tail. Suddenly your site is visible for all sorts of terms that you would have never thought of. One of the biggest clients USWeb has came to us through search, but not one of our prime target terms, but because they were searching for someone by name, who happened to be someone we mentioned.</div>
<div id="_mcePaste">The trick to converting long tail is to make sure that every page of your site properly explains who you are, what you offer, and a direct call to action. This is easier done for some sites than others, but the pay offs are significant.</div>
<div id="_mcePaste">One additional benefit to our search engine optimization clients is the search terms they discover once they optimize their site. It’s amazing the terms you can find by seeing how people find your site. You can then add those terms to your Yahoo and Google AdWords list and increase your visibility on terms that most likely are very inexpensive</div>
<div id="_mcePaste">===========================</div>
<h1>Authority of a Page or Web site</h1>
<div id="_mcePaste">Google and other engines determine if a page or site is important &#8220;in general&#8221; as well as for a specific keyword. The importance of a Web site or page, expressed as Google Pagerank (or other variables not published by other engines) depends on:</div>
<div id="_mcePaste">How large the site is (in pages).</div>
<div id="_mcePaste">The age of the site/page.</div>
<div id="_mcePaste">Whether it is a main domain or a subsidiary domain.</div>
<div id="_mcePaste">Whether it is a &#8220;free Web site&#8221; subdomain &#8211; ranked lower.</div>
<div id="_mcePaste">Commercial or not &#8211; *.org *.info and *.edu may have more authority than *.com or *.biz.</div>
<div id="_mcePaste">How many pages link to that page within the site.</div>
<div id="_mcePaste">The number and importance of the pages/sites linking to that page.</div>
<div id="_mcePaste">&#8220;Demerits&#8221; or penalties that the site incurred for promoting itself in ways that that the search engine considers to be &#8220;underhanded&#8221; &#8211; &#8220;Black Hat&#8221; SEO.</div>
<div id="_mcePaste">Authority of a Web site is important because it is often used to determine the weight given to links to your Web site. A link from a large Web site is better than a link from a small new one, and a link from the main page of a Web site may help you more than a link from a back page of that Web site.</div>
<div id="_mcePaste">&#8212;&#8212;&#8212;</div>
<div id="_mcePaste">Authority Sites</div>
<div id="_mcePaste">Authority sites (or rather authority site status) is what you are interested in if you are in the hunt for top position on the search engines. In search engine optimization terms, authority sites make your job 10 times easier than a website that has not already achieved this status.</div>
<div id="_mcePaste">Some websites are already authority sites, but since they have not undergone search engine optimization they are not recognized by the search engines as such. Other websites either lack content our lack the links to be considered authority sites.</div>
<div id="_mcePaste">On most search engines, for the highly competitive, high traffic keywords, you will notice that generally the top 10 results are loaded with authority sites. There are some exceptions of course, but in general the search engines smile favorably upon the websites they define as authority sites and reward these sites with top rankings.</div>
<div id="_mcePaste">What makes an authority site?</div>
<div id="_mcePaste">Authority sites generally have more content and more pages than other sites. The search engines feed on content-rich websites and those with many pages and much content per page will do better when going head-to-head with a smaller site.</div>
<div id="_mcePaste">In addition, links from other authority sites to your site will help establish your site as an authority site as well. Search engines generally give more weight to the incoming links from authority sites as long as their main keyword is the same as your own.</div>
<div id="_mcePaste">How do you establish your site as an authority site?</div>
<div id="_mcePaste">First, add more pages to your site. Second, add more content to those pages. Third, find some authority link partners willing to link to your site. Sounds simple, doesn&#8217;t it?</div>
<div id="_mcePaste">Before adding more pages to the website, most likely some research will have to be conducted. Get some ideas by checking out what the competition is doing and how they are doing it. You may come up with some good ideas as to why they are beating you in the search engine rankings and you may take corrective action.</div>
<div id="_mcePaste">Once you know what pages to add, you will either need to write some content, delegate this task to someone else, or hire a copywriter to do this for you. If you already know how to write content-rich, keyword-rich text, then you can take this task on with very little expense. If this is not your strength, then you may delegate this task or hire someone else to do it. There are even places online for article exchanges where you can pick up content by simply linking back to the author&#8217;s site.</div>
<div id="_mcePaste">Once you have more pages with more content, you will need to solicit other authority sites to becoming link partners with you. This can be accomplished through email. Some will and some will not answer your requests and of those who answer some will and some will not link to you. The more content and better design of your website, however, the more likely others will want to link to you.</div>
<div id="_mcePaste">Once your site has more pages, more content and more high-ranking link partners, you will want to make sure your pages are optimized for the search engines properly.</div>
<div id="_mcePaste">After all of these steps have been taken, then it is time to submit your website to the major search engines and directories once again so that they may re-index the website and move your site higher up in the rankings.</div>
<div id="_mcePaste">=======</div>
<div id="_mcePaste">seo spam</div>
<div id="_mcePaste">SEO spam is also called spamdexing (because you’re spamming indexes) and can come in all kinds</div>
<div id="_mcePaste">of shapes and sizes. There are some spam techniques that are obviously spam. But then there are</div>
<div id="_mcePaste">some that aren’t clearly spam, but that you should avoid. The list of spamming techniques is huge.</div>
<div id="_mcePaste">But there are a dozen or so items on that list that are constant.</div>
<div id="_mcePaste">Transparent links: These are links that are included in the page, but that users can’t see</div>
<div id="_mcePaste">because they’re the same color as the background.</div>
<div id="_mcePaste">Hidden links: These links are on the page but are hidden behind elements like graphics.</div>
<div id="_mcePaste">They don’t turn the graphic into a hyperlink, but a search engine can find them and follow</div>
<div id="_mcePaste">them, even when people can’t.</div>
<div id="_mcePaste">Misleading links: Misleading links are those that appear to lead to one place but actually</div>
<div id="_mcePaste">lead to another. An example of a misleading link is one that reads www.onewebsite.com</div>
<div id="_mcePaste">but actually takes you to www.differentwebsite.com.</div>
<div id="_mcePaste">Inconspicuous links: These links appear on a page, but they’re usually unnoticeable</div>
<div id="_mcePaste">because they’re represented as graphics that are 1 x 1 pixels in size.</div>
<div id="_mcePaste">Keyword stuffing: Loading the content or the meta tags of a web site with keywords that</div>
<div id="_mcePaste">are repeated over and over.</div>
<div id="_mcePaste">Meta tag stuffing: Stuffing meta tags with keywords that are repeated over and over.</div>
<div id="_mcePaste">Doorway pages (or gateway pages): These pages are designed specifically to draw search</div>
<div id="_mcePaste">crawlers but are essentially useless to visitors. Often, a doorway page will have only the</div>
<div id="_mcePaste">visible text, “click here to enter.”</div>
<div id="_mcePaste">Scraper sites: These are web sites that “scrape,” or copy their content from other pages on</div>
<div id="_mcePaste">the Web. Search engines don’t like scraper sites because they’re not original and because</div>
<div id="_mcePaste">they usually direct visitors to another site that’s less relevant to their search terms.</div>
<div id="_mcePaste">Machine-generated pages: These are web pages put together by a program that grabs the</div>
<div id="_mcePaste">content from other web sites. The content that’s grabbed could be from within the current</div>
<div id="_mcePaste">site or from sites belonging to other people. Usually these pages are considered spam</div>
<div id="_mcePaste">because they are of no value to web-site users.</div>
<div id="_mcePaste">Links in punctuation: This is a clever scheme. Some unethical SEOs create a hyperlink</div>
<div id="_mcePaste">that’s contained in a piece of punctuation. It’s done by using the following tag:</div>
<div id="_mcePaste">&lt;a href=link&gt; &lt;/a&gt;Include real words here&lt;/a&gt; &lt;a href=link&gt;.&lt;/a&gt;</div>
<div id="_mcePaste">That little snippet of code will leave the words in the link (and you can replace link</div>
<div id="_mcePaste">with the web-site address of your choice) in plain text, but the period at the end of the</div>
<div id="_mcePaste">link will contain the link. It’s small, so most people won’t notice it, but the link is there,</div>
<div id="_mcePaste">so search engines will notice it.</div>
<div id="_mcePaste">Cloaking: This technique is used to make a highly optimized version of your page appear</div>
<div id="_mcePaste">to search engines, but a more user-friendly page appear to site visitors.</div>
<div id="_mcePaste">Excessive cross-linking: Excessive cross-linking can be a sign that a company has created</div>
<div id="_mcePaste">multiple domains strictly for the purpose of building a false linking structure with a single</div>
<div id="_mcePaste">web site.</div>
<div id="_mcePaste">Hidden text: This text is the same color as the background of a web page so that users</div>
<div id="_mcePaste">can’t see it. Search engines can, and the text is usually an incomprehensible collection of</div>
<div id="_mcePaste">keywords and phrases.</div>
<div id="_mcePaste">Duplicate content: Duplicate content on a web site is construed as being a ploy to trick a</div>
<div id="_mcePaste">search crawler into thinking the site is more relevant than it actually is.</div>
<div id="_mcePaste">Link-only pages: These pages contain only links and should be avoided. The one exception</div>
<div id="_mcePaste">to this rule is the site map that you make available to visitors so they can quickly find</div>
<div id="_mcePaste">their way around your site.</div>
<div id="_mcePaste">Redirect pages: Redirect pages are usually coded for SEO, but again, they’re useless to</div>
<div id="_mcePaste">site visitors. When site visitors land on this page, they’re asked to wait while they are</div>
<div id="_mcePaste">redirected to another web site. Search engines look down on this practice because very</div>
<div id="_mcePaste">often, the web page that is redirecting is optimized for SEO but not for people.</div>
<div id="_mcePaste">Link farms: Link farms are simply pages of links that are only created to artificially boost a</div>
<div id="_mcePaste">linking strategy in an effort to speed the appearance of the web site in the top search ranking</div>
<div id="_mcePaste">positions.</div>
<div id="_mcePaste">Spamblogs: These are machine-generated blogs and their only purpose is to draw search</div>
<div id="_mcePaste">engine rankings.</div>
<div id="_mcePaste">Page hijacking: Page hijacking is accomplished by copying a very popular page on the</div>
<div id="_mcePaste">Web and using it to represent your site to search engines. When users see your page in</div>
<div id="_mcePaste">search results, they click through the link only to be taken to your actual page.</div>
<div id="_mcePaste">Sybil attacks: Sybil attacks are created when a spammer creates multiple web sites that</div>
<div id="_mcePaste">are all interlinked for the purpose of creating a false link structure.</div>
<div id="_mcePaste">Wiki spam: Using the open editability of Wiki sites to add links to a spam site in the</div>
<div id="_mcePaste">Wiki listing. Because this practice became so frequently used, especially on Wikipedia,</div>
<div id="_mcePaste">the nofollow tag has been added to most Wiki additions to prevent spamming search</div>
<div id="_mcePaste">engines.</div>
<div id="_mcePaste">================</div>
<div id="_mcePaste">Have you ever noticed that when you go to MSN, Yahoo, or Google the cursor goes to the search box when the page loads? I know I notice it when I start to type something in the address bar and half way through the cursor goes to the search box. I call this phenomenon the “mouse trap.”</div>
<div id="_mcePaste">=================</div>
<div id="_mcePaste">=====================</div>
<div id="_mcePaste">keyword research</div>
<div id="_mcePaste">1 do this before designing and building your site</div>
<div id="_mcePaste">list of possible keyword or search for keyphrase</div>
<div id="_mcePaste">take your time and select with care</div>
<div id="_mcePaste">look at your site access logs</div>
<div id="_mcePaste">ask customer, co-workes, friends and others for key works</div>
<div id="_mcePaste">include singular and plural version of important terms</div>
<div id="_mcePaste">include commonly misspelled word like make some page did you mean this etc</div>
<div id="_mcePaste">missspell domain name</div>
<div id="_mcePaste">find possible keyword</div>
<div id="_mcePaste">refining your keywords</div>
<div id="_mcePaste">-remove ambiguous terms</div>
<div id="_mcePaste">diffent meaning to different people</div>
<div id="_mcePaste">analize compeditior siter atleast 3</div>
<div id="_mcePaste">-broad term</div>
<div id="_mcePaste">eg web design for wordpress outsourcing etc</div>
<div id="_mcePaste">-difficult terms</div>
<div id="_mcePaste">cd replication they don&#8217;t use most</div>
<div id="_mcePaste">-over-competitive terms</div>
<div id="_mcePaste">cdrom</div>
<div id="_mcePaste">====</div>
<div id="_mcePaste">=tips for refining your keyword list</div>
<div id="_mcePaste">remove terms that are ultra-competitive</div>
<div id="_mcePaste">web design for wordpress outsourcing</div>
<div id="_mcePaste">focus on narrowly defined but highly relevant terms</div>
<div id="_mcePaste">webdisign</div>
<div id="_mcePaste">don&#8217;t work with too many terms</div>
<div id="_mcePaste">3 or 4 terms</div>
<div id="_mcePaste">=========</div>
<div id="_mcePaste">keyword and relative keyword</div>
<div id="_mcePaste">which terms are most used most often are looking for your product</div>
<div id="_mcePaste">worktraker.com to find statics</div>
<div id="_mcePaste">dogpile.com</div>
<div id="_mcePaste">use capital and bold and h1 for main keyword</div>
<div id="_mcePaste">keyword Relevancy</div>
<div id="_mcePaste">keywords must match the content of your site</div>
<div id="_mcePaste">keywords most match page tittle domainname meta description</div>
<div id="_mcePaste">first priority best keyword first, then send priority second</div>
<div id="_mcePaste">keyword density</div>
<div id="_mcePaste">how many times your keywords appear in relate to other words</div>
<div id="_mcePaste">sabin shrestha work page</div>
<div id="_mcePaste">dead weight words stop word</div>
<div id="_mcePaste">the of or for this that  and to homepage wow web webpage etc</div>
<div id="_mcePaste">keyword placement</div>
<div id="_mcePaste">============================================</div>
<div id="_mcePaste">Creating keyword rich pages</div>
<div id="_mcePaste">content-rich pages in which particular keyword is repeated</div>
<div id="_mcePaste">key word location</div>
<div id="_mcePaste">topof the page in title , description so on</div>
<div id="_mcePaste">keyword in top is more important make it h1 and bold etc</div>
<div id="_mcePaste">intitle:welcome used in title</div>
<div id="_mcePaste">used primary key word in title</div>
<div id="_mcePaste">===============================</div>
<div id="_mcePaste">whey use meta tags</div>
<div id="_mcePaste">displayed as a summary in some se</div>
<div id="_mcePaste">real live customer use them</div>
<div id="_mcePaste">if omitted se construct their own</div>
<div id="_mcePaste">==========================</div>
<div id="_mcePaste">meta keyword</div>
<div id="_mcePaste">ignore meta keyword by google</div>
<div id="_mcePaste">tips for using keyword meta tags</div>
<div id="_mcePaste">avoid repating words and phrased</div>
<div id="_mcePaste">limit tag to 12 words</div>
<div id="_mcePaste">use only keywords relevant to the content of your page</div>
<div id="_mcePaste">make sure keywords are also in body of pages</div>
<div id="_mcePaste">=============</div>
<div id="_mcePaste">optimizing content</div>
<div id="_mcePaste">begin your content by using heading</div>
<div id="_mcePaste">making text bold italics</div>
<div id="_mcePaste">upper case letters</div>
<div id="_mcePaste">or in list li</div>
<div id="_mcePaste">don&#8217;t use touch graphics</div>
<div id="_mcePaste">use alt for alternating text</div>
<div id="_mcePaste">don&#8217;t use more than 250 words</div>
<div id="_mcePaste">update site as possible as you can</div>
<div id="_mcePaste">=======================</div>
<div id="_mcePaste">page content strategies</div>
<div id="_mcePaste">use keywords on pages through out your site</div>
<div id="_mcePaste">use keyword more than 10 times</div>
<div id="_mcePaste">include keywords in as many sentences as possible</div>
<div id="_mcePaste">first few lines should accurately define the content of page</div>
<div id="_mcePaste">contain link to other pages containing the same keywords</div>
<div id="_mcePaste">link to other pages which have the keyword in the file name</div>
<div id="_mcePaste">keep paragraphs short</div>
<div id="_mcePaste">use keywords in your file names</div>
<div id="_mcePaste">=============</div>
<div id="_mcePaste">we also need link coming inside or going outside the page</div>
<div id="_mcePaste">other wise searchengine may penalize</div>
<div id="_mcePaste">Advantages of links</div>
<div id="_mcePaste">they help search bots find other pages</div>
<div id="_mcePaste">keywords in the links tell the engines about the page the link points to</div>
<div id="_mcePaste">links tell the engines about the content on the page with the link</div>
<div id="_mcePaste">orphan pages dangling pages … without outbound links</div>
<div id="_mcePaste">just link the primary keyword …</div>
<div id="_mcePaste">create sitemap pages</div>
<div id="_mcePaste">search engine refuse to index or spider filled with links</div>
<div id="_mcePaste">create short desc on the every link in site map</div>
<div id="_mcePaste">common page content mistakes</div>
<div id="_mcePaste">targeting the wrong keywords(checking for bringing rite traffic)</div>
<div id="_mcePaste">too many graphics</div>
<div id="_mcePaste">cluttered pages (that don&#8217;t have content javascript,flash,graphics,html tags,limit void images map</div>
<div id="_mcePaste">don&#8217; use frames</div>
<div id="_mcePaste">use text best link on the bottom of the site if you are using button in up</div>
<div id="_mcePaste">adword key word tool and get related word</div>
<div id="_mcePaste">put text on page</div>
<div id="_mcePaste">think about what users will type when searching for your service and put those words on the pages</div>
<div id="_mcePaste">add ability to add comments on page</div>
<div id="_mcePaste">put in twitter facebook</div>
<div id="_mcePaste">=======================</div>
<div id="_mcePaste">linking popularity</div>
<div id="_mcePaste">google set linking that page with right keyword and contents is a good vote for that site</div>
<div id="_mcePaste">more good link more good rank</div>
<div id="_mcePaste">why links are important</div>
<div id="_mcePaste">make it easier for engines to find your pages</div>
<div id="_mcePaste">they also bring people to your pages</div>
<div id="_mcePaste">use as measure of a sites value</div>
<div id="_mcePaste">if you page has more inbound link and outbound link it is rank high</div>
<div id="_mcePaste">they prove info about the page they point to</div>
<div id="_mcePaste">link popularity</div>
<div id="_mcePaste">which site are linked and what they are saying</div>
<div id="_mcePaste">infrastructure of incoming site</div>
<div id="_mcePaste">link that are coming are relevant to the content of the page</div>
<div id="_mcePaste">and content of the page that linked to you your page and content of the page and textlink what they describe abt ur page</div>
<div id="_mcePaste">3 mesument</div>
<div id="_mcePaste">link popularity</div>
<div id="_mcePaste">link page reputation</div>
<div id="_mcePaste">and page importance</div>
<div id="_mcePaste">link popularity</div>
<div id="_mcePaste">a raking sore base on the number f incoming links</div>
<div id="_mcePaste">the more links the better the ranking</div>
<div id="_mcePaste">(antssoft.com) link survey tools</div>
<div id="_mcePaste">marketleap.com/publinkpop/</div>
<div id="_mcePaste">linkpopularity.com</div>
<div id="_mcePaste">http://www.cemper.com/seo-knowhow/seo-trends-2009</div>
<div id="_mcePaste">http://www.seomoz.org/article/search-ranking-factors</div>
<div id="_mcePaste">page reputation</div>
<div id="_mcePaste">a ranking score based on what other page&#8217;s and link say about the page</div>
<div id="_mcePaste">the most important factor of the three, if done correctly can greatly effect your ranking</div>
<div id="_mcePaste">linkreputationanalyzer.com</div>
<div id="_mcePaste">what the difference between link popularity and link reputation ?</div>
<div id="_mcePaste">is top rankings</div>
<div id="_mcePaste">page Importance (pangerank)</div>
<div id="_mcePaste">A ranking score based on the number and type of links pointing to a page</div>
<div id="_mcePaste">devised by google and now an industry standard</div>
<div id="_mcePaste">don&#8217;t delete high pagerank page</div>
<div id="_mcePaste">strategies for improving your link</div>
<div id="_mcePaste">1) become a content provider</div>
<div id="_mcePaste">and ask other to link it</div>
<div id="_mcePaste">2)keep track of your links</div>
<div id="_mcePaste">trackengine.com allow to monitor your site</div>
<div id="_mcePaste">spyonit.com</div>
<div id="_mcePaste">links pages</div>
<div id="_mcePaste">ignores searchengine or penalize it</div>
<div id="_mcePaste">they dilute the effectiveness of the links on them</div>
<div id="_mcePaste">they may be further downgraded in future</div>
<div id="_mcePaste">strategies for using them</div>
<div id="_mcePaste">scatter your links (make it like intregeted on page)</div>
<div id="_mcePaste">limit the number of links on a single page</div>
<div id="_mcePaste">don&#8217;t call page &#8220;links pages&#8221;</div>
<div id="_mcePaste">add content to page with only links(add some description on it)</div>
<div id="_mcePaste">encourage sites linking to you to follow these guidelines</div>
<div id="_mcePaste">types of links that can work against you</div>
<div id="_mcePaste">like links farms</div>
<div id="_mcePaste">free for all</div>
<div id="_mcePaste">links from unrelated sites</div>
<div id="_mcePaste">mass emailings</div>
<div id="_mcePaste">buried reciprocal links pages</div>
<div id="_mcePaste">htpp://www.test.com/test.html is not good bout http;/test.com/subfoler/pages.html is more good.</div>
<div id="_mcePaste">guide for improving your links</div>
<div id="_mcePaste">use optilink to determine who links</div>
<div id="_mcePaste">contact owners to negotiate a link</div>
<div id="_mcePaste">get listed in yahoo odp about.com directory</div>
<div id="_mcePaste">advertise where your competitor is listed</div>
<div id="_mcePaste">check page rank and keyword they are using</div>
<div id="_mcePaste">building traffic naturally will make link popularity</div>
<div id="_mcePaste">se like simple pages</div>
<div id="_mcePaste">se like text content</div>
<div id="_mcePaste">Google page construction</div>
<div id="_mcePaste">page title important</div>
<div id="_mcePaste">get domain name with your keywords</div>
<div id="_mcePaste">don&#8217;t exactly match text links with domain name</div>
<div id="_mcePaste">use keywords in text and title as plurals</div>
<div id="_mcePaste">use keywords in image alt tag and filenames</div>
<div id="_mcePaste">use keywords in top third of page</div>
<div id="_mcePaste">don&#8217;t repat exact keywords</div>
<div id="_mcePaste">keyword order is important</div>
<div id="_mcePaste">lastvegas realestate not realestate lasvegas</div>
<div id="_mcePaste">locations google can get descriptions</div>
<div id="_mcePaste">meta description tags</div>
<div id="_mcePaste">first image alt tag on page</div>
<div id="_mcePaste">first text found on page</div>
<div id="_mcePaste">heading tage</div>
<div id="_mcePaste">info at bottom of page</div>
<div id="_mcePaste">Google link strategies</div>
<div id="_mcePaste">link a home page have more impact then deeper site</div>
<div id="_mcePaste">site maps very helpful</div>
<div id="_mcePaste">use consistent url for link parters</div>
<div id="_mcePaste">use only www.meroclub.com.np or meroclub.com.np</div>
<div id="_mcePaste">ignore sites with page ranks of 3 or less</div>
<div id="_mcePaste">manage your inbound links</div>
<div id="_mcePaste">like www.merolcub.com.np use nepal social networking site in link text</div>
<div id="_mcePaste">real-estate agent in lasvegas like</div>
<div id="_mcePaste">an average of about 50 inbound links is good</div>
<div id="_mcePaste">avoid web rings, link farms n commercial link exchanges</div>
<div id="_mcePaste">include synonyms and misspellings</div>
<div id="_mcePaste">be careful with links unrelated to your theme</div>
<div id="_mcePaste">inbound links should contain keywords</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.sabinshrestha.com.np/sabincat/seo-my-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Successful Freelancing for Web Designers Notes</title>
		<link>http://www.sabinshrestha.com.np/sabincat/successful-freelancing-for-web-designers-notes/</link>
		<comments>http://www.sabinshrestha.com.np/sabincat/successful-freelancing-for-web-designers-notes/#comments</comments>
		<pubDate>Mon, 28 Jun 2010 17:50:01 +0000</pubDate>
		<dc:creator>sabin</dc:creator>
				<category><![CDATA[Sabin Personel]]></category>

		<guid isPermaLink="false">http://www.sabinshrestha.com.np/?p=202</guid>
		<description><![CDATA[Successful Freelancing for Web Designers Notes Essential Habits of an Effective Professional Freelancer (Rob Smith) Common Questions of Web Designers (Andy Rutledge) The Designer Who Delivers (Aurimas Adomavicius) Critical Mistakes Freelancers Make (Robert Bowen) The Importance of Customer Service (Robert Bowen) Creatively Handling the Admin Side of Freelancing (Robert Bowen) Pitching Like a Pro (Cameron [...]]]></description>
			<content:encoded><![CDATA[<h1>Successful Freelancing for Web Designers Notes</h1>
<ul>
<li><a href="http://www.smashingmagazine.com/2009/12/21/essential-habits-of-an-effective-professional-freelancer/">Essential Habits of an Effective Professional Freelancer (Rob Smith)</a></li>
<li><a href="http://www.smashingmagazine.com/2010/03/08/common-questions-about-design-professionalism/">Common Questions of Web Designers (Andy Rutledge)</a></li>
<li><a href="http://www.smashingmagazine.com/2010/04/16/the-designer-who-delivers/">The Designer Who Delivers (Aurimas Adomavicius)</a></li>
<li><a href="http://www.smashingmagazine.com/2009/11/28/critical-mistakes-freelancers-make/">Critical Mistakes Freelancers Make (Robert Bowen)</a></li>
<li><a href="http://www.noupe.com/how-tos/the-importance-of-customer-service-to-your-freelance-business.htm">The Importance of Customer Service (Robert Bowen)</a></li>
<li><a href="http://www.smashingmagazine.com/2010/01/11/creatively-handling-the-admin-side-of-freelancing/  ">Creatively Handling the Admin Side of Freelancing (Robert Bowen)</a></li>
<li>Pitching Like a Pro (Cameron Chapman)</li>
<li>The Finances of Freelancing (Luke Reimer)</li>
<li><a href="http://www.smashingmagazine.com/2009/10/15/identifying-and-dealing-with-different-types-of-clients/  ">How to Identify and Deal With Different Types of Clients (Robert Bowen)</a></li>
<li><a href="http://www.noupe.com/how-tos/5-simple-tips-for-improving-designer-client-relationships.html">How to Improve Designer-Client Relationships</a> (Aaron Griffith)</li>
<li><a href="http://www.smashingmagazine.com/2009/08/14/how-to-effectively-communicate-with-developers/">How to Communicate with Developers Effectively (Ryan Scherf)</a></li>
<li><a href="http://www.smashingmagazine.com/2010/04/23/educating-your-client-on-web-development-successfully/">How to Educate Your Clients on Web Development (Aurimas Adomavicius)</a></li>
<li><a href="http://www.smashingmagazine.com/2009/12/10/how-to-explain-to-clients-that-they-are-wrong/ ">How to Explain to Clients That They Are Wrong (Sam Barnes)</a></li>
<li><a href="http://www.smashingmagazine.com/2009/10/01/how-to-respond-effectively-to-design-criticism/">How to Respond Effectively to Design Criticism (Andrew Follett)</a></li>
<li><a href="http://www.smashingmagazine.com/2009/10/11/how-to-persuade-your-users-boss-or-clients/">How to Persuade Your Users, Boss or Clients (Paul Boag)</a></li>
<li><a href="http://www.noupe.com/how-tos/how-to-create-the-perfect-client-questionnaire.html">How to Create the Perfect Client Questionnaire (Cameron Chapman)</a></li>
<li><a href="http://www.smashingmagazine.com/2009/11/09/getting-clients-approaching-the-company/">Getting Clients: Approaching the Company (Peter Smart)</a></li>
<li><a href="http://www.theremsengroup.com/82">Converting Prospects into Clients (Alyssa Gregory)</a></li>
<li><a href="http://www.smashingmagazine.com/2009/08/24/marketing-rules-and-principles-for-freelancers/">Marketing Rules and Principles for Freelancers (Jeff Gardner)</a></li>
<li><a href="http://www.smashingmagazine.com/2009/12/28/discuss-how-many-ideas-do-you-show-clients/">How Many Ideas Do You Show Your Clients? (Graham Smith)</a></li>
<li><a href="http://www.smashingmagazine.com/2009/10/06/freelance-contracts-dos-and-donts/">Freelance Contracts: Do’s And Don’ts (Robert Bowen)</a></li>
<li><a href="http://www.noupe.com/freelance/what-s-in-a-price-the-guidelines-for-pricing-web-designs.html">What’s in a Price: Guidelines for Pricing Web Designs (Thursday Bram)</a></li>
<li><a href="http://www.smashingmagazine.com/2009/07/14/quality-price-ratio-in-web-design-pricing-design-work/">Quality-Price Ratio in Web Design (Jeff Gardner)</a></li>
</ul>
<p>http://www.noupe.com/tools/15-helpful-blogs-no-freelancer-should-forget.html</p>
<p>http://freelancefolder.com/</p>
<p>http://www.smashingmagazine.com/2009/12/21/essential-habits-of-an-effective-professional-freelancer/</p>
<p>http://www.smashingmagazine.com/2010/03/08/common-questions-about-design-professionalism/</p>
<p>http://www.smashingmagazine.com/2010/04/16/the-designer-who-delivers/</p>
<p>http://www.smashingmagazine.com/2009/11/28/critical-mistakes-freelancers-make/</p>
<p>http://www.noupe.com/how-tos/the-importance-of-customer-service-to-your-freelance-business.html</p>
<p>http://www.smashingmagazine.com/2010/01/11/creatively-handling-the-admin-side-of-freelancing/</p>
<p>http://www.smashingmagazine.com/2009/07/09/the-roadmap-to-becoming-a-professional-freelance-web-designer/</p>
<p>http://sixrevisions.com/user-interface/the-future-of-user-interfaces/</p>
<p>http://www.smashingmagazine.com/2009/08/14/how-to-effectively-communicate-with-developers/</p>
<p>http://www.smashingmagazine.com/2009/10/15/identifying-and-dealing-with-different-types-of-clients/</p>
<p>http://www.smashingmagazine.com/2010/04/23/educating-your-client-on-web-development-successfully/</p>
<p>http://www.smashingmagazine.com/2009/12/10/how-to-explain-to-clients-that-they-are-wrong/</p>
<p>http://www.smashingmagazine.com/2009/10/01/how-to-respond-effectively-to-design-criticism/</p>
<p>http://www.smashingmagazine.com/2009/10/11/how-to-persuade-your-users-boss-or-clients/</p>
<p>http://www.noupe.com/how-tos/how-to-create-the-perfect-client-questionnaire.html</p>
<p>http://www.smashingmagazine.com/2009/11/09/getting-clients-approaching-the-company/</p>
<p>http://www.ehow.com/how_2317357_convert-prospects-clients.html</p>
<p>http://www.theremsengroup.com/82</p>
<p>http://www.smashingmagazine.com/2009/08/24/marketing-rules-and-principles-for-freelancers/</p>
<p>http://www.smashingmagazine.com/2009/12/28/discuss-how-many-ideas-do-you-show-clients/</p>
<p>http://www.smashingmagazine.com/2009/10/06/freelance-contracts-dos-and-donts/</p>
<p>http://www.noupe.com/freelance/what-s-in-a-price-the-guidelines-for-pricing-web-designs.html</p>
<p>http://www.smashingmagazine.com/2009/07/14/quality-price-ratio-in-web-design-pricing-design-work/</p>
<p>http://designm.ag/resources/freelance-designers/</p>
<p>http://www.smashingmagazine.com/2010/03/24/a-short-guide-to-open-source-and-similar-licenses/</p>
<p>http://www.noupe.com/how-tos/12-secrets-of-effective-business-communication.html</p>
<p>http://www.smashingmagazine.com/2010/01/28/color-theory-for-designers-part-1-the-meaning-of-color/</p>
<p>http://www.smashingmagazine.com/2010/02/02/color-theory-for-designers-part-2-understanding-concepts-and-terminology/</p>
<p>http://www.smashingmagazine.com/2010/02/08/color-theory-for-designer-part-3-creating-your-own-color-palettes/</p>
<p>http://www.smashingmagazine.com/2009/09/16/how-to-find-time-for-everything/</p>
<p>http://www.smashingmagazine.com/2009/07/21/45-excellent-code-snippet-resources-and-repositories/</p>
<p>http://www.smashingmagazine.com/2009/06/29/45-incredibly-useful-web-design-checklists-and-questionnaires/</p>
<p>http://www.smashingmagazine.com/2008/11/13/15-useful-project-management-tools/</p>
<p>http://www.smashingmagazine.com/2009/06/12/effective-maintenance-pages-examples-and-best-practices/</p>
<p>http://www.smashingmagazine.com/2009/05/21/web-design-industry-jargon-glossary-and-resources/</p>
<p>http://www.noupe.com/design/simplicity-in-good-web-design-advantages-how-to.html</p>
<p>http://www.heinmaas.com/40-resources-to-become-a-successful-freelance-graphicweb-designer/</p>
<p>http://www.noupe.com/design/10-things-clients-look-for-in-a-design-portfolio.html</p>
<p>http://www.noupe.com/freelance/how-to-make-yourself-stand-out-as-a-freelancer.html</p>
<p>http://freelancefolder.com/3-steps-to-creating-a-freelancing-brand-that-sells/</p>
<p>http://www.noupe.com/how-tos/how-to-create-the-perfect-client-questionnaire.html</p>
<p>http://www.noupe.com/design/systematizing-the-design-build-process.html</p>
<h1>Better Communication with Employees and Peers</h1>
<p>http://www.inc.com/guides/growth/23032.html</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sabinshrestha.com.np/sabincat/successful-freelancing-for-web-designers-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SEO FAQ</title>
		<link>http://www.sabinshrestha.com.np/sabincat/seo-faq/</link>
		<comments>http://www.sabinshrestha.com.np/sabincat/seo-faq/#comments</comments>
		<pubDate>Tue, 15 Jun 2010 06:55:23 +0000</pubDate>
		<dc:creator>sabin</dc:creator>
				<category><![CDATA[Sabin Personel]]></category>

		<guid isPermaLink="false">http://www.sabinshrestha.com.np/?p=196</guid>
		<description><![CDATA[SEO Frequently Asked Questions Questions about Google&#8217;s PageRank, and ranking in general, and how to gain some points, by natural ways, without to use bad practices as cloaking and spamming and other forbidden artifacts that may lead you to the black list&#8230; General questions How do I know if my pages are indexed by Google? How [...]]]></description>
			<content:encoded><![CDATA[<div>
<h1>SEO Frequently Asked Questions</h1>
<p>Questions about Google&#8217;s PageRank, and ranking in general, and how to gain some points, by natural ways, without to use bad practices as cloaking and spamming and other forbidden artifacts that may lead you to the black list&#8230;</p>
<h4>General questions</h4>
<ul>
<li><a href="#indexed">How do I know if my pages are indexed by Google?</a></li>
<li><a href="#noindex">How to exclude a page from the index?</a></li>
<li><a href="#duplicate">Is the duplicate content penalized?</a></li>
<li><a href="#second">Why a second indented link for the same site in results page?</a></li>
<li><a href="#extension">Is the domain extension important for PageRank?</a></li>
<li><a href="#notindexed">My page is not indexed by search engines</a></li>
<li><a href="#manylinks">Can I force a Web page to be indexed?</a></li>
<li><a href="#googlebot">Where can I get more information about Googlebot?</a></li>
<li><a href="#lemmatisation">What is lemmatisation?</a></li>
<li><a href="#hilltop">What is hilltop?</a></li>
<li><a href="#serp">What is SERP?</a></li>
<li><a href="#cloaking">How to avoid cloaking?</a></li>
<li><a href="#bounce">What is the bounce rate?</a></li>
<li><a href="#sandbox">How can I leave the sandbox?</a></li>
<li><a href="#minus">What is minus thirty?</a></li>
<li><a href="#disappeared">My site has disappeared from Google&#8217;s index, what can I do?</a></li>
<li><a href="#googlecom">How to type google.com without being redirected to my country version?</a></li>
<li><a href="#trust">How to be a trusted site?</a></li>
<li><a href="#newcontent">Should we add content frequently?</a></li>
<li><a href="#percentage">Which percentage of users click on the first link in search page results?</a></li>
<li><a href="changing-domain.php" target="_parent">How to change domain without losing its ranking.</a></li>
</ul>
<h4>SEO tools</h4>
<ul>
<li><a href="#sitemap">Is it really useful to provide a sitemap to Google?</a></li>
<li><a href="#robots">Is robots.txt helpful? How does Google use it?</a></li>
<li><a href="#rss">Are RSS feeds useful for SEO?</a></li>
<li><a href="#description">Is the description meta used by Google?</a></li>
<li><a href="#keywords">Should I fill the meta keyword?</a></li>
<li><a href="#google-link">Why the link command on Google gives only a few backlinks?</a></li>
</ul>
<h4>Improving ranking</h4>
<ul>
<li><a href="#improve">How to improve the SEO of my site?</a></li>
<li><a href="#manykeywords">How many keywords can I put into a URL?</a></li>
<li><a href="#wikipedia">How can we overshoot Wikipedia?</a></li>
<li><a href="#snippet">Can I modify the snippets?</a></li>
<li><a href="validating.php" target="_parent">Compliance to W3C standard is it important for the ranking?</a></li>
</ul>
<h4>Links and backlinks</h4>
<ul>
<li><a href="#internal">Are internal links helpful?</a></li>
<li><a href="#social">Are social bookmark links giving less weight than other back links?</a></li>
<li><a href="#nofollow">Are nofollow links followed by crawlers?</a></li>
<li><a href="#manylinks">How many links can I put into a page?</a></li>
<li><a href="#multilink">Several links on a page to the same page are they useful?</a></li>
<li><a href="#javascript">Javascript links are they taken into account?</a></li>
</ul>
<h4>Questions about the PageRank</h4>
<ul>
<li><a href="#link">Why the link: operator from Google returns only a few backlinks?</a></li>
<li><a href="#pagerank">What is PageRank?</a></li>
<li><a href="#pagerank-importance">Is PageRank important?</a></li>
<li><a href="#duplicate">Is PageRank used against duplicate content</a>?</li>
<li><a href="#pagerank-algorithm" target="_self">How is PageRank calculated by Google?</a></li>
<li><a href="#cloaking">What is cloaking?</a></li>
<li><a href="#spamming">What is spamming?</a></li>
<li><a href="#spoofing">What is spoofing?</a></li>
<li><a href="#pagerank-knowing">How to know my PageRank?</a></li>
<li><a href="#garantee-pagerank">A company guarantees me a 10 points PR</a></li>
<li><a href="#PageRank-First-Factor">Is the PageRank the first factor for the position?</a></li>
<li><a href="#gray">What means a graybar PR? Is this a penalty?</a></li>
<li><a href="#improve-pagerank">How to improve my PageRank?</a></li>
<li><a href="#rank-factor">Other factors for the position in results</a>.</li>
<li><a href="#redirpr">Does a 301 redirect mean a lost in PageRank?</a></li>
<li><a href="#update">When the PageRank is it updated?</a></li>
</ul>
<h2>Answers</h2>
<h3 id="sitemap">Is it really useful to provide a sitemap to Google?</h3>
<p>The site map, is a standard file in XML format to search engines that allow them to index all pages of a site. It is particularly useful when the engines can not reach internal pages by following links on the site.</p>
<p>The sitemap can be generated automatically by a CMS or with a script as <a href="http://www.scriptol.com/seo/simple-map.html" target="_parent">simple map</a> on a static site.</p>
<p>More: <a href="http://www.scriptol.com/seo/should-we-make-a-sitemap.php">Should we generate a sitemap of our website for Google?</a></p>
<h3 id="indexed">How do I know if my pages are indexed by Google?</h3>
<p>If your site is called &#8220;www.sabinshrestha.com.np&#8221; for example (this is impossible), type this in the search window:</p>
<pre>site:www.sabinshresth.com.np</pre>
<p>Google will display your indexed pages and so allows you to check the title and description of the pages.</p>
<h3 id="noindex">How to exclude a page from the index?</h3>
<p>Insert a meta tag within &lt;head&gt; &lt;/head&gt; into the HTML page:</p>
<pre> &lt;meta name="robots" content="noindex" /&gt;</pre>
<p>A robots.txt at the root of the site may also contain rules to search engines for excluding files or directories.</p>
<h3 id="duplicate">Is the duplicate content penalized?</h3>
<p>Duplicate content is the presence of same contents on page in the same site or in different site, or contents indexed twice. This could happen with different URLs pointing on the same page or with copies of pages. This would be a way for a site that would try to monopolize the top or result pages, but this never happen in the real world, so it can be concluded that engines penalize effectively duplicate content.<br />
In a post on its blog, Google has clarified the rules about</p>
<p><a href="http://www.scriptol.com/seo/duplicate-content.php" target="_parent">duplicate content.</a></p>
<h3 id="robots">Is robots.txt helpful? How does Google use it?</h3>
<p>This file is stored at root of any website by the webmaster. He said to search engines which pages should be indexed or which pages or directories must not be added to the index.<br />
There is no standard but common rule to follow. Even if a page is excluded in the robots.txt file, that does not imply it will be removed from the index.<br />
<a href="http://www.scriptol.com/seo/faq/is-robots-txt-helpful.php" target="_parent">More about robots.txt</a>.</p>
<h3 id="rss">Are RSS feeds useful for SEO?</h3>
<p>It is a way to get visitors and amounts of backlinks. The RSS file contains a list of links on your articles and it can be replicated on other sites, as well as in directories. To find out how easily achieve an RSS file, and how to use it, consult the <a href="http://www.xul.fr/en-xml-rss.html" target="_parent">RSS tutorial</a> or the <a href="http://www.scriptol.com/rss/" target="_parent">RSS section</a> on this site.<br />
The backlinks provided by the RSS feeds which are echoed by many sites are temporary, they will disappear with the renewal of the content of the feed, therefore RSS is best suited for blogs.</p>
<h3 id="description">Is the description meta used by Google?</h3>
<p>The answer is given by Google on his blog for webmasters, in the article entitled <a href="http://googlewebmastercentral.blogspot.com/2007/09/improve-snippets-with-meta-description.html" target="_parent">&#8220;Improve snippets with a meta description makeover&#8221;</a>.<br />
Snippets are the descriptions in search results under the titles.<br />
The description in the meta must be unique and must give details on the page. It should contain keywords related to its contents.</p>
<h3 id="keywords">Should I fill the meta keywords?</h3>
<p>The meta keyword is not used by Google. It may be used by other search engines. Some webmasters performed a successful experience with the meta keyword and Yahoo.<br />
If you need for additonnal trafic from Yahoo, fill the meta keyword.</p>
<h3 id="google-link">Why the link Google gives only a few backlinks?</h3>
<p>The operator link in the search bar (link: site-name) is a command to display the number of links pointing to a site. In fact this command provides only a fraction of backlinks, in order to save servers bandwich.<br />
The choice of outcome is totally random, this was confirmed by <a href="http://www.youtube.com/watch?v=TjQ2QVQpaK0" target="_parent">Matt Cutts in a video on Youtube</a>. They have nothing to do with PR or with the quality of the pages, they are taken randomly.</p>
<h3 id="second">Why a second indented link for the same site in results page?</h3>
<p>The result of a query displays for a site, a link, and then a second, which is shifted. This means that the same site appears twice among the same search results page, in which case the two pairs title and descriptions are combined with no respect to the score of the second one.</p>
<h3 id="internal">Are internal links helpful?</h3>
<p>Internal links, mainly on the home page, facilitate the indexing of the pages, and also tend to spread the PageRank of a page to another. Put a maximum of internal links in the content of the pages, when a term refers to the content of another page of course.<br />
The anchor of the link must be descriptive, it helps search engines to define the content of a target page and therefore favors its rank.<br />
Several links to the same page may be even added, as explained further.</p>
<h3 id="social">Are social bookmark links giving less weight than other back links?</h3>
<p>For Matt Cutts, (see interview in references at bottom), a link is a link. And so links gained from social bookmark sites have same weight as other link in regular webpages.<br />
But the weight of a link depends upon the PageRank of the page where it is added.</p>
<h3 id="extension">Is the domain extension important for PageRank?</h3>
<p>No, the extension may be either .com, .edu or .org, this has no importance, only the PageRank of the page is important for backlinks. Links from these sites are not more trusted and do not pass more PageRank.<br />
<a href="#references" target="_parent">Référence in interview</a>.</p>
<h3 id="nofollow">Are nofollow links followed by crawlers?</h3>
<p>It is sometimes admitted that even if nofollowed links do not pass PageRank, they are used for discovery of new pages. This is denied by Google.<br />
- Nofollow links do not pass PageRank.<br />
- They are not used to discover new pages.<br />
- The anchor is not used to define the content of the linked page.<br />
They are totally ignored.<br />
<a href="#references" target="_parent">Référence in interview</a>.</p>
<h3 id="multilink">Several links on a page to the same page are they useful?</h3>
<p>When multiple links point to the same page, only the first is taken into account by Google. But this is not the case if the links point to different sections of the page, determined by a fragment with the #xxxxxx format.<br />
In this case, the anchor of each link is considered to index the target page. Whether it links to another site or on the same site.<br />
It appears even that the first link on the page and not a section is ignored.<br />
<a href="http://www.seomoz.org/blog/using-anchor-links-to-make-google-ignore-the-first-link" target="_parent">Tests have been made by seomoz to verify that</a>.</p>
<h3 id="javascript">Javascript links are they taken into account?</h3>
<p>If they are easy to interpret they are considered as HTML tags and may even pass PageRank to the page that is linked.<br />
<a href="http://www.scriptol.com/seo/javascript-link.php">Javascript links and search engines.</a></p>
<h3 id="manykeywords">How many keywords can I put into a URL?</h3>
<p>In the directory + filename, you can put until 5 keywords with no problem. Beyond that, your URL look as spam and the algorithm weights these words less. You can get spam report with lot of keyword in URLs (Matt Cutts in references).</p>
<h3 id="manylinks">How many links can I put into a page?</h3>
<p>The guidelines recommend to put less than 100 links. You can bypass this number, technically, there is no problem as Google can parse a page up to 500 KB, but it is bad practice and it is better to split the page into smaller ones.</p>
<h3 id="notindexed">My page is not indexed by search engines</h3>
<p>Perhaps the HTML format is not correct and therefore not recognized by crawlers&#8230;<br />
Check your syntax with the validator of the <a href="http://validator.w3.org/" target="_blank">W3 Consortium.</a><br />
If the page is new, it takes several days or weeks for it to be taken into account. See also paragraph on sitemaps.<br />
It is also possible that Google or another search engine decides not to index your site because robots.txt is empty or malformed.</p>
<p>See at <a href="http://www.scriptol.com/seo/is-robots-txt-helpful.php">robot.txt</a>.</p>
<h3 id="force">Can I force a Web page to be indexed?</h3>
<p>If robots do not come frequenlty enough on your site (the date of the last visit is indicated on the home page of webmaster tools), you can still force the indexing by getting a link to the page on another site that is frequently crawled.<br />
See the article <a href="http://www.scriptol.com/seo/getting-backlinks.php" target="_parent">How to obtain backlinks</a> and similar article on this site for details.</p>
<h3 id="improve">How to improve the SEO of my site?</h3>
<p>Several page here are dedicated to SEO, see the <a href="http://www.scriptol.com/seo/" target="_parent">SEO summary</a>.<br />
This page is dedicated to <a title="Optimizing a site for engines and have more visitors" href="http://www.scriptol.com/seo/list-of-seo-criteria-for-optimizing-and-improving-ranking.php" target="_parent">the optimization for search engines</a>.</p>
<h3 id="googlebot">Where can I get more information about Googlebot?</h3>
<p>Googlebot is the crawler of Google. It could parse some pages on your site every day. This <a href="http://www.google.com/support/webmasters/bin/topic.py?topic=8843" target="_parent">Googlebot FAQ</a> gives details of how it works.</p>
<h3 id="lemmatisation">What is lemmatisation?</h3>
<p>An expected progress for search engines to identify the root of words and retrieve pages sharing same roots of words. Do not really seem yet implemented in 2007.</p>
<h3 id="hilltop">What is hilltop?</h3>
<p>A theoretical extension to the PageRank, and that could prevent manipulations by an algorithm which classifies a page solely on the basis of links from authoritative sites. This is partially used by search engines according to the <a href="http://www.scriptol.com/seo/pagerank.php" target="_parent">Google&#8217;s patent</a>.</p>
<h3 id="serp">What is SERP?</h3>
<p>Search Engine Result Pages, ie results pages provided by search engines in response to a query.</p>
<h3 id="cloaking">How to avoid cloaking?</h3>
<p>Cloaking is presenting to search engines text that is not visible to visitors. It may not be intentional when you add text unnecessary to visitors to index pages made of flash or images or dynamic text that are not scanned by robots. But this is not allowed.<br />
You should use an alt attributes dedicated for images instead. And for text displayed by JavaScript and not seen by robots, it can be submitted into thenoscript tag, it is permitted.</p>
<h3 id="googlecom">How to type google.com without being redirected to my country version?</h3>
<p>When you want to access the search engine, it automatically redirects you to the regional version of the engine. This is suitable for most users but not to the webmaster or the user who wants to do a search on google.com.<br />
To reach google.com, type in the URL bar:</p>
<pre>www.google.com/ncr</pre>
<p>What can be placed in bookmark. &#8220;ncr&#8221; could mean &#8220;no country redirect&#8221;.</p>
<h3 id="bounce">What is the bounce rate?</h3>
<p>Definition from Google: &#8220;Specifies in what percentage visitors left the site without viewing any other pages.&#8221; The bounce is the fact that a visitor leaves the site as soon as he read the page on which it arrives. So if three out of four visitors do read a single page and leave the site without to read others, the bounce rate will be 75%.<br />
It is generally preferable to have a low bounce rate, it means that there is interest in the content of the site and that one read so many pages, but on the other hand, when a visitor searches for something very precise he will leave the site after having found it and the bounce in this case is a positive factor!</p>
<p><a href="http://www.scriptol.com/seo/bounce-factor.php" target="_parent">How to improve the bounce factor</a></p>
<h3 id="wikipedia">How can we overshoot Wikipedia?</h3>
<p>Wikipedia, the big wiki, sort of online encyclopedia, tends to arrive at the top in Google, although before websites with more comprehensive article and with more backlinks!<br />
One of the reasons is that this site is favored and another is in the impressive number of links between articles and sub-domains.<br />
But there is room to move ahead and achieve top results in search engines. The weakness of the wiki is that all articles have a single word for name and thus anchor are also a single keyword.<br />
The solution is to make articles based on two keywords, for example, grape + health, or health + diet. The title of the article include two keywords, as well as the file name, and the anchors of internal links&#8230;<br />
Searches made on two keywords should return your page rather the one keyword page of the wiki.</p>
<h3 id="snippet">Can I modify the snippets?</h3>
<p>A snippet is the name that Google gives tos the description under the title of the page in search results.<br />
It is actually possible to change this text and make it more attractive, especially with the meta description<br />
<a href="http://www.scriptol.com/seo/snippet.php"><br />
How to improve snippets</a></p>
<h3 id="sandbox">How can I leave the sandbox?</h3>
<p>A site enters the sandbox, because it is penalized by Google, the crawlers of the search engine have calculated that the content on the site is intended to artificially obtain a good ranking in results.<br />
The first thing to do to get out of the sandbox is to delete from the content all possible causes of penalties, then you must work to obtain quality backlinks.</p>
<p><a href="http://www.scriptol.com/seo/how-to-leave-the-sandbox.php">How to leave the sandbox.</a></p>
<h3 id="minus">What is minus thirty?</h3>
<p>Many webmasters believe they have suffered a penalty that is called <a href="http://www.seroundtable.com/archives/006412.html" target="_parent">minus 30</a> or -30. Their site is bumped from #1 to #31 in results of Google, and it is very clear with the URL of the site. In general, a site ranks first on its name with the extension, or the sites are now found in 31th position.</p>
<h3 id="disappeared">My site has disappeared from Google&#8217;s index, what can I do?</h3>
<p>The first thing to check is the robots.txt file to see if it does not block robots. Robots are blocked with a directive of the form Disallow: /<br />
They are not blocked if nothing follows Disallow.<br />
Then see the <a href="http://www.scriptol.com/seo/seo-mistakes.php" target="_parent">list of errors to not commit in SEO</a>. If your site is in no case you must wait until it is inserted in the index again.</p>
<h3 id="link">Why the link: operator from Google returns only a few backlinks?</h3>
<p>The link operator in the search bar (link: site-name) is a command to display the number of links pointing to a site. In fact this command provides only a fraction of backlinks, in order to save bandwich of servers.<br />
The choice of outcomes is totally random, this was confirmed by <a href="http://www.youtube.com/watch?v=TjQ2QVQpaK0" target="_parent">Matt Cutts in a video on Youtube</a>. They have nothing to do with PR or with the quality of the pages, they are taken randomly.</p>
<h3 id="trust">How to be a trusted site?</h3>
<p>Your site can become trusted in two phases. In a first step you have to gain authority among readers. Then it will be readers who will make your site trusted for Google, by citing its content. A list of ways to achieve this objective is given by Google.</p>
<p><a href="http://www.scriptol.com/seo/trusted-site.php">Google tells you how to be a trusted site</a>.</p>
<h3 id="newcontent">Should we add content frequently?</h3>
<p>Continuously adding new pages can it not be harmful since it increases the number of links on the homepage?</p>
<p>Adding content is good but you we must follow some rules of organization. The homepage does not link to all articles but only a few. Each page must have a link on the home page and links to related articles: links should always be relevant.</p>
<p>That said, Google promotes new content, so assuming that your new articles are related to the actuality, or your change in previous articles update them, it is good for SEO.<br />
The changes that are not of actuality have little interest, it serves mostly Adsense which targets preferentially pages that evolve.</p>
<h3 id="percentage">Which percentage of users click on the first link in search page results?</h3>
<p>A statistical study by a university on the one hand and a leaked document from AOL on the other give an answer, at least 70% of clicks are on the first three links and about 50% over the first.</p>
<p><a href="http://www.scriptol.com/seo/distribution-clicks-serps.php">Distribution of clicks in the results pages of search engines.</a></p>
<h2>How to improve naturally the PageRank</h2>
<div id="_mcePaste">PageRank, or website ranking, is a notation from 0 to 10, given by Google to each page of a website.</div>
<div id="_mcePaste">The higher is this value, the better will be the position of the page in results of searches, among other pages that match the request.</div>
<div id="_mcePaste">A 5 points PageRank is Good. 7 points may be reached with valuable backlinks. The number of 10 points PageRank websites is very short!</div>
<div id="_mcePaste">The word PageRank comes both from &#8220;page ranking&#8221; and &#8220;Page&#8221; that is the name of one of the two authors of the algorithm (Serguey Brin and Larry Page).</div>
<p>PageRank, or website ranking, is a notation from 0 to 10, given by Google to each page of a website.The higher is this value, the better will be the position of the page in results of searches, among other pages that match the request.A 5 points PageRank is Good. 7 points may be reached with valuable backlinks. The number of 10 points PageRank websites is very short!The word PageRank comes both from &#8220;page ranking&#8221; and &#8220;Page&#8221; that is the name of one of the two authors of the algorithm (Serguey Brin and Larry Page).</p>
<p><strong>Is PageRank important?</strong></p>
<p>According to Google, PageRank is the more important among 100 criteria to order pages in results of searches.<br />
Thus, it is not the only one. But for websites that match a same group of keywords, it is very important.</p>
<h3><a name="duplicate"></a>Is PageRank used against duplicate content?</h3>
<p>When two pages are identical, and if the date of indexing is not sufficient to know what is the original and what is the copy, Google considers that the page with the higher PageRank is the original. This was clearly stated in an <a href="http://www.stephanspencer.com/search-engines/matt-cutts-interview" target="_parent">interview of Matt Cuts</a> by Stephan Spencer and confirmed by a post on the Google&#8217;s blog about <a href="http://www.scriptol.com/seo/duplicate-content.php" target="_parent">duplicate content</a>.</p>
<h3><span style="font-size: xx-small;"><a name="pagerank-algorithm"></a></span>How is calculated PageRank by Google?</h3>
<p>The value of PageRank doesn&#8217;t depend upon the content of the page, but only of links to the page instead.<br />
Links in the page towards other website is important also.<br />
Links to a page are considered as a vote for this page. But the value of this vote depend of the PageRank of the page that emits it.<br />
The PageRank of a page is transmitted to linked page but the added value is divided by the number of links. If a page links to ten pages, the added value of the vote is divided by ten.<br />
The ranking of a page depends upon of ranking of backlinks, and also ranking of other pages it links.</p>
<p><span>(From the article &#8220;Deeper inside PageRank&#8221; by A.N. Langville et C.D. Meyer)</span></p>
<div><span></p>
<h3>What is cloaking?</h3>
<p>This is creating alternate pages that are read by crawlers (robots of search engines) but not by human readers. These hidden pages are full of keywords to improve search results.<br />
When cloaking is detected the website goes to the blacklist, their pages are no longer indexed. See &#8220;bmw.de&#8221; et &#8220;ricoh.de&#8221; affairs (same webmaster?)</p>
<h3><a name="spamming"></a>What is spamming?</h3>
<p>This is putting lot of hidden links into a web page (inside &#8220;no script&#8221; tags for example) to make more links to a friend website and improve its ranking. Once spamming is recognized, the two websites goes to the blacklist.</p>
<h3><a name="spoofing"></a>What is spoofing?</h3>
<p>This is redirecting a page to a page in another website with a high PageRank, and this result in the source page to get the PR of the destination. The redirection is achieved by the use of the &#8220;refresh&#8221; meta tag. Visitors see the current page, but search engines see only the target page with the high PR.<br />
This is known as a bug in the calculation of the PR, and is probably fixed now.</p>
<h3><span style="font-size: xx-small;"><a name="pagerank-knowing"></a></span>How to know my PageRank?</h3>
<p>Just install Google&#8217;s toolbar on your browser. The PageRank of each page is displayed when you visit your website.<br />
But this is a kind of mean as PageRank depends upon a group of keywords. To know the real ranking, perform searches with various keywords. The position of your page (when several match the request) gives the ranking: the top of list means for a ranking of 10. First page of search results means for 6-9 PR when lot of matches exists.<br />
This website can also display the <a href="http://www.seochat.com/seo-tools/pagerank-lookup/" target="_parent">PageRank of your site</a>.</p>
<h3><a name="garantee-pagerank"></a>A company guarantees me a 10 points PR.</h3>
<p><em>I have been contacted by a company and it guarantees me a 10 points PR, and I want to improve my ranking. Should I accept?</em><br />
According to Google, nobody can garantee a PageRank, for any position. (And I know only a dozen of big websites with a 10 PR).</p>
<div>
<h3>Is the PageRank the first factor for the position?</h3>
<p>Matt Cutts is the member of the Google&#8217;s SEO staff who communicates the most often on medias about the algorithm. He said in an interview published on the Stonetemple site, in Octobre 8, 2007:</p>
<blockquote><p><em>I would certainly say that the links are the primary way that we look at things now in terms of reputation.</em></p></blockquote>
<p>Links are the source of the PageRank, according their weight and their number, and they are the first factor for the reputation of the document, which in turn is certainly the first factor for the position in results.</p>
<h3 id="gray">What means a graybar PR? Is this a penalty?</h3>
<p>This is not necessarily a penalty and this is not a problem with the toolbar as some think. This is not equivalent to a PR 0.<br />
The graybar is a signal that something is wrong with the page from the rules that Google wants to see applied by webmasters. The more often a lack of content, an excess number of internal or external links compared to the content.<br />
In practice, it prevents the spread of PR. A page is rarely grayed if it has quality backlinks, otherwise you should study it as it can contain anomalies.</p>
<h3><strong><a name="improve-pagerank"></a></strong>How to improve my PageRank (PR)?</h3>
<p>The PR of a page depends on the number and the quality of links from other sites to this page. It is improved by getting quality backlinks, but other criteria contribute to the score of the page.</p>
<p><a href="http://www.scriptol.com/seo/how-to-improve-the-pagerank.php">How to improve the PR of a page.</a></p>
<h3><a name="rank-factor"></a>Other factors for the position in results.</h3>
<p>PageRank, that is based upon backlinks, is only one factor among several ones, to calculate the position of link to your website, in results of search engines.<br />
These factors are also considered:<br />
- The localization of the host and the language of the request.<br />
- Clicks on the link to your website rather than other links in results. Your page must be chosen. Imagine good title and description, clear and attracting.<br />
- The number of keywords. This is used first to select a page, and then to calculate its position in the list.</p>
<p>A more complete list is given in the <a href="http://www.scriptol.com/seo/pagerank.php" target="_parent">Google patent</a>.</p>
<h3 id="redirpr">Does a 301 redirect mean a lost in PageRank?</h3>
<p>When a page is redirected through the HTTP code 301, the PageRank is transmitted with a discount. This has been confirmed by Matt Cutts. The ratio of this reduction is unclear, but we can say from experience that it is enough to lose one or more positions in results.<br />
It is better to avoid changing the domain of a site if it is not absolutely necessary.<br />
Ref <a href="http://www.webmasterworld.com/google/4097565.htm" target="_parent">WebmasterWorld</a>.</p>
<h3 id="update">When the PageRank is it updated?</h3>
<p>The actual PageRank depends on the evolution of backlinks among other factors and is constantly modified.</p>
<p>But the public PR as displayed by the green bar of the toolbar is automatically changed to fixed dates, every three months, in the beginning of January, April, July, October.</p>
<h3>References</h3>
<ul>
<li><a href="http://www.scriptol.com/seo/tutorial.php" target="_parent">SEO manual</a>. Step by step manual for how to succeed in SEO and to increase the number of visitors.</li>
<li><a href="http://www.scriptol.com/seo/google-answers-to-webmasters.php" target="_parent">Answers from Google to webmasters</a><br />
Lot of questions and the team at Google Webmaster Central answered all of them.</li>
<li><a href="http://www.stephanspencer.com/archives/2007/12/17/matt-cutts-interview/" target="_parent">Interview of Matt Cutts</a>. Head of Google’s webspam team.</li>
<li><a href="http://www.searchtools.com/robots/" target="_parent">Articles on robots.txt</a>.</li>
<li><a href="http://googlewebmastercentral.blogspot.com/2010/03/sharing-advice-from-our-site-clinic.html" target="_parent">Sharing advices</a>.</li>
</ul>
</div>
<p></span></div>
</div>
<p>PageRank, or website ranking, is a notation from 0 to 10, given by Google to each page of a website.The higher is this value, the better will be the position of the page in results of searches, among other pages that match the request.A 5 points PageRank is Good. 7 points may be reached with valuable backlinks. The number of 10 points PageRank websites is very short!The word PageRank comes both from &#8220;page ranking&#8221; and &#8220;Page&#8221; that is the name of one of the two authors of the algorithm (Serguey Brin and Larry Page).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sabinshrestha.com.np/sabincat/seo-faq/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>linux admin note</title>
		<link>http://www.sabinshrestha.com.np/linux-downloads/linux-admin-note/</link>
		<comments>http://www.sabinshrestha.com.np/linux-downloads/linux-admin-note/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 05:27:38 +0000</pubDate>
		<dc:creator>sabin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sabinshrestha.com.np/?p=188</guid>
		<description><![CDATA[Syslog QUOTA NFS Samba SSH TELNET SQUID BIND SENDMAIL POSTFIX PROXY HTTPD FTP DHCP YP LDAP PPPD NTP MRTG TRIPWIRE PAM Password Security Encryption Process security firewall xinetd, tcp_wrappers iptables security tools PortForwarding selinux ======================================================================== Libarary source &#124; compiler &#124; Object code &#124; linkear &#124; staticlibrary,Dynamic library,statically linked executable code, Dynamically linked executablecode &#124; loader [...]]]></description>
			<content:encoded><![CDATA[<p>Syslog<br />
QUOTA<br />
NFS<br />
Samba<br />
SSH<br />
TELNET<br />
SQUID<br />
BIND<br />
SENDMAIL<br />
POSTFIX<br />
PROXY<br />
HTTPD<br />
FTP<br />
DHCP<br />
YP<br />
LDAP<br />
PPPD<br />
NTP<br />
MRTG<br />
TRIPWIRE<br />
PAM<br />
Password Security Encryption<br />
Process security<br />
firewall<br />
xinetd, tcp_wrappers iptables<br />
security tools<br />
PortForwarding<br />
selinux</p>
<p>========================================================================</p>
<p>Libarary</p>
<p>source<br />
|<br />
compiler<br />
|<br />
Object code<br />
|<br />
linkear<br />
|<br />
staticlibrary,Dynamic library,statically linked executable code,<br />
Dynamically linked executablecode<br />
|<br />
loader<br />
|<br />
shared library, executable code</p>
<p>/lib<br />
/usr/lib<br />
/usr/i486-linux-libc5/lib<br />
/usr/X11R6/lib<br />
/usr/i486-linuxout/lib</p>
<p>libname.so / libname.so.major</p>
<p>lld progfile</p>
<p>$lld /bin/rm</p>
<p>LD_LIBRARY_PATH<br />
ldconfig -V<br />
========================================================================<br />
SSH<br />
vi /etc/ssh/sshd_config<br />
ssh 192.168.1.100 &#8220;uname -a&#8221;</p>
<p>scp /etc/hosts <a href="mailto:root@192.168.1.103:/tmp">root@192.168.1.103:/tmp</a><br />
scp <a href="mailto:root@smallfry:/tmp/software.rpm">root@smallfry:/tmp/software.rpm</a> /usr/rpm<br />
(<a href="http://winscp.vse.cz/eng/">http://winscp.vse.cz/eng/</a>)</p>
<p>$sftp 192.168.1.200<br />
SSH without password<br />
Client<br />
ssh-keygen -t dsa<br />
cd ~/.ssh<br />
scp id_dsa.pub <a href="mailto:sabin@192.168.59.7:public-key.tmp">sabin@192.168.59.7:public-key.tmp</a></p>
<p>Server<br />
mkdir /root/.ssh<br />
chmod 700 /root/.ssh<br />
cd .ssh<br />
cat ~/public-key.tmp &gt;&gt;authorized_keys<br />
rm ~/public-key.tmp<br />
========================================================================</p>
<p>SysLog<br />
0 emergencies System unusable<br />
1 alerts Immediate action required<br />
2 critical Critical condition<br />
3 errors Error conditions<br />
4 warnings Warning conditions<br />
5 notifications Normal but significant conditions<br />
6 informational Informational messages<br />
7 debugging Debugging messages</p>
<p>.info;mail.none;authpriv.none;cron.none           /var/log/messages<br />
1) vi /etc/sysconfig/syslog<br />
SYSLOGD_OPTIONS=&#8221;-r -m0&#8243;<br />
service syslog restart</p>
<p>2) vi /etc/syslog.conf<br />
user.*    @stationX<br />
service syslog restart<br />
logger -i -t yourname &#8220;this is test&#8221;</p>
<p>/etc/logrotate.d<br />
ogrotate -f /etc/logrotate.d/syslog<br />
zcat /var/log/messages.1.gz<br />
==========================================================================<br />
Quota<br />
quota.user,quota.group<br />
1)vi /etc/fstab<br />
/home defaults,userquota,groupquota 1 2<br />
2)mount -o remount /home<br />
3)to verify<br />
quotacheck -acug /home<br />
quotacheck -avug /home<br />
edquota -u user<br />
edquota -g group<br />
edquota -t grace<br />
edquota -p kiran sab<br />
quotaon/quotaoff -av<br />
quotaon/quotaoff -avu<br />
quotaon/quotaoff -avg</p>
<p>repquota -a<br />
==========================================================================<br />
NFS<br />
1. You can only export directories beneath the &#8220;/&#8221; directory.<br />
2. You cannot export a subdirectory of a directory that has already<br />
been exported. The exception being when the subdirectory is on a different<br />
physical device. Likewise you cannot export the parent of a subdirectory<br />
unless it is on a separate device too.<br />
3. You can only export local file systems.</p>
<p>Caching= &#8220;read ahead&#8221;</p>
<p>RPM=nfs-utils,portmap-4.0-57</p>
<p>Daemon=Portmap,NFS,NFSlock,NetFS</p>
<p>(async,atime,auto,dev,exec,noatime,noauto,nodev,noexec,<br />
nosuid,nouser,remountro,rw,suid,sync,user)<br />
defaults(rw,suid,dev,exec,auto nouser,async)</p>
<p>x = rsigw = n , number of bytes nfs uses when reading<br />
n = 1024 (default)<br />
x = wsize = n<br />
timeo= n (7)<br />
retry = n number of minutes to nfs mount retry<br />
soft = if the file cannot be mounted and time<br />
out occurs then reutrn an I/O error<br />
hard = if timeout occurs it will display the message<br />
but it will keep on trying unless retry time is over<br />
intr=if nfs file operation has timeout and is<br />
hard mounted then it allow signals to<br />
intrrupt the operations<br />
it uses udp by default<br />
if want tcp then give tcp<br />
optimum=8192<br />
rw,ro(default),sync,async(defualt),no_subtree_check,<br />
subtree_check,root_squash<br />
no_root_squash &#8211; when a client connects to the server run as a root<br />
all_squash</p>
<p>1) vi /etc/exports<br />
/temp          *(rw)<br />
/data/files           *(ro,sync)<br />
/home                 192.168.1.0/24(rw,sync)<br />
/data/test            *.my-site.com(rw,sync)<br />
/data/database        192.168.1.203/32(rw,sync)</p>
<p>2)chkconfig &#8211;level 35 nfs on<br />
chkconfig &#8211;level 35 nfslock on<br />
chkconfig &#8211;level 35 portmap on</p>
<p>3) For Client<br />
chkconfig &#8211;level 35 netfs on<br />
chkconfig &#8211;level 35 nfslock on<br />
chkconfig &#8211;level 35 portmap on</p>
<p>4) rpcinfo -p localhost<br />
nfsstat<br />
df -F nfs<br />
showmount -a<br />
exportfs -a (new share)<br />
exportfs -v (refresh)<br />
exportfs -ua(reload)<br />
exportfs -a (new share)</p>
<p>5)vi /etc/fstab<br />
#Directory                  Mount Point    Type   Options         Dump   FSCK<br />
192.168.1.100:/data/files   /mnt/nfs        nfs    soft,nfsvers=2  0      0</p>
<p>6) mount -t nfs 192.168.1.1:/data/files /mnt/nfs</p>
<p>7)Auto Mount<br />
$vi /etc/auto.master<br />
# File: /etc/auto.master<br />
#<br />
/home   /etc/auto.home &#8211;timeout=300<br />
/-      /etc/auto.direct</p>
<p>8)-Indrect map<br />
$vi /etc/auto.home<br />
peter   bigboy:/home/peter<br />
bob     ochorios:/home/bob<br />
bunny   waitabit:/home/bunny</p>
<p>-Direct Map<br />
$vi /etc/auto.direct<br />
/data/sales          -rw           bigboy:/disk1/data/sales<br />
/sql/database        -ro,soft      waitabit:/var/mysql/database</p>
<p>-Using the Ampersand Wildcard<br />
$vi /etc/auto.home<br />
peter   bigboy:/home/&amp;</p>
<p>9)chkconfig autofs on</p>
<p>Option Description<br />
Bg Retry mounting in the background if mounting initially fails<br />
Fg Mount in the foreground<br />
soft Use soft mounting<br />
hard Use hard mounting<br />
rsize=n The amount of data NFS will attempt to access per read operation.<br />
The default is dependent on the kernel. For NFS version 2 set it<br />
to 8192 to assure maximum throughput.<br />
wsize=n The amount of data NFS will attempt to access per write operation.<br />
The default is dependent on the kernel. For NFS version 2 set it to 8192<br />
to assure maximum throughput.<br />
nfsvers=n The version of NFS the mount command should attempt to use<br />
Tcp Attempt to mount the filesystem using TCP packets, the default is UDP.<br />
intr If the filesystem is hard mounted and the mount times out, allow<br />
for the process to be aborted using the usual methods such as &lt;CTRL-C&gt;<br />
and the &#8220;kill&#8221; command.</p>
<p>===========================================================<br />
SQUID<br />
/var/spool/squid<br />
/var/log/squid/access.log</p>
<p>1) vi /etc/squid/squid.conf<br />
visible_hostname server1.nepal.com</p>
<p>acl home_network src 192.168.1.0/24<br />
acl home_network src &#8220;/root/allow&#8221;<br />
acl business_hours time MTWHF 9:00-17:00<br />
http_access allow homenetwork business_hour<br />
cache_dir<br />
===========================================================<br />
Bind</p>
<p>cp -f /etc/rndc.* /var/named/chroot/etc/<br />
cp /etc/named.conf /var/named/chroot/etc/</p>
<p>1) vi /etc/named.conf<br />
zone &#8220;nepal.com&#8221; IN {<br />
type master;<br />
notify no;<br />
allow-update { none; };<br />
allow-query { any; };<br />
file &#8220;nepal.com.zone&#8221;;<br />
};</p>
<p>2) cp /var/named/localhost.zone /var/named/nepal.com.zone<br />
cp /var/named/localhost.   /var/named/nepal.rev</p>
<p>3) vi /var/named/nepal.com.zone</p>
<p>ns1.nepal.com. IN SOA root.nepal.com.(<br />
1;<br />
1H;<br />
1H;<br />
1H;<br />
1H;<br />
);<br />
ns1.nepal.com.   IN NS 192.168.0.5<br />
ns1.nepal.com.  IN A  192.168.0.5<br />
nepal.com.       IN MX 9 mail.nepal.com.<br />
nepal.com.       IN MX 10 mail1.nepal.com.<br />
nepal.com.        IN A  192.168.0.9<br />
nepal.com.        IN A  192.168.0.10<br />
mail.nepal.com.  IN A  192.168.0.7<br />
mail1.nepal.com. IN A  192.168.0.8<br />
<a href="http://www.nepal.com">www.nepal.com</a>.   IN A  192.168.0.9<br />
<a href="http://www.nepal.com">www.nepal.com</a> IN A  192.168.0.10<br />
nis1.nepal.com   IN A  192.168.0.11<br />
nis2.nepal.com   IN A  192.168.0.12<br />
file.nepal.com   IN A  192.168.0.13<br />
zone &#8220;0.168.196.in-addr.arpa&#8221; {<br />
type master;<br />
allow-update { none; };<br />
notify no;<br />
file &#8220;nepal.rev&#8221;;<br />
};<br />
$TTL 3D<br />
@       IN        SOA        ns1.nepal.com.  hostmaster.nepal.com. (<br />
200303301          ; serial number<br />
8H                 ; refresh, seconds<br />
2H                 ; retry, seconds<br />
4W                 ; expire, seconds<br />
1D )               ; minimum, seconds<br />
NS         ns1.nepal.com.<br />
5                PTR        ns1.nepal.com.<br />
6                PTR        ns2.nepal.com.<br />
7                PTR        mail.nepal.com.<br />
8                PTR        mail1.nepal.com.<br />
4) chkconfig named on</p>
<p>5) service named restart<br />
6) named-checkconfig /etc/named.conf<br />
named-checkzone /var/named.nepal.com.zone</p>
<p>7) nslookup <a href="http://www.nepal.com">www.nepal.com</a><br />
dig @nepal.com <a href="http://www.nepal.com">www.nepal.com</a><br />
dig @nepal.com MX<br />
host nepal.com<br />
========================================================================<br />
Apache(httpd)<br />
RPM= httpd-2.0.48-1.2.rpm</p>
<p>1) adduser nepal<br />
2) passwd nepal<br />
3) chmod 755 /home/nepal</p>
<p>4) vi /etc/httpd/conf/httpd.conf<br />
ServerAdmin <a href="mailto:webmaster@nepal.com">webmaster@nepal.com</a><br />
servername  nepal.com<br />
DocumentRoot &#8220;/home/nepal&#8221;(default)<br />
&lt;Directory &#8220;/home/nepal&#8221;&gt; [/var/www/html]<br />
Options All Indexes Includes FollowSymLinks ExecCGI MultiViews<br />
[MultiViews -Indexes SymLinksIfOwnerMatch IncludesNoExec]<br />
AllowOverride None (.htaccess)</p>
<p>Order allow,deny<br />
Allow from all(Deny from all/[ip])<br />
&lt;/Directory</p>
<p>&lt;Directory /home/*/public_html&gt;<br />
&lt;/Directory&gt;</p>
<p>DirectoryIndex index.html</p>
<p>Alias /sabin &#8220;/home/nepal/sabin&#8221;<br />
&lt;Directory &#8220;/home/nepal/sabin&#8221;&gt;<br />
&lt;/Directory&gt;</p>
<p>ScriptAlias /cgi-bin &#8220;/home/nepal/cgi-bin&#8221;<br />
&lt;Directory &#8220;/home/nepal/cgi-bin&#8221;&gt;<br />
&lt;/Directory&gt;</p>
<p>AddHandler cgi-script .cgi<br />
AddHandler send-as-is asis</p>
<p>ErrorDocument 404 /missing.htm</p>
<p>5) Named Based Hosting<br />
NameVirtualHost 192.168.0.9<br />
NameVirtualHost 192.168.0.10</p>
<p>&lt;VirtualHost *&gt;<br />
Default Directives. (In other words, not site #1 or site #2)<br />
&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost 192.168.0.9&gt;<br />
servername <a href="http://www.nepal.com">www.nepal.com</a><br />
DocumentRoot /home/nepal<br />
ServerAdmin <a href="mailto:sabin@nepal.com">sabin@nepal.com</a><br />
ErrorLog logs/error.log<br />
CustomLog logs/access.log<br />
Directives for site #1<br />
&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost 192.168.0.9&gt;<br />
DocumentRoot /home/sabin<br />
servername <a href="http://www.sabin.com">www.sabin.com</a><br />
ServerAdmin <a href="mailto:sabin@nepal.com">sabin@nepal.com</a><br />
ErrorLog logs/error.log<br />
CustomLog logs/access.log<br />
Directives for site #2<br />
&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost 192.168.0.10&gt;<br />
DocumentRoot /home/www/site2<br />
ServerName <a href="http://www.nepal.com">www.nepal.com</a><br />
ServerAlias nepal.com, <a href="http://www.arati.com">www.arati.com</a> arati.com<br />
&lt;/VirtualHost&gt;</p>
<p>options=<br />
&lt;Directory &#8220;/home/*&#8221;&gt;<br />
Order allow,deny<br />
Allow from all</p>
<p>AllowOverride FileInfo AuthConfig Limit<br />
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec<br />
&lt;Limit GET POST OPTIONS&gt;<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Limit&gt;<br />
&lt;LimitExcept GET POST OPTIONS&gt;<br />
Order deny,allow<br />
Deny from all<br />
&lt;/LimitExcept&gt;<br />
&lt;/Directory&gt;<br />
6) IP based Hosting</p>
<p>&lt;VirtualHost *&gt;<br />
DocumentRoot /home/nepal<br />
&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost 192.168.0.9&gt;<br />
DocumentRoot /home/sabin<br />
servername 192.168.0.9<br />
ServerAdmin <a href="mailto:sabin@nepal.com">sabin@nepal.com</a><br />
ErrorLog logs/error.log<br />
CustomLog logs/access.log</p>
<p>&lt;/VirtualHost&gt;</p>
<p>&lt;VirtualHost 192.168.0.10&gt;<br />
DocumentRoot /home/arati<br />
servername 192.168.0.10<br />
ServerAdmin <a href="mailto:arati@nepal.com">arati@nepal.com</a><br />
ErrorLog logs/error.log<br />
CustomLog logs/access.log<br />
&lt;/VirtualHost&gt;</p>
<p>Compression of static pages<br />
(before virtual hosting)<br />
LoadModule deflate_module modules/mod_deflate.so<br />
&lt;Location /&gt;<br />
# Insert filter<br />
SetOutputFilter DEFLATE<br />
# Netscape 4.x has some problems&#8230;<br />
BrowserMatch ^Mozilla/4 gzip-only-text/html<br />
# Netscape 4.06-4.08 have some more problems<br />
BrowserMatch ^Mozilla/4\.0[678] no-gzip<br />
# MSIE masquerades as Netscape, but it is fine<br />
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html<br />
# Don&#8217;t compress images<br />
SetEnvIfNoCase Request_URI \<br />
\.(?:gif|jpe?g|png)$ no-gzip dont-vary<br />
# Make sure proxies don&#8217;t deliver the wrong content<br />
Header append Vary User-Agent env=!dont-vary<br />
&lt;/Location&gt;</p>
<p>7) Proctecting Site<br />
htpasswd -c /home/nepal/.htpasswd sabin<br />
htpasswd  /home/nepal/.htpasswd arati<br />
chmod 644 /home/nepal/.htpasswd</p>
<p>vi .htpasswd (or &lt;Directory&gt;)</p>
<p>AuthUserFile /home/nepal/.htpasswd<br />
AuthGroupFile /dev/null<br />
AuthName EnterPassword<br />
AuthType Basic<br />
require user valid-user</p>
<p> <img src='http://www.sabinshrestha.com.np/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /><br />
openssl genrsa -des3 -out server.key 1024<br />
openssl req -new -key server.key -x509 -out server.crt<br />
cp server.{key,crt} /etc/httpd/conf/<br />
or<br />
/etc/httpd/conf/make testcert<br />
/etc/httpd/conf/make certreq</p>
<p>vi /etc/httpd/conf.d/ssl.conf<br />
&lt;VirtualHost 192.168.0.7:443&gt;<br />
ServerAdmin<br />
DocumentRoot<br />
ServerName<br />
ServerAlias<br />
SSLEngine on<br />
SSLCertificateFile /etc/httpd/conf/server.crt<br />
SSLCertificateKeyFile /etc/httpd/conf/server.key<br />
&lt;/VirtualHost&gt;<br />
========================================================================</p>
<p>Web mail (squriell mail)www.hotscripts.com<br />
$vi /var/www/html/webmail/config/config.php</p>
<p>$org_name      = &#8220;Microtech International&#8221;;<br />
$org_logo      = SM_PATH . &#8216;images/mtechlogo.jpg.new&#8217;;<br />
#$org_logo      = &#8216;/home/chehen/mtechlogo.jpg&#8217;;<br />
$org_logo_width  = &#8217;308&#8242;;<br />
$org_logo_height = &#8217;111&#8242;;<br />
$org_title     = &#8220;Microtech International&#8221;;<br />
$signout_page  = &#8216;http://portal.mtech.com.np&#8217;;<br />
$frame_top     = &#8216;_top&#8217;;</p>
<p>$provider_uri     = &#8216;http://www.microtech.com.np&#8217;;</p>
<p>$provider_name     = &#8216;www.microtech.com.np&#8217;;</p>
<p>$motd = &#8221; &#8220;;</p>
<p>$squirrelmail_default_language = &#8216;en_US&#8217;;</p>
<p>$domain                 = &#8216;microtech.com.np&#8217;;<br />
$imapServerAddress      = &#8217;192.168.59.1&#8242;;<br />
#$imapServerAddress      = &#8217;192.168.59.7&#8242;;<br />
$imapPort               = 143;<br />
$useSendmail            = false;<br />
#$useSendmail            = true;<br />
$smtpServerAddress      = &#8217;192.168.59.1&#8242;;<br />
$smtpPort               = 25;<br />
$sendmail_path          = &#8216;/usr/sbin/sendmail&#8217;;<br />
$pop_before_smtp        = false;<br />
$imap_server_type       = &#8216;other&#8217;;<br />
$invert_time            = false;<br />
$optional_delimiter     = &#8216;detect&#8217;;</p>
<p>vi /etc/httpd/conf.d/squriellmail<br />
========================================================================<br />
Webmin (Web Administration) <a href="http://www.webmin.com">www.webmin.com</a></p>
<p>Installed Directory (/var/libexec/mrtg)<br />
$./setup.sh</p>
<p><a href="http://192.168.59.7:10000">http://192.168.59.7:10000</a><br />
=========================================================================<br />
PostFix<br />
/etc/postfix/main.cf<br />
/etc/postfix/master.cf<br />
Daemon=master,qmgr,smtpd,pikup(others)</p>
<p>1)alternatives  -set mta /usr/sbin/sendmail.posfix<br />
2)vi /etc/postfix/main.cf<br />
myorigin=nepal.com<br />
mydestination= nepal.com mail.nepal.com<br />
mynetworks=192.168.0.0/24,127.0.0.1<br />
inet_interfaces=all</p>
<p>3)service postfix start<br />
4)aliases,virtual,access<br />
5)postmap /etc/postfix/access<br />
=========================================================================<br />
SendMail</p>
<p>1) vi /etc/mail/sendmail.cf or vi /etc/mail/sendmail.mc<br />
copy define(&#8220;Daemon Port Options = Port=smtp; Addr=127.0.0.1,Name MTA&#8221;)<br />
Paste define(&#8220;Daemon Port Options = Port=smtp; Addr=192.168.0.7,Name MTA&#8221;)</p>
<p>define(MAIL_HUB&#8217;, &#8216;nepal.com&#8217;)<br />
define(&#8216;SMART_HOST&#8217;,'nepal.com&#8217;)<br />
define(&#8216;MASQUERADE_AS&#8217;,'nepal.com&#8217;)<br />
EXPOSED_USER(&#8216;root&#8217;)</p>
<p>MASQUERADE_AS(`nepal.com.&#8217;)<br />
MASQUERADE_DOMAIN(`nepal.com.&#8217;)<br />
MASQUERADE_AS(nepal.com)<br />
FEATURE(`accept_unresolvable_domains&#8217;)dnl<br />
FEATURE(delay_checks)dnl<br />
FEATURE(always_add_domain)dnl<br />
FEATURE(`masquerade_entire_domain&#8217;)dnl<br />
FEATURE(`masquerade_envelope&#8217;)dnl<br />
FEATURE(`allmasquerade&#8217;)dnl<br />
MASQUERADE_AS(`my-site.com&#8217;)dnl<br />
MASQUERADE_DOMAIN(`my-site.com.&#8217;)dnl<br />
MASQUERADE_DOMAIN(localhost)dnl<br />
MASQUERADE_DOMAIN(localhost.localdomain)dnl</p>
<p>For LDAP<br />
LDAPROUTE_DOMAIN<br />
LDAP_ROUTIN<br />
2)m4 /etc/mail/sendmail.mc &gt; /etc/mail/sendmail.cf</p>
<p>3)vi /etc/mail/local-host-names(Receive mail of domain, To receive)<br />
nepal.com<br />
mail.nepal.com</p>
<p>4)vi /etc/mail/access (To allow to send mail )<br />
localhost.localdomain RELAY<br />
localhost             RELAY<br />
127.0.0.1             RELAY<br />
nepal.com             RELAY<br />
mail.nepal.com        RELAY<br />
192.168.0             RELAY<br />
mail1.nepal.com       RELAY (for backup email)<br />
spam.com              REJECT</p>
<p>5) vi /etc/mail/virtusertable (to redirect emails)<br />
@nepal.com          sabin<br />
<a href="mailto:info@nepal.com">info@nepal.com</a> sabin</p>
<p>6) make all</p>
<p>7) vi /etc/aliases<br />
hardware: sabin,subash,arati,rakesh,shyam</p>
<p> <img src='http://www.sabinshrestha.com.np/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> newaliases</p>
<p>9) vi /etc/mail/relay-domains<br />
nepal.com  RELAY</p>
<p>10)chkconfig sendmail on<br />
chkconfig ipop3 on<br />
chkconfig imapd on</p>
<p>11) service sendmail restart<br />
service xinetd restart</p>
<p>12) sendmail -d0.1 &lt;/dev/null (to check)</p>
<p>13) mail -s hello <a href="mailto:sabin@nepal.com">sabin@nepal.com</a><br />
hello<br />
.</p>
<p>echo &#8220;helooo&#8221;|mail -v -s hello <a href="mailto:sabin@nepal.com">sabin@nepal.com</a><br />
mail -s hello <a href="mailto:sabin@nepal.com">sabin@nepal.com</a> &lt; /root/a.txt<br />
14)mailq or sendmail -bd -q 30m<br />
sendmail -bd -q<br />
sendmail -q</p>
<p>15) nmap nepal.com (check 25 and 110 port is open)</p>
<p>16) mail, pine , mutt</p>
<p>17) Check SMTP<br />
telnet 192.168.0.7 25<br />
helo nepal.com<br />
mail from: <a href="mailto:sabin@nepal.com">sabin@nepal.com</a><br />
rcpt to: <a href="mailto:arati@nepal.com">arati@nepal.com</a><br />
data<br />
hello<br />
there<br />
.<br />
quit</p>
<p>18) To check POP<br />
telnet 192.168.0.7 110<br />
user sabin<br />
pass shrestha<br />
stat<br />
top 1 99999<br />
dele 1<br />
quit</p>
<p>19 tail -f /var/log/maillog</p>
<p>===============================================================<br />
Spam Controling<br />
spamassassing / mimedefang<br />
1)$vi /etc/mail/spamassassin/local.cf<br />
Required_hits 6<br />
rewrite_subject 1<br />
subject_tag [SPAM]<br />
report_safe 0</p>
<p># How many hits before a message is considered spam.<br />
required_hits           6.0</p>
<p># Whether to change the subject of suspected spam<br />
rewrite_subject         1</p>
<p># Text to prepend to subject if rewrite_subject is used<br />
subject_tag             [SPAM]</p>
<p># Encapsulate spam in an attachment<br />
report_safe             1</p>
<p># Use terse version of the spam report<br />
use_terse_report        0</p>
<p># Enable the Bayes system<br />
use_bayes               1</p>
<p># Enable Bayes auto-learning<br />
auto_learn              0</p>
<p># Enable or disable network checks<br />
skip_rbl_checks         1<br />
use_razor2              0<br />
use_dcc                 0<br />
use_pyzor               0</p>
<p>auto_whitelist_path     /etc/mail/spamassassin/auto-whitelist<br />
bayes_path              /etc/mail/spamassassin/bayes</p>
<p>score SPAM_PHRASE_34_55              3.516<br />
score SPAM_PHRASE_55_XX              1.505<br />
score SPAM_PHRASE_21_34              2.856<br />
score SPAM_PHRASE_13_21              2.337<br />
score SPAM_PHRASE_08_13              2.385<br />
score SPAM_PHRASE_05_08              2.640<br />
score SPAM_PHRASE_03_05              2.084<br />
score SPAM_PHRASE_00_01              0.781<br />
score SPAM_PHRASE_02_03              0.758<br />
score SPAM_PHRASE_01_02              0.500<br />
score LINES_OF_YELLING_2             1.500<br />
score FORGED_RCVD_FOUND              4.000<br />
score MAY_BE_FORGED                  1.000<br />
score UPPERCASE_50_75                2.000<br />
score HTML_FONT_FACE_ODD             1.500<br />
score NIGERIAN_TRANSACTION_1         3.000<br />
score LINES_OF_YELLING               1.500<br />
score WEB_BUGS                       2.500<br />
score FORGED_YAHOO_RCVD              2.500<br />
score SUBJ_HAS_UNIQ_ID               2.000<br />
score JAVASCRIPT_VERY_UNSAFE         3.500<br />
score HTML_FONT_INVISIBLE            2.000<br />
score CTYPE_JUST_HTML                4.000<br />
score FROM_NO_USER                   2.500<br />
score BILLION_DOLLARS                1.000<br />
score CLICK_BELOW                    2.000<br />
score RELAYING_FRAME                 2.000<br />
score MIME_SUSPECT_NAME              2.000<br />
score MIME_HTML_NO_CHARSET           3.000<br />
score MICROSOFT_EXECUTABLE           2.000<br />
score MISSING_MIMEOLE                2.000<br />
score ONLINE_PHARMACY                2.000<br />
score SAVE_UP_TO                     2.000<br />
score SAVE_MONEY                     2.000<br />
score MIME_HTML_ONLY                 2.000<br />
score MONEY_BACK                     2.000<br />
score HTML_FONT_FACE_BAD             3.000<br />
score VIAGRA                         4.000<br />
score VIAGRA_ONLINE                  4.000<br />
score SUBJ_HI                        2.500<br />
score HTML_WEB_BUGS                  2.500<br />
score HTML_IMAGE_ONLY_02             3.000<br />
score HTML_IMAGE_ONLY_04             2.500<br />
score HTML_IMAGE_ONLY_06             2.000<br />
score HTML_IMAGE_ONLY_08             1.500<br />
score HTML_IMAGE_ONLY_10             1.000<br />
score RATWARE_HASH_2                 2.000<br />
score RATWARE_HASH_2_V2              2.000<br />
score MISSING_OUTLOOK_NAME           2.000<br />
score HTML_FONTCOLOR_UNKNOWN         2.000<br />
score NORMAL_HTTP_TO_IP              2.000<br />
score GAPPY_SUBJECT                  3.500<br />
score HTML_FONT_BIG                  2.000<br />
score REMOVE_PAGE                    1.500<br />
score HTML_SHOUTING4                 2.000<br />
score HTML_SHOUTING3                 2.000<br />
score HTML_SHOUTING2                 2.000<br />
score HTML_SHOUTING                  2.000<br />
score NO_REAL_NAME                   2.000<br />
score HGH                            3.000<br />
score MIME_MISSING_BOUNDARY          2.000<br />
score SAVINGS                        3.000<br />
score AMAZING_STUFF                  2.000<br />
score HTML_MESSAGE                   2.500</p>
<p>2)vi /etc/procmailrc</p>
<p># send mail through spamassassin<br />
:0fw<br />
| /usr/bin/spamc</p>
<p>LOGFILE=/var/log/procmail.log<br />
DROPPRIVS=yes</p>
<p># Delete all messages with dangerous attachments, as long as below a certain size<br />
# Note: The whitespace in the [ ] below comprises a space and a tab character<br />
:0<br />
* &lt; 256000<br />
* ! ^Content-Type: text/plain<br />
{<br />
:0B<br />
* ^(Content-(Type|Disposition):.*|[     ]*(file)?)name=(&#8220;[^"]*|[^ ]*)\.(bat|cmd|com|exe|js|pif|scr|zip)<br />
/dev/null<br />
}</p>
<p># SpamAssassin sample procmailrc<br />
#<br />
# Pipe the mail through spamassassin (replace &#8216;spamassassin&#8217; with &#8216;spamc&#8217;<br />
# if you use the spamc/spamd combination)<br />
#<br />
# The condition line ensures that only messages smaller than 250 kB<br />
# (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam<br />
# isn&#8217;t bigger than a few k and working with big messages can bring<br />
# SpamAssassin to its knees.<br />
#<br />
# The lock file ensures that only 1 spamassassin invocation happens<br />
# at 1 time, to keep the load down.<br />
#<br />
:0fw<br />
* &lt; 256000<br />
| /usr/bin/spamc</p>
<p># Delete messages with very high spam level<br />
# Tweak this to your own comfort level!<br />
:0<br />
* ^X-Spam-Level: \*\*\*\*\*\*\*\*<br />
/dev/null</p>
<p># Work around procmail bug: any output on stderr will cause the &#8220;F&#8221; in &#8220;From&#8221;<br />
# to be dropped.  This will re-add it.<br />
:0<br />
* ^^rom[ ]<br />
{<br />
LOG=&#8221;*** Dropped F off From_ header! Fixing up. &#8221;</p>
<p>:0 fhw<br />
| sed -e &#8217;1s/^/F/&#8217;<br />
}<br />
# Klez worm procmail filter<br />
:0 B<br />
* 135AAItEjhyJRI8ci0SOGIlEjxiLRI4UiUSPFItEjhCJRI8Qi0SODIlEjwyLRI4IiUSPCItE<br />
/var/log/klez<br />
3)vi ~/.procmailrc file</p>
<p>INCLUDERC=/etc/mail/spamassassin/spamassassin-default.rc</p>
<p>:0 Hw<br />
* ^X-Spam-Status: Yes<br />
spam</p>
<p>==========================================================================<br />
4) Procmail (~/.procmailrc)<br />
:0<br />
*^From: <a href="mailto:test@try.com">test@try.com</a><br />
<a href="mailto:!sabin@nepal.com">!sabin@nepal.com</a></p>
<p>*^From: *root/root*</p>
<p>*^subjct: .*free.*<br />
/dev/null</p>
<p>:0<br />
*^From: <a href="mailto:test@try.com">test@try.com</a><br />
<a href="mailto:!sabin@abc.com">!sabin@abc.com</a></p>
<p>:0<br />
* ^From: <a href="mailto:spammer@domain.com">spammer@domain.com</a><br />
/dev/null</p>
<p>:0:<br />
* ^(From|CC|To).*tux-lug<br />
tuxlug</p>
<p>==========================================================================<br />
Anti virus<br />
<a href="http://www.clamav.net/">http://www.clamav.net/</a><br />
groupadd clamav<br />
useradd -g clamav -s /bin/false -c &#8220;Clam AntiVirus&#8221; clamav<br />
cd /usr/local/src<br />
wget <a href="http://optusnet.dl.sourceforge.net/sourceforge/clamav/clamav-0.82.tar.gz">http://optusnet.dl.sourceforge.net/sourceforge/clamav/clamav-0.82.tar.gz</a><br />
tar xzf clamav-0.82.tar.gz<br />
chown -R root.root clamav-0.82<br />
cd clamav-0.82<br />
./configure<br />
make<br />
make install<br />
Customise the clamd configuration file</p>
<p>vi /usr/local/etc/clamd.conf<br />
# make sure you comment out the &#8220;example&#8221; line<br />
LogSyslog<br />
FixStaleSocket<br />
User qscand  # need to run as user qscand for clamav<br />
to work with recent versions of the qmail-scanner script<br />
Configure clamd so it is running all the time from bootup onwards</p>
<p>cp contrib/init/RedHat/clamd /etc/rc.d/init.d/<br />
chmod 744 /etc/rc.d/init.d/clamd<br />
chkconfig &#8211;add clamd<br />
Then I like to use the ntsysv program to double-check<br />
that clamd is set to launch at boot time</p>
<p>If you aren&#8217;t ready to reboot the server now, you can<br />
fire up clamd in the mean time with this command :</p>
<p>/etc/rc.d/init.d/clamd start<br />
At this point the clamd software should be running.<br />
A good way to verify this is to use this command :</p>
<p>ps axf<br />
And if all is well, you should be able to see something like this :</p>
<p>18144 ? S 0:00 /usr/local/sbin/clamd<br />
Schedule automatic downloading</p>
<p>touch /var/log/clam-update.log<br />
chmod 600 /var/log/clam-update.log<br />
chown clamav /var/log/clam-update.log<br />
crontab -e<br />
0 * * * *  /usr/local/bin/freshclam &#8211;quiet -l /var/log/clam-update.log<br />
Download latest updates now</p>
<p>/usr/local/bin/freshclam -v<br />
=========================================================================<br />
RAZOR V2</p>
<p><a href="http://razor.sourceforge.net/">http://razor.sourceforge.net/</a></p>
<p>If Razor is installed, SpamAssassin will automatically include it in the<br />
list of tests run. We found that Razor is quite accurate in identifying<br />
spam, and it only added small amount of extra CPU load on the server, so<br />
it is definitely worth installing.</p>
<p>Compile and install :</p>
<p># install the pre-requisite modules for razor<br />
perl -MCPAN -e shell<br />
#(enter your way through all the questions. The only one you will likely<br />
have to answer is regarding your Continent/Country)<br />
# tell the cpan shell to follow the dependency tree and automatically grab<br />
any required modules<br />
o conf prerequisites_policy follow<br />
# make sure you have some of the basic tools needed to get the CPAN<br />
downloads working smoothly<br />
install LWP MD5<br />
# install the razor pre-requisites now<br />
install Net::Ping Net::DNS Time::HiRes Digest::SHA1 Getopt::Long File<br />
::Copy Digest::Nilsimsa URI::Escape<br />
quit<br />
# now install the actual razor software<br />
tar xzf razor-agents-2.67.tar.gz<br />
chown -R root.root razor-agents-2.67<br />
cd razor-agents-2.67<br />
perl Makefile.PL<br />
make<br />
make test<br />
make install<br />
cd ..<br />
The Razor programs will now be installed in /usr/bin. In particular,<br />
SpamAssassin makes use of the program called : &#8220;razor-check&#8221;</p>
<p>Last job is to create the Razor configuration<br />
files (they get put into /etc/razor/) by using these commands :</p>
<p>razor-client<br />
razor-admin -d -create -home=/etc/razor<br />
If your server is going to be busy, then I would recommend<br />
you edit the razor config file and turn down the debugging level a bit :</p>
<p>vi /etc/razor/razor-agent.conf<br />
debuglevel=1</p>
<p>==========================================================================<br />
Fetchmail(offline Mail server)<br />
$vi /root/.fretchmail<br />
#set no bouncemail<br />
poll pop.websurfer.com.np with proto pop3  and options no dns<br />
aka nepal.com<br />
user &#8220;info&#8221; there with password &#8220;catchme&#8221; is * here expunge 10</p>
<p>$vi /root/.mailscript<br />
#!/bin/sh<br />
echo &#8220;**************************&#8221;<br />
/bin/date<br />
/usr/bin/fetchmail -v -a<br />
/usr/sbin/sendmail -bp<br />
/usr/sbin/sendmail -q</p>
<p>crontab<br />
0-59 * * * * /root/.mailscript &gt;&gt; /var/log/fetchmaillog</p>
<p>=================================================================<br />
FTP<br />
$vi /etc/vsftpd/vsftpd.conf<br />
anonymous_enable=NO<br />
ftpd_banner=Welcome to Nepal FTP Server.<br />
chroot_local_user=YES</p>
<p>=================================================================<br />
DHCP<br />
1)vi /etc/dhcpd.conf<br />
(/usr/share/doc/dhcp-&lt;version-number&gt;/dhcpd.conf.sample)<br />
authoritative;<br />
ddns-update-style none; (ad-hoc/interim;)<br />
default-lease-time 604800;<br />
max-lease-time 2592000;<br />
option routers 192.168.0.1;<br />
option domain-name-servers 192.168.0.5;<br />
option domain-name-servers 192.168.0.6;<br />
option subnet-mask 255.255.255.0;<br />
option broadcast-address 192.168.0.255;</p>
<p>subnet 192.168.0.0 netmask 255.255.255.0 {<br />
range 192.168.0.200 192.168.0.250;<br />
}</p>
<p>host mailserver {<br />
hardware ethernet 00:02:44:4A:E8:B1;<br />
fixed-address 192.168.0.8;<br />
}</p>
<p>host sabin {<br />
hardware ethernet 00:0C:29:07:8F:2D;<br />
fixed-address 192.168.0.70;</p>
<p>2)vi /etc/sysconfig/dhcpd<br />
# Command line options here<br />
DHCPDARGS=eth0</p>
<p>touch /var/lib/dhcp/dhcpd.leases</p>
<p>3)vi /etc/sysconfig/dhcrelay<br />
(The DHCP Relay Agent (dhcrelay) allows you to relay DHCP<br />
and BOOTP requests from a subnet with no DHCP server on it<br />
to one or more DHCP servers on other subnets)</p>
<p>service dhcrelay start<br />
====================================================================<br />
PPP Server<br />
vi /etc/inittab<br />
S1:2345:respawn:/sbin/mgetty -D /dev/ttyS1</p>
<p>vi /etc/ppp/options.server<br />
-detach<br />
asyncmap 0<br />
modem<br />
crtscts<br />
lock<br />
require-pap<br />
refuse-chap<br />
login<br />
proxyarp<br />
192.168.59.1:192.168.59.100<br />
ms-dns 192.168.59.7</p>
<p>vi /etc/ppp/options<br />
noauth<br />
defaultroute<br />
lock<br />
ipcp-accept-local<br />
ipcp-accept-remote<br />
usepeerdns<br />
passive</p>
<p>vi /etc/ppp/resolv.conf<br />
nameserver 202.52.255.47<br />
nameserver 202.52.255.3</p>
<p>5)vi /etc/syslog.conf<br />
daemon.* /dev/console</p>
<p>6) cat /etc/ppp/pap-secrets</p>
<p>[root@mail ppp]# cat pap-secrets<br />
# Secrets for authentication using PAP<br />
# client        server  secret                  IP addresses<br />
*               *       &#8220;&#8221;                              *</p>
<p>7) vi /etc/mgetty+sendfax/ login.config<br />
/AutoPPP/ -     -       /usr/sbin/pppd file /etc/ppp/options.server</p>
<p>#Callback conf<br />
back &#8211; - /usr/sbin/callback -S 4352548<br />
=======================================================================<br />
Webmin (Web Administration)<br />
Installed Directory (/var/libexec/mrtg)<br />
$./setup.sh</p>
<p><a href="http://192.168.59.7:10000">http://192.168.59.7:10000</a><br />
========================================================================<br />
YP(NIS server)<br />
Daemon: portmap,ypbind,yptools,ypserv,ypxfrd,nfslock,nfs<br />
1) vi /etc/sysconfig/network<br />
NISDOMAIN=nis1.nepal.com<br />
2) domainname nepal.com<br />
/var/yp/Makefile<br />
all:passwd group hosts<br />
nopush=true,merge_groups=files<br />
/var/yp/make [passwd shadow host]<br />
service portmap start<br />
service ypserv start<br />
/usr/lib/yp/ypinit -m [-s masterservers]<br />
/var/yp/ypservers<br />
service yppasswdd start<br />
service ypserv start</p>
<p>rpcinfo -p localhost<br />
if new user added<br />
/var/yp/make</p>
<p>$ypmatch nisuser passwd<br />
getent passwd nisuser</p>
<p>/var/yp/securenets[network security]<br />
/etc/nsswitch.conf[files dns,nis]</p>
<p># /etc/yp.conf &#8211; ypbind configuration file<br />
ypserver 127.0.0.1<br />
Client<br />
portmap,ypbind,yptools<br />
1) /etc/sysconfig/network<br />
NISDOMAIN=server1.sabin.com<br />
authconfig [/etc/yp.conf]<br />
ypcat passwd[must execute when new useris added]<br />
ypwhich,ypcat,ypchfn,ypchsh,yppasswd,ypush</p>
<p>NFS</p>
<p>/etc/exports<br />
/home *(rw)<br />
service nfs restart<br />
exportfs -r<br />
exportfs -v<br />
exportfs -u<br />
exportfs -a</p>
<p>/etc/auto.master<br />
/home /etc/auto.home &#8211;timeout 60</p>
<p>/etc/auto.home<br />
* -rw,soft,intr 192.168.0.1:/home/&amp;<br />
or<br />
*   -fstype=nfs,soft,intr,rsize=8192,wsize=8192,nosuid,tcp \<br />
192.168.1.100:/home:&amp;</p>
<p>service autofs restart<br />
======================================================================<br />
SAMBA (SWAT Makes Samba Simpler <a href="http://localhost:901">http://localhost:901</a>)<br />
share a linux drive with win machine<br />
share a win datat in linux<br />
share a linux printer with win machine<br />
share a win printer with linux<br />
1.FOR Win 95/98 &#8211; regedit hkey_Local_Machine/system/currentcontrol/services/VxD/vnetsup/<br />
Add a new Dword value: EnablePlanTextPassword 0&#215;01<br />
2.NT HKEY_LOCAL_MACHINE/system/CurrentControl/services/Rdr\parameters\<br />
&#8212;&#8212;<br />
Dword<br />
EnablePlanTextPassword 0&#215;01<br />
2000<br />
&#8212;-<br />
Hkey_local_machine\system\current\services\Rdr\Parameters<br />
EnablePlainTextPassword ox01</p>
<p>Swat<br />
chkconfig swat on<br />
<a href="http://localhost:901">http://localhost:901</a></p>
<p>1)vi /etc/samba/smb.conf</p>
<p>Section Description<br />
[global] General Samba configuration parameters<br />
[printers] Used for configuring printers<br />
[homes] Defines treatment of user logins<br />
[netlogon] A share for storing logon scripts.<br />
(Not created by default.)<br />
[profile] A share for storing domain logon information such as<br />
&#8220;favorites&#8221; and desktop icons.(Not created by default.)</p>
<p>[global]</p>
<p>workgroup = HOMENET<br />
server string = Sabin Server<br />
host allow =192.168.0.<br />
printing = lprng<br />
printcap name =/etc/printcap<br />
security= user share<br />
security=[users,shares,server,domain]<br />
load printers = yes<br />
guest account = sabin<br />
allow hosts = host list<br />
deny hosts = host list<br />
admin users = users list</p>
<p>[global] for domain<br />
workgroup = HOMENET<br />
time server = Yes<br />
domain logons = Yes<br />
os level = 65<br />
preferred master = Yes<br />
domain master = Yes<br />
[homes]<br />
read only = No<br />
browseable = No<br />
create mask = 0644<br />
directory mask = 0755</p>
<p>[netlogon]<br />
path = /home/samba/netlogon<br />
guest ok = Yes</p>
<p>[profiles]<br />
path = /home/samba/profiles<br />
read only = No<br />
create mask = 0600<br />
directory mask = 0700<br />
[printers]<br />
comment = All Printers<br />
path = /var/spool/samba<br />
printable = Yes<br />
browseable = No<br />
public = yes</p>
<p>[tmp]<br />
comments = sabin share<br />
path = /tmp<br />
valid users = sabin<br />
public = no<br />
writable =yes<br />
printable=no<br />
guest ok = yes<br />
only guest = yes<br />
create mask = 0765<br />
read only = yes<br />
write list= @manager</p>
<p>Authentication from NT<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
encrypt password = yes<br />
security = server<br />
password server = &lt;netbios name&gt; of PDC</p>
<p>wins<br />
&#8212;&#8211;<br />
wins supoort = yes<br />
wins server = IP of wins server</p>
<p>Authentication Server:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
encrypt password = yes<br />
domain logons = yes<br />
OS level = 033<br />
[NET LOGON]<br />
path = &lt;someshare in fs&gt;<br />
read only = yes</p>
<p>SAMBA as a PDC ( primary domian controller)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
[ global section]<br />
workgroup =<br />
netbios name =<br />
domain logons = yes<br />
security = user<br />
local master = yes<br />
os level = 65 | 64<br />
preferred master = yes<br />
domain master = yes<br />
logon path = <a href="file://\\%N\profiles\%U">\\%N\profiles\%U</a><br />
logon home = <a href="file://%3chomeserver%3e/%25U">\\&lt;homeserver&gt;\%U</a><br />
[netlogon]<br />
path = /usr/local/samba/netlogon</p>
<p>root is a Admin user for domain<br />
groupadd sysadmin</p>
<p>domain admin group = @sysadmin<br />
admin users = @sysadmin<br />
printer admin = @sysadmin</p>
<p>Dynamic Creation Of Machine Trust Accounts<br />
[global]<br />
# &lt;&#8230;remainder of parameters&#8230;&gt;<br />
add machine script = /usr/sbin/useradd -d /dev/null -g samba-clients -s /bin/false -M %u<br />
groupadd samba-clients<br />
2)smbpasswd -a root password</p>
<p>smbclient //192.168.0.1/abc -U sabin<br />
nmblookup server -R sabin| nmb \*<br />
smbmount //server/share /mnt/sab -o username=sabin<br />
fstab<br />
//server/1/public /mnt/smb smbfs defaults,username=sabin 0 0<br />
password file= /etc/samba/samba<br />
smbadduser root:sabin<br />
smbpasswd -U root</p>
<p>smclient //station5 -U &lt;username%password&gt;</p>
<p>smbclient //server1/myshare  -N -Tx backup.tar<br />
smbclient //server1/myshare  -N -TXx backup.tar /users/doc<br />
mount -t smbfs -o username=admin%passwd IP //server/share /mnt/share<br />
smbmount //server/share mnt_pt -o username=xxxx%pass</p>
<p>======================================================================<br />
LDAP<br />
1. /etc/openldap/slapd.config<br />
suffix &#8220;dc=example,dc=com&#8221;<br />
rootdn &#8220;cn =root , dc=examplex,dc=com&#8221;<br />
rootpw  secret (crypt)<br />
perl -e &#8221; print crypt (&#8216;passwd&#8217;,'a_shell&#8217;);&#8221;<br />
Migrate all users in LDAP server<br />
2. create users student 1 &#8211; student with redhat1 &#8211; redhat9<br />
#!/bin/bash<br />
for 1 in `seq 1 9` ; do<br />
useradd student$1<br />
echo &#8220;redhat$1&#8243; |passwd &#8211;stdin student$1<br />
done<br />
3. /usr/share/openldap/migration<br />
migrate_common.ph<br />
$DEFAULT_MAIL_DOMAIN=&#8221;stationX. example.com<br />
$DEFAULT_BASE=&#8221;dc=example, dc=com&#8221;</p>
<p>/etc/protocols<br />
/etc/services<br />
comment all #+<br />
./migrate_all_offline.sh<br />
./migrate_all_nis_online.sh<br />
&#8220;       &#8220;   &#8220;    &#8221;<br />
file of ldap:<br />
/var/lib/ldap<br />
chown -R ldap.ldap /var/lib/ldap<br />
service ldap restart<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
client side:<br />
graphical LDAP client<br />
preferences select server tab<br />
Name&#8211; stationx.example.com<br />
LDAPHOST:  &#8221;<br />
BASE DN: dc=example,dc=com<br />
=========================================================================<br />
LDAP<br />
Scenario<br />
The I.T. department in a small organization &#8220;nepal.com&#8221; has<br />
many Linux servers they need to administer.</p>
<p>1. They want a simple, secure, centralized login scheme for all of them.<br />
2. They have decided to use the LDAP domain &#8220;example.com&#8221; for their LDAP<br />
database in which one domain component (DC) will be &#8220;example&#8221;, and<br />
the other will be &#8220;com&#8221;.<br />
3. The database will only have one organizational unit simply called<br />
&#8220;People&#8221; which is the LDAP default.<br />
4. Each person will have attributes such as a username (User ID or UID),<br />
password, Linux &#8220;home&#8221; directory and login shell.<br />
5. The Fedora Linux server named &#8220;nepal&#8221; will act as the LDAP server<br />
containing the database and has the IP address 192.168.1.100.<br />
6. The Fedora Linux server named &#8220;sabin&#8221; will be used to test the system<br />
as the LDAP client and has the IP address 192.168.1.102.<br />
7. Server &#8220;nepal&#8221; has a special user account named &#8220;ldapuser&#8221; that will<br />
be used to test the LDAP logins.</p>
<p>Required LDAP Server RPMS<br />
openldap,openldap-clients,openldap-devel,nss_ldap,openldap-servers<br />
Required LDAP Client RPMS<br />
openldap,openldap-clients,openldap-devel,nss_ldap</p>
<p>1)Create a database directory<br />
mkdir /var/lib/ldap/example.com<br />
chown ldap:ldap /var/lib/ldap/example.com</p>
<p>2)Create an LDAP &#8220;root&#8221; password<br />
slappasswd<br />
{SSHA}v4qLq/qy01w9my60LLX9BvfNUrRhOjQZ</p>
<p>3)vi /etc/openldap/slapd.conf<br />
database        ldbm<br />
suffix          &#8221;dc=example,dc=com&#8221;<br />
rootdn          &#8221;cn=Manager,dc=example,dc=com&#8221;<br />
rootpw          {SSHA}v4qLq/qy01w9my60LLX9BvfNUrRhOjQZ<br />
directory       /var/lib/ldap/example.com<br />
4)service ldap start</p>
<p>5)Create the &#8220;ldapuser&#8221; test account<br />
useradd -g users ldapuser<br />
passwd ldapuser<br />
grep ldapuser /etc/passwd &gt; /etc/openldap/passwd.ldapusers<br />
grep root /etc/passwd &gt;   /etc/openldap/passwd.root</p>
<p>6)Find the conversion script<br />
slocate -u<br />
locate migrate<br />
(/usr/share/openldap/migration/migrate_passwd.pl)</p>
<p>7) Convert user&#8217;s to ldap<br />
/usr/share/openldap/migration/migrate_passwd.pl \<br />
/etc/openldap/passwd.ldapusers /etc/openldap/ldapusers.ldif</p>
<p>/usr/share/openldap/migration/migrate_passwd.pl \<br />
/etc/openldap/passwd.root /etc/openldap/root.ldif</p>
<p>8)Edit the user LDIF file<br />
vi /etc/openldap/ldapusers.ldif<br />
:%s/padl/example/g</p>
<p>vi /etc/openldap/root.ldif<br />
:%s/padl/example/g<br />
under the UID line in the file.<br />
cn: Manager</p>
<p>9) vi etc/openldap/example.com.ldif<br />
dn: dc=example,dc=com<br />
dc: example<br />
description: Root LDAP entry for example.com<br />
objectClass: dcObject<br />
objectClass: organizationalUnit<br />
ou: rootobject</p>
<p>dn: ou=People, dc=example,dc=com<br />
ou: People<br />
description: All people in organisation<br />
objectClass: organizationalUnit</p>
<p>10)Import the LDIF files into the database</p>
<p>ldapadd -x -D &#8220;cn=Manager,dc=example,dc=com&#8221; \<br />
-W -f /etc/openldap/example.com.ldif</p>
<p>ldapadd -x -D &#8220;cn=Manager,dc=example,dc=com&#8221; \<br />
-W -f /etc/openldap/root.ldif</p>
<p>ldapadd -x -D &#8220;cn=Manager,dc=example,dc=com&#8221; \<br />
-W -f /etc/openldap/ldapusers.ldif<br />
11) Test the LDAP database<br />
ldapsearch -x -b &#8216;dc=example,dc=com&#8217; &#8216;(objectclass=*)&#8217;</p>
<p>Client<br />
1)vi /etc/openldap/ldap.conf<br />
HOST 192.168.1.100<br />
BASE dc=example,dc=com</p>
<p>2)vi  /etc/nsswitch.conf<br />
$authconfig<br />
[*] Use Shadow Passwords<br />
[*] Use MD5 Passwords<br />
[*] Use LDAP                   [ ] Use TLS<br />
Server: 192.168.1.100<br />
Base DN: dc=example,dc=com<br />
3) Create a home directory for ldap<br />
mkdir /home/ldapuser<br />
chmod 700 /home/ldapuser/<br />
chown ldapuser:users /home/ldapuser/<br />
ll /home<br />
cp /etc/skel/.* /home/ldapuser/<br />
chown ldapuser:users /home/ldapuser/.*</p>
<p>4)vi /usr/local/bin/addldapuser (adduser)<br />
#!/bin/bash<br />
grep $1 /etc/passwd &gt; /tmp/changeldappasswd.tmp<br />
/usr/share/openldap/migration/migrate_passwd.pl \<br />
/tmp/changeldappasswd.tmp /tmp/changeldappasswd.ldif.tmp<br />
cat /tmp/changeldappasswd.ldif.tmp | sed s/padl/example/ \<br />
&gt; /tmp/changeldappasswd.ldif<br />
ldapadd -x -D &#8220;cn=Manager,dc=example,dc=com&#8221; -W -f \<br />
/tmp/changeldappasswd.ldif<br />
rm -f /tmp/changeldappasswd.*</p>
<p>5)addldapuser ldapuser<br />
Create home directories for the user on all the LDAP client Linux boxes</p>
<p>6) vi/usr/local/bin/deleteldapuser<br />
#!/bin/bash<br />
ldapdelete -x -W -D &#8220;cn=Manager,dc=example,dc=com&#8221; \<br />
&#8220;uid=$1,ou=People,dc=example,dc=com&#8221;<br />
7)deleteldapuser ldapuser</p>
<p>8)vi /usr/local/bin/modifyldapuser<br />
#!/bin/bash<br />
grep $1 /etc/passwd &gt; /tmp/modifyldapuser.tmp<br />
/usr/share/openldap/migration/migrate_passwd.pl \<br />
/tmp/modifyldapuser.tmp /tmp/modifyldapuser.ldif.tmp<br />
cat /tmp/modifyldapuser.ldif.tmp | sed s/padl/example/ \<br />
&gt; /tmp/modifyldapuser.ldif<br />
ldapmodify -x -D &#8220;cn=Manager,dc=example,dc=com&#8221; -W -f \<br />
/tmp/modifyldapuser.ldif<br />
rm -f /tmp/modifyldapuser.*</p>
<p>9)passwd ldapuser<br />
modifyldapuser ldapuser</p>
<p>LDAP Web Management Tools<br />
The LDAP Account Manager (LAM) available at <a href="http://lam.sourceforge.net/">http://lam.sourceforge.net/</a><br />
=========================================================================<br />
TOMCAT server(JSP)</p>
<p>=======================================================================<br />
NTP Server<br />
<a href="http://www.eecis.udel.edu/~mills/ntp/servers.html">http://www.eecis.udel.edu/~mills/ntp/servers.html</a><br />
1) vi /etc/ntp.conf<br />
server otherntp.server.org<br />
server ntp.research.gov</p>
<p>restrict otherntp.server.org   mask 255.255.255.255 nomodify notrap noquery<br />
restrict ntp.research.gov      mask 255.255.255.255 nomodify notrap noquery</p>
<p>restrict 192.168.1.0 mask 255.255.255.0 notrust nomodify notrap<br />
restrict 127.0.0.1</p>
<p>2)ntpdate -u 192.168.1.100<br />
ntpq -p<br />
======================================================<br />
CLOCK<br />
<a href="http://www.nixcraft.com/uniqlinuxfeatures/tools/">http://www.nixcraft.com/uniqlinuxfeatures/tools/</a><br />
vivek-tech.com</p>
<p># $ clock &amp;<br />
#<br />
echo<br />
echo &#8220;Digital Clock for Linux&#8221;<br />
echo &#8220;To stop this clock use command kill pid, see above for pid&#8221;<br />
echo &#8220;Press a key to continue. . .&#8221;</p>
<p>while :<br />
do<br />
ti=`date +&#8221;%r&#8221;`<br />
echo -e -n &#8220;\033[7s"    #save current screen postion &amp; attributes<br />
#<br />
# Show the clock<br />
#</p>
<p>tput cup 0 69          # row 0 and column 69 is used to show clock</p>
<p>echo -n $ti            # put clock on screen</p>
<p>echo -e -n "\033[8u"   #restore current screen postion &amp; attributs<br />
#<br />
#Delay fro 1 second<br />
#<br />
sleep 1<br />
done<br />
find / -type f -perm +6000 -ls<br />
find / -perm -2 ! -type l -ls<br />
find / -nouser -o -nogroup<br />
====================================================================<br />
VPN<br />
ipsec-tools,openswan-2.1.4-1.fc2.i386.rpm<br />
chkconfig ipsec on<br />
ipsec verify</p>
<p>1)vi /etc/sysctl.conf<br />
net/ipv4/ip_forward = 1</p>
<p>2)sysctl -p</p>
<p>VPN Configuration Steps (Using RSA Keys)</p>
<p>Left Internet IP address of the left hand side VPN device<br />
Leftsubnet The network protected by the left hand side VPN device<br />
Leftid Fully Qualified Domain Name in DNS of the left hand side VPN<br />
device preceded by an "@" sign. If DNS hasn't been set up for<br />
the IP addresses, then you'll want to remove this entry as names<br />
that don't resolve correctly will cause the VPN initialization to fail.<br />
Leftrsasigkey The entire "left" RSA sig public key for the left hand side<br />
VPN device. This can be obtained by using the "ipsec showhostkey --left" command.<br />
Leftnexthop The next hop router from the left hand side VPN device when t<br />
trying to reach the right hand side VPN device. You may use an<br />
auto-generated variable "%defaultroute" which will be valid in most<br />
cases, or the actual IP address of the next hop router in cases where<br />
the next hop is not the default router.<br />
Right Internet IP address of the right hand side VPN device<br />
Rightsubnet The network protected by the right hand side VPN device<br />
Rightid Fully Qualified Domain Name in DNS of the right hand side VPN device<br />
preceded by an "@" sign. If DNS hasn't been set up for the IP<br />
addresses, then you'll want to remove this entry as names that don't<br />
resolve correctly will cause the VPN initialization to fail.<br />
Rightrsasigkey The entire "right" RSA sig public key for the right hand side<br />
VPN device. This can be obtained by using the "ipsec showhostkey --right" command.<br />
Rightnexthop The next hop router from the right hand side VPN device when<br />
trying to reach the right hand side VPN device. You may use an auto-generated<br />
variable "%defaultroute" which will be valid in most cases, or the actual<br />
IP address of the next hop router in cases where the next hop is not the default router.</p>
<p>Creating Your Own Keys<br />
ipsec rsasigkey --verbose 2048 &gt; keys.tmp</p>
<p>Get The Left Public Key<br />
ipsec showhostkey --left &gt; /tmp/left.pub</p>
<p>Get The Right Public Key<br />
ipsec showhostkey --right &gt; /tmp/right.pub<br />
1)The /etc/ipsec.conf file<br />
( It is important to maintain the indentation,<br />
The "net-to-net" sub sections must be the same in the<br />
/etc/ipsec.conf for both the left and right hand side VPN devices.<br />
There must be no blank lines in the net-to-net section between<br />
parameters. Lines commented with a "#" are acceptable<br />
Restarting IPSec to reload the configuration file doesn't<br />
necessarily restart the tunnels. If you set the "auto=" parameter<br />
to "add", the tunnel will only be started manually with the "ipsec"<br />
command. If the parameter is commented out then the tunnel will<br />
never start. A value of "start" will cause the tunnel to start<br />
automatically.)<br />
#<br />
# File: /etc/ipsec.conf<br />
#<br />
conn net-to-net<br />
left=97.158.253.25             # Public Internet IP address of the<br />
# LEFT VPN device<br />
leftsubnet=172.16.1.0/24       # Subnet protected by the LEFT VPN device<br />
<a href="mailto:leftid=@vpn1.my-site.com">leftid=@vpn1.my-site.com</a> # FQDN of Public Internet IP address of the<br />
# LEFT VPN device with an "@"<br />
leftrsasigkey=0sAQNrV9AYdaW94FXvIxu5p54+MRaW0wy0+HHQrdGofklZYQ4TCBlL+Ym00Ah<br />
fc8mqXlerZY12Os41G8SIV+zzIO04WZ4wmOvEr8DZaldTbfCuvUvMhrTtCpZdm53yF5rCaUbg+Vmx71<br />
fgyVmGu8/kuhzB7nWtOYqDFO8OHDGePOyOVPQi73KfRoDbdb3ND0EtfnRhRPblKJ239OlIq1<br />
leftnexthop=%defaultroute      # correct in many situations<br />
right=6.25.232.1               # Public Internet IP address of<br />
# the RIGHT VPN device<br />
rightsubnet=10.0.0.0/24        # Subnet protected by the RIGHT VPN device<br />
<a href="mailto:rightid=@vpn2.another-site.com">rightid=@vpn2.another-site.com</a> # FQDN of Public Internet IP address of the<br />
# RIGHT VPN device with an "@"<br />
rightrsasigkey=0sAQNNdxFPWCga+E/AnDgIM+uIDq4UXcZzpomwMFUpyQ9+rhUHT9w8nr3rjU<br />
R/qTZOKR2Vqd4XoBd1HkPDBQ8oNjtA3Oz+UQOU3KTMHN5ydFwe6MpTJV/hL6LvhB0OXQad/NhjMIx8v<br />
OnhM8g8SPRnj7pL3abgu7Sg7eFREV1MJSVBhp0DJ0EbVMVV+Xvwlm9++9zbY3mlc+cSXMPAJZ<br />
rightnexthop=97.158.253.25     # correct in many situations<br />
auto=start                     # authorizes and starts this connection<br />
# on booting<br />
2) service ipsec restart</p>
<p>3)Initialize The New Tunnel<br />
ipsec auto --up net-to-net</p>
<p>4)Possible Changes To IP Tables NAT/Masquerade Rules<br />
If you are running iptables with masquerading/NAT the VPN devices<br />
then you will have to exclude packets traversing the tunnel from<br />
the NAT operation. This example assumes that interface eth0 is the<br />
Internet facing interface on your Linux VPN/firewall.</p>
<p>Left Hand Side VPN Device<br />
Old<br />
iptables -t nat -A POSTROUTING -o eth0 -s 172.168.1.0/24 -j MASQUERADE</p>
<p>New<br />
iptables -t nat -A POSTROUTING -o eth0 -s 172.168.1.0/24 -d \! 10.0.0.0/24 -j MASQUERADE</p>
<p>Right Hand Side VPN Device<br />
Old<br />
iptables -t nat -A POSTROUTING -o eth0 -s 10.0.0.0/24 -j MASQUERADE</p>
<p>New<br />
iptables -t nat -A POSTROUTING -o eth0 -s 10.0.0.0/24 -d \! 176.16.1.0/24 -j MASQUERADE</p>
<p>5)How To Ensure Openswan Starts When Rebooting<br />
If your VPN sub- section in the /etc/ipsec.conf file has the line "auto=add"<br />
in it then IPSec will only authorize but won't establish the connection at<br />
startup. You'll have to use the "ipsec auto --up &lt;vpn-name&gt;" command to start it manually.<br />
You'll need to change this to "auto=start" for openswan to automatically<br />
start the VPN when IPSec restarts or when the system reboots.</p>
<p>6)Using Pre-Shared Keys (PSK)<br />
ipsec ranbits --continuous 128</p>
<p>7)Update /etc/ipsec.secrets<br />
vpn1-ip-address vpn2-ip-address : PSK "key in quotations"<br />
97.158.253.25 6.25.232.6 : PSK "nonebutourselvescanfreeourminds"</p>
<p>8)Update /etc/ipsec.conf<br />
authby=secret                # Key exchange method<br />
auto=start                   # authorizes and starts this connection</p>
<p>=============================================================================<br />
Tripwire<br />
config file= /etc/tripwire/twcfg.txt<br />
policy file= /etc/tripwire/tw.opl<br />
database =/var/lib/tripwire/$hostname.twd</p>
<p>1) /etc//tripwire/twinstall.sh<br />
/sbin/tripwire --init<br />
/sbin/tripwire --start</p>
<p>2)integrity check<br />
/sbin/tripwire --check</p>
<p>Report<br />
twprint -m r --twrfile /var/lib/tripwire/report/&lt;name.twr</p>
<p>viewing  tripwire database<br />
twprint -m -d --print -dbfile |less</p>
<p>updating policy<br />
twadmin --print-palfile&gt;/etc/tripwire/twpol.txt</p>
<p>specific files<br />
twprint -m -d --print -dbfile /etc/hosts</p>
<p>tripwire --update --twfile /var/lib/tripwire/report/name.twr<br />
=======================================================================<br />
PAM<br />
=======================================================================<br />
Process Accounting<br />
pcacct*.rpm<br />
$ac=/var/log/wtmp<br />
$action:process account off or on<br />
$accton /var/log/pacct<br />
lastcomm<br />
sa=summarize<br />
sa /var/log/savacct<br />
sa /var/log/usracct</p>
<p>gtop,kpm,xosview,xload,xsysinfo,top</p>
<p>=======================================================================<br />
TCP Wrappers<br />
vi /etc/host.allow<br />
vi /etc/host.deny<br />
&lt;daemonlist&gt;:&lt;clientlist&gt;[:&lt;option&gt;:&lt;options&gt;...]</p>
<p>&lt;daemonlist&gt;=processname(not service) /ALL<br />
&lt;clientlist&gt;=hostname/IP<br />
&lt;option&gt;=allow,deny,alter</p>
<p>vi /etc/host.allow<br />
vsftpd:.example.com<br />
sshd:.example.com\<br />
:spawn /bin/echo `\bin\date` access denied&gt;&gt;/var/log/sshd.log :deny</p>
<p>WILD CARDS<br />
ALL,LOCAL,KNOWN,UNKNOWN,PARANOID(host &amp;ip donot match)</p>
<p>ALL;.example.com<br />
ALL:192.168.<br />
ALL:192.168.0.0/255.255.255.0<br />
in.telnetd:/etc/telnets.hosts<br />
ALL:.example.com EXCEPT sabin.example.com<br />
ALL EXCEPT vsftpd:192.168.0</p>
<p>deny<br />
sshd:.example.com:servrity emerg<br />
sshd:example.com:severity local0.alert</p>
<p>sshd:client1.nepal.com:allow<br />
sshd:client2.nepal.com:deny</p>
<p>Spawn ,twist<br />
in.telnetd:example.com\<br />
:spawn \bin\echo \bin\date from %h&gt;&gt;/var/log/telnet:allow<br />
vsftpd:.example.com\<br />
twist /bin/echo &#8220;bod guy go away&#8221;</p>
<p>=======================================================================<br />
Xinetd<br />
/etc/xinetd.conf<br />
/etc/xinetd.d/<br />
LOG_ON_SUCCESS.LOG_ON_FAILURE,<br />
ATTEMPT,DURATION,EXIT,HOST,PID,RECORD,USERID,</p>
<p>only_from,no_access,access_times(HH:MM-HH:MM)<br />
service telnet<br />
{<br />
disable=no<br />
flags=reuse<br />
socket_type=stream<br />
wait =no<br />
user=root<br />
server=/usr/sbin/in/telnet.d<br />
log_on_failure +=USERID<br />
no_access=192.168.0.0/24<br />
log_on_success +=PID HOST EXIT<br />
access_times=9:00-1600<br />
}<br />
NAT<br />
bind =123.123.123.123<br />
redirect=10.10.10.12 21 23</p>
<p>per_source(no of instances)<br />
cps=max connection per second<br />
max_load=cp usage thereshold for a service</p>
<p>=======================================================================<br />
IPtables<br />
=======================================================================<br />
Selinux<br />
*/selinux filesystem<br />
access<br />
context<br />
create<br />
enforce<br />
load<br />
policyvers<br />
relabel<br />
user</p>
<p>*security.selinux<br />
getfattr -m . -d /etc/passwd<br />
1) Permissive mode<br />
2) Rebuilding policies<br />
3) Labeling files<br />
4) Routine system administration (changing roles,<br />
adding users, and checking file contexts)<br />
5) Monitoring SELinux through log files<br />
6) Miscellaneous troubleshooting</p>
<p>1)System Modes and SELinux Tuning<br />
+ permissive mode that’s useful for policy troubleshooting and system maintenance.<br />
permissive mode is used when configuring, testing, and troubleshooting SELinux<br />
and the SELinux security policy. Under permissive mode, SELinux permits all operations,<br />
even those that violate the SELinux security policy.<br />
+ enforcing mode (sometimes called enforcement mode). Enforcing mode is the<br />
normal mode of SELinux operation. Under enforcing mode, operations that violate<br />
the SELinux security policy are prevented.</p>
<p>a) Switching the SELinux mode<br />
kernel /vmlinuz-2.6.4-1.305 ro root=LABEL=/ enforcing=1<br />
append=&#8221;enforcing=0&#8243;(lilo)</p>
<p>To enter enforcing mode, issue the command:<br />
echo &#8220;1&#8243; &gt; /selinux/enforce</p>
<p>Similarly, to enter permissive mode, issue the command:<br />
echo &#8220;0&#8243; &gt; /selinux/enforce</p>
<p>setenforce 0<br />
getenforce<br />
vi /etc/selinux<br />
To disable (boot parameter<br />
selinux=0<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
2) Loading a security policy<br />
rpm=checkpolicy,selinux*<br />
/etc/selinux/src/policy<br />
Make target Compiles the policy from source? Installs the policy? Loads or reloads the policy?<br />
policy Yes No No<br />
install Yes Yes No<br />
load Yes Yes Yes<br />
reload Yes Yes Yes<br />
relabel No No No</p>
<p>a)su -<br />
b)newrole -r sysadm_r<br />
c)cd /etc/selinux/src/policy<br />
d)make target<br />
e)make reload<br />
checkpolicy=The SELinux policy compiler<br />
load_policy=A utility that loads the SELinux binary policy into the running kernel<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
3) Labeling files<br />
a)su -<br />
newrole -r sysadm_r<br />
cd /etc/selinux/src/policy<br />
make relabel</p>
<p>usr/bin/chcon<br />
Labels one or more files with a specified security context<br />
chcon system_u:object_r:etc_t /etc/hosts /etc/hosts.allow</p>
<p>/sbin/fixfiles<br />
Labels all available filesystems according to the contents of the standard specification<br />
file, src/policy/file_contexts/file_contexts<br />
fixfiles check</p>
<p>/sbin/restorecon<br />
Labels one or more files according to the contents of the standard specification<br />
file, src/policy/file_contexts/file_contexts<br />
restorecon /etc/hosts</p>
<p>/usr/sbin/setfiles<br />
Labels one or more files or filesystems according to the contents of a specification<br />
file<br />
setfiles src/policy/file_contexts/file_contexts /etc/hosts</p>
<p>Tuning Fedora Core 2 SELinux<br />
Fedora Core 2 implementation of<br />
SELinux provides two convenient ways of tailoring SELinux operation:<br />
i) Macros<br />
ii) Policy Booleans</p>
<p>i)Macros<br />
src/policy/tunable.te</p>
<p>Policy macro      Active by default?         Description<br />
allow_user_direct_mouse Yes Allow regular users direct access to the mouse device file<br />
(otherwise allow only the X server to do so).<br />
allow_user_dmesg Yes Allow users to run the dmesg command<br />
allow_user_tcp_server Yes Allow users to run TCP servers (bind to ports and accept<br />
connection from the same domain and outside users).<br />
Disabling this Boolean forces FTP passive mode and may<br />
affect other protocols (including IRC if single_<br />
userdomain is defined).<br />
allow_xserver_home_fonts Yes Allow X server to check for fonts in ~/.gnome or ~/.kde.<br />
allow_ypbind Yes Allow ypbind to run with NIS.<br />
direct_sysadm_daemon Yes Allow sysadm_t to start daemons directly.<br />
ftp_home_dir No Allow FTP to read/write files in user home directories.<br />
ftpd_is_daemon Yes Allow FTP to run from inetd instead of as a stand-alone<br />
daemon.<br />
hide_broken_symptoms No Adds dontaudit rules for broken polices that are not<br />
security risks.<br />
nfs_export_all_ro No Allow reading on any filesystem.<br />
nfs_export_all_rw Yes Allow read/write/create on any filesystem.<br />
nfs_home_dirs Yes Allow NFS home directories.<br />
nscd_all_connect Yes Allow all domains to access NSCD.<br />
read_default_t Yes Allow ordinary users to read any file having type<br />
default_t.<br />
readhome Yes Allow Mozilla to read files in the user home directory.<br />
run_ssh_inetd No Allow SSH to run from inetd instead of as a daemon.<br />
secure_levels No Allow only administrator to log in at the console and forbid<br />
direct access to disk devices.<br />
single_userdomain No Make processes other than newrole and su run by a user<br />
domain stay in the same user domain.<br />
ssh_sysadm_login Yes Allow SSH logins to the sysadm_r:sysadm_t security<br />
context; otherwise, remote SSH users cannot enter this<br />
context.<br />
staff_read_sysadm_file No Allow staff_r users to search the system administrator’s<br />
home directory (generally /root) and read its files.<br />
unlimitedServices Yes Allow processes under initrc and xinetd to run with<br />
all privileges.<br />
unlimitedUsers No Allow users to have full access.<br />
unrestricted_admin Yes Allow sysadm_t to do almost everything.<br />
use_games Yes Allow users to run games.<br />
user_can_mount Yes Allow users to execute mount command.<br />
user_canbe_sysadm Yes Allow normal users to enter sysadm_r role.<br />
user_net_control Yes Allow users to control network interfaces (also needs<br />
USERCTL=true).<br />
user_rw_noexattrfile Yes Allow users to read/write noextattrfile (FAT,<br />
CDROM, FLOPPY).<br />
writehome Yes Allow Mozilla to write files in the user home directory.<br />
xdm_sysadm_login Yes Allow xdm logins as sysadm_r:sysadm_t.</p>
<p>a)vi /etc/selinux/src/policy.<br />
b)edit tunable.te<br />
c)make reload.<br />
ii)Tuning via policy Booleans<br />
change_bool boolean [0|1]<br />
show_bools</p>
<p>change_bool user_ping 0</p>
<p>show_bools<br />
user_ping &#8211;&gt; active: 0 pending: 0</p>
<p>echo 0 &gt; /selinux/booleans/user_ping<br />
echo 1 &gt; /selinux/commit_pending_bools<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
4)Routine SELinux System Use and Administration<br />
a) Entering a role<br />
b) Viewing security contexts<br />
c) Adding users and groups<br />
d) Starting and controlling daemons<br />
e) Tuning SELinux</p>
<p>a) Entering a role<br />
SELinux users have one or more associated<br />
roles and, at any time, are bound to exactly<br />
one of these. Users are initially bound to<br />
a role at login time.<br />
$sestatus<br />
# sestatus -v</p>
<p>The standard SELinux security policy defines four roles:<br />
*staff_r<br />
Used for users permitted to enter the sysadm_r role<br />
*sysadm_r<br />
Used for the system administrator<br />
*system_r<br />
Used for system processes and objects<br />
*user_r<br />
Used for ordinary users</p>
<p>Changing roles<br />
newrole [[-r|--role] ROLE] [[-t|--type] TYPE] [-- [ARGS]&#8230;]<br />
newrole -r role<br />
#newrole -r sysadm_r</p>
<p>b) Viewing security contexts<br />
# id -Z<br />
ls &#8211;context /etc/hosts<br />
ls &#8211;lcontext /etc/hosts<br />
ls &#8211;scontext /etc/hosts<br />
ls -Z /etc/hosts<br />
ps -Z<br />
ps &#8211;context<br />
ps -Z 1</p>
<p>c) Adding users and groups<br />
users’ home directories are labeled with<br />
the special security context user_home_dir_t.<br />
# id -Z<br />
# newrole -r sysadm_r<br />
# id -Z<br />
# useradd -c &#8220;test user&#8221; -m -d /home/testuser \<br />
-g users -s /bin/bash testuser<br />
# finger testuser<br />
# ls -ld -Z /home/testuser/</p>
<p>Associating a user with a nondefault role<br />
By default, users are associated with<br />
the SELinux role user_r<br />
i. Edit the src/policy/users file.<br />
ii. Recompile the security policy.<br />
iii. Load the generated binary policy file into the kernel.<br />
cd /etc/selinux/src/policy<br />
vi users<br />
user username roles { staff_r sysadm_r };<br />
make target<br />
make reload</p>
<p>user:role:type.<br />
the src/policy/appconfig/default_contexts file specifies<br />
default roles for user logins, SSH sessions, and cron jobs.<br />
system_r:sulogin_t sysadm_r:sysadm_t<br />
system_r:local_login_t staff_r:staff_t user_r:user_t sysadm_r:sysadm_t<br />
system_r:remote_login_t user_r:user_t staff_r:staff_t<br />
system_r:sshd_t user_r:user_t staff_r:staff_t sysadm_r:sysadm_t<br />
system_r:crond_t user_r:user_crond_t staff_r:staff_crond_t<br />
sysadm_r:sysadm_crond_t system_r:system_crond_t mailman_r:user_crond_t<br />
system_r:xdm_t staff_r:staff_t user_r:user_t sysadm_r:sysadm_t<br />
staff_r:staff_su_t staff_r:staff_t user_r:user_t sysadm_r:sysadm_t<br />
sysadm_r:sysadm_su_t staff_r:staff_t user_r:user_t sysadm_r:sysadm_t<br />
user_r:user_su_t staff_r:staff_t user_r:user_t sysadm_r:sysadm_t<br />
sysadm_r:sudo_t sysadm_r:sysadm_t<br />
staff_r:sudo_t sysadm_r:sysadm_t staff_r:staff_t<br />
user_r:sudo_t sysadm_r:sysadm_t user_r:user_t</p>
<p>Setting user passwords<br />
vipw, vi,<br />
to repair the file label<br />
restorecon /etc/shadow</p>
<p>d) Starting and controlling daemons<br />
run_init script [[arg]&#8230;]<br />
run_init /etc/init.d/ntpd start</p>
<p>NOTE<br />
By default, Fedora Core 2 allows a role transition<br />
from sysadm_r to system_r, the role used by init.<br />
Therefore, unless you’ve specially configured Fedora<br />
Core 2 to disable this transition, it’s not necessary<br />
to invoke the run_init command explicitly.</p>
<p>runcon -u system_u -r system_r -t crond_t /usr/sbin/crond<br />
runcon system_u:system_r:crond_t /usr/sbin/crond</p>
<p>e) Tuning SELinux<br />
LOG Format<br />
avc: result { operation } for pid=pid exe=exe<br />
path=opath dev=devno:ptno ino=node<br />
scontext=source tcontext=target tclass=class</p>
<p>*result=The value granted or denied, indicating whether<br />
SELinux permitted or prohibitedthe operation.<br />
*operation=The operation that was attempted, such as<br />
read or write. SELinux defines about 150 operations.<br />
*pid=The process ID of the process that attempted the operation.<br />
*exe=The absolute path of the text file (executable) associated<br />
with the process that attempted the operation.<br />
*path=The absolute path of the object on which the operation was attempted.<br />
*devno=The block device number associated with the<br />
object on which the operation was attempted.<br />
*ptno=The partition number associated with the object<br />
on which the operation was attempted.<br />
*node=The inode number of the object on which the operation was attempted.<br />
*source=The security context of the process that<br />
attempted the operation.<br />
*target=The security context of the target object.<br />
*class=The type of the target object, such as file.</p>
<p>SELinux Logging Subtleties(reduce log)<br />
Change to the policy source directory and<br />
reload the security policy:<br />
cd /etc/security/selinux/src/policy<br />
make reload<br />
or<br />
setenforce 1<br />
setenforce 0</p>
<p>Audit2allow=that scans the system log, looking for<br />
entries pertaining to denied operations</p>
<p>(if login,daemon problem problem)<br />
fixfiles restore<br />
cd /etc/security/selinux/src/policy<br />
setfiles file_contexts/file_contexts /home/bill</p>
<p>cd /etc/security/selinux/src/policy<br />
setfiles file_contexts/file_contexts cron_files</p>
<p>cd /etc/security/selinux/src/policy<br />
setfiles file_contexts/file_contexts /etc/init.d/*</p>
<p>Xwindow problem<br />
rm /var/tmp* files</p>
<p>=======================================================================<br />
Instalation Server<br />
1) Make directory<br />
mkdir -p /data/network-install/Fedora/base<br />
mkdir -p /data/network-install/Fedora/RPMS<br />
mkdir -p /data/network-install/ISO</p>
<p>2) Copy the files<br />
cd /mnt/cdrom/Fedora/base<br />
cp -r * /data/network-install/Fedora/base</p>
<p>(copy 4 cd into /data/network-install)</p>
<p>cd /data/network-install/ISO<br />
dd if=/dev/cdrom of=FC2-i386-disc1.iso bs=32k<br />
eject cdrom<br />
dd if=/dev/cdrom of=FC2-i386-disc2.iso bs=32k<br />
eject cdrom<br />
dd if=/dev/cdrom of=FC2-i386-disc3.iso bs=32k<br />
eject cdrom<br />
dd if=/dev/cdrom of=FC2-i386-disc4.iso bs=32k<br />
eject cdrom</p>
<p>another method using mkisofs<br />
mkisofs -J -r -T -o filename.iso /mnt/cdrom</p>
<p>3)Setup Your Webserver ftp &amp; nfs<br />
NameVirtualHost 192.168.1.100<br />
&lt;VirtualHost 192.168.1.100&gt;<br />
DocumentRoot /data/<br />
&lt;Directory /data/network-install&gt;<br />
Options +Indexes<br />
AllowOverride AuthConfig<br />
order allow,deny<br />
allow from all<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</p>
<p>FTP<br />
vi /etc/vsftpd/vsftpd.conf<br />
anon_root=/data/network-install/</p>
<p>NFS<br />
vi /etc/exports<br />
/data/network-install          *(ro,sync)<br />
exportfs -ra</p>
<p>4)Configure DHCP Server</p>
<p>5)Boot form fedora core cd1<br />
boot:linux askmethod<br />
or boot from boot floppy<br />
Kick Start<br />
1)&#8221;ksconfig&#8221; command from a GUI console<br />
2)save it in /data/network-install/ks.cfg<br />
or can use /root/anaconda-ks.cfg<br />
3)to veryfy<br />
install<br />
nfs &#8211;server=192.16.1.100 &#8211;dir=/data/network-install/ISO<br />
install<br />
url &#8211;url <a href="http://192.168.1.100/network-install/">http://192.168.1.100/network-install/</a><br />
4) To install<br />
NFS Method<br />
boot: linux ks=nfs:192.168.1.100:/data/network-install/ks.cfg</p>
<p>HTTP Method<br />
boot: linux ks=http://192.168.1.100/network-install/ks.cfg</p>
<p>DHCP<br />
vi /etc/dhcpd.conf<br />
filename &#8220;/data/network-install/ks.cfg&#8221;;<br />
next-server 192.168.1.100;</p>
<p>boot: linux ks</p>
<p>Floppy<br />
boot:linux ks=floppy</p>
<p>=======================================================================<br />
Encrypting swat or other ports like pop3,smtp<br />
1)useradd stunnel<br />
2)cd /usr/share/ssl/certs<br />
make stunnel.pem<br />
chmod 640 stunnel.pem<br />
chgrp stunnel stunnel.pem</p>
<p>3)vi /etc/stunnel/stunnel.conf<br />
# Configure stunnel to run as user &#8220;stunnel&#8221; placing temporary<br />
# files in the /home/stunnel/ directory<br />
chroot  = /home/stunnel/<br />
pid     = /stunnel.pid<br />
setuid  = stunnel<br />
setgid  = stunnel</p>
<p># Log all stunnel messages to /var/log/messages<br />
debug   = 7<br />
output  = /var/log/messages</p>
<p># Define where the SSL certificates can be found.<br />
client  = no<br />
cert    = /usr/share/ssl/certs/stunnel.pem<br />
key     = /usr/share/ssl/certs/stunnel.pem</p>
<p># Accept SSL connections on port 901 and funnel it to<br />
# port 902 for swat.<br />
[swat]<br />
accept   = 901<br />
connect  = 902</p>
<p>4) cd /etc/xinetd.d<br />
cp swat swat-stunnel</p>
<p>vi swat-stunnel<br />
service swat-stunnel<br />
{<br />
port            = 902<br />
socket_type     = stream<br />
wait            = no<br />
only_from       = 127.0.0.1<br />
user            = root<br />
server          = /usr/sbin/swat<br />
log_on_failure  += USERID<br />
disable         = no<br />
bind            = 127.0.0.1<br />
}<br />
disable 901 port in /etc/services<br />
chkconfig swat off<br />
chkconfig swat-stunnel on</p>
<p>5)start stunnel<br />
$stunnel<br />
(if problem  rpm -e hwcrypto)</p>
<p>6)Test<br />
<a href="https://server-ip-address:901/">https://server-ip-address:901/</a></p>
<p>========<br />
Stunneling pop<br />
1) /var/share/ssl/certs/stunnel.pem<br />
$openssl -req -new -newkey rsa:1024 -nodes \<br />
-x509 -keyout /tmp/key -out /tmp/cert<br />
cat /tmp/cert&gt;&gt;/tmp/key<br />
mv /tmp/key /usr/share/ssl/certs/stunnel.pem<br />
rm /tmp/cert<br />
chmod 600 /usr/share/ssl/certs/stunnel.pem<br />
or<br />
cd /usr/share/ssl/certs<br />
make stunnel.pem</p>
<p>2) vi /etc/xinet.d/pos3s<br />
server=/usr/sbin/stunnel<br />
server_args= -1 /usr/sbin/ipop3d &#8211;ipop3d</p>
<p>telnet<br />
stunnel -d localhost:7023 -r localhost:23</p>
<p>stunnel -c  -d localhost:12345 -r server1.nepal.com:7023<br />
telnet localhost 12345<br />
=======================================================================</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sabinshrestha.com.np/linux-downloads/linux-admin-note/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Future OF User Interfaces</title>
		<link>http://www.sabinshrestha.com.np/sabincat/180/</link>
		<comments>http://www.sabinshrestha.com.np/sabincat/180/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 16:30:42 +0000</pubDate>
		<dc:creator>sabin</dc:creator>
				<category><![CDATA[Sabin Personel]]></category>
		<category><![CDATA[interface]]></category>
		<category><![CDATA[nepal]]></category>
		<category><![CDATA[sabin shrestha]]></category>

		<guid isPermaLink="false">http://www.sabinshrestha.com.np/?p=180</guid>
		<description><![CDATA[Citation of Interesting article written by Cameron Chapman about the Future of User Interfaces. User interfaces—the way we interact with our technologies—have evolved a lot over the years. From the original punch cards and printouts to monitors, mouses, and keyboards, all the way to the track pad, voice recognition, and interfaces designed to make it [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sabinshrestha.com.np/wp-content/uploads/2010/03/the_future_of_user_interfaces.jpg"><img class="size-full wp-image-181 alignleft" title="the_future_of_user_interfaces" src="http://www.sabinshrestha.com.np/wp-content/uploads/2010/03/the_future_of_user_interfaces.jpg" alt="" width="578" height="200" /></a><br />
Citation  of Interesting article written by Cameron Chapman about the Future of User Interfaces.</p>
<p>User interfaces—the way we interact with our technologies—have evolved a lot over the years.</p>
<p>From the original punch cards and printouts to monitors, mouses, and keyboards, all the way to the track pad, voice recognition, and interfaces designed to make it easier for the disabled to use computers, interfaces have progressed rapidly within the last few decades.</p>
<p>But there’s still a long way to go and there are many possible directions that future interface designs could take. We’re already seeing some start to crop up and its exciting to think about how they’ll change our lives.</p>
<p>In this article are than a dozen potential future user interfaces that we’ll be seeing over the next few years (and some further into the future).</p>
<p>Brain-Computer Interface<br />
Army Mind-Control Projects<br />
The Matrixesque Brain Interface: MEMS-Based Robotic Probe<br />
OCZ’s Neural Impulse Actuator<br />
Biometric and Cybernetic Interfaces<br />
Warfighter Physiological Status Monitoring<br />
Fingerprint Scanners<br />
Digital Paper and Digital Glass<br />
Transparent OLED Display<br />
LG 19″ Flexible Display<br />
E-Ink<br />
Telepresence<br />
Telepresence Surgery<br />
Universal Control System<br />
Space Exploration and Development<br />
Augmented Reality<br />
Augmented Reality in a Contact Lens<br />
Wearable Retinal Display<br />
Heads-Up Display<br />
Privacy Concerns with Augmented Reality<br />
Voice Control<br />
BMW Voice Control System<br />
Google Voice Search<br />
Gesture Recognition<br />
Acceleglove: Gloves that Recognize Sign Language<br />
Gesture-Based Control for TVs<br />
Nintendo Wii<br />
Xbox Project Natal<br />
Head and Eye Tracking<br />
Gran Turismo 5<br />
Pseudo-3D with a Generic Webcam<br />
Artificial Intelligence<br />
Cyber Security Knowledge Transfer Network<br />
AI for Adaptive Gaming<br />
AI for Mission Control<br />
Virtual Assistants<br />
Multi-Touch<br />
Microsoft Surface<br />
Apple Products<br />
Mobile Phones</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sabinshrestha.com.np/sabincat/180/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>System integrity using Files, Permissions, Processes, Root and Sudo</title>
		<link>http://www.sabinshrestha.com.np/sabincat/system-integrity-using-files-permissions-processes-root-and-sudo/</link>
		<comments>http://www.sabinshrestha.com.np/sabincat/system-integrity-using-files-permissions-processes-root-and-sudo/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 19:35:22 +0000</pubDate>
		<dc:creator>sabin</dc:creator>
				<category><![CDATA[Sabin Personel]]></category>

		<guid isPermaLink="false">http://www.sabinshrestha.com.np/?p=179</guid>
		<description><![CDATA[To be a good in system administration, we have to understand the basics of files, processes and permissions of our Linux/Unix hosts. Therefore, in this article, we will cover the basic stuffs regarding files, processes, permissions, the SUPERUSER “root” account and the sudo program. Every file and process on a Linux/Unix system is owned by [...]]]></description>
			<content:encoded><![CDATA[<p>To be a good in system administration, we have to understand the basics of files, processes and permissions of our Linux/Unix hosts. Therefore, in this article, we will cover the basic stuffs regarding files, processes, permissions, the SUPERUSER “root” account and the sudo program.</p>
<p>Every file and process on a Linux/Unix system is owned by a particular user account. Every file has both an owner and a group owner. What this means is that the owner of the file enjoys one special property that is not shared with everyone on the system. This property is the ability to modify the permissions of the file.</p>
<p>Other users on the system can’t access files belonging to others without the owner’s permission, so this restriction helps protect a user’s files against “malicious” users!</p>
<p>Please note that all credits for this article goes to the authors of the book called “LINUX ADMINISTRATION HANDBOOK”. I recommend this book for all levels of system administrators. It can be accessed from the site http://www.admin.com</p>
<p>Having said that, although the owner of a file can always be a single person, many people can be group owners of the file if they are all part of a single Linux/Unix group. Groups are defined in the /etc/group file.</p>
<p>Ownerships of a file can be shown with the ls -l filename command as shown below:</p>
<p>-bash-3.00$ ls -l /export/home/tek/records<br />
-rw-r–r– 1 tek wheel 869 Jan 4 14:43 /export/home/tek/records</p>
<p>As seen above, the file named records is owned by the user “tek” and the group “wheel”.</p>
<p>Linux/Unix in reality keeps track of owners and groups represented by numbers rather than as text names. User identification numbers (UIDs) are mapped to user names in the /etc/passwd file and Group identification numbers (GIDs) are mapped to group names in the /etc/group file.</p>
<p>The text names that corresponds to UIDs and GIDs are designed only for the convenience of the system’s human users! Next time a command such as ls are issued which displays ownership information, then the files /etc/passwd and /etc/group are queried.</p>
<p>Processes</p>
<p>A process is the term used by Linux/Unix to represent a running program through which the running program’s use of memory, processor time, and I/O resources can be managed.</p>
<p>Unlike files, processes have not two but four identities associated with them. They are a real and effective UID and a real and effective GID. The “real” numbers are used for accounting purposes, and the “effective” numbers are used for the determination of access permissions.</p>
<p>Superuser or root privilege UID (SUID) is always equal to 0 (zero).</p>
<p>For example, the Real UID (RUID) is the UID of the process that created the process itself. It can be changed only if the running process has Effective UserID (EUID)=0.</p>
<p>The effective UID (EUID) is used to evaluate privileges of the process to perform a particular action. EUID can be changed either to Real UserID (RUID), or SUID if EUID is not equal to 0. If EUID=0, it can be changed to anything.</p>
<p>Most of the time, the real and effective numbers are the same.</p>
<p>The owner of a process can send the process signals such as kill and can also reduce the process scheduling priority.</p>
<p>Under normal circumstances, it is not possible for a process to change it’s 4 ownership credentials. There is a special situation in which the effective user (EUID) and group ID (EGID) can and needs to be changed.</p>
<p>When a command which has the “setuid” or “setgid” permissions is executed, the effective UID (EUID) or GID (EGID) of the resulting process can be set to the UID or GID of the file containing the program image rather than the UID or GID of the user executing the command.</p>
<p>For example, let us look at the program called “passwd“.</p>
<p>-bash-3.00$ ls -l /usr/bin/passwd<br />
-r-sr-sr-x 1 root sys 22620 Jan 23 2005 /usr/bin/passwd</p>
<p>As you know it, passwd is the command used for changing the passwords for a given user in a Linux/Unix environment.</p>
<p>As can be seen above, the UID and GID permissions are set to root and sys respectively. How is it possible for a normal user to run this program then? Well that’s what we called the “setuid” or “setgid” permissions!</p>
<p>The normal user’s privileges are thus “promoted” for the execution of that specific command only. Hence Linux/Unix’s setuid facility allows programs run by normal users to make use of the root account in a very limited way.</p>
<p>As in the passwd command example below, we can see the “setuid” permissions in action:</p>
<p>-bash-3.00$ /usr/bin/passwd tek<br />
Enter existing login password:<br />
New Password:<br />
Re-enter new Password:<br />
passwd: password successfully changed for tek</p>
<p>Here we see the passwd command that users run to change their login password is a setuid program. The program passwd modifies the /etc/passwd file in a very well-defined way and then terminates. To prevent abuse, the passwd program requires the users to prove that they know the current password before it agrees to make the requested password change. Nice security!</p>
<p>ROOT: The SUPERUSER</p>
<p>What exactly is the root account? Why does it has a very special place in Linux/Unix systems? Well the main defining characteristic property of the root account is that it’s UID is set to 0 (zero).</p>
<p>Linux/Unix systems permit the superuser (that is root) to perform any valid operation on any file or process. In addition, some process issuing system calls or requests directly to the kernel can only be executed by the superuser.</p>
<p>Below are some restricted operations which can only be performed by the superuser (root):</p>
<p>    * Creating device files<br />
    * Setting the system’s hostname<br />
    * Configuring network interfaces<br />
    * Setting the system clock<br />
    * Raising resource usage limits and process priorities<br />
    * Shutting down the system</p>
<p>An example of superuser powers is the ability of a process owned by root to change it’s UID and GID. The login program and it’s window system equivalents like GDM and KDM are a case in point.</p>
<p>The login program that prompts you for your username and password when you log in to the system initially runs as root. If the username and password matches, the login program changes it’s UID and GID to your UID and GID and starts up your user environment. Once a root process has changed it’s ownerships to become a normal user process, it can never recover it’s former privileged state!</p>
<p>Therefore, it is extremely important for any system administrator to choose a very complex and secure password for the root user! I recommend a minimum of 8 characters with a mixture of Capital letters and numerical numbers! A warning has to be issued here, which is not to make the root’s password so complicated that you can’t remember it!</p>
<p>For remote administration, we obviously use the program called the Secure Shell (SSH) to manage our servers. For that matter, it is advisable to disable direct root access via SSH. To disable SSH to root user and set other security restrictions, at least enable/disable it’s parameters as shown below:</p>
<p>vi /etc/ssh/sshd_config</p>
<p>###Recommended values###</p>
<p># Listen port (Default is 22, but change is to a higher port above 1025!)<br />
Port 2012</p>
<p># Only v2 (recommended)<br />
Protocol 2</p>
<p># Port forwarding<br />
AllowTcpForwarding no</p>
<p># X11 tunneling options<br />
X11Forwarding no</p>
<p># Ensure secure permissions on users .ssh directory.<br />
StrictModes yes</p>
<p># Default is 600 seconds. 0 means no time limit.<br />
LoginGraceTime 120</p>
<p># Maximum number of retries for authentication<br />
# Default is 6. Default (if unset) for MaxAuthTriesLog is MaxAuthTries / 2<br />
MaxAuthTries 4<br />
MaxAuthTriesLog 3</p>
<p>PermitEmptyPasswords no</p>
<p>PermitRootLogin no<br />
###End of sshd_config###</p>
<p>BECOMING ROOT</p>
<p>A better way to access the root account is to use the su command. If invoked without any arguments, su will prompt for the root password and then start up a root shell. The privileges of this shell remain in effect until the shell terminates (Ctrl+D or the exit command).</p>
<p>su does not record the commands executed as root, but it does create a log entry that states who became root and when.</p>
<p>So we have to extra careful as to whom to give root’s password! It is also a good idea to get in the habit of typing the full pathname to the su command rather than relying on the shell to find the command for you!</p>
<p>-bash-3.00$ whereis su<br />
su: /sbin/su /sbin/su.static /usr/bin/su /usr/man/man1m/su.1m</p>
<p>Note: The exact location of the su command may differ from one system to another.</p>
<p>Next time you want to become root, simply type:</p>
<p>/usr/bin/su -</p>
<p>This will give you some protection against programs called su that may have been slipped into your search path with the intention of retrieving passwords.</p>
<p>sudo: a limited su</p>
<p>Since the privileges of the superuser account cannot be subdivided, it is hard to give someone the ability to do one task (backups) without giving that person the root privileges of the root account. Also if the SUPERUSER account is used by several administrators, you will have only a vague idea of who’s using it and doing what?</p>
<p>These types of problems can be resolved to some extent by a program called “sudo“. It is available in Debian, RedHat, SuSE, FreeBSD packages among other distributions.</p>
<p>For installation in Debian, it’s as simple as: apt-get install sudo</p>
<p>For Fedora and Centos, it’s: yum install sudo</p>
<p>For FreeBSD, you just make install in /usr/ports/security/sudo</p>
<p>sudo takes as it’s argument a command line to be executed as root (or as another restricted user). sudo consults the file /etc/sudoers, which lists the people who are authorized to use sudo and the commands they are allowed to run on the system.</p>
<p>If the proposed command is permitted for the user, sudo prompts the user’s own password and executes the command.</p>
<p>For example, suppose we have a normal user called “john” belonging to the “wheel” group. Under normal circumstances, user “john” can’t run the tcpdump command.</p>
<p>To give our normal user “john” the limited sudo access to the tcpdump command, we add the following entry in /etc/sudoers file.</p>
<p>(1.) vi /etc/sudoers</p>
<p>#Add the following</p>
<p>john, %wheel ALL= /sbin/, /usr/sbin, /usr/sbin/tcpdump</p>
<p>(2.) Save and exit.</p>
<p>If user “john” were to run the tcpdump command without sudo, it would resemble as:</p>
<p>john@localhost:~$ /usr/sbin/tcpdump<br />
tcpdump: no suitable device found</p>
<p>But for user “john” to run the tcpdump command, he simply types the following sudo command:</p>
<p>john@localhost:~$ sudo /usr/sbin/tcpdump</p>
<p>Password:<br />
sudo tcpdump</p>
<p>Running tcpdump using sudo</p>
<p>Hence in this way, we can give a normal user some privilege to run a command to which only a superuser is allowed to.</p>
<p>Please note that I have touched only the tip of the sudo program. However below is a summary of what you can achieve using sudo:</p>
<p>   1. Accountability is much improved because of command logging<br />
   2. Operators can do chores without unlimited root privileges<br />
   3. The real root password can only be known to one or few users<br />
   4. Privileges can be revoked without the need to change the root password<br />
   5. A single file /etc/sudoers can be used to control access for an entire network.</p>
<p>Linux/Unix Filesystem</p>
<p>In the Linux/Unix world, almost everything is represented by the file system. Processes, Serial ports, devices, you name it, is represented and managed via the file system.</p>
<p>In a nutshell, the filesystem can be summarized as:</p>
<p>   1. A namespace – a way of naming things and organizing them in a hierarchy<br />
   2. An API – a set of system calls for navigating and manipulating objects<br />
   3. A security model – a scheme for protecting, hiding, and sharing things<br />
   4. An implementation – software that ties the logical model to actual hardware</p>
<p>The filesystem is presented as a single unified hierarchy that starts at the directory / and continues downward through an arbitrary number of subdirectories. / is also called the root directory.</p>
<p>The list of directories that must be traversed to locate a particular file, together with it’s filename, form a “pathname”. Pathnames can be either absolute (/tmp/foo) or relative (mydocs/chap4) . Relative pathnames are interpreted starting at the current directory.</p>
<p>The terms file, filename, pathname, and path are more or less interchangeable. Filename and path can be used for both absolute and relative paths; pathnames generally suggests an absolute path.</p>
<p>The filesystem can be arbitrarily deep. However, each component of a pathname must have a name no more than 255 characters long, and a single path may not contain more than 4095 characters. To access a file with a pathname longer than 4095 characters, you must cd to an intermediate directory and use relative pathname.</p>
<p>There are no restrictions on the naming of files and directories, except that the names are limited in length and must not contain the “/” character or nulls. Spaces are permitted but because of UNIX’s long tradition of separating command-line arguments at whitespace, legacy software tends to break when spaces appear within filenames. However, these cases are very rare nowadays.</p>
<p>In shell and in scripts, spaceful filenames just need to be quoted to keep their pieces together. For example, the command:</p>
<p>-bash-3.00$ more “My very long file.txt”</p>
<p>would preserve My very long file.txt as a single argument to more command.</p>
<p>Below is a graphical summary representing the Linux/Unix File System:<br />
Linux File Structure</p>
<p>MOUNTING AND UNMOUNTING FILESYSTEMS</p>
<p>As seen on the diagram above, the filesystem is composed of smaller chunks – also called filesystems- each of which consists of one directory and it’s subdirectories and files. For clarity, we use the term “file tree” to refer to the overall layout of the filesystem and reserve the word “filesystem” for the chunks attached to the tree!</p>
<p>Most filesystems are disk partitions but they can be anything that obeys the proper API: network file servers, kernel components, memory-based disk emulators, etc.</p>
<p>Filesystems are attached to the tree with the mount command. mount maps a directory within the existing file tree, called the mount point, to the root of the newly attached filesystem.</p>
<p>For example on a Linux host,</p>
<p>root@localhost# mount /dev/hda4 /mbox</p>
<p>The above command will install the filesystem stored on the disk partition represented by /dev/hda4 under the path /mbox. You can then use command “ls /mbox” to see that filesystem’s contents.</p>
<p>On a Solaris host:</p>
<p># mount /dev/dsk/c2d0s6 /mbox</p>
<p>The above command will mount a secondary hard drive represented by /dev/dsk/c2d0s6 to the path /mbox in Solaris.</p>
<p>A list of the filesystems that are mounted on a particular system is kept in the /etc/fstab file in Linux/FreeBSD machines. On a Solaris machines, it is kept in the /etc/vfstab file.</p>
<p>The information contained in this file allows filesystems to be checked (fsck -A) and mounted (mount -a) automatically at boot time. It also serves as documentation for the layout of the filesystems on disk and enables short commands such as mount /var for which the location of the filesystem to mount is looked up in /etc/fstab or /etc/vfstab.</p>
<p>Filesystems are detached with the umount command. You cannot unmount a filesystem that is “busy” or in use! There must not be any open files or processes whose current directories are located on that filesystem, and if the filesystem contains executable programs, they cannot be running!</p>
<p>When you are trying to umount a filesystem and the kernel complains that the filesystem is busy, you can run fuser to find out why.</p>
<p>For example, running the df -h command below shows:</p>
<p>Linux df command</p>
<p>df -h command</p>
<p>Viewing the contents of /etc/fstab:</p>
<p>Linux /etc/fstab</p>
<p>Linux /etc/fstab</p>
<p>If we try to umount /usr :</p>
<p>umount /usr busy</p>
<p>umount /usr showing as busy!</p>
<p>Running fuser -mv /usr:</p>
<p>fuser -mv /usr</p>
<p>“fuser -mv” command showing why /usr can’t be unmounted</p>
<p>File Types and Permissions</p>
<p>Linux/Unix defines seven (7) types of files. They are defined as follows:</p>
<p>   1. Regular files<br />
   2. Directories<br />
   3. Character device files<br />
   4. Block device files<br />
   5. Local domain sockets<br />
   6. Named pipes (FIFOs)<br />
   7. Symbolic links</p>
<p>We can determine the type of an existing file with the ls -ld command. The first (1st) character of the ls output encodes the type of file.</p>
<p>For example,</p>
<p># ls -ld /etc/ssh</p>
<p>drwxr-xr-x 2 root sys 512 Nov 21 14:28 /etc/ssh</p>
<p>Remembering that the 1st character determines the type of file, the table below are the codes representing various types of files:</p>
<p>Linux/Unix File Types Table</p>
<p>As can be seen from the table above, rm is the universal tool for deleting files you don’t want anymore!</p>
<p>A word of caution: Use rm very carefully. You could mistakenly remove a very important file such needed by your system. If that happens, your system might not boot anymore!</p>
<p>If in doubt, always use the -i option with the rm command.</p>
<p>For example,</p>
<p># rm -i /etc/rmmount.conf<br />
rm: remove /etc/rmmount.conf (yes/no)?</p>
<p>(1.) Regular files</p>
<p>A regular file is just a file containing certain amount of bytes! Linux/Unix imposes no structure on its contents. Text files, data files, executable programs like gcc, shared libraries are all stored as regular files.</p>
<p>(2.) Directories</p>
<p>A directory contains named references to other files. You can create directories with the mkdir command and delete them with the rmdir command if they are empty. If the directory is not empty, you are wipe it with the rm -r command.</p>
<p>For example, let’s list the contents of the /etc/ssh</p>
<p># ls -al /etc/ssh</p>
<p>total 208<br />
drwxr-xr-x 2 root sys 512 Nov 21 14:28 .<br />
drwxr-xr-x 87 root sys 4608 Jan 7 11:24 ..<br />
-rw-r–r– 1 root sys 88301 Jan 22 2005 moduli<br />
-rw-r–r– 1 root sys 861 Jan 22 2005 ssh_config<br />
-rw——- 1 root root 668 Nov 21 14:28 ssh_host_dsa_key<br />
-rw-r–r– 1 root root 605 Nov 21 14:28 ssh_host_dsa_key.pub<br />
-rw——- 1 root root 883 Nov 21 14:28 ssh_host_rsa_key<br />
-rw-r–r– 1 root root 225 Nov 21 14:28 ssh_host_rsa_key.pub<br />
-rw-r–r– 1 root sys 5215 Jan 7 15:38 sshd_config</p>
<p>If you have noticed, in every directory, there are two (2) special entries “.” and “..”.</p>
<p>They refer to the directory itself and to its parent directory respectively; hence they cannot be removed! Since the root directory has no parent directory, the path “/..” is equivalent to the path “/.” (and both are equivalent to /).</p>
<p>(3.) Character and Block device files</p>
<p>Device files allow programs to communicate with the system’s hardware and peripherals. When the kernel is configured, modules that know how to communicate with each of the system’s devices are linked in. These days, the kernel can also load modules dynamically.</p>
<p>But what exactly is a kernel module? Modules are pieces of code that can be loaded and unloaded into the kernel upon demand. They extend the functionality of the kernel without the need to reboot the system. For example, one type of module is the device driver, which allows the kernel to access hardware connected to the system. Without modules, we would have to build monolithic kernels and add new functionality directly into the kernel image. Besides having larger kernels, this has the disadvantage of requiring us to rebuild and reboot the kernel every time we want new functionality.</p>
<p>Microsoft Windows needs to reboot so often because they lack the support of modules from their NT kernel unlike Linux/Unix!</p>
<p>The module for a particular device, called a device driver, takes care of the messy details of managing the device.</p>
<p>Device drivers present a standard communication interface that looks like a regular file. When the kernel is given a request that refers to a character or block device file, it simply passes the request to the appropriate device driver.</p>
<p>It is important to differentiate between device files and device drivers. The device files are are just ordinary points that are used to communicate with the drivers. They are not the drivers themselves.</p>
<p>But what is the difference between a character device file and a block device file? Character device files allow their associated drivers to do their own input and output (I/O) buffering.</p>
<p>Block device files are used by drivers that handle input and output (I/O) in large chunks and want the kernel to perform the buffering for them.</p>
<p>Simply, a block device would read/write bytes in fixed size blocks, as in disk sectors. Character devices read/write 0 or more bytes, in a stream, such as a TTY or a keyboard.</p>
<p>Device files are characterized by two numbers, called the major and minor device numbers. The major device number tells the kernel which driver the file refers to, and the minor device number tells the driver which physical unit to address.</p>
<p>If we on at the example below,</p>
<p>09:26:57 root@gw-dml-sp:~$ ls -l /dev/lp0</p>
<p>crw-rw—- 1 root lp 6, 0 Jan 4 13:05 /dev/lp0</p>
<p>From above, the major device number is 6 and the minor device number is 0.</p>
<p>We can create device files with the mknod command and remove them with the rm command. Most systems provide a script called /dev/MAKEDEV that creates the appropriate sets of device files for common devices.</p>
<p>(4.) Local domain sockets</p>
<p>Sockets are connections between processes that allow them to communicate in a proper manner. Linux/Unix provides several different kinds of sockets, most of which involve the use of a network. Local domain sockets are accessible only from the local host and are referred to through a filesystem object rather than a network port. They are also known as “UNIX domain sockets“.</p>
<p>Although socket files are visible to other processes as directory entries, they cannot be read from or written to by processes not involved in the connection. Some standard facilities that use local domain sockets are the printing system, the GNOME and KDE Window Systems, and syslog.</p>
<p>Local domain sockets are created with the socket system call and can be removed with the rm command or the unlink system call once they have no more users.</p>
<p>(5.) Named pipes</p>
<p>Like local domain sockets, named pipes allow communication between two processes running on the same host. They are also known as “FIFO files” (FIFO is short form for “First In, First Out”).</p>
<p>You can create named pipes with the mknod command and remove them with rm.</p>
<p>Like local domain sockets, real-world instances of named pipes are very few and rarely need administrative action.</p>
<p>(6.) Symbolic links</p>
<p>Symbolic links consist of a special type of file that serves as a reference to another file or directory. Unix-like operating systems in particular often feature symbolic links. Basically, a symbolic or soft link points to a file by name.</p>
<p>You can think of symbolic links in a similar way when you create “desktop shortcuts” in MS-Windows!<br />
Unlike a hard link, which points directly to data and represents another name for the same file, a symbolic link contains a path which identifies the target of the symbolic link. Thus, when a user removes a symbolic link, the file to which it pointed remains unaffected. Symbolic links may refer to files even on other mounted file systems.</p>
<p>We create symbolic links with the ln -s command and remove them with the rm command.</p>
<p>For example, if we want to make a symbolic link between the file /etc/ssh/sshd_config and /home/tek/myssh_config, we issue the following command:</p>
<p># ln -s /etc/ssh/sshd_config /home/tek/mysshd_config</p>
<p># ls -l /home/tek/mysshd_config</p>
<p>lrwxrwxrwx 1 tek tek 20 Jan 8 21:48 /home/tek/mysshd_config -> /etc/ssh/sshd_config</p>
<p>FILE ATTRIBUTES AND PERMISSIONS</p>
<p>Every file has a set of nine (9) permission bits that control who can read, write, and execute the contents of the file. The nine permission bits are used to determine what operations on a file, and by whom.</p>
<p>Linux/Unix does not allow permissions to be set on a per-user basis. Instead, there are sets of permissions for the owner of the file, the group owners of the file, and everyone else. Each set has three bits: a read bit, a write bit, and an execute bit.</p>
<p>In a summary, there are three types of people that can do things to files – the Owner of the file, anyone in the Group that the file belongs to, and Others (everyone else). In UNIX they are referred to using the letters U (for Owner or User), G (for Group), and O (for Others).</p>
<p>Therefore there are three types of permissions:</p>
<p>   r  &#8211; read the file or directory<br />
   w  &#8211; write to the file or directory<br />
   x  &#8211; execute the file or search the directory</p>
<p>Each of these permissions can be set for any one of three types of user:</p>
<p>u  &#8211; the user who owns the file (you)<br />
g  &#8211; members of the group to which the owner belongs<br />
o  &#8211; all other users</p>
<p>Let us look at an example:</p>
<p>-bash-3.00$ ls -l /usr/bin/yelp</p>
<p>-rwxr-xr-x 1 root other 107504 Dec 17 2004 /usr/bin/yelp</p>
<p>As you can see above, there are nine (9) permission bits on the file /usr/bin/yelp</p>
<p>On the left side, you can see the file attributes and permissions:</p>
<p>-rwxr-xr-x<br />
- 	r 	w 	x 	r 	- 	x 	r 	- 	x<br />
  	Owner 	Group 	Other<br />
File 	Read 	Write 	Execute 	Read 	No-Write 	Execute 	Read 	No-Write 	Execute</p>
<p>As can be seen, the following users have the following permissions on the file:</p>
<p>Owner – can read, write, and execute</p>
<p>Group – can read, no-write, and execute</p>
<p>Other – can read, no-write, and execute</p>
<p>Owner of /usr/bin/yelp is root and group owner of /usr/bin/yelp is other.</p>
<p>More examples:</p>
<p>drwxrwxrwx : a folder which has read, write and execute permissions for the owner, the group and for other users.<br />
-rwxr–r– : a file that can be read and written by the user, but only read and executed by the group, and only read by everyone else.</p>
<p>Using numbers (octal) for permissions</p>
<p>We can also use numbers for setting file and folder permissions. Each of the three numbers corresponds to each of the three sections of letters. The first number determines the owner permissions, the second number determines the group permissions and the third number determines the other permissions. Each number can have one of eight values ranging from 0 to 7. Each value corresponds to a certain setting of the read, write and execute permissions.</p>
<p>These values are added together for any one user category:</p>
<p>    1   =   execute only<br />
    2   =   write only<br />
    3   =   write and execute (1+2)<br />
    4   =   read only<br />
    5   =   read and execute (4+1)<br />
    6   =   read and write (4+2)<br />
    7   =   read and write and execute (4+2+1)</p>
<p>For example:</p>
<p>777 is the same as rwxrwxrwx<br />
755 is the same as rwxr-xr-x</p>
<p>ls output is slightly different for a device file. For example,</p>
<p>09:17:07 root@gw-dml-sp:~$ ls -l /dev/tty0</p>
<p>crw-rw—- 1 root tty 4, 0 Jan 4 13:05 /dev/tty0</p>
<p>crw-rw—-<br />
- 	r 	w 	x 	r 	- 	x 	r 	- 	x<br />
  	Owner 	Group 	Other<br />
Character file 	Read 	Write 	Non-Execute 	Read 	Write 	Non-Execute 	No-Read 	No-Write 	Non-Execute</p>
<p>As can be seen, the file /dev/tty0 is a Character device file whose owner and group owner can read, write but could not execute it since this is a character device file!</p>
<p>The filesystem maintains about forty (40) separate pieces of information for each file! But the good news is that most of them are only useful for the filesystem itself. As a system administrator, we should be concerned mostly with the link count, owner, group, mode, size, last access time, last modification time, and type.</p>
<p>Looking at the next example,</p>
<p>09:32:10 root@gw-dml-sp:~$ ls -l /bin/gzip</p>
<p>-rwxr-xr-x 3 root root 55792 Feb 22 2005 /bin/gzip</p>
<p>Summary:</p>
<p>The first field specifies the file’s type and mode. The first character is a dash, so /bin/gzip is a regular file.</p>
<p>The next nine characters in this field are the three sets of permission bits. I have stressed several times the order of this 3 sets of permission bits. The order is owner-group-other.</p>
<p>In the example of: -rwxr-xr-x 3 root root 55792 Feb 22 2005 /bin/gzip</p>
<p>In this case, the owner can read-write-execute, the Group owner can only execute-read and Others can only execute.</p>
<p>The next field in the listing is the link count for the file. In this case, it is 3, indicating that /bin/gzip is just one of three names for this file (the others are /bin/gunzip and /bin/zcat). Each time a hard link is made to a file, the count link is incremented by 1.</p>
<p>The setuid and setgid bits</p>
<p>The bits with octal values 4000 and 2000 are the setuid and setgid bits. These bits allow programs to access files and processes that would otherwise be off-limits to the user that runs them.</p>
<p>When set on a directory, the setuid bit causes newly created files within the directory to take on the group ownership of the directory rather than the default group of the user of the user that created the file.</p>
<p>The Sticky Bit</p>
<p>The bit with octal value 1000 is called the sticky bit. If a sticky bit is set on a directory, the filesystem won’t allow anyone to delete or rename a file unless that person is the owner of the directory, the owner of the file, or the superuser. This convention helps to make directories like /tmp a little more secure.</p>
<p>If the setuid bit had been set, the x representing the owner’s execute permission would have been replaced with an s, and if the setgid bit had been set, the x for the group would also have been replaced with an s.</p>
<p>The last character of the permissions (execute permission for “other”) is shown as t if the sticky bit of the file is turned on. If either the setuid/setgid bit or the sticky bit is set but the corresponding execute bit is not, these bits appear as S or T.</p>
<p>The filesystem automatically keeps track of modification time stamps, link counts, and file size information. The permission bits, ownership, and group ownership can only be changed by with the chmod, chown, chgrp commands.</p>
<p>chmod: change permissions</p>
<p>The chmod command changes the permissions on a file. Only the owner of the file and the superuser can change its permissions.</p>
<p>The octal notation is generally more convenient for administrators but the mnemonic syntax can be useful for new comers.</p>
<p>The first argument to chmod is a specification of the permissions to be assigned, and the second and subsequent arguments are names of files on which these permissions apply to.</p>
<p>chmod-encoding-table</p>
<p>To see chmod in action,</p>
<p>chmod-711-action</p>
<p>As can be seen above, the original permission of the file /home/tek/myprog was:</p>
<p>-rw-rw-r–</p>
<p>Upon issuing the command chmod 711 /home/tek/myprog, the permission was changed to:</p>
<p>-rwx–x–x</p>
<p>The same effect can be applied using mnemonic syntax instead of octal notation.</p>
<p>For example,</p>
<p>chmod-mnemonic-action</p>
<p>chown: change ownership and group</p>
<p>The chown command changes the file’s ownership and group ownership. It’s syntax mirrors that of chmod, except that the first argument specifies the new owner and group in the form of user.group (user:group). Either of user or group may be left out. If there is no group, you don’t need the dot either.</p>
<p>Looking at the example below:</p>
<p>chown-action</p>
<p>The above command changes the owner:group of the file /home/tek/robots.txt from root:root to tek:wheel.</p>
<p>To change a file’s group, you must either be the owner of the file and belong to the group you’re changing to or be the superuser. However, you must be the superuser to change the file’s owner.</p>
<p>Like chmod, chown offers the recursive -R flag to change the settings of a directory and all the files underneath it. For example, the sequence:</p>
<p># chmod -755 ~john</p>
<p># chown -R john:wheel ~john</p>
<p>might be used to setup the home directory of a new user called john after copying the default startup files. The commands above will set the directory /home/john and all it’s files and sub directories to be owned by user john and group wheel.</p>
<p>chgrp</p>
<p>Traditional UNIX uses a separate command called chgrp, to change the group owner of a file. Linux provides the chgrp command too. It works just like chown but chgrp takes just a parameter which is the group owner.</p>
<p>For example:</p>
<p>chgrp-wheel-group</p>
<p>The above chgrp command will change the group owner from tek to wheel.</p>
<p>I hope that the materials above will serve as a basis to understand the file system and structure of your Linux/Unix machines. It should also give you hindsights to avoid common mistakes such as making a important file to be read, written, or executed by everybody. It should also provide you how to protect and give access to important files and directories only to certain users on your system.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sabinshrestha.com.np/sabincat/system-integrity-using-files-permissions-processes-root-and-sudo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RMAN BACKUP AND RECOVERY PRACTICE WITH RAC AND ASM</title>
		<link>http://www.sabinshrestha.com.np/oracle/rman-backup-and-recovery-practice-with-rac-and-asm/</link>
		<comments>http://www.sabinshrestha.com.np/oracle/rman-backup-and-recovery-practice-with-rac-and-asm/#comments</comments>
		<pubDate>Tue, 25 Mar 2008 14:01:33 +0000</pubDate>
		<dc:creator>sabin</dc:creator>
				<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://www.sabinshrestha.com.np/?p=115</guid>
		<description><![CDATA[Check the configuration parameters of Rman. Connect to Rman without catalog. Controlfile is used to store Rman metadata: You need to set the environment before invoking Rman: ORACLE_BASE=/u01/app/oracle ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1 ORA_CRS_HOME=/u01/app/crs ORACLE_PATH= $ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/admin ORACLE_SID=mars1 $rman target / nocatalog RMAN&#62; show all; RMAN&#62;exit; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; rmanbackupconf.sh rman target / nocatalog &#60;&#60;EOF CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Check the configuration parameters of Rman.</strong><br />
Connect to Rman without catalog. Controlfile is used to store Rman metadata:<br />
You need to set the environment before invoking Rman:<br />
ORACLE_BASE=/u01/app/oracle<br />
ORACLE_HOME=$ORACLE_BASE/product/11.1.0/db_1<br />
ORA_CRS_HOME=/u01/app/crs<br />
ORACLE_PATH= $ORACLE_BASE/common/oracle/sql:.:$ORACLE_HOME/rdbms/admin<br />
ORACLE_SID=mars1</p>
<p>$rman target / nocatalog</p>
<p>RMAN&gt; show all;</p>
<p>RMAN&gt;exit;</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>rmanbackupconf.sh</strong></p>
<p>rman target / nocatalog &lt;&lt;EOF<br />
CONFIGURE RETENTION POLICY TO REDUNDANCY 1; # default<br />
CONFIGURE BACKUP OPTIMIZATION OFF; # default<br />
CONFIGURE DEFAULT DEVICE TYPE TO DISK; # default<br />
CONFIGURE CONTROLFILE AUTOBACKUP ON;<br />
CONFIGURE CONTROLFILE AUTOBACKUP FORMAT FOR DEVICE TYPE DISK TO &#8216;/orabackup/rman/%F&#8217;;<br />
CONFIGURE DEVICE TYPE DISK PARALLELISM 2 BACKUP TYPE TO BACKUPSET;<br />
CONFIGURE DATAFILE BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default<br />
CONFIGURE ARCHIVELOG BACKUP COPIES FOR DEVICE TYPE DISK TO 1; # default<br />
CONFIGURE CHANNEL 1 DEVICE TYPE DISK CONNECT &#8216;SYS/redhat@mars1&#8242;;<br />
CONFIGURE CHANNEL 2 DEVICE TYPE DISK CONNECT &#8216; SYS/redhat@mars1&#8242;;<br />
CONFIGURE MAXSETSIZE TO UNLIMITED;<br />
CONFIGURE ENCRYPTION FOR DATABASE OFF; # default<br />
CONFIGURE ENCRYPTION ALGORITHM &#8216;AES128&#8242;; # default<br />
CONFIGURE ARCHIVELOG DELETION POLICY TO NONE; # default<br />
CONFIGURE SNAPSHOT CONTROLFILE NAME TO &#8216;/orabackup/rman/snapcf_racdbtst1.f&#8217;; # default<br />
configure controlfile autobackup format for device type disk to &#8216;/orabackup/rman/ctrl/%F&#8217;;<br />
configure channel device type disk format &#8216;/orabackup/rman/backup_db_%d_S_%s_P_%p_T_%t&#8217;;<br />
exit;<br />
EOF</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Check the archive log status and destination: </strong></p>
<p>SQL&gt; archive log list<br />
Database log mode              Archive Mode<br />
Automatic archival             Enabled<br />
Archive destination            +ORCL_DATA1<br />
Oldest online log sequence     82<br />
Next log sequence to archive   83<br />
Current log sequence           83</p>
<p><strong>Check existing tablespaces and datafiles: </strong></p>
<p>SQL&gt; select tablespace_name,file_name from dba_data_files;</p>
<p>TABLESPACE_NAME     FILE_NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
SYSTEM   +ORCL_DATA1/mars/datafile/system.282.648988143<br />
SYSAUX   +ORCL_DATA1/mars/datafile/sysaux.283.648988181<br />
UNDOTBS1 +ORCL_DATA1/mars/datafile/undotbs1.284.648988195<br />
UNDOTBS2 +ORCL_DATA1/mars/datafile/undotbs2.286.648988247<br />
USERS    +ORCL_DATA1/mars/datafile/users.287.648988271<br />
DATA     +ORCL_DATA1/mars/datafile/data01.dbf<br />
OBJECTS  +ORCL_DATA1/mars/datafile/objects01.dbf<br />
INDX     +ORCL_DATA1/mars/datafile/index01.dbf</p>
<p>C<strong>reate a test tablespace and a test table to be used to check Restore and Recover: </strong></p>
<p>SQL&gt; create tablespace recop1;<br />
Tablespace created.<br />
SQL&gt; create table restable1 tablespace recop1 as select sysdate timestamp from dual;<br />
Table created.</p>
<p><strong>Check tablespaces and datafiles, note that all of them are located on ASM&#8217;s ORCL_DATA1 disk group: </strong></p>
<p>SQL&gt; select tablespace_name,file_name from dba_data_files</p>
<p><strong>Check the timestamp we inserted on the test table, we will recover until this time later: </strong></p>
<p>SQL&gt; select * from restable1;<br />
TIMESTAMP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
01-02-07 15:49:06<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p><strong>Execute backup using script </strong></p>
<p>backup.sh<br />
#!/bin/csh -x<br />
# rman_backup_as_copy_to_FS<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
# 29-01-07 Alejandro Vargas<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
# This script make a backup copy to file system<br />
# This backup can be restored on File system as a regular hot backup<br />
# Or can be restored to ASM by using rman<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
# This script does:<br />
# 1) Administrative tasks:<br />
# crosscheck<br />
# delete obsolete<br />
# 2) Archive log current on 1st Instance<br />
# 3) Archive log current on 2nd Instance<br />
# 4) Rman backup as copy to file system including controlfile and archivelogs<br />
# 5) Archive log current on 1st Instance<br />
# 6) Archive log current on 2nd Instance<br />
# 7) Rman backup as copy archivelogs not backed up and print backupset list to log<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
# This script works with 2 nodes only, if you have more than 2 nodes you need to customize it.<br />
#<br />
# This script use aliases and Environment variables set on .cshrc<br />
# to setup the environment to point to the Database:<br />
# setenv DBS_HOME /u01/app01/oracle/product/10gDB<br />
# setenv BASE_PATH /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin<br />
# alias 10db &#8216;setenv $ORACLE_HOME $DBS_HOME; setenv PATH $ORACLE_HOME/bin:$BASE_PATH&#8217;<br />
# This script do require as parameters the 2 instance names<br />
# It will use them to archive all required logs from instances 1 and 2<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
set v_inst1=mars1<br />
set v_inst2=mars2<br />
# Rman Backup Location variable<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
set v_rman_loc=/orabackup/rman<br />
# Step 1: Administrative tasks, crosscheck and delete obsolete<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
#10db<br />
setenv ORACLE_SID $v_inst1<br />
rman target / nocatalog &lt;&lt;EOF<br />
crosscheck backupset;<br />
crosscheck copy;<br />
crosscheck archivelog all;<br />
delete noprompt expired backup ;<br />
delete noprompt obsolete;<br />
exit<br />
EOF<br />
# This script run from 1st node. We use an external identified DBA user, ops$oracle, to execute<br />
# the archive log current. From the same session we connect as ops$oracle into the 2nd instance<br />
# You need remote_os_authent=TRUE on both instances to connect remotely without password<br />
# Step 2: Archive log current on 1st Instance<br />
# Step 3: Archive log current on 2nd Instance<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
sqlplus -s sys/pass@$v_inst1 as sysdba &lt;&lt; EOF<br />
select instance_name from v\$instance<br />
/<br />
alter system archive log current<br />
/<br />
connect sys/pass@$v_inst2 as sysdba;<br />
select instance_name from v\$instance<br />
/<br />
alter system archive log current<br />
/<br />
exit<br />
EOF<br />
# On step 4 we use 4 channels. This needs to be customized according the number of cpu&#8217;s/IO<br />
# channels available. Rman is invoked in nocatalog mode, we need to have configured<br />
# ORACLE_HOME, ORACLE_SID and PATH on the environment, as we did in the previous steps.<br />
# Step 4: Rman backup as copy to file system including controlfile and archivelogs<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
rman target / nocatalog &lt;&lt;EOF<br />
run {<br />
allocate channel backup_disk1 type disk format &#8216;$v_rman_loc/%U&#8217;;<br />
allocate channel backup_disk2 type disk format &#8216;$v_rman_loc/%U&#8217;;<br />
backup as COPY tag &#8216;%TAG&#8217; database include current controlfile;<br />
release channel backup_disk1;<br />
release channel backup_disk2;<br />
}<br />
exit<br />
EOF<br />
# Step 5 and 6: Archive log current on 1st and 2nd Instances<br />
# &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
sqlplus -s sys/pass@$v_inst1 as sysdba &lt;&lt; EOF<br />
select instance_name from v\$instance<br />
/<br />
alter system archive log current<br />
/<br />
connect sys/pass@$v_inst2 as sysdba;<br />
select instance_name from v\$instance<br />
/<br />
alter system archive log current<br />
/<br />
exit<br />
EOF<br />
# Step 7: Rman backup as copy archivelogs not backed up and print backupset list to log<br />
rman target / nocatalog &lt;&lt;EOF<br />
backup as copy archivelog all format &#8216;$v_rman_loc/%d_AL_%T_%u_s%s_p%p&#8217; ;<br />
list backupset;<br />
exit<br />
EOF<br />
# Redirecting rman output to log will suppress standard output, because of that<br />
# running separately.<br />
rman target / nocatalog log=$v_rman_loc/backupset_info.log &lt;&lt;EOF<br />
list backup summary;<br />
list backupset;<br />
list backup of controlfile;<br />
exit<br />
EOF<br />
# eof backup</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>This script does:<br />
1) clean up the catalog (crosscheck / delete obsolete)<br />
2) archive log current on both instances<br />
3) backup database as copy to File System<br />
4) archive log current on both instances<br />
5) backup as copy archived logs<br />
6) log actual backups<br />
See the Backup Log.<br />
The Backup generated the following files:<br />
Controlfile and spfile backup:<br />
Datafiles:<br />
Rman Backups list:<br />
backupset_info.log<br />
Backup log:<br />
/tmp/rman_backup.err</p>
<p><strong>Insert some other records into the test table: </strong></p>
<p>Insert into the test table new rows,check its content:<br />
SQL&gt; insert into restable1 select sysdate from dual;<br />
1 row created.<br />
SQL&gt; /<br />
1 row created.<br />
SQL&gt; /<br />
1 row created.<br />
SQL&gt; /<br />
1 row created.<br />
SQL&gt; commit;<br />
Commit complete.<br />
SQL&gt; select * from restable1;</p>
<p>SQL&gt; alter system archive log current;<br />
System altered.</p>
<p><strong>Simulate a crash by manually deleting some datafiles: </strong></p>
<p>Execute on both instances:<br />
SQL&gt; select instance_name from v$instance;<br />
INSTANCE_NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
mars1<br />
SQL&gt; shutdown abort<br />
ORACLE instance shut down.<br />
SQL&gt; select instance_name from v$instance;<br />
INSTANCE_NAME<br />
&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
mars2<br />
SQL&gt; shutdown abort<br />
ORACLE instance shut down.</p>
<p><strong> Inside ASM some files accidentally deleted!!!:</strong></p>
<p>$asmcmd</p>
<p>ASMCMD&gt; cd ORCL_DATA1/mars/datafile/</p>
<p>ASMCMD&gt; ls</p>
<p>ASMCMD&gt; <em><strong>rm USERS.264.606653719 </strong></em> &lt;&lt;&lt;&lt;&lt; Note, only possible because the<br />
ASMCMD&gt; <em><strong>rm RECOP1.273.613410453</strong></em> &lt;&lt;&lt;&lt;&lt; Database is down!!!<br />
ASMCMD&gt; ls<br />
ASMCMD&gt; EXIT</p>
<p>$sqlplus / as sysdba</p>
<p>Enter user-name: / as sysdba<br />
Connected to an idle instance.<br />
SQL&gt; startup<br />
ORACLE instance started.<br />
Total System Global Area 285212672 bytes<br />
Fixed Size 1218992 bytes<br />
Variable Size 96470608 bytes<br />
Database Buffers 184549376 bytes<br />
Redo Buffers 2973696 bytes<br />
Database mounted.<br />
<em><strong>ORA-01157: cannot identify/lock data file 5 &#8211; see DBWR trace file<br />
ORA-01110: data file 5: &#8216;+</strong><strong>ORCL_DATA1/mars/datafile/</strong></em><em><strong>users.264.606653719&#8242;</strong></em></p>
<p>NOTE: Drop tablespace from inside the database is not recoverable with Rman; Rman will also deleted the backup copy of any deleted tablespace!!!!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><strong>RECOVER PROCESS </strong></p>
<p><strong> Execute recover until time using the existing backup:<br />
Set the database to work as single instance to perform the recovery and stop it:</strong></p>
<p>SQL&gt; show parameters cluster_database<br />
NAME TYPE VALUE<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
cluster_database boolean TRUE<br />
cluster_database_instances integer 2</p>
<p>SQL&gt; alter system set cluster_database=false scope=spfile sid=&#8217;*';<br />
System altered.<br />
SQL&gt; shutdown abort<br />
ORACLE instance shut down.</p>
<p><strong>Check the backup files and take note of the Database ID (highlighted):</strong></p>
<p>$cd /orabackup/rman/</p>
<p>$ls</p>
<p>backupset_info.log<br />
cf_D-MARS_id-1122898414_5djc2p5c<br />
ctrl<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-DATA_FNO-6_4rjc2nqs<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-DATA_FNO-6_5ajc2p4e<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-INDX_FNO-8_4tjc2nr1<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-INDX_FNO-8_5cjc2p5a<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-OBJECTS_FNO-7_4sjc2nqu<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-OBJECTS_FNO-7_5bjc2p50<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-SYSAUX_FNO-2_4njc2nn7<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-SYSAUX_FNO-2_56jc2p08<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-SYSTEM_FNO-1_4ojc2nn9<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-SYSTEM_FNO-1_57jc2p0a<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-UNDOTBS1_FNO-3_4pjc2npd<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-UNDOTBS1_FNO-3_58jc2p33<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-UNDOTBS2_FNO-4_4qjc2npm<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-UNDOTBS2_FNO-4_59jc2p41<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-USERS_FNO-5_4vjc2nr8<br />
data_D-MARS_I-<strong>1122898414</strong>_TS-USERS_FNO-5_5ejc2p5k<br />
MARS_AL_20080324_52jc2ns2_s162_p1<br />
MARS_AL_20080324_54jc2ns6_s164_p1<br />
MARS_AL_20080324_5gjc2p80_s176_p1<br />
MARS_AL_20080324_5hjc2p82_s177_p1<br />
MARS_AL_20080324_5ijc2p88_s178_p1<br />
MARS_AL_20080324_5jjc2p8a_s179_p1<br />
MARS_AL_20080324_5kjc2p8c_s180_p1<br />
MARS_AL_20080324_5ljc2p8e_s181_p1<br />
MARS_AL_20080324_5mjc2p8h_s182_p1<br />
MARS_AL_20080324_5njc2p8j_s183_p1<br />
MARS_AL_20080324_5ojc2p8m_s184_p1<br />
MARS_AL_20080324_5pjc2p8o_s185_p1<br />
MARS_AL_20080324_5qjc2p8q_s186_p1<br />
MARS_AL_20080324_5rjc2p8t_s187_p1</p>
<p>$rman target / nocatalog<br />
Recovery Manager: Release 10.2.0.1.0 &#8211; Production on Thu Feb 1 16:34:20 2007<br />
Copyright (c) 1982, 2005, Oracle. All rights reserved.<br />
connected to target database (not started)</p>
<p>RMAN&gt; set dbid=-<strong>1122898414</strong><br />
executing command: SET DBID</p>
<p>RMAN&gt; startup nomount;<br />
Oracle instance started<br />
Total System Global Area 285212672 bytes<br />
Fixed Size 1218992 bytes<br />
Variable Size 96470608 bytes<br />
Database Buffers 184549376<br />
Redo Buffers 2973696 bytes</p>
<p><strong>1) we do restore the controlfile from a time previous to the crash: </strong></p>
<p>RMAN&gt; restore controlfile from &#8216;/orabackup/rman/cf_D-MARS_id-1122898414_5djc2p5c&#8217;;<br />
Starting restore at 01/02/2008 16:36:03<br />
allocated channel: ORA_DISK_1<br />
channel ORA_DISK_1: sid=153 devtype=DISK<br />
channel ORA_DISK_1: copied control file copy<br />
output filename=+ORCL_DATA1/mars/controlfile/current.256.606653653<br />
Finished restore at 01/02/2008 16:36:20</p>
<p><strong> 2) we mount the database:</strong><br />
RMAN&gt; mount database;<br />
database mounted<br />
released channel: ORA_DISK_1</p>
<p><strong> 3) we set until which time we want to recover, using the &#8216;set until time&#8217; clause, the we do restore and recover, in this example the three commands are passed to Rman within a single block:</strong><br />
RMAN&gt; run { set until time=&#8221;to_date(&#8217;01-FEB-08 16:14:28&#8242;,&#8217;DD-MON-YY HH24:MI:SS&#8217;)&#8221;;<br />
2&gt; restore database;<br />
3&gt; recover database; }</p>
<p>executing command: SET until clause<br />
Starting restore at 01/02/2008 16:40:26<br />
allocated channel: ORA_DISK_1<br />
channel ORA_DISK_1: sid=148 devtype=DISK<br />
allocated channel: ORA_DISK_2<br />
channel ORA_DISK_2: sid=153 devtype=DISK</p>
<p><strong> Finally we need to restablish Cluster Mode and open both instances.</strong><br />
<strong><em>1)Mount instance 1 and set cluster_database=true :</em></strong><br />
SQL&gt; show parameters cluster_database<br />
NAME TYPE VALUE<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
cluster_database boolean FALSE<br />
cluster_database_instances integer 2<br />
SQL&gt; alter system set cluster_database=true scope=spfile sid=&#8217;*';<br />
System altered.<br />
SQL&gt; shutdown immediate<br />
ORACLE instance shut down.</p>
<p><em><strong> 2) Restart the database in cluster Mode:</strong></em><br />
srvctl start database -d mars<br />
srvctl start service -d mars<br />
crs_stat –t<br />
chkcrs</p>
<p><strong><em>3) Check restore point on test table:</em></strong><br />
SQL&gt; select * from restable1;<br />
TIMESTAMP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
01-02-08 15:49:06</p>
<p>http://www.comp.dit.ie/btierney/Oracle11gDoc/server.111/b28301/backrest002.htm</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sabinshrestha.com.np/oracle/rman-backup-and-recovery-practice-with-rac-and-asm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Cisco Router</title>
		<link>http://www.sabinshrestha.com.np/cisco/configure-cisco-router/</link>
		<comments>http://www.sabinshrestha.com.np/cisco/configure-cisco-router/#comments</comments>
		<pubDate>Thu, 20 Mar 2008 18:41:38 +0000</pubDate>
		<dc:creator>sabin</dc:creator>
				<category><![CDATA[Cisco]]></category>

		<guid isPermaLink="false">http://www.sabinshrestha.com.np/?p=114</guid>
		<description><![CDATA[Configure Password &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; 1. Change to global mode: config t 2. To Set enable password: enable password &#8220;chicagotech&#8217; 3. To set secret password: enable secret &#8220;ms-mvp&#8221; Note: 1: Enable secret password is encrypted by default. Enable password is not. 2: If both enable secret and enable password are specified, the enable secret overrides the enable [...]]]></description>
			<content:encoded><![CDATA[<p>Configure Password<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1. Change to global mode: config t<br />
2. To Set enable password: enable password &#8220;chicagotech&#8217;<br />
3. To set secret password: enable secret &#8220;ms-mvp&#8221;</p>
<p>Note:<br />
1: Enable secret password is encrypted by default. Enable password is not.<br />
2: If both enable secret and enable password are specified, the enable secret overrides the enable password.</p>
<p>1. Set a console password to chicagotech<br />
1) Router(config)#line con 0<br />
Router(config-line)#login<br />
Router(config-line)#password chicagotech</p>
<p>2. Set a telnet password to chicagotech<br />
1) Router(config)#line vty 0 4<br />
2) Router(config-line)#login<br />
3) Router(config-line)#password chicagotech<br />
=================================================</p>
<p>Enable SNMP on PIX<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
I just installed Netflow to monitor our Internet traffic rate. I have enabled snmp on our Cisco PIX515. The netflow displays ?No devices have sent NetFlow exports to the software yet?. I am not sure the problem is PIX configuration or Netflow settings. How do I test the snmp settings in PIX?</p>
<p>access-list outside_in permit icmp any any unreachable<br />
access-list outside_in permit tcp any host 192.168.11.253 eq 3389<br />
access-list outside_in permit icmp any any echo-reply<br />
access-list outside_in permit icmp any any time-exceeded<br />
access-list outside_in permit tcp any host 192.168.10.10 eq 3389<br />
access-list 192_splitTunnelAcl permit ip LAN 255.255.255.0 any<br />
access-list inside_outbound_nat0_acl permit ip LAN 255.255.255.0 VPN 255.255.255<br />
.240<br />
access-list inside_outbound_nat0_acl permit ip LAN 255.255.255.0 any<br />
access-list outside_cryptomap_dyn_20 permit ip any VPN 255.255.255.240<br />
access-list outside_cryptomap_20 permit ip LAN 255.255.255.0 any<br />
pager lines 24<br />
logging on<br />
logging trap errors<br />
logging history informational<br />
logging device-id hostname<br />
mtu outside 1500<br />
mtu inside 1500<br />
ip address outside 192.168.10.254 255.255.255.0<br />
ip address inside 192.168.11.254 255.255.255.0<br />
ip audit info action alarm<br />
ip audit attack action alarm<br />
ip local pool VPN 192.168.21.1-192.168.21.9<br />
pdm location 192.168.11.253 255.255.255.255 inside<br />
pdm location VPN 255.255.255.0 inside<br />
pdm location LAN 255.255.255.0 outside<br />
pdm location VPN 255.255.255.0 outside<br />
pdm location LAN 255.255.255.255 inside<br />
pdm location RDC 255.255.255.255 inside<br />
pdm location 192.168.11.2 255.255.255.255 inside<br />
pdm location 192.168.10.104 255.255.255.255 outside<br />
pdm location 192.168.11.254 255.255.255.255 outside<br />
pdm history enable<br />
arp timeout 14400<br />
global (outside) 2 192.168.10.250-192.168.10.253<br />
global (outside) 1 interface<br />
nat (inside) 0 access-list inside_outbound_nat0_acl<br />
nat (inside) 1 0.0.0.0 0.0.0.0 0 0<br />
static (inside,outside) 192.168.11.253 192.168.11.253 netmask 255.255.255.255 0<br />
0<br />
static (inside,outside) 192.168.10.10 RDC netmask 255.255.255.255 0 0<br />
access-group outside_in in interface outside<br />
route outside 0.0.0.0 0.0.0.0 192.168.10.1 1<br />
timeout xlate 3:00:00<br />
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00<br />
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00<br />
timeout uauth 0:05:00 absolute<br />
aaa-server TACACS+ protocol tacacs+<br />
aaa-server RADIUS protocol radius<br />
aaa-server LOCAL protocol local<br />
http server enable<br />
http 0.0.0.0 0.0.0.0 outside<br />
http LAN 255.255.255.255 inside<br />
http LAN 255.255.255.0 inside<br />
snmp-server host outside 192.168.11.254<br />
snmp-server host inside 192.168.11.254<br />
no snmp-server location<br />
no snmp-server contact<br />
snmp-server community public<br />
snmp-server enable traps<br />
tftp-server outside 192.168.10.115 c:\<br />
floodguard enable<br />
sysopt connection permit-ipsec<br />
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac<br />
crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac<br />
crypto dynamic-map outside_dyn_map 20 set transform-set ESP-3DES-MD5<br />
crypto map outside_map 20 ipsec-isakmp<br />
crypto map outside_map 20 match address outside_cryptomap_20<br />
crypto map outside_map 20 set peer 206.81.53.106<br />
crypto map outside_map 20 set transform-set ESP-3DES-MD5<br />
crypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map<br />
crypto map outside_map interface outside<br />
isakmp enable outside<br />
isakmp key ******** address 206.81.53.106 netmask 255.255.255.255 no-xauth no-co<br />
nfig-mode<br />
isakmp nat-traversal 20<br />
isakmp policy 20 authentication pre-share<br />
isakmp policy 20 encryption 3des<br />
isakmp policy 20 hash md5<br />
isakmp policy 20 group 2<br />
isakmp policy 20 lifetime 86400<br />
vpngroup 192 address-pool VPN<br />
vpngroup 192 dns-server 4.2.2.1<br />
vpngroup 192 split-tunnel 192_splitTunnelAcl<br />
vpngroup 192 idle-time 1800<br />
vpngroup 192 password ********<br />
=====================================================</p>
<p>How to configure ASA to open port 3389 for TS<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
You need these two lines:</p>
<p>access-list outside_access_out extended permit tcp any host x.x.x.198 eq 3389</p>
<p>static (inside,outside) tcp interface 3389 10.0.3.2 3389 netmask 255.255.255.255</p>
<p>If you use ASDM, id for the Rule and if for the NAT<br />
======================================================</p>
<p>How to view and save PIX/ASA configuration<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1. &#8220;copy run start&#8221; and &#8220;write terminal&#8221; to save running-config to startup-config.<br />
2. &#8220;show startup-config to view the configuration in flash memory.<br />
3. &#8220;show running-config&#8221; and &#8220;write terminal&#8221; to view the current running configuration .<br />
========================================================</p>
<p>configure Cisco 831 router for two public IP addresse<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
The following is the sample of NAT on 831.</p>
<p>ip dhcp excluded-address 172.16.5.1 172.16.5.9<br />
ip dhcp excluded-address 172.16.5.51 172.16.5.254<br />
!<br />
ip dhcp pool sdm-pool1<br />
network 172.16.5.0 255.255.255.0<br />
default-router 172.16.5.1<br />
dns-server 4.2.2.1<br />
!<br />
!<br />
no ip bootp server<br />
ip inspect name sdm_ins_in_100 cuseeme<br />
ip inspect name sdm_ins_in_100 ftp<br />
ip inspect name sdm_ins_in_100 h323<br />
ip inspect name sdm_ins_in_100 netshow<br />
ip inspect name sdm_ins_in_100 rcmd<br />
ip inspect name sdm_ins_in_100 realaudio<br />
ip inspect name sdm_ins_in_100 rtsp<br />
ip inspect name sdm_ins_in_100 smtp<br />
ip inspect name sdm_ins_in_100 sqlnet<br />
ip inspect name sdm_ins_in_100 streamworks<br />
ip inspect name sdm_ins_in_100 tftp<br />
ip inspect name sdm_ins_in_100 tcp<br />
ip inspect name sdm_ins_in_100 udp<br />
ip inspect name sdm_ins_in_100 vdolive<br />
ip inspect name sdm_ins_in_100 icmp<br />
ip audit notify log<br />
ip audit po max-events 100<br />
no ftp-server write-enable<br />
!<br />
!<br />
!<br />
!<br />
!<br />
!<br />
!<br />
interface Ethernet0<br />
description $FW_INSIDE$$ETH-LAN$<br />
ip address 172.16.5.1 255.255.255.0<br />
no ip redirects<br />
no ip unreachables<br />
no ip proxy-arp<br />
ip nat inside<br />
no cdp enable<br />
!<br />
interface Ethernet1<br />
description $FW_OUTSIDE$$ETH-WAN$<br />
ip address 192.168.10.70 255.255.255.0<br />
no ip redirects<br />
no ip unreachables<br />
no ip proxy-arp<br />
ip nat outside<br />
ip inspect sdm_ins_in_100 in<br />
duplex auto<br />
no cdp enable<br />
!<br />
interface FastEthernet1<br />
no ip address<br />
duplex auto<br />
speed auto<br />
!<br />
interface FastEthernet2<br />
no ip address<br />
duplex auto<br />
speed auto<br />
!<br />
interface FastEthernet3<br />
no ip address<br />
duplex auto<br />
speed auto<br />
!<br />
interface FastEthernet4<br />
no ip address<br />
duplex auto<br />
speed auto<br />
!<br />
ip nat inside source list 1 interface Ethernet1 overload<br />
ip nat inside source static tcp 172.16.5.13 3389 192.168.10.70 3389 extendable<br />
ip nat inside source static tcp 172.16.5.13 3389 192.168.10.71 3389 extendable<br />
ip classless<br />
ip route 0.0.0.0 0.0.0.0 192.168.10.1 permanent<br />
ip http server<br />
ip http authentication local<br />
ip http secure-server<br />
!<br />
access-list 1 permit 172.0.0.0 0.255.255.255<br />
no cdp run<br />
banner login ^CCAuthorized access only!<br />
Disconnect IMMEDIATELY if you are not an authorized user!^C<br />
!<br />
line con 0<br />
login local<br />
no modem enable<br />
line aux 0<br />
line vty 0 4<br />
privilege level 15<br />
login local<br />
transport input telnet ssh<br />
!<br />
scheduler max-task-time 5000<br />
!<br />
end</p>
<p>831#<br />
===============================================</p>
<p>Reset a Cisco Router Back to Factory Defaults<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
chicagotech831#conf t<br />
Enter configuration commands, one per line. End with CNTL/Z.<br />
chicagotech831(config)#config-register 0&#215;2102<br />
chicagotech831(config)#end<br />
chicagotech831#wr erase<br />
Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]<br />
[OK]<br />
Erase of nvram: complete<br />
chicagotech831#reload</p>
<p>System configuration has been modified. Save? [yes/no]: n<br />
Proceed with reload? [confirm]<br />
======================================</p>
<p>Router modes<br />
&#8212;&#8212;&#8212;&#8212;-<br />
User mode = Router&gt;<br />
Privileged mode = Router#<br />
Global configuration mode = Router(config)#<br />
Interface mode = Router(config-if)#<br />
Subinterface mode = Router(config-subif)#<br />
Line mode = Router(config-line)<br />
Router configuration mode = Router(config-router)#<br />
===============================================</p>
<p>Cisco Router Modes<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Router&gt; User mode</p>
<p>Router# Privileged mode (to chnage to Privileged mode, do Router&gt; enable)</p>
<p>Router(config)# Global configuration mode (Router# conf t)</p>
<p>Router(config-if)# interafce mode (Router(config)# interafce ethernet0)</p>
<p>Router(config-subif)# Subinterface mode<br />
Router(config-line)# Line mode<br />
Router(config-router)# Router configuration mode<br />
================================================</p>
<p>command lines<br />
&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1. To verify the operation of a routing protocol<br />
show ip protocols</p>
<p>2. Display the IP routing table.<br />
show ip route<br />
=================================================</p>
<p>configure SSH for Secure Access<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
ChicagoTech&gt;En</p>
<p>Password:</p>
<p>ChicagoTech#conf terminal</p>
<p>Enter configuration commands, one per line.  End with CNTL/Z.</p>
<p>ChicagoTech(config)#hostname ChicagoTech</p>
<p>ChicagoTech(config)#ip domain-name howtocisco.com</p>
<p>ChicagoTech(config)#crypto key generate rsa</p>
<p>ChicagoTech(config)#ip ssh time-out 60</p>
<p>ChicagoTech(config)#ip ssh authentication-retries 4</p>
<p>ChicagoTech(config)#end</p>
<p>ChicagoTech#wr mem<br />
===================================================</p>
<p>Create a VTP domain<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
chicagotech&gt;en<br />
password:<br />
chicagotech#conf t<br />
chicagotech(config)#vtp mode server<br />
chicagotech(config)#vtp domain ms-mvps<br />
chicagotech(config)#vtp password chicagotech<br />
chicagotech(config)#end<br />
chicagotech&gt;copy running-config startup-config<br />
==================================================</p>
<p>find the Switch and Port You are connecting to<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1. Find my laptop Mac address by using ipconfig /all. It is 00-16-D4-BA-D7-77<br />
2. Telnet one of the switch and enable it.<br />
3. Type “show mac-address-table address 00-16-D4-BA-D7-77”, it display<br />
====================================================</p>
<p>Limit access #<br />
&#8212;&#8212;&#8212;&#8212;&#8212;<br />
With Cisco Port Security, you can configure the port to accept certain Mac addresses and an additionl access will be denied. In this case, our maximum access # is 15.</p>
<p>Chicagotech&gt;En<br />
Chicagotech&gt;password:<br />
Chicagotech#conf t<br />
Chicagotech(config)#interface fastethernet 0/9<br />
Chicagotech(config-if)#switchport mode access<br />
Chicagotech(config-if)#switchport port-security<br />
Chicagotech(config-if)#switchport port-security max 15<br />
Chicagotech(config-if)#switchport port-security violation protect<br />
Chicagotech(config-if)#end<br />
====================================================</p>
<p>setup interface<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Router#config<br />
Router(config)#interface serial 1/1<br />
Router(config-if)#ip address 10.0.0.10 255.255.255.0<br />
Router(config-if)#no shutdown<br />
Router(config-if)#ctrl-Z<br />
Router#<br />
=====================================================</p>
<p>shutdown multiple ports<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
CHICAGOTECH&gt;EN<br />
CHICAGOTECH&gt;PASSWORD:<br />
CHICAGOTECH&gt;CONF T<br />
CHICAGOTECH(config)#inter range fastethernet 0/11 – 12<br />
CHICAGOTECH(config-if-range)#no shutdown<br />
CHICAGOTECH(config-if-range)#<br />
CHICAGOTECH(config-if-range)#end<br />
=====================================================</p>
<p>Interface command lines<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1. to verify the status of the switch connections<br />
show ip interface brief</p>
<p>2. Configure range interface<br />
Switch(config)#interface range fastethernet 0/# &#8211; #, #, # &#8211; #<br />
=======================================================</p>
<p>Configure trunking and VLAN routing<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Switch&gt;en<br />
password:<br />
Switch#configure terminal<br />
Switch(config)#interface fastethernet 0/1<br />
Switch(config-if)#switchport mode trunk<br />
Switch(config-if)#end<br />
====================================================</p>
<p>confiugre Virtual Interface on a VLAN<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Router&gt;en<br />
passwrod:<br />
Router#configure terminal<br />
Router(config)#interface fastethernet 0/0.2<br />
Router(config-subif)#encapsulation dot1q 2<br />
Router(config-subif)#ip address 192.168.11.2 255.255.255.0<br />
Router(config-subif)#exit<br />
Router(config)#router rip<br />
Router(config-router)#network 10.0.0.0<br />
Router(config-router)#end<br />
======================================================</p>
<p>Configure VLAN Subnets<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Router&gt;en<br />
password:<br />
Router#configure terminal<br />
Router(config)#interface fastethernet 0/1<br />
Router(config-if)#ip address 192.168.11.1 255.255.255.0<br />
Router(config-if)#end<br />
======================================================</p>
<p>How to delete switchport access vlan 200 line<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
CHICAGOTECH_1#show run inter<br />
CHICAGOTECH_1#sh run interface gi1/0/7<br />
Building configuration&#8230;</p>
<p>Current configuration : 151 bytes<br />
!<br />
interface GigabitEthernet1/0/7<br />
switchport access vlan 200<br />
switchport trunk encapsulation dot1q<br />
switchport mode trunk<br />
spanning-tree portfast<br />
end</p>
<p>CHICAGOTECH_1#conf t<br />
Enter configuration commands, one per line. End with CNTL/Z.<br />
CHICAGOTECH_1(config)#int<br />
CHICAGOTECH_1(config)#interface gi1/0/7<br />
CHICAGOTECH_1(config-if)#default switchport access vlan<br />
CHICAGOTECH_1(config-if)#no spanning-tree portfast<br />
CHICAGOTECH_1(config-if)#do sh run int<br />
CHICAGOTECH_1(config-if)#do sh run inter<br />
CHICAGOTECH_1(config-if)#do sh run int gi1/0/7<br />
Building configuration&#8230;</p>
<p>Current configuration : 99 bytes<br />
!<br />
interface GigabitEthernet1/0/7<br />
switchport trunk encapsulation dot1q<br />
switchport mode trunk<br />
end<br />
====================================================</p>
<p>Re-configure VLAN for AP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Add or modify VLAN name<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
chicagotech&gt;en<br />
password:<br />
chicagotech#conf t<br />
chicagotech(config)#vlan 1<br />
chicagotech(config)#name lab1<br />
===================================================</p>
<p>Situation: the client have 4 VLAN and they want to the Access Point to access all 4 VLAN. This is the show mac-address-table address 0019.3033.6a2a command result:</p>
<p>Mac Address Table<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Vlan Mac Address Type Ports<br />
&#8212;- &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8211;<br />
1 0019.3033.6a2a DYNAMIC Gi1/0/22<br />
Total Mac Addresses for this criterion: 1</p>
<p>Resolution: The port configuration looks l ike this (default is VLAN 1)</p>
<p>interface GigabitEthernet1/0/22<br />
switchport mode access<br />
no ip address<br />
no mdix auto<br />
spanning-tree portfast<br />
spanning-tree bpdufilter enable<br />
spanning-tree bpduguard enable</p>
<p>Change to:<br />
interface GigabitEthernet1/0/22<br />
switchport trunk encapsulation dot1q<br />
switchport mode trunk<br />
no ip address<br />
no mdix auto</p>
<p>This is the result after changing:</p>
<p>show mac-address-table address 0019.3033.6a2a<br />
Mac Address Table<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Vlan Mac Address Type Ports<br />
&#8212;- &#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8211; &#8212;&#8211;<br />
1 0019.3033.6a2a DYNAMIC Gi1/0/22<br />
100 0019.3033.6a2a DYNAMIC Gi1/0/22<br />
200 0019.3033.6a2a DYNAMIC Gi1/0/22<br />
300 0019.3033.6a2a DYNAMIC Gi1/0/22<br />
Total Mac Addresses for this criterion: 4<br />
=====================================================</p>
<p>VLAN command lines<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
1. How to check last modified VTP configuration<br />
show vtp status</p>
<p>2. Verify a Trunk<br />
show interface interface switchport | trunk</p>
<p>3. Verify A VLAN<br />
show vlan brief | id vln_id | name vlan_name</p>
<p>4. Assign switch ports to a vlan<br />
switchport access vlan vlan# | dynamic</p>
<p>5. configure dot1q trunk<br />
switchport mode trunk | access | dynamic desirable | dynamic auto</p>
<p>6. verify STP for a VLAN<br />
show spanning-tree active | detail | vlan_id | summery<br />
==========================================================</p>
<p>How to enable Cisco ASA Web VPN<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
To enable the HTTP Service on the ASA, please follow these steps:<br />
1. Enable the HTTP server.<br />
2. Enable WebVPN on the outside interface.<br />
3. Configure WebVPN group attributes.<br />
4. Configure user authentication.</p>
<p>1. enable.<br />
2. Chicagotech#conf t<br />
3. Chicagotech(config)# http server enable<br />
4. Chicagotech(config)# http redirect outside 80<br />
5. Chicagotech(config)# webvpn<br />
6. Chicagotech(config-webvpn)# enable outside<br />
7. Chicagotech(config-webvpn)#exit<br />
8. Chicagotech(config)# group-policy VPNGroup internal<br />
9. Chicagotech(config)# group-policy VPNGroup attributes<br />
10. Chicagotech(config-group-policy)# vpn-tunnel-protocol webvpn<br />
11. Chicagotech(config-group-policy)# webvpn<br />
12. Chicagotech(config-group-webvpn)# functions file-access file-entry file-browsing<br />
13. Chicagotech(config-group-webvpn)# exit<br />
14. Chicagotech(config)# username chicagotech password ms-mvps<br />
15. Chicagotech(config)# webvpn<br />
16. Chicagotech(config-webvpn)# authentication-server-group LOCAL<br />
========================================================</p>
<p>Configure routing<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
Configure RIP Routing<br />
Router#configure terminal<br />
Router(config)# router rip<br />
Router(config-router)# network 192.168.11.0<br />
Router(config-router)# network 192.168.22.0<br />
Router(config-router)#end</p>
<p>Configure EIGRP Routing<br />
Router#configure terminal<br />
Router(config)#router eigrp 10<br />
Router(config-router)#network 192.168.11.0<br />
Router(config-router)#network 192.168.22.0<br />
Router(config-router)#end</p>
<p>Configure OSPF Routing<br />
Router#configure terminal<br />
Router(config)#router ospf 100<br />
Router(config-router)#network 192.168.11.0 0.0.0.255 area 0<br />
Router(config-router)#network 192.168.22.0 0.0.0.255 area 0<br />
Router(config-router)#end</p>
<p>Verify the running configuration by displaying the router status at the first line<br />
show running-config | begin router</p>
<p>To dump the routing table type<br />
clear ip route *<br />
====================================================</p>
<p>Sample of configuring Cisco 2955S switch<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
The Cisco Switch 2955 basic configuration will setup IP address, Subnet, Enable secret password, Enable password, and Telnet password. This is the sample.<br />
Would you like to enter the initial configuration dialog? [yes/no]: Y (press Enter)</p>
<p>Basic management setup configures only enough connectivity<br />
for management of the system, extended setup will ask you<br />
to configure each interface on the system.</p>
<p>Would you like to enter basic management setup? [yes/no]: Y (press Enter)</p>
<p>Enter host name [Switch]: chicagotech</p>
<p>Enter enable secret: switch</p>
<p>Enter enable password: cisco</p>
<p>Enter virtual terminal password: ms-mvps</p>
<p>Configure SNMP Network Management? [no]: n</p>
<p>Enter interface name used to connect to the<br />
management network from the above interface summary: vlan1</p>
<p>Configuring interface vlan1:<br />
Configure IP on this interface? [yes]: y<br />
IP address for this interface: 10.0.20.51<br />
Subnet mask for this interface [255.0.0.0]: 255.255.0.0</p>
<p>Would you like to enable as a cluster command switch? [yes/no]: n</p>
<p>The following configuration command script was created:<br />
hostname host_name<br />
enable secret 5 #3$Max7$Qgr2rXBhtcYJw4KK7ac650<br />
enable password cisco<br />
line vty 0 15 password ms-mvps<br />
snmp-server community public<br />
……</p>
<p>[0] Go to the IOS command prompt without saving this config.</p>
<p>[1] Return back to the setup without saving this config.</p>
<p>[2] Save this configuration to nvram and exit.</p>
<p>If you want to save the configuration and use it the next time the switch reboots,<br />
save it in nonvolatile RAM (NVRAM) by selecting option 2.</p>
<p>Enter your selection [2]:2<br />
=====================================================</p>
<p>Introduction of Cisco Network Assistant<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Cisco Network Assistant (CNA)  is a free, simple, smart, and  secure graphic tool to manage your Cisco network. With CNA, you can manage all your Cisco devices such as switches, routers, PIX 515 firewalls, IP phones, and wireless access-points in one software.. To me this is the greatest benefit to using Cisco Network Assistant. the following lists some of the features the tool offers.<br />
1. Toolbar Icons<br />
2. Checking Total Power Usage of the IP Phones and Wireless Access Points<br />
3. Topology View<br />
4. Checking Link Properties from the Topology View<br />
5. Configuring VLANs or Applying Port Configurations to Multiple Ports Across Switches<br />
6. Cisco IOS® Software Upgrade<br />
7. Need Help?<br />
8. Saving and Restoring Configuration Files<br />
9. Smartports Advisor<br />
10. Creating a Community<br />
=============================================================</p>
<p>change time in Cisco<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>1. show time information:<br />
chicagotech1#sh clock<br />
chicagotech1#*20:10:59.033 UTC Fri Mar 1 2002</p>
<p>2. Change to Central time:<br />
chicagotech1#1(config)#clock timezone CST -6</p>
<p>3. Reset to current time:<br />
clock set 10:50:00 Oct 26 2006<br />
===========================================================</p>
<p>clear configuration<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1. &#8220;clear configuration all&#8221; clears the current running configuration and is reset to the default running configuration.<br />
2. To restore the startup configuration, go &#8220;copy st run&#8221;.<br />
3. &#8220;write erase&#8221; clears startup configuration and is reset to the factory default configuration with &#8220;reload&#8221; command.<br />
============================================================</p>
<p>load a new code for ASA<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1. Downlaod the code first.<br />
2. Run ASDM and then choose tools/upgrade software.<br />
3. Select the code from Local File Path by using Browse Local Files.<br />
4. In the Flash File System Path, type or Browse Flash: disk0:/asa722-22-8k.bin<br />
5. Click Upload Image.<br />
===========================================================</p>
<p>show and modify Cisco Wireless Bridge date and time<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1. &#8220;show clock&#8221; to display the time and date.<br />
2. For following are examples how to modify the time and date.</p>
<p>config terminal<br />
clock set 14:20:00 31 december 2007<br />
clock timezone central -6.<br />
=========================================================</p>
<p>SHOW COMMANDS<br />
&#8212;&#8212;&#8212;&#8212;&#8211;<br />
Show access-lists &#8211; all access lists on the router<br />
Show cdp &#8211; cdp timer and holdtime frequency<br />
Show cdp entry * &#8211; same as next<br />
Show cdp neighbors detail &#8211; details of neighbor with ip add and ios version<br />
Show cdp neighbors &#8211; id, local interface, holdtime, capability, platform portid<br />
Show cdp interface &#8211; int’s running cdp and their encapsulation<br />
Show cdp traffic &#8211; cdp packets sent and received<br />
Show clock &#8211; displays time set on the router<br />
Show controllers serial 0 &#8211; DTE or DCE status<br />
Show dialer &#8211; number of times dialer string has been reached, other stats<br />
Show flash &#8211; files in flash<br />
Show frame-relay lmi &#8211; lmi stats<br />
Show frame-relay map &#8211; static and dynamic maps for PVC’s<br />
Show frame-relay pvc &#8211; pvc’s and dlci’s<br />
Show history &#8211; commands entered<br />
Show hosts &#8211; contents of host table<br />
Show interface &#8211; displays statistics of all interfaces<br />
Show int f0/26 &#8211; stats of f0/26<br />
Show interface Ethernet 0 &#8211; show stats of Ethernet 0<br />
Show interface brief &#8211; displays a summary of all interface, includng status and IP address assigned<br />
Show ip &#8211; ip config of switch<br />
Show ip access-lists &#8211; ip access-lists on switch<br />
Show ip interface &#8211; ip config of interface<br />
Show ip protocols &#8211; routing protocols and timers<br />
Show ip route &#8211; Displays IP routing table<br />
Show ipx access-lists &#8211; same, only ipx<br />
Show ipx interfaces &#8211; RIP and SAP info being sent and received, IPX addresses<br />
Show ipx route &#8211; ipx routes in the table<br />
Show ipx servers &#8211; SAP table<br />
Show ipx traffic &#8211; RIP and SAP info<br />
Show isdn active &#8211; number with active status<br />
Show isdn status &#8211; shows if SPIDs are valid, if connected<br />
Show mac-address-table &#8211; contents of the dynamic table<br />
Show protocols &#8211; routed protocols and net_addresses of interfaces<br />
Show running-config &#8211; dram config file<br />
Show sessions &#8211; connections via telnet to remote device<br />
Show startup-config &#8211; nvram config file<br />
Show terminal &#8211; shows history size<br />
Show trunk a/b &#8211; trunk stat of port 26/27<br />
Show users &#8211; displays all users connected to the router<br />
Show version &#8211; ios info, uptime, address of switch<br />
Show vlan &#8211; all configured vlan’s<br />
Show vlan-membership &#8211; vlan assignments<br />
Show vtp &#8211; vtp configs<br />
=================================================</p>
<p>What&#8217;s it Overloading?</p>
<p>Overloadingis a form of dynamic NAT that maps multiple unregistered IP addresses to a single registered IP address by using different ports. Known also as PAT (Port Address Translation), single address NAT or port-level multiplexed NAT.</p>
<p>=================================================</p>
<p>ASA 5510 backup and restore using TFTP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Backup:</p>
<p>1. Run TFTP server.<br />
2. Run telnet to access ASA.<br />
3. Type enable, then the password..<br />
5. Then follow the this procedure:<br />
chicagotechpix# copy startup-config tftp:<br />
Address or name of remote host []? 192.168.0.2</p>
<p>Destination filename [startup-config]? 072406<br />
!!!<br />
8507 bytes copied in 0.40 secs</p>
<p>Restore:<br />
1. Run TFTP server.<br />
2. Run telnet to access ASA.<br />
3. Enable.<br />
5. Then follow the this procedure:</p>
<p>chiacgotechpix# copy tftp start</p>
<p>Address or name of remote host []? 192.168.0.2</p>
<p>Source filename []? 072306tftp</p>
<p>Accessing tftp://192.168.0.2/072306tftp&#8230;!!!<br />
Writing system file&#8230;<br />
!!!<br />
8507 bytes copied in 0.260 secs<br />
ciscoasa# wr mem</p>
<p>Note: 1. to copy TFTP file to running-config, do copy tftp run, give tftp Ip, source file name and press enter to confirm Running-config.<br />
2. show run to display running-config.<br />
3. show start to display start config.<br />
===================================================</p>
<p>backup/restore switch configuration using TFTP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1. Telnet the switch.<br />
2. Issue enable command.<br />
3. Issue copy running-config tftp: command.</p>
<p>This is the example.</p>
<p>chicagotech01#copy running-config tftp:<br />
Address or name of remote host []? 10.0.0.11<br />
Destination filename [chicagotech1-confg]? chicagotech1<br />
!!<br />
1825 bytes copied in 1.780 secs (1025 bytes/sec)</p>
<p>To Rstore, run copy tftp: running-configand then follow the instruction.<br />
=============================================================</p>
<p>backup/restore Cisco PIX<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Cisco pix backup</p>
<p>It depends on the PIX version. You may try the following commands.</p>
<p>To copy configuration to tftp<br />
chicagotechpix (config)#configure net 10.0.0.254:/filename</p>
<p>Note: You may be able to do that in enable mode<br />
or</p>
<p>chicagotechpix #write net 10.0.0.254:/filename<br />
Note: You may be able to do that in config mode</p>
<p>or</p>
<p>To copy the PIX image from Flash to the TFTP server:<br />
chicagotechpix #copy flash tftp</p>
<p>To copy the image from TFTP to Flash without intervention.<br />
chicagotechpix(config)#copy tftp: flash<br />
===========================================================</p>
<p>copy config.txt to Cisco switch<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1. Copy and save the configuration as config.txtx<br />
2. Download and install TFTP32.<br />
3. Run TFTP32 and Browse the config.txt.<br />
4. Telnet the switch.<br />
5. Use copy tftp: command to downalod the configuration<br />
===========================================================</p>
<p>Copy configuration from TFTP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
To erase the running configuration and re-load the configuration file from FTFP, follow theses steps:</p>
<p>Chicagotech&gt;en<br />
Chicagotech&gt;password:<br />
Chicagotech#erase startup-config<br />
Erasing the nvram filesystem will remove all configuration files!<br />
Continue? [confirm]<br />
[OK]<br />
Erase of nvram: complete<br />
Chicagotech#show startup-config<br />
startup-config is not present<br />
Chicagotech#copy tftp://192.168.2.254/Chicagotech startup-config<br />
===============================================================</p>
<p>restore config.txt from tftp<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
1. Run the tftpd32.<br />
2. Browse the file and click OK.<br />
3. Check Show Dir to make sure the config.txt is there.<br />
4. Login the wireless router/switch and enable mode.<br />
5. Type this command: copy tftp://ipaddress/config.txt flash: config.txt.</p>
<p>Note: To check the flash files, use this command: sh flash.<br />
=================================================================</p>
<p>restore Cisco config from TFTP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1. Run a TFTP program.<br />
2. Telnet to the Cisco router and enable it. Then follow these steps:</p>
<p>chicagotech831#copy tftp: running-config<br />
Address or name of remote host []? 192.168.10.100<br />
Source filename []? chicagotech831-config<br />
Destination filename [running-config]?<br />
Accessing tftp://192.168.10.100/chicagotech831-config&#8230;<br />
Loading 121306-internetok from 192.168.10.100 (via Ethernet1): !<br />
[OK - 2115 bytes]</p>
<p>2115 bytes copied in 10.284 secs (206 bytes/sec)<br />
================================================================</p>
<p>Save cisco router configuration to TFTP<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1. Run a TFTP program.<br />
2. Telnet to the Cisco router and enable it. Then follow these steps:</p>
<p>chicagotech831#copy running-config tftp:<br />
Address or name of remote host []? 192.168.10.100<br />
Destination filename [chicagotech831-confg]?<br />
!!<br />
2115 bytes copied in 1.512 secs (1399 bytes/sec)<br />
chicagotech831#<br />
==============================================================</p>
<p>Use an FTP server to restore Cisco config<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
1. Make sure the FTP is running and let you uploag.<br />
2. Telnet to the Cisco router and enable it.<br />
3. Configure the FTP username and password.<br />
CHICAGOTECH831#conf t<br />
CHICAGOTECH831(config)#ip ftp username chicagotech<br />
CHICAGOTECH831(config)#ip ftp password chicagotech<br />
CHICAGOTECH831(config)#end<br />
CHICAGOTECH831#</p>
<p>4. Router#copy ftp: running-config<br />
5. Address or name of remote host [192.168.10.100]?<br />
6. Source filename [CHICAGOTECH831_confg]?<br />
7. Destination filename [running-config]?<br />
8. Accessing ftp:// 192.168.10.100/ CHICAGOTECH831_confg&#8230;<br />
9. Loading CHICAGOTECH831_confg!<br />
10. [OK - 1423/4764 bytes] 1425 bytes copied in 13.423 secs (76 bytes/sec)<br />
================================================================</p>
<p>Restore config issue</p>
<p>Situation: the client had a Cisco consultant to setup Outdoor wireless 1310 bridge. After finishing the configuration, the consultant save the config file as word format. When the client tries to restore the config using the word file, he losses the configuration in the ridge. After rebooting it, the bridge shows hostname\par&gt;. He can&#8217;t logon using the enable password.</p>
<p>Solution: Turn off the bridge and turn it on while hold esc key. That will restore to the manufacturer default settings. Then restore the config using text format instead of word format.</p>
<p>==============================================================</p>
<p>How to upgrade Cisco IOS for 2900 and 3500 Switch<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
1. Check the Flash memory.</p>
<p>chicagotech#dir flash:</p>
<p>Directory of flash:/</p>
<p>2  drwx         704   Feb 28 1993 18:03:50  html</p>
<p>4  -rwx         109   Feb 28 1993 18:01:57  info</p>
<p>5  -rwx     1751867   Feb 28 1993 18:03:00  c3500XL-c3h2s-mz.120-5.WC3b.bin</p>
<p>16  -rwx         109   Feb 28 1993 18:03:50  info.ver</p>
<p>17  -rwx       94680   Feb 28 1993 18:04:08  c3500XL-hdiag-mz-120.5.2-XU</p>
<p>18  -rwx         355   Dec 31 1969 18:00:08  env_vars</p>
<p>19  -rwx         616   Jan 22 2008 15:21:16  vlan.dat</p>
<p>21  -rwx        2462   Jun 19 1993 18:02:13  config.text</p>
<p>3612672 bytes total (358912 bytes free)</p>
<p>2. Delete the existing image since the file to be loaded is larger than the available capacity.</p>
<p>chicagotech#delete flash:c3500XL-c3h2s-mz.120-5.WC3b.bin</p>
<p>Delete filename [c3500XL-c3h2s-mz.120-5.WC3b.bin]?</p>
<p>Delete flash:c3500XL-c3h2s-mz.120-5.WC3b.bin? [confirm]</p>
<p>3. Delete access to the switch HTML pages.</p>
<p>chicagotech#conf t</p>
<p>Enter configuration commands, one per line.  End with CNTL/Z.</p>
<p>chicagotech(config)#no ip http server</p>
<p>chicagotech(config)#end</p>
<p>chicagotech#delete flash:html/*</p>
<p>Delete filename [html/*]?</p>
<p>Delete flash:html/Snmp? [confirm]</p>
<p>%Error deleting flash:html/Snmp (Is a directory)</p>
<p>Delete flash:html/homepage.htm? [confirm]</p>
<p>Delete flash:html/not_supported.html? [confirm]</p>
<p>Delete flash:html/common.js? [confirm]</p>
<p>Delete flash:html/cms_splash.gif? [confirm]</p>
<p>Delete flash:html/cms_12.html? [confirm]</p>
<p>Delete flash:html/cms_13.html? [confirm]</p>
<p>Delete flash:html/cluster.html? [confirm]</p>
<p>Delete flash:html/CMS.jar? [confirm]</p>
<p>Delete flash:html/CiscoChartPanel.jar? [confirm]</p>
<p>Delete flash:html/Redirect.jar? [confirm]</p>
<p>4. Us etar command to copy the combined .tar file to the switch.</p>
<p>chicagotech#tar /x tftp://10.0.0.11/c3500xl-c3h2s-tar.120-5.WC17.tar flash:</p>
<p>Loading c3500xl-c3h2s-tar.120-5.WC17.tar from 10.0.0.11 (via VLAN1): !</p>
<p>extracting c3500xl-c3h2s-mz.120-5.WC17.bin (1811552 bytes)!!!!!!!!!!!!!!!!!!!!!!</p>
<p>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>!!!!!!!!!!!!</p>
<p>html/ (directory)</p>
<p>extracting html/homepage.htm (3988 bytes)!</p>
<p>extracting html/not_supported.html (1392 bytes)</p>
<p>extracting html/common.js (9449 bytes)!!</p>
<p>extracting html/cms_splash.gif (22152 bytes)!!!!</p>
<p>extracting html/cms_13.html (1211 bytes)!</p>
<p>extracting html/cluster.html (2823 bytes)!</p>
<p>extracting html/Redirect.jar (4229 bytes)!</p>
<p>extracting html/c4v4_disc.sgz (9806 bytes)!!</p>
<p>extracting html/CMS.sgz (955595 bytes)!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>extracting html/CiscoChartPanel.sgz (58784 bytes)!!!!!!!!!!!!</p>
<p>extracting html/cms_boot.jar (44484 bytes)!!!!!!!!!</p>
<p>extracting info (109 bytes)</p>
<p>extracting info.ver (109 bytes)</p>
<p>[OK - 2938368 bytes]</p>
<p>chicagotech#</p>
<p>5. Use dir flash command to make sure the new image in the Flash.</p>
<p>chicagotech#dir flash:</p>
<p>Directory of flash:/</p>
<p>2  drwx         768   Jan 22 2008 16:12:20  html</p>
<p>4  -rwx         109   Jan 22 2008 16:12:22  info</p>
<p>5  -rwx     1811552   Jan 22 2008 16:11:36  c3500xl-c3h2s-mz.120-5.WC17.bin</p>
<p>16  -rwx         109   Jan 22 2008 16:12:22  info.ver</p>
<p>17  -rwx       94680   Feb 28 1993 18:04:08  c3500XL-hdiag-mz-120.5.2-XU</p>
<p>18  -rwx         355   Dec 31 1969 18:00:08  env_vars</p>
<p>19  -rwx         616   Jan 22 2008 16:12:16  vlan.dat</p>
<p>21  -rwx        2462   Jun 19 1993 18:02:13  config.text</p>
<p>3612672 bytes total (582144 bytes free)</p>
<p>6. Set the boot parameter so that the switch will boots with the new image after reloading.</p>
<p>chicagotech#conf t</p>
<p>Enter configuration commands, one per line.  End with CNTL/Z.</p>
<p>chicagotech(config)#boot system flash:c3500xl-c3h2s-mz.120-5.WC17.bin</p>
<p>7. Re-enable access to the switch HTTP pages.</p>
<p>chicagotech(config)#ip http server</p>
<p>chicagotech(config)#end</p>
<p>8. Reload the new image.</p>
<p>chicagotech#reload</p>
<p>System configuration has been modified. Save? [yes/no]: y</p>
<p>Building configuration&#8230;</p>
<p>[OK]</p>
<p>Proceed with reload? [confirm]<br />
===================================================================</p>
<p>test certificate is working using Cisco command<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
The command line is</p>
<p>test aaa gr r username password l.</p>
<p>When using test aaa to test windows IAS, you may receive Event ID 2: Reason-Code = 66. That means the Cisco router is talking to the IAS server, but don&#8217;t recognize the non-domain user.</p>
<p>=============================================================</p>
<p>TROUBLESHOOT<br />
&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Problem: We have a used Cisco 1720 router. No one knows the password. I am trying to recover the password, but I can’t. I press Break on the terminal (windows XP, 2000) keyboard within 60 seconds while turn on the router, but the router still loads the image and asks for the password. I have tried Ctrl+Break, Shift+Break, Shift+F5. I also tried 3 computers. Any suggestions.</p>
<p>A: Try TeraTerm.</p>
<p>Q: Downloaded TeraTerm that helps me to recover the password. These are the steps:</p>
<p>1. Turn on the power while hold Alt+B.<br />
2. Type confreg 0&#215;2142 at the rommon 1&gt;<br />
3. Type reset at the rommon 2&gt;<br />
4. You will have<br />
&#8212; System Configuration Dialog &#8212;</p>
<p>Would you like to enter the initial configuration dialog? [yes/no]:</p>
<p>5. Type yes to continue and you will see</p>
<p>&#8220;Basic management setup configures only enough connectivity<br />
for management of the system, extended setup will ask you<br />
to configure each interface on the system&#8221;.</p>
<p>Would you like to enter basic management setup? [yes/no]:</p>
<p>6. Type yes to continue and follow the instruction to configure the router.</p>
<p>Related Topic</p>
<p>Password Recovery Procedures [Cisco IOS Software Releases 12.1 Mainline] &#8211; This &#8230; o Password Recovery Procedure for the Cisco 806, 827, and 837 Routers &#8230;<br />
=======================================================</p>
<p>http://www.howtocisco.com/</p>
<p>http://www.chicagotech.net/netforums/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sabinshrestha.com.np/cisco/configure-cisco-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS Installing Audio Video</title>
		<link>http://www.sabinshrestha.com.np/linux-downloads/centos-installing-audio-video/</link>
		<comments>http://www.sabinshrestha.com.np/linux-downloads/centos-installing-audio-video/#comments</comments>
		<pubDate>Tue, 18 Mar 2008 11:16:20 +0000</pubDate>
		<dc:creator>sabin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sabinshrestha.com.np/?p=113</guid>
		<description><![CDATA[http://centos.karan.org/el4/extras/stable/i386/RPMS/repodata/repoview/Applications.Multimedia.group.html # yum info xmms # yum install xmms-mp3 http://rpm.pbone.net/index.php3/stat/4/idpl/1703961/com/bmp-0.9.7-0.lvn.3.3.i386.rpm.html None of RedHat distributions ships with MP3 support because patent issues. In CentOS 4 you have 3 choices: a) Use Rhythmbox: in my opinion, I don&#8217;t recomended this option. This program crash a lot !. For put MP3 support download and install this RPM: http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/3/gstreamer-plugins-extra/gstreamer-plugins-extra-audio-0.8.6-2.1.fc3.fr.i386.rpm [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://centos.karan.org/el4/extras/stable/i386/RPMS/repodata/repoview/Applications.Multimedia.group.html">http://centos.karan.org/el4/extras/stable/i386/RPMS/repodata/repoview/Applications.Multimedia.group.html</a></p>
<p>#  yum info xmms<br />
# yum install xmms-mp3</p>
<p><a href="http://rpm.pbone.net/index.php3/stat/4/idpl/1703961/com/bmp-0.9.7-0.lvn.3.3.i386.rpm.html">http://rpm.pbone.net/index.php3/stat/4/idpl/1703961/com/bmp-0.9.7-0.lvn.3.3.i386.rpm.html</a></p>
<p>None  of RedHat distributions ships with MP3 support because patent issues.</p>
<p>In  CentOS 4 you have 3 choices:</p>
<p>a) Use Rhythmbox: in my opinion, I don&#8217;t  recomended this option. This program crash a lot !. For put MP3 support download  and install this RPM:<br />
<a href="http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/3/gstreamer-plugins-extra/gstreamer-plugins-extra-audio-0.8.6-2.1.fc3.fr.i386.rpm">http://ftp.freshrpms.net/pub/freshrpms/fedora/linux/3/gstreamer-plugins-extra/gstreamer-plugins-extra-audio-0.8.6-2.1.fc3.fr.i386.rpm</a></p>
<p>You  will need other packages like gsm that you found in Dag repository (look b  option).</p>
<p>b) Install XMMS and MP3 support, download APT from Dag website,  it&#8217;s here :<br />
<a href="http://dag.wieers.com/packages/apt/apt-0.5.15cnc6-4.2.el4.rf.i386.rpm">http://dag.wieers.com/packages/apt/apt-0.5.15cnc6-4.2.el4.rf.i386.rpm</a></p>
<p>After  open a terminal and run:<br />
apt-get update<br />
apt-get install xmms  xmms-mp3</p>
<p>c) Install Beep Media Player, it&#8217;s a XMMS fork written in GTK2.  It looks better than XMMS. You find the packages here:<br />
<a href="http://newrpms.sunsite.dk/apt/redhat/en/i386/fc3/RPMS.newrpms/bmp-0.9.7-2.rhfc3.nr.i386.rpm">http://newrpms.sunsite.dk/apt/redhat/en/i386/fc3/RPMS.newrpms/bmp-0.9.7-2.rhfc3.nr.i386.rpm</a><br />
<a href="http://newrpms.sunsite.dk/apt/redhat/en/i386/fc3/RPMS.newrpms/bmp-extra-plugins-0.2.2-3.rhfc3.nr.i386.rpm">http://newrpms.sunsite.dk/apt/redhat/en/i386/fc3/RPMS.newrpms/bmp-extra-plugins-0.2.2-3.rhfc3.nr.i386.rpm</a><br />
<a href="http://newrpms.sunsite.dk/apt/redhat/en/i386/fc3/RPMS.newrpms/bmp-mp3-0.9.7-2.rhfc3.nr.i386.rpm">http://newrpms.sunsite.dk/apt/redhat/en/i386/fc3/RPMS.newrpms/bmp-mp3-0.9.7-2.rhfc3.nr.i386.rpm</a></p>
<p>=====================================<br />
Most  of the libraries that are not in CentOS, are in Dag repository.</p>
<p>For  example liblirc is here<br />
<a href="http://dag.wieers.com/packages/lirc/lirc-0.6.6-4.2.el4.rf.i386.rpm">http://dag.wieers.com/packages/lirc/lirc-0.6.6-4.2.el4.rf.i386.rpm</a></p>
<p>You  can find more packages here:<br />
<a href="http://dag.wieers.com/home-made/apt/packages.php">http://dag.wieers.com/home-made/apt/packages.php</a><br />
===============================================</p>
<p>Install  the Dag repo into Yum using the instruction found at <a href="http://dag.wieers.com/home-made/apt/FAQ.php#B">http://dag.wieers.com/home-made/apt/FAQ.php#B</a><br />
<a href="http://dag.wieers.com/home-made/apt/">http://dag.wieers.com/home-made/apt/</a><br />
<a href="http://dag.wieers.com/home-made/apt/FAQ.php#B">http://dag.wieers.com/home-made/apt/FAQ.php#B</a></p>
<p><a href="http://rpm.greysector.net/yum.html">http://rpm.greysector.net/yum.html</a><br />
<a href="http://rpm.greysector.net/mplayer/yum.html">http://rpm.greysector.net/mplayer/yum.html</a><br />
<a href="http://linux.softpedia.com/get/Multimedia/Video/MPlayer-020.shtml">http://linux.softpedia.com/get/Multimedia/Video/MPlayer-020.shtml</a></p>
<p><a href="http://apt.sw.be/redhat/el4/en/i386/RPMS.dag/">http://apt.sw.be/redhat/el4/en/i386/RPMS.dag/</a><br />
<a href="http://www.live.com/getstarted.aspx"></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sabinshrestha.com.np/linux-downloads/centos-installing-audio-video/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Repair Centos 5 lvm filesytem</title>
		<link>http://www.sabinshrestha.com.np/linux-downloads/repair-centos-5-lvm-filesytem/</link>
		<comments>http://www.sabinshrestha.com.np/linux-downloads/repair-centos-5-lvm-filesytem/#comments</comments>
		<pubDate>Wed, 12 Mar 2008 16:39:30 +0000</pubDate>
		<dc:creator>sabin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.sabinshrestha.com.np/?p=111</guid>
		<description><![CDATA[1) linux rescue 2) skip mounting and go to command prompt 3) Run the following command to activate the LVM partition lvm vgchange -a y 5)You should be able to address the activated LVMs. If you have trouble with their naming, run: lvm lvscan 6) check the partition fdisk -l 7) Check and repair each [...]]]></description>
			<content:encoded><![CDATA[<p>1) linux rescue</p>
<p>2) skip mounting and go to command prompt</p>
<p>3) Run the following command to activate the LVM partition</p>
<p>lvm vgchange -a y</p>
<p>5)You should be able to address the activated LVMs. If  you have trouble with their naming, run:</p>
<p>lvm lvscan</p>
<p>6) check the partition</p>
<p>fdisk -l</p>
<p>7) Check and repair each logical volume’s filesystem by running something like  this:</p>
<p>fsck -f /dev/VolGroup00/LogVol00</p>
<p>reboot you system</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sabinshrestha.com.np/linux-downloads/repair-centos-5-lvm-filesytem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
