LINUX


Monday 3 June 2013

Custom Init / Boot Script for teamviewerd service for TeamViewer 8 / Ubuntu / CentOS / RHEL

Main Purpose of this script is :- Running teamviewerd as daemon on Ubuntu and CentOS / RHEL for TeamViewer 8.
As We already know that, TeamViewer 8 is now released and Looking Very nice. I have used the same for few days and Working fine.
But In Ubuntu I have faced the issue is that every time I am getting the error is “TeamViewer Daemon is not Running. Please Start the teamviewerd and Restart teamviewer.”
So To get the rid of above error, I have written a script to start teamviewerd on boot and we don’t need to do that manually. I am sharing the same script and tested on Ubuntu and it is working fine from last 5 days. The same script will work for CentOS / RHEL too but In CentOS / RHEL It is not required to start teamviewerd  manually. Below is the screenshot for the same.

teamviewerd
Error TeamViewerd
Script which i am sharing here is Originally written by me and for All Linux User’s Blog Visitors, It is possible that Few people may download and may change the Author Information and share again, I also don’t mind it but Trusted Source for the script is here only.
Usage of the script :- /etc/init.d/tvscript {start|stop|restart|status}
BUGS :- Do not rename this script as teamviewer or teamviewerd else it won’t work as expected.
For Ubuntu :-
1. You need to be root or any user with root rights.
2. Download the Script from below link :-
root@linux-support-ahmedabad-tejas-barot:~# wget -c http://www.tejasbarot.com/Scripts/tvscript.sh
3. Now Copy that Script to /etc/init.d/ and assign permissions
root@linux-support-ahmedabad-tejas-barot:~# cp tvscript.sh /etc/init.d/tvscript
root@linux-support-ahmedabad-tejas-barot:~# chmod 0755 /etc/init.d/tvscript
4. Now Let’s Update it as a Custom Init Script ( Boot Script )
root@linux-support-ahmedabad-tejas-barot:~# update-rc.d tvscript defaults
5. That’s It. Now You can use this script by /etc/init.d/tvscript or By rebooting your system.
For CentOS / RHEL 6.x :-
1. You need to be root or any user with root rights.
2. Download the Script from below link :-
[root@linux-support-ahmedabad-tejas-barot ~#] wget -c http://www.tejasbarot.com/Scripts/tvscript.sh
3. Now Copy that Script to /etc/init.d/ and assign permissions
[root@linux-support-ahmedabad-tejas-barot ~#] cp tvscript.sh /etc/init.d/tvscript
[root@linux-support-ahmedabad-tejas-barot ~#] chmod 0755 /etc/init.d/tvscript
4. Now Let’s Update it as a Custom Init Script ( Boot Script )
[root@linux-support-ahmedabad-tejas-barot ~#] chkconfig –add tvscript

5. That’s It. Now You can use this script by /etc/init.d/tvscript or By rebooting your system.
Hope this helps you all.

No comments:

Post a Comment