scp or rsync which one is better for linux & windows ?

Well there has been a debate about faster transfer with security. There would be people having different views on which command you should use for faster file transfer with security and some would also require to resync the data if there is some interruption during traffic etc.

From my side I have used scp and rsynch for remote copy but coming to the conclusion in terms of stablity and reliability I would suggest to go for rsync and not scp. scp can definitely score over rsync in file transfer as rsync build as file transfer list wherease scp just uses ssh protocol to copy the data and put it on remote.

#scp -r test alok@alok01:/opt

The above command would be more faster to copy test directory with alok credentials to servername say alok01  to /opt directory on remote host but what if your transfer breaks or interrupts you have to go back and start the copy again but in this case rsync comes into picture providing more stablity.

#rsync -avz test alok@alok01:/opt

The parameter -a also makes the copy recursive and preserve the modification times, but additionally it copies the symlinks that it encounters as symlinks, preserve the permissions, preserve the owner and group information, and preserve device and special files. This is useful if you are copying the entire home folder of a user, or if you are copying system folders somewhere else.z used for compressing the files while being transferred. Now suppose here your network halts or interrupts would you again do a rsync. Yes but rsync won’t copy the files which are already copied and save your time and patience.

Suppose from you remote host you have deleted any directory or file or updated anything you can always use –delete-after option to run rsync again after interrupted or new transfer too.

#rsync -avz –delete-after test alok@alok01:/opt

Hope this makes you understand when you should use rsync and when scp as per your convenience.

For windows you can always use cwRsync ( for incremental copies,backups etc and also deltacopy ( Winscp( is alternative for windows being scp in Linux.

Feel free for any comments or queries.

Thanks & Regards,


Song on Linux from my movie “The Linux Guy”

There have been very few or almost none a song on Linux being one of my favourite OS. So  I asked my music director to help me a nice song as my movie is titled “The Linux Guy”.

The Linux Guy is an interesting english movie which is going to be released soon. It’s a great story line of losers turning into achievers, talking about youth who are going through a lot then how does a teacher arrival’s in the college turn the thin

So I want an emotional connect in the song and it took lots of understanding/brainstorming sessions to make this song possible and I hope all linuxites,linux lovers would love,watch and share this song from my movie “The Linux Guy”. It’s great that we also got listed on imdb :-

Please don’t forget to watch this song. Please love,share and subscribe.


Alok Thaker

Why should you watch my movie “The Linux Guy” ?

Hello Friends,

I have been earning my bread and butter since last 8 years of my career and have been love with this fantastics OS i.e called Linux which has been a milestone breakthrough in IT introducing open source philosophy considering enormous amount of money for the companies who required to run proprietary software paying huge licensing fees for the renewal,support and upgrades.

This idea of developing a new OS by Sir Linus Torvalds and Richard Stallman the main man behind the open source (GPL) brought a revolution by introducing OS & Softwares with Linux clubbed with open source model under GPL(General Public License).

I always was thinking out of box and do something in the entertainment industry along with my regular job. It took time and guts to make a movie called “The Linux Guy” to give something back to the linux the OS which has paid my bills and also helped many students of mine to get a good remuneration jobs across the world. I was nicnk named as “The Linux Guy” being invited to various open source conferences to speak on Linux along with various colleges ,schools and universities. Linux also got me published in newspaper and also helped many students to undertake the non conventional careers under Linux like Linux system administration,networking-security, embedded Linux, device drivers, cloud etc.

So my movie is almost complete and I would insist once that every Linuxite and IT professional should watch my movie and support me. I have given my heart and soul including my hard earned money to this movie.  Please support me and spread the word among your circles,groups,network of friends & relatives to watch my movie “The Linux Guy”


Alok Thaker

Open source Document Management Systems

Documents management has been very important  for every organization for the process and handling of various important documents for travel, employees, financial, expenses etc. So there is a very important need of a good document management system which is cost efficient and also easy to use so here I am listing out some of the open source document management systems which can fit in your needs and save a big cost to your company too.

I personally prefer openKM which is one of the best document management system which allows businesses to control the production, storage, management and distribution of electronic documents, yielding greater effectiveness and the ability to reuse information and to control the flow of the documents. More details

I am also a big fan of alfresco which has it’s own both enterprise and open source community versions as per your needs and it is one of the best in support when you go for commercial enterprise licenses making it at par with other document management system.  More details

Another one of the good DMS is LogicalDoc where documents can be organized into hierarchical folders, searched using the integrated search engine, or browsed by Tag.The application is implemented as a plugin system that allows users to add new features. More details

One of the DMS which is based on php is opendocman which is quite easy to setup and use with a very friendly user interface including auto-updates, revision tracking etc. More details on

There might be others too but which I have not covered personally because I haven’t used them in my career so please feel free to explore at your end but I tried to get the best ones for you.

Feel free for any comments or queries.

-Alok Thaker

Carberry for car entertainment systems and Raspberry Pi

Here I am discussing about carberry which bridges a gap between car entertainment systems and Raspberry pi.  It also supports to develop systems as below :-

  • Media centers
  • Vehicle diagnostics
  • Data logging
  • Fleet management
  • Tracking
  • Blackboxes
  • Burglar alarms
  • Carputing
  • Internet
  • and much more…

The communication between the Raspberry OS and Carberry they  have modified a Raspbian distro and called it “Carbian”.

For more details and know-how you can always visit their wiki page on and is there main website.

Feel free for any comments or queries.

-Alok Thaker

How I made my movie “The Linux Guy”

I know this post is not technical…I had a dream to do something out of box…always dreamt to write ebooks, stories,poems..etc then one suddenly in the night in wee hours don’t know how a thought make me awake it was around write something to make clean movies with inspiring subjects showing practicality of the lives…struggles,loves, breakups,jobs,finances,family we all go through a lot in our lives…so why not to write a concept which can touch people hearts and’s then  the title “The Linux Guy” came into my mind..a wonderful script…I started writing…and characters came up one by one…it was like god from above was pushing me to write this concept and make a movie out of it. Linux is something I started earning bread and butter out of it changed my life so i.e why I always  wanted to give something back to the Linux and dedicated the below song to all the people who love linux and been working-supporting to Linux. It’s a fantastic operating system, being robust and scalable. Well this movie of mine is not only about Linux but it is more about students, teachers…their struggles ,dreams and their lives get evolved…I bet you would love to watch the film “The Linux Guy” soon.

Nothing is impossible my dad said to me..if you have diligence,honesty,conscience, positivity you can really make a difference. I didn’t knew ABC about script writing,screenplays, music,videos,cameras,editing,VFX..and suddenly I started reading about them…meeting people…some people said it’s a great concept..but you need good finances some said…man you are a newbie..are you sure you can do this…make a short film,documentaries…etc but I thought if I have to make it I would make atleast a feature film with meaningful songs..and concept.. then an year dream came into reality…finally I made it…there are various people who have been greatest support in this dream…Adilkhan from Rapzone productions gave awesome tracks & music, Divyang Parmar (Editor),Nirav Bhalgamia,-Tapan Patel-Amit Tadvi(VFX-Camera) ,Mousam deb and team for costume, actors Siddarth purohit, kashish ojha, raj patel,RV patel,Het Patel,Harsh patel,Kirtan patel,Kavita rahevar,Sunil shah,  Rushik chopra, Yash joshi,Rajan patel, Juhi tekchandani, Axangi mehta, Siddarth barot,Mitali jain, Zeel Patel,Zeel trivedi, nidhi hirenath, Manthan jain, choreographer Guddu rana sir, and his students,  akshat nagar(Singer), Al farhan shaikh(Singer), abhiraj amin(Singer), Indus staff and teachers…monica mam,khyati rami mam,madhavi mam, nilesh modi sir (Head-MCA) and respected Meeta Mam (Head -Indus University) without whom this  dream wasn’t possible. my best friends abhishek singh, dhananjay agrawal,sarvapriya malhotra who stood up with me in my thick and thin…there are many more I guess if missed..I apologize. I have brainstormed with each one of them for this project…and best thing is when people appreciate and like your work…it’s overwhelming..I guess you all would also love it..and I insist chase your dreams, follow your heart…work hard,be positive, they do come true….your own Alok Thaker (Director-Writer-Producer-Screenplay) of the movie “The Linux Guy” and also working on my another project “Things To Do”.

Love-Alok Thaker


Solr ,lucene and elasticsearch

Solr and elasticsearch are the most widely used search servers competing against each other built on top of lucene. Lucene is a very rich and powerful full text search library written in Java which also provides Java-based indexing and search technology, as well as spellchecking, hit highlighting and advanced analysis/tokenization capabilities.

Elasticsearch is mostly based for REST API . REST API defines a set of functions which developers can perform requests and receive responses via HTTP protocol such as GET and POST. Elasticsearch and solr are built on lucene but have many differences between them in indexing, searching  API etc. For more details you can see

To learn how to install Elasticsearch on centos 7 I followed the below link quite  clear and helpful.

To install apache-solr on centos 7 please follow the link below :-

Feel free for any comments or queries.

-Alok Thaker


Using gdb to trace Apache core dumps

Apache webserver at times you see various segmentation fault messages occurring due to memory issue, some problem integrating with methods at time communicating with samba through your perl code etc.

So core dumps can help you troubleshooting the root cause of the issue.  To enable coredumps in apache you have to use the below parameter in apache configuration file named httpd.conf.


  • Created directory /tmp/apache2-gdb-dump with owner:group and 0777 permissions
  • Edited httpd.conf and added:
    CoreDumpDirectory /tmp/apache-dump
  • Ran the following command to remove core dump file limits:
    ulimit -c unlimited
  • Edited /etc/sysctl.conf and added the lines below:
    kernel.core_uses_pid = 1
    kernel.core_pattern = /tmp/apache2-gdb-dump/core
    fs.suid_dumpable = 2
  • Edited /etc/security/limits.conf to include the following:
    *  soft  core  unlimited
  • Reloaded the settings using:
    sysctl -p
  • Restart Apache


So now call the page on browser which causes segmentation fault and apache would generate a coredump file named core in that directory.

gdb :- GNU debugger is a standard debugger for GNU operating system.

Install gdb on Centos/Redhat machines :- yum install gdb

For ubuntu/debian :- apt-get install gdb

So now core file is generated as per the changes done in apache configuration file /tmp/apache-dump  directory.

How to debug the core dump ?

#gdb /usr/sbin/httpd /tmp/apache-dump/core (For Centos/Redhat)

#gdb /usr/sbin/apache2 /tmp/apache-dump/core(For Ubuntu/Debian).

gdb > bt full (When you give this command you get a full backtrace)

With this you would get a complete idea what is causing the segmentation fault.

Please feel free for any comments or queries.

-Alok Thaker