All posts by alokthaker

About alokthaker

I am an open source & Linux enthusiast, motivational & open source speaker. Complete package believes in being a brand.Works on Linux.. Be positive, have faith in yourself, do good karmas, smile & keep rocking

Finding a process uptime

Dear All,

I am back with a linux post as was hell occupied with work. I am sharing a simple story where I had a bottleneck of knowing some processes which were up and running for how much time. This helps in monitoring purposes and many of you might be knowing about it but I thought worth sharing. There was one java process which got killed and was restarted this gave me a ticket to debug further and then got to know that we have a command to know how much time the specific process was up and running.

First identify the process id of your process with it’s name.
#ps -ef |grep httpd

identify the pid no from the above command.

#ps -eo pidno,etime
50:08 elasped time

Here elapsed time shows that the process apache(httpd) was up and running from 50 minutes 8 seconds.

Feel free for any queries & comments.

Thanks & Regards,
Alok

Luv Singh from Luv U & Me webseries first promo flyer

Dear All,

It has been great to be back to blog again after a while. Ofcourse this post is not technicalbut related to my new webseries which has action,romance,adventure,thrills and what not. Please see the first promo flyer. I am playing Luv Singh a dashing business tycoon. All episodes on Diwali. So please share,love and subscribe. On every view 2rs would be utiilzed for cancer patients and other noble causes from our production team. Enjoy & Cheers

Using Certbot & LetsEncrypt,ZeroSSL for free SSL Certificates

Dear All,

I have been asked questions that is there an alternative for SSL certificates. Well it’s nice to have one i.e LetsEncrypt which gives you free SSL for atleast 90 days on your registered domain. Not only this you can use this certificate on Amazon Web Services Load Balancer and also on MS Azure cloud portals.

I personally have tried it and you can use the certbot utility to generate certificates for your domain. Not only certbot command lets you generate certificates but also helps you to auto deploy it with nginx/apache webservers too without any hiccups also firing a rewrite rule for redirecting traffic from http to https too.

On the renewal date certbot renew can be used to renew your domain SSL Certificates too.

To understand and implement LetsEncrypt for say your wordpress site you can use the following link :-

Generate Lets Encrypt Free HTTPS SSL Certificate


https://letsencrypt.org/docs/

One more alternative which you can use is https://zerossl.com/ and also can be used for windows.

Feel free for any questions/queries.

Cheers,
Alok Thaker

Johnny2 action webseries soon and VFX would have Linux

Dear All,

Thanks for loving Johnny webseries on my youtube channel. I am back with a flyer song for the same. Every view counts the sponsors would give 2Rs view to cancer patients. One more great news is that some action sequences requiring special effects and VFX would be done on linux high end machines.

Johnny1 all episodes on https://www.youtube.com/watch?v=iB7XwqzpulQ, https://www.youtube.com/watch?v=uqFvgHXKDYY&t=54s,https://www.youtube.com/watch?v=s-c5j83Uyao.Do share,like & Subscribe.

Enjoy the flyer song of Johnny2 on

New Album released with help in social causes Urvashi

Dear Readers,

It has been long time I didn’t shoot any album after 31st Dec, after daughters are blessings. So kind of tie up with various ngo’s for social causes I decided to entertain the audience and people with every view on my latest album urvashi going for social causes like cancer,old age homes, handicapped people etc. I am aossociated with milaap.org and run various campaigns locally and online for crowdfunding for the people. Some of the campaigns I have run are

http://milaap.org/fundraisers/help-chandubhai
https://milaap.org/fundraisers/help-darshan/
https://milaap.org/fundraisers/help-kiran-patil
https://milaap.org/fundraisers/help-ajinkya

I also run local campaigns in Vadodara Gujarat for various social causes and also social awareness programmes on cancer,diabetes,heart attack causes etc. So very view counts for us and we would give 2Rs per view on this album with tie up with various contributors & sponsors for social causes. We would also post pics & video for the donation given from the album as well. So please do watch,share & subscribe on Alok Thaker youtube channel or Alok Film Production Youtube channel.

Cheers & Happy Linuxing :)
Alok Thaker

Continuous Integration & Continuous Deployment

Dear All,

Long time I haven’t been blogging for while as been busy with loads of work stuff. So today’s topic I am going to cover is CICD(Continuous Integration,Continuous Delivery & Continuous Deployment) using open source tools for Linux.

Best tools for CICD is apache jenkins,Team City,Gitlab CI,Drone etc. I personally prefer jenkins over all because it gives loads of flexibility for a devops guy to build,automate and deploy making it the most suitable.

Few Posts which I found useful to start for me with jenkins are as follows :-

http://www.vogella.com/tutorials/Jenkins/article.html

https://www.linuxtechi.com/install-configure-jenkins-on-centos-7-rhel-7/

It’s your choice of which tool you want to go for CICD but I would surely suggest for jenkins.

Feel free for any questions/queries.

-Alok Thaker

Using Rdist a remote file distribution utility

Dear All,

I was working on remote sychronization of pushing files to various servers normally preferred choice was to do an ssh and rsync with password less authentication but somehow came to know about rdist tool which is quite handy tool for remote sync transfer of files.

rdist requires rsh to be installed which you can do on a centos box by the command yum install -y rsh rdist

After installation is done. You have to create distfile for the remote transfer but before writing a file you have to setup password less authentication between the nodes which you want to transfer files. Following are the steps for the same :-
#ssh-keygen -t rsa -b 1024
#ssh-copy-id root@192.168.223.135 (To transfer the keys for password less authentication)

Create a distfile for eg with following syntax :-

HOSTS = ( ldap1 root@ldap1 )

FILES = (/root/tdist/* )

(${FILES}) -> (${HOSTS})
install -R ;
${FILES} :: /root/tdist/*
notify root@ldap1;
# End of distfile file

The file commands are quite self explanatory. HOSTS refers to the remote host where the file needs to be transferred with the username.Files refer to the files to be transferred and destination. If the directory tdist is not there it would be created and all files in tdist directory would be remotely transferred. After first revision if the files are there and not updated on source host the files won’t be updated. Another advantage of rdist is that it keeps the timestamp,permissions,ownerships intact.

Now how to run the rdist command with ssh protocol.
rdist -P /usr/bin/ssh -f /rdist/distfile

You should be able to see the verbose output of the successful transfer.

Cheers. Please feel free for any queries/suggestions.

-Alok Thaker