Samba server syncing files – Problem copying files from Windows to Linux, especially in Mepis

Problem: When file names with international character sets copy from Windows to Linux in Mepis the characters are not translated properly.

Detail: When your files copy from Windows to Linux and the international characters (like African and Brazilian song names) don’t copy correctly, all other filenames are fine, you need to edit your /etc/samba/smb.conf file which is the config file for samba.

Solution: Put this in to the head of the file to fix odd international characters from windows to linux copy:

unix charset = ISO 8859-1

Remember to stop and restart your Samba server: (Linux Mepis and Ubuntu) sudo /etc/init.d/samba restart

Problem: When your use a program to synchronize files from Windows to Linux (Mepis) and some files continually recopy even though they are the same (identical dates) on both machines.

Detail: You need to pay attention to the 2 second file date difference on an NTFS file system (tell your sync program to ignore it), as well as make sure that the Linux server uses the right file type designation for the incoming files from Windows.

Solution: While you are in your /etc/samba/smb.conf file go to the bottom share descriptions and add single line under each.

Put this in the individual share section to fix timestamps that cause file syncs to copy every time from windows to linux.

fstype = samba
Remember to stop and restart your Samba server: (Linux Mepis and Ubuntu) sudo /etc/init.d/samba restart


Sample: smb.conf file (sample code):

———–My Samba smb.conf from Mepis 3.4 to 7 works!————-
;*******************section global*****************
[global]
ldap ssl = No
restrict anonymous = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=4096 SO_RCVBUF=4096
guest ok = yes
map to guest = Bad User
domain master = no
hosts allow = 192.168.0. 192.168.1. 192.168.2. 127.
passdb backend = tdbsam guest
dns proxy = no
printing = cups
server string =
max protocol = NT
kernel oplocks = no
; Fix your workgroup name!
workgroup = WORKGROUP
server signing = Auto
security = server
paranoid server security = no
unix charset = ISO 8859-1
panic action = /usr/share/samba/panic-action %d
preferred master = no
max connections = 8
max log size = 1000
; Fix your servername!
netbios name = MYSERVERNAME
;*******************section homes*****************
[homes]
comment = Home Directories
browseable = no
read only = no

[DriveONE]
case sensitive = no
msdfs proxy = no
path = /mnt/hdb1/MyFiles/
hide files = *.log/*.tmp/*.evt/*.bak/

[Drive_TWO]
path = /mnt/hde1/MoreFiles/
read only = no
case sensitive = no
msdfs proxy = no
fstype = Samba

[Drive_THREE]
path = /mnt/hde2/EvenMoreFiles/Subdirectory/
case sensitive = no
msdfs proxy = no

[Drive_FOUR]
path = /mnt/hdg1/MediaFilesWritable/
read only = no
case sensitive = no
msdfs proxy = no

[regularshare]
path = /home/myuser/ReadOnlyShared/
read only = yes
case sensitive = no
msdfs proxy = no
only user = yes
fstype = Samba

[Drive_Five]
case sensitive = no
msdfs proxy = no
read only = no
path = /mnt/hdc1/FilesWritable/
fstype = Samba
———–END My Samba smb.conf from Mepis 3.4 works!————-
After editing your smb.conf remember to stop and restart your Samba server: (Linux Mepis and Ubuntu) sudo /etc/init.d/samba restart

Posted in Linux tips and tricks. Tags: . No Comments »

Google SERP (search engine results page) summary description length

These are different ways of saying:
google description character limit

Answer: 155 characters can be shown on Google’s summary of your web page google search results paragraph listing.

description under link from google search
summary length on search results

Maximum Characters for Meta Tag Description in Google SERP :
155 characters can be shown on Google’s summary of your web page depending upon the word boundary and where it’s truncated.
Google will grab description text from the web page if it does not “like” the Meta tag supplied one, according to Susan Moskwa talking about Meta Descriptions somewhat vaguely, (works at Google but in WA). I think the total character limit is 155 characters, sometimes as short as 145.

This description of your webpage is shown in google directly underneath your page title. Whether the text is grabbed from your webpage or from your Meta Description, it will be cut off at 155 characters.

If you have a situation where google cannot see or get any text from your website, such as a website made with Flash, then your meta tag for description is vital, because you will have nothing under your link which provides no compelling reason for anyone to click on your link. Google has been working on specifically reading this tag in the case of Flash, otherwise, it’s the case of the previous sentence, worthless.

HTML code length: (this is not the length shown on the SERP summary, it’s just what is indexed by Google)
It has been noted that Google places most emphasis on indexing the first 150 words on the webpage (counting code in the html), recommended to place Javascript and CSS in a separate file or at the end of the page.

Maximum Characters for Meta Tag Keywords:
For Google? Useless. Most search engines now ignore this Meta Tag.
If you have a situation where google cannot see or get any text from your website, such as a website made with Flash, then your meta tag for keywords is vital, because you will have nothing in the search engine index for keywords other than your domain name and page titles!

For other search engines, 255 characters is a good number. Don’t stuff the keywords more than 3 times is thought to be safe.

Another thing to note is that the Meta Tag for Description has no bearing on your website’s standing on a search. It’s only for humans to read a summary to determine whether they want to click on your link.

There is speculation that it is used to determine the uniqueness of a page, I have doubts about that.

Posted in Google tips and tricks, SEO. Tags: . No Comments »

Which is more important, with www or without?

www.mysite.com vs. mysite.com
You should use a 301 redirect mysite.com to www.mysite.com to avoid duplicate content penalty from google (probably not though according to google engineers) and google prefers the www address to be canonical, but you can make any of your URLs the canonical one such as:

  • mysite.com
  • www.mysite.com
  • mysite.com/index.html
  • www.mysite.com/index.html

A 302 redirect is temporary, and a 301 redirect is permanent. An authoritative writeup of Canonicalization and 301 vs. 302 redirects can be found at Matt Cutts blog who works at Google as a webspam expert.

Google will handle a 301 redirect by putting the URL that is redirected to into their index. So if someone searches for a term on your website, Google will show the one Canonical URL.

It is important that you setup the redirect first before publishing your website and certainly before adding your URL to Google. Google’s search index may not allow your non www URL to drop out of their index for as long as 6 months. If you do not have a redirect setup and do not want to you can also fix the multiple domain problem by using Google Webmaster Tools. Once you have your account setup then you go to “Dashboard -> Tools -> Set preferred domain”

Duplicate content is determined by a page hash algorithm at Google. The common guess is that Google may penalize your website if you have more than 2 URLs containing the same page content. If you do need to have several URLs it would be a good idea to point all the non canonical ones to point to the one you want to market and publish via 301 redirects.