Saturday, June 29, 2013

Floating Adsense for Blogger

Making an floating Adsense is very useful for those who have not enough space for there blog, Actually we can see our blog’s left and right side always vacant which is known as idle space and we can easily utilized those gap by using floating technique that can generate more click on AdSense ads. AdSense ads can be float right or left site of your blog. Not only Adsense ads you can useful what ads do want to insert there. That why I make this simple tutorial to share what I know about how to put a floating ads in your blog. So now here are the simple step you do.

Guide 1 - Log in into your blogger account >> Go to Blogger Dashboard
Guide 2 - Go to Layout tab
Guide 3 - Click on Add Gadget >> HTML/JavaScript
Guide 4 - Now paste the following code

Watch the live demo!



#jrpcollectionads {
background: #333333 url('..');
border-bottom:2px #ffffff solid;
border-right:2px #ffffff solid;
border-left:2px #ffffff solid;
border-bottom:1px #ffffffsolid;
border-bottom:0px blue solid;
<script type="text/javascript">
function getValue()
document.getElementById("bsadsheadline").style.display = 'none';
<div id="bsadsheadline">
<div id="jrpcollectionads">
<span style="color:#ffffff;font-size:13px;font-weight:bold;text-shadow:white 0.1em 0.1em 0.1em"></span>
<span style="color:#ffffff;font-size:13px;font-weight:bold;text-shadow:white 0.1em 0.1em 0.1em;float:right;padding-top:3px;padding-right:10px"><a href="" target="_blank" onclick="getValue()">close(x)</a></span>
<div id="bsadsbase">
<p align="left"><h3></h3></p>
Ads Code Here

Note : 

  • Change Ads Code Here  with your desire ad code
  • Change 600 160 for the height and width you want
  •  Change left: with right to float right side of your blog

Wednesday, June 26, 2013

How to make a Bootable Flash Drive?

Windows XP can be installed from a USB key.This may be required if the optical drive is not working on the PC or if the user has a netbook. Windows XP can be booted from a USB flash drive. For this, a bootable USB key must be created. This process requires certain requirements like a USB key with a capacity of 1 or 2 GB, an official CD of the Windows OS and also you need a PowerISO software.  Additionally, the key must be fast to avoid interruptions during the installation procedure and most importantly the configuration of the system must accept the boot on the USB key.

Being able to boot Windows from a USB memory stick can be very useful, especially if using Netbook or a PC that does not have a CD/DVD drive.


A USB key (capacity: 1 or 2 GB)
A Windows XP CD (official version)
A PC with a CD player and a USB key
The PowerISO software : Download it here!

Once downloaded, run the installation software and follow the installation wizard. At the end of the installation, the software will launch.

Making  Bootable USB for Windows

Launch PowerISO

Click on Tools, then click Create Bootable USB Drive

And the pop-up windows will come up, like this!
Search for your Source Image of Windows
Then hit start, and wait until it finish!

And that all you already done it!.hope this tutorial helps you all!

Update :

You can use WinToFlash, it's simpler and easier, you can download it here!

Monday, June 24, 2013

How to Recover Deleted File using Shift + Delete keys?

What do I say about this? Shall we say we frequently delete files from our laptop or PC, which are unimportant or unwanted or sometimes even accidentally delete some of them. But later, these files seem important and we need them back, and the question is how do I recover this file that I've been delete.

That was such a wonderful question, recovering it is not impossible for some technical experts, I gonna say I'm not that a technical expert but I just want to share this knowledge I know on how to recover your deleted file. But before we proceed to the step on how to recover it let us know on what is the different between DELETE files and SHIFT+DELETE files.

Difference between DELETE files and SHIFT+DELETE files

Everyone or just like others they are just using "Delete" key to delete a file,by selecting delete option from the menu that appears with the right click of the mouse. When you delete files using these choices, it gets stored in the recycle bin and hence can be restored to the desired location if required later on. Another way of deleting file is by using "Shift + Delete" keys. When you make use of this method, the file does not get stored in the recycle bin as it bypasses it.

What Happen when you use SHIFT+DELETE key to erase a files?

I think that you already know that if you use Delete key to erase a file, that file is stored in recycle bin, but deleted using "Shift + Delete" keys, as it bypasses it. The question is Are that files permanently erased from the hard drive?
Here is the answer, A big big NO, it is not permanently erase. When you use "Shift + delete" key to remove the file, all the entries regarding the file is deleted from the file directory indicating the space as free memory space where new data can be written, but the file is still not erased permanently. Rather it is present in the hard drive itself until it is overwritten.

How to recover file that is deleted using "Shift + Delete"keys?

And the last question is that you read above, Since, the file that is deleted using "Shift + Delete" key does not have any entry in the file directory. Therefore, the file is present in the hard drive as raw data and requires a high-quality recovery tool.

I myself, I highly recommended to use this recovery tool, to recover your deleted file.
Yodot has a very nice and awesome recovery tool download it now!

Download Recovery for Mac    
Download Recovery for Windows

Tuesday, June 18, 2013

How to add Speedtest Widgets to your Website or Blog?

As i search and read online now provide you html 5 speed test widget in free. is free broadband speed test with server located all over the world. Measure you actual download and upload speed of your internet connection with And that's why i made this tutorial to share this thing that i discovered. Here is the step on how to display speed test widget on your website or blog just follow the steps given  below and you can make it.

  • Visit
  • Click on Get Free Widget Menu
  • Then copy the HTML code
  • Go to your website or Blog then paste the following code that you copy

And that's all you already done, this is speedtest widgets look like. Hope this tutorial give's you nice information. If you like this blog don't forget to share.

Or if you want to try another speedtest go to this site I listed.
  1. internetfrog
  2. widgetbox
  3. coolbuster

Thursday, June 13, 2013

How to make your Blog Searchable

1. Work on Your Timing

When possible, your blog posts should be published and initially shared at the most optimum time possible. There are studies which you can review that provide aggregate activity levels for the major social networks, but the only way you can know for sure when your followers are most active is by monitoring your social media activity.

2. Invest Time in Your Headlines

Nothing is more important than the headline of your post. Often, that is the only part of your post that is seen or read.

3. Provide Social Sharing Buttons

This should go without saying, and yet I still see countless business blogs that are not providing readers with easy to use buttons for social sharing.

4. Ask Readers to Share

Statistics have shown that adding Please RT to your tweets will increase the number of retweets you receive dramatically. Using Please ReTweet is even more effective. The psychology here is relatively simple. People will often do what they're asked if it's simple enough. On Twitter, clicking a retweet button takes just seconds and so your followers don't mind doing it for you.

5. Share First

Finally, it's very important that you reciprocate likes and shares, as your readers and other bloggers will appreciate it and be more motivated to continue to support you. Similarly, if you are active on other blog sites and are Liking and Sharing their content, those writers will be more willing to +1 and tweet your posts.

Monday, June 10, 2013

Facebook Like Box Pop-Up Widgets for Blogger

1. Log-in in your Blogger account
2. Go to Dashboard >>> Layout
3. Click add gadgets, then search for HTML/JavaScript
4. Then Paste the Following code below :

<!-- This Is A CopyRight Code.It Is Free To Use But With HTML Design Code.
If AnyOne Found To Be Changing This Code Should Be Under Legal Action Via DMCA. -->
<style type="text/css">

* CSS POP-UP With Light Box Effect- © Soft-Technologies (
* This notice must stay intact for use.
* Visit JRP's Page for full source code.
* html #exestylepopupdiv {position:absolute;}
#exestylepopupdiv {display:block; top:0px; left:0px; width:100%; height:100%; position:fixed; background-image:url('');margin:0; overflow-y:auto;z-index:999999;}
#exestylepopup {background-color: #fff; overflow:none;z-index:999999;}
.exestylepopup {width:400px; height:420px; position:fixed; top:45%; left:50%; margin-top:-210px; margin-left:-200px; border: 10px solid #999; padding: 20px;z-index:999999;}
.exe-title {background:#000;color: #fff;font-size: 20px !important;font-weight:bold;margin:5px 0;border:20px solid #ddd;padding:10px;line-height:25px; font-family:arial !important;}
<!--[if lte IE 6]>
<style type="text/css">
html {overflow-x:auto; overflow-y:hidden;}
<div id="exestylepopupdiv">
<div id="exestylepopup" class="exestylepopup">
<h3 class="exe-title">
Receive All Updates Via Facebook. Just Click the Like Button Below...</h3>
<iframe src="//" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:300px; height:258px;" allowtransparency="true"></iframe>
<br />
<center style=" float:right; margin-right:35px; font-size:9px;" >
Powered By <a style=" font-size:9px; color:#3B78CD; text-decoration:none;" href="">JRP's Page</a></center>
<center style=" float:left; margin-left:35px; font-size:9px;cursor:pointer;" >
<a style=" font-size:9px; color:#3B78CD; text-decoration:none;" onmouseup="document.getElementById('exestylepopupdiv').style.display='none'"><b>Skip To Continue</b></a></center>
<!-- This Is A CopyRight Code.It Is Free To Use But With HTML Design Code.
If AnyOne Found To Be Changing This Code Should Be Under Legal Action Via DMCA. -->

5. Change the color BLUE if you want, and change the color RED with your own fan page!
6. And that's it your totally done!

Hope this help to all you guys, don't forget to share it on web if you like~!

Mashable Sharing Widgets ( How to add into Blogger )

If you are thinking and searching about how to add a Mashable Sharing Widgets into your blog, this article is the right for your. Its very simple on how to add just follow the steps o give below and that's all. 
  1. Go To Blogger >> Design >> Layout
  2. Choose "Add a gadget"
  3. Select HTML/JavaScript Widget
  4. And paste the following code inside it!

    /* Social Widget */ 
    #MBT-mashable-bar { 
        border: 0; 
        margin-bottom: 10px; 
        margin: 0 auto; 
    .fb-likebox { 
        background: #fff; 
        padding: 10px 13px 0 10px; 
        border-right: 1px solid #D8E6EB; 
       border-left: 1px solid #D8E6EB; 
       border-bottom: 1px solid #D8E6EB; 
    .googleplus { 
        background: #F5FCFE; 
        border-top: 1px solid #FFF; 
        border-bottom: 1px solid #ebebeb; 
        border-right: 1px solid #D8E6EB; 
        border-left: 1px solid #D8E6EB; 
        border-image: initial; 
        font-size: .90em; 
        font-family: "Arial","Helvetica",sans-serif; 
        color: #000; 
        padding: 9px 11px; 
        line-height: 1px;} 
    .googleplus span { 
        color: #000; 
        font-size: 11px; 
        position: absolute; 
        margin: 9px 70px;} 
    .g-plusone {    float: left;}
.gplus { 
        background: #fff; 
        padding: 0px; 
        border: 0px solid #C7DBE2; 

    .twitter { 
        background: #EEF9FD; 
        padding: 10px; 
        border: 1px solid #C7DBE2; 
        border-top: 0;} 
    #mashable { 
        background: #EBEBEB; 
        border: 1px solid #CCC; 
        border-top: 1px solid white; 
        padding: 2px 8px 2px 3px; 
        text-align: right; 
        border-image: initial;} 
    #mashable .author-credit {} 
    #mashable .author-credit a { 
        font-size: 10px; 
        font-weight: bold; 
        text-shadow: 1px 1px white; 
        color: #1E598E; 
    #email-news-subscribe .email-box{ 
        padding: 5px 10px; 
        font-family: "Arial","Helvetica",sans-serif; 
        border-top: 0; 
        border-right: 1px solid #C7DBE2; 
        border-left: 1px solid #C7DBE2; 
        border-image: initial; 
    #email-news-subscribe .email-box{ 
        border: 1px solid #dedede; 
        color: #999; 
        padding: 7px 10px 8px 10px; 
        -moz-border-radius: 3px; 
        -webkit-border-radius: 3px; 
        -o-border-radius: 3px; 
        -ms-border-radius: 3px; 
        -khtml-border-radius: 3px; 
        border-radius: 3px; 
        border-image: initial; 
        font-family: "Arial","Helvetica",sans-serif;}   
    #email-news-subscribe .email-box{color:#333}   
    #email-news-subscribe .email-box input.subscribe{ 
        background: -moz-linear-gradient(center top,#FFCA00 0,#FF9B00 100%); 
        background: -webkit-gradient(linear,left top,left bottom,color-stop(0,#FFCA00),color-stop(1,#FF9B00)); 
        background: -moz-linear-gradient(center top,#FFCA00 0,#FF9B00 100%); 
        -pie-background: linear-gradient(270deg,#ffca00,#ff9b00); 
        font-family: "Arial","Helvetica",sans-serif; 
        border:1px solid #cc7c00; 
        text-shadow:#d08d00 1px 1px 0; 
        padding:7px 14px; 
        border-image: initial;} 
    #email-news-subscribe .email-box input.subscribe:hover{ 
        background: #ff9b00; 
        background-image:-webkit-gradient(linear,left top,left bottom,from(#ffda4d),to(#ff9b00)); 
        outline:0;-moz-box-shadow:0 0 3px #999; 
        -webkit-box-shadow:0 0 3px #999; 
        box-shadow:0 0 3px #999 
        background:-webkit-gradient(linear,left top,left bottom,color-stop(0,#ffda4d),color-stop(1,#ff9b00)); 
        background:-moz-linear-gradient(center top,#ffda4d 0,#ff9b00 100%); 
        border:1px solid #cc7c00; 
        text-shadow:#d08d00 1px 1px 0}   
    #other-social-bar { 
        background-color: #D8E6EB; 
        box-shadow: 0 1px 1px #FFFFFF inset; 
        padding: 0px; 
        font-family: "Arial","Helvetica",sans-serif; 
        overflow: hidden; 
        border: 1px solid #B6D0DA; 
    #other-social-bar ul {list-style: none outside none; padding-left: 4px;} 
    #other-social-bar .other-follow { 
        float: left; 
        overflow: hidden; 
        width: 270px;} 
    #other-social-bar .other-follow ul { 
        list-style: none outside none; 
        padding-left: 4px;} 
    #other-social-bar .other-follow ul li { 
        font-size: 12px; 
        font-weight: bold; 
        text-shadow: 1px 1px white;}   
    #other-social-bar .other-follow ul li a { 
        font-size: 12px; 
        font-weight: bold; 
        text-shadow: 1px 1px white;} 
    #other-social-bar .other-follow li { 
        font-size: 12px; 
        font-weight: bold; 
        text-shadow: 1px 1px white;} 
    #other-social-bar .other-follow li a { 
        font-size: 12px; 
        font-weight: bold; 
        text-shadow: 1px 1px white;} 
    #other-social-bar .other-follow { 
        background: url('') no-repeat transparent; 
        line-height: 1; 
        padding: 0px 3px 1px 20px; 
        width: 60px; 
    #other-social-bar .other-follow a, #other-social-bar .other-follow a, #other-social-bar .other-follow a{ 
    #other-social-bar .other-follow a:hover, #other-social-bar .other-follow a:hover, #other-social-bar .other-follow a:hover{ 
    #other-social-bar .other-follow { 
        background: url('') no-repeat transparent; 
        line-height: 1; 
        padding: 0px 3px 1px 20px; 
        width: 60px; 
    #other-social-bar .other-follow { 
        background: url( no-repeat transparent; 
        line-height: 1; 
        width: 60px; 
        padding: 0px 3px 1px 20px; 


    <!--[if IE]>
    #email-news-subscribe .email-box input.subscribe{ 
        background: #FFCA00; 
<!--begin of social widget--> <div style="margin-bottom:10px;"> <div id="MBT-mashable-bar" > <!-- Begin Widget --> 
<div class="gplus"> <link href="" rel="publisher" />
<script type="text/javascript"> window.___gcfg = {lang: 'en'}; undefinedfunctionundefined) {var po = document.createElementundefined"script"); po.type = "text/javascript"; po.async = true;po.src = ""; var s = document.getElementsByTagNameundefined"script")[0]; s.parentNode.insertBeforeundefinedpo, s); })undefined);</script> <script type="text/javascript"> var _gaq = _gaq || []; _gaq.pushundefined['_setAccount', 'UA-29131740-1']); _gaq.pushundefined['_trackPageview']); undefinedfunctionundefined) { var ga = document.createElementundefined'script'); ga.type = 'text/javascript'; ga.async = true; ga.src = undefined'https:' == document.location.protocol ? 'https://ssl' : 'http://www') + ''; var s = document.getElementsByTagNameundefined'script')[0]; s.parentNode.insertBeforeundefinedga, s); })undefined); </script> 
<!-- Place this tag where you want the badge to render --> <g:plus href="" width="300" height="131" margin="0px" theme="light"></g:plus> </div> 
<div class="fb-likebox"> <!-- Facebook --> <iframe src="//;send=false&amp;layout=standard&amp; width=200px&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp; font&amp;height=100px&amp;" scrolling="no" frameborder="0" style="border:none; overflow:hidden; "></iframe> </div> 
<div class="googleplus"> <!-- Google --> <span>Recommend us on Google!</span><div class="g-plusone" data-size="medium"></div> <script type="text/javascript" src=""></script> </div> 
<div class="twitter"> <!-- Twitter --> <iframe title="" style="width: 300px; height: 20px;" class="twitter-follow-button" src="; align=&amp;button=blue&amp;id=twitter_tweet_button_0&amp; lang=en&amp;link_color=&amp;screen_name=photograverz&amp;show_count=&amp; show_screen_name=&amp;text_color=" frameborder="0" scrolling="no"></iframe> </div> 
<div id="email-news-subscribe"> <!-- Email Subscribe --> <div class="email-box"> <form action="" method="post" target="popupwindow" onsubmit="window.openundefined'', 'popupwindow', 'scrollbars=yes,width=550,height=520');return true"> <input class="email" type="text" style="width: 150px; font-size: 12px;" id="email" name="email" value="Enter Your Email here.." onfocus="ifundefinedthis.value==this.defaultValue)this.value=&#39;&#39;;" onblur="ifundefinedthis.value==&#39;&#39;)this.value=this.defaultValue;" /> <input type="hidden" value="JRP's Page" name="uri" /> <input type="hidden" name="loc" value="en_US" /> <input class="subscribe" name="commit" type="submit" value="Subscribe" /> </form> </div> </div> <div id="other-social-bar"> <!-- Other Social Bar --> <ul class="other-follow"> <li class="my-rss"> <a rel="nofollow" title="RSS" href="'s Page" target="_blank">RSS Feed</a> </li> <li class="my-twitter"> <a rel="nofollow" title="twitter" rel="author" href="  target="_blank">Twitter</a> </li> <li class="my-gplus"> <a rel="nofollow" title="Google Plus" rel="author" href= target="_blank">Google Plus</a> </li> </ul> </div> <div id="mashable" style="background: #EBEBEB;border: 1px solid #CCC;border-top: 1px solid white;padding: 1px 8px 1px 3px;text-align: right;border-image: initial;font-size:10px;font-family: "arial","helvetica",sans-serif;"> <span class="author-credit" style="font-family: Arial, Helvetica, sans-serif;"><a href="" target="_blank" >Blogger Widgets »</a></span></div></div> <!-- End Widget --> </div> 
<!--end of social widget-->

  • Change with your Google + Profile
  • Change photograverz with your twitter username
  • Change JRP's Page with your feedburner title. Its look like this's Page
  • Change's Page with your feedburner link.
  • Change with your Facebook Page Link
5. Go to template >> Edit HTML
JRP's Page

6. Look for this ]]></b:skin>, Use Ctrl-F to find.
JRP's Page

7. Paste the following code just below it.
<script src='' type='text/javascript'/>
8. Then Save it!

Saturday, June 8, 2013

Be Friendly to Google

Have you ever wondered why or how the search results from sites like CNET or Google Play/iTunes look so different from search results for your own website? That happens because Google 'understands' these sites better than yours. This is not to say that your site doesn't meet the 'quality criteria', so to speak. Rather, it merely means that Google can identify and understand the structure of such sites, and can provide a precise yet comprehensive and accurate overview for them. You can do that too by structuring the data/content on your website, so that search engines know exactly what your site is about. Based on your structured data, Google can show appropriate information on Google Now or Knowledge Graph. Imagine a review website where users write product reviews. You wouldn't them all to be treated the same way in search results now, would you? Structured Data will help Google provide searchers with accurate and interactive information they can easily relate to. This will not only help your website's CTR by a large degree, it will also build up your 'SEO-optimization points', meaning that search engines will be more hospitable for your website.

To help you participate in structured data features, Google has just recently released two news tools, the Data Highlighter, and the Structured Data Markup Helper tool.

Data Highlighter

The Data Highlighter basically helps identify what sort of content you have on your site, and teaches Google the pattern of structured data about events on your website. Using the Data Highlighter, you won't have to modify the HTML of your existing page. Start by logging into Google Webmaster Tools, and then from the left sidebar, go to Optimization >> Data Highlighter. Then click on the button on the right that says Start Highlighting.

The Data Highlighter basically helps identify what sort of content you have on your site, You can now tell Google whether your site is among the following types listed.
  • Articles
  • Events
  • Local Bussiness
  • Movies
  • Products
  • Restaurants
  • Software Applications
  • TV Programs
Then be asked to enter a URL, and then choose its type from among the eight ( 8 ) listed above. You can also choose to tag just that page, or other pages with the same consistent formatting too. The latter would be a good option for a blog, for example.

After this, you will see an overview of that page, and you will have to tag each part of the page with your mouse. You can, for example, specify the author, the publishing date, and the average rating for an article. Tagging options vary depending upon what option you chose (i.e. Article, Product etc).

The process will take a few minutes, at the end of which the content will be 'highlighted' automatically. 

Structured Data Markup Helper

As an alternative to the Data Highlighter where you let Google do the work for you, you can use the Structured Data Markup Helper tool to edit your HTML, and optimize your site using the markup generated by Google (for advanced users). 

It works in much the same way as Data Highlighter. You first have to tag various page elements with your mouse. Then, this tool will generate sample HTML code for you with microdata markup included. You can use this code as a reference for implementing structured data directly into your site's source code. Using these tools, you can really stand out from the competition. You can tell Google exactly what your website is about, and we think these tools are a huge step forwards. 

Thursday, June 6, 2013

Samba as Primary Domain Controller

Installation of Samba First ( Open a Window Terminal )

[root@linux10 ~]#apt-get install samba   

Configure Samba by editing /etc/samba/smb.conf.
My smb.conf file is shown below. Make changes according to your requirement needed.

[root@linux10 ~]#vi /etc/samba/smb.conf  

#================= Global Settings ==================

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
workgroup = <name>

# server string is the equivalent of the NT Description field
server string = %h server (Samba, Ubuntu)

# Windows Internet Name Serving Support Section:

# WINS Support – Tells the NMBD component of Samba to enable its WINS Server
# wins support = no

# WINS Server – Tells the NMBD components of Samba to be a WINS Client

# Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
; wins server = w.x.y.z

# This will prevent nmbd to search for NetBIOS names through DNS.
dns proxy = no

# What naming service and in what order should we use to resolve host names

# to IP addresses
; name resolve order = lmhosts host wins bcast

#### Networking ####

# The specific set of interfaces / networks to bind to

# This can be either the interface name or an IP address/netmask;

# interface names are normally preferred

; interfaces = eth0

# Only bind to the named interfaces and/or networks; you must use the

# ‘interfaces’ option above to use this.

# It is recommended that you enable this feature if your Samba machine is

# not protected by a firewall or is a firewall itself. However, this

# option cannot handle dynamic or non-broadcast interfaces correctly.

; bind interfaces only = yes

#### Debugging/Accounting ####

# This tells Samba to use a separate log file for each machine
# that connects

log file = /var/log/samba/log.%m
# Cap the size of the individual log files (in KiB).
max log size = 1000

# If you want Samba to only log through syslog then set the following
# parameter to ‘yes’.
# syslog only = no

# We want Samba to log a minimum amount of information to syslog. Everything
# should go to /var/log/samba/log.{smbd,nmbd} instead. If you want to log
# through syslog you should set the following parameter to something higher.
syslog = 0

# Do something sensible when Samba crashes: mail the admin a backtrace
panic action = /usr/share/samba/panic-action %d

####### Authentication #######

# “security = user” is always a good idea. This will require a Unix account
# in this server for every user accessing the server. See
# /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/ServerType.html
# in the samba-doc package for details.
security = user

# You may wish to use password encryption. See the section on
# ‘encrypt passwords’ in the smb.conf(5) manpage before enabling.
encrypt passwords = true

# If you are using encrypted passwords, Samba will need to know what
# password database type you are using.
passdb backend = tdbsam

obey pam restrictions = yes

# This boolean parameter controls whether Samba attempts to sync the Unix
# password with the SMB password when the encrypted SMB password in the
# passdb is changed.

unix password sync = yes

# For Unix password sync to work on a Debian GNU/Linux system, the following
# parameters must be set (thanks to Ian Kahan < for
# sending the correct chat script for the passwd program in Debian Sarge).
passwd program = /usr/bin/passwd %u
passwd chat = *Entersnews*spassword:* %nn *Retypesnews*spassword:* %nn *passwordsupdatedssuccessfully* .

# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# ‘passwd program’. The default is ‘no’.

pam password change = yes

# This option controls how unsuccessful authentication attempts are mapped
# to anonymous connections
map to guest = bad user

########## Domains ###########

# Is this machine able to authenticate users. Both PDC and BDC
# must have this setting enabled. If you are the BDC you must
# change the ‘domain master’ setting to no
domain logons = yes
domain master = yes
local master = yes
preferred master = yes
os level = 64
# The following setting only takes effect if ‘domain logons’ is set
# It specifies the location of the user’s profile directory
# from the client point of view)
# The following required a [profiles] share to be setup on the
# samba server (see below)
; logon path = \%Nprofiles%U

# Another common choice is storing the profile in the user’s home directory
# (this is Samba’s default)
logon path = \%N%Uprofile

# The following setting only takes effect if ‘domain logons’ is set
# It specifies the location of a user’s home directory (from the client
# point of view)
logon drive = H:
logon home = \%N%U

# The following setting only takes effect if ‘domain logons’ is set
# It specifies the script to run during logon. The script must be stored
# in the [netlogon] share
# NOTE: Must be store in ‘DOS’ file format convention
; logon script = logon.cmd

# This allows Unix users to be created on the domain controller via the SAMR
# RPC pipe. The example command creates a user account with a disabled Unix
# password; please adapt to your needs
; add user script = /usr/sbin/adduser –quiet –disabled-password –gecos “” %u

# This allows machine accounts to be created on the domain controller via the
# SAMR RPC pipe.
# The following assumes a “machines” group exists on the system
add machine script = /usr/sbin/useradd -g machines -c “%u machine account” -d /var/lib/samba -s /bin/false %u

# This allows Unix groups to be created on the domain controller via the SAMR
# RPC pipe.
; add group script = /usr/sbin/addgroup –force-badname %g

########## Printing ##########

# If you want to automatically load your printer list rather
# than setting them up individually then you’ll need this
# load printers = yes

# lpr(ng) printing. You may wish to override the location of the
# printcap file
; printing = bsd
; printcap name = /etc/printcap

# CUPS printing. See also the cupsaddsmb(8) manpage in the
# cupsys-client package.
; printing = cups
; printcap name = cups

############ Misc ############

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
; include = /home/samba/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See smb.conf(5) and /usr/share/doc/samba-doc/htmldocs/Samba3-HOWTO/speed.html
# for details
# You may want to add the following on a Linux system:
# socket options = TCP_NODELAY

# The following parameter is useful only if you have the linpopup package
# installed. The samba maintainer and the linpopup maintainer are
# working to ease installation and configuration of linpopup and samba.
; message command = /bin/sh -c ‘/usr/bin/linpopup “%f” “%m” %s; rm %s’ &

# Domain Master specifies Samba to be the Domain Master Browser. If this
# machine will be configured as a BDC (a secondary logon server), you
# must set this to ‘no’; otherwise, the default behavior is recommended.
# domain master = auto

# Some defaults for winbind (make sure you’re not using the ranges
# for something else.)
; idmap uid = 10000-20000
; idmap gid = 10000-20000
; template shell = /bin/bash

# The following was the default behavior in sarge,
# but samba upstream reverted the default because it might induce
# performance issues in large organizations.
# See Debian bug #368251 for some of the consequences of *not*
# having this setting and smb.conf(5) for details.
; winbind enum groups = yes
; winbind enum users = yes

# Setup usershare options to enable non-root users to share folders
# with the net usershare command.
# Maximum number of usershare. 0 (default) means that usershare is disabled.
; usershare max shares = 100

# Allow users who’ve been granted usershare privileges to create
# public shares, not just authenticated ones
usershare allow guests = yes

#================ Share Definitions =================

# Un-comment the following (and tweak the other settings below to suit)
# to enable the default home directory shares. This will share each
# user’s home directory as \serverusername
comment = Home Directories
browseable = no
writeable = yes

# By default, the home directories are exported read-only. Change the
# next parameter to ‘no’ if you want to be able to write to them.
; read only = yes

# File creation mask is set to 0700 for security reasons. If you want to
# create files with group=rw permissions, set next parameter to 0775.
; create mask = 0700

# Directory creation mask is set to 0700 for security reasons. If you want to
# create dirs. with group=rw permissions, set next parameter to 0775.
; directory mask = 0700

# By default, \serverusername shares can be connected to by anyone
# with access to the samba server. Un-comment the following parameter
# to make sure that only “username” can connect to \serverusername
# This might need tweaking when using external authentication schemes
; valid users = %S

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
comment = Network Logon Service
path = /home/samba/netlogon
guest ok = yes
read only = yes
share modes = no

# Un-comment the following and create the profiles directory to store
# users profiles (see the “logon path” option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
comment = Users profiles
path = /home/samba/profiles
guest ok = no
browseable = no
create mask = 0600
directory mask = 0700

comment = All Printers
browseable = no
path = /var/spool/samba
printable = yes
guest ok = no
read only = yes
create mask = 0700

# Windows clients look for this share name as a source of downloadable
# printer drivers
comment = Printer Drivers
path = /var/lib/samba/printers
browseable = yes
read only = yes
guest ok = no

# Uncomment to allow remote administration of Windows print drivers.
# You may need to replace ‘lpadmin’ with the name of the group your
# admin users are members of.
# Please note that you also need to set appropriate Unix permissions
# to the drivers directory for these users to have write rights in it
; write list = root, @lpadmin
# A sample share for sharing your CD-ROM with others.
; comment = Samba server’s CD-ROM
; read only = yes
; locking = no
; path = /cdrom
; guest ok = yes

# The next two parameters show how to auto-mount a CD-ROM when the
# cdrom share is accesed. For this to work /etc/fstab must contain
# an entry like this:
# /dev/scd0 /cdrom iso9660 defaults,noauto,ro,user 0 0
# The CD-ROM gets unmounted automatically after the connection to the
# If you don’t want to use auto-mounting/unmounting make sure the CD
# is mounted on /cdrom
; preexec = /bin/mount /cdrom
; postexec = /bin/unmount /cdrom

Save the file.

Create a group named machines.
Create the netlogon directory for Domain Logons.
Create the profiles directory to store users profiles.
Set permission on profiles directory.

[root@linux10 ~]#groupadd -g 201 machines                     
[root@linux10 ~]#mkdir -m 0775 /home/netlogon                 
[root@linux10 ~]#mkdir /home/samba /home/samba/profiles       
[root@linux10 ~]#chmod 1757 /home/samba/profiles              

Create users, passwords and smbpasswords.

[root@linux10 ~]#useradd -m <name>                            
[root@linux10 ~]#passwd <password>                            
[root@linux10 ~]#smbpasswd -a <password>                      
[root@linux10 ~]#useradd -m <name>                            
[root@linux10 ~]#passwd <password>                            
[root@linux10 ~]#smbpasswd -a <password>                      

Restart Samba Service

[root@linux10 ~]#service smbd restart                  

Popular Posts

Like me on Facebook

Featured Video of the Week

If you want to featured your video in this site, just email me or leave a comment and send the link of your video. Its totally free!