About Me

My photo
Hi Friends, I am Sandeep CC and some people know me as System Administrator. I have started my professional career from 2008. I have been working as System Administrator on Linux Server and Windows Client. I am here to share my Knowledge in which I have experienced and which I have come across till now, It could be help to you people. In case anything wrong or any improvements in my post steps, Please comment to the post, Feel free to contact me by posting comments on this blog. Thanks and Regards, Sandeep CC

Thursday, August 11, 2011

Installation Of Team Viewer On REDHAT LINUX-5




Setup:

Machine Name: sandeeplinux3 (Connected To Internet)

Requirement:

Team Viewer RPM Package

Download Required Packages From Website:

Website: http://www.teamviewer.com/hi/download/index.aspx and Save on Desktop in Linux Machine.

Note: Installation steps should do in root user.

Installation Of Required Packages:

Login As Root User
[sandeep@sandeeplinux3 ]$su -l root

[root@sandeeplinux3 ]# [Right Click On Desktop --> Open Terminal.]

[root@sandeeplinux3 ]#cd Desktop
[root@sandeeplinux3 Desktop]#rpm -i teamviewer_linux.rpm

Now Teamviwer has installed, Confirm once package installed properly or not

[root@sandeeplinux3 Desktop]#rpm -qa |grep teamviewer

OR

Go to Application --> Internet --> TeamViewer (After Installing Teamviewer RPM it should show in Application --> Internet)

Note: Teamviewer can't open in Root User (will give good trick for root later) so logoff root user and go normal user and Go to Application --> Internet --> Click on TeamViewer

For Root User

Now Here I am going to post 1 trick for TeamViewer. Many Users who likes to work as root and but in RHEL-5 there is restriction for Running as root.

Whenever you are trying to run TeamViewer as root from Terminal, You will get message like below :-

TeamViewer must not be executed as root!

By Following few steps you will be able to run TeamViewer as root.

Follow Steps to run TeamViewer As root.

1. Login as root user to do these all steps.
2. Open Terminal Go to Applications -> System Tools -> Terminal
3. Now Lets find where exactly teamviewer command is. Execute Following command to Find it out.
[root@sandeeplinux3 ]#which teamviewer
/usr/bin/teamviewer <– You will get this kind of output on your terminal
4. Be safe So First Lets take a backup of Original TeamViewer Command. Execute Following Command
[root@sandeeplinux3 ]#cp /usr/bin/teamviewer /usr/bin/teamviewer.orig

5. Open teamviewer file. Here in /usr/bin/teamviewer they have put the restriction for root user. So Lets Remove it. Open File By Executing vi /usr/bin/teamviewer and You will able to see following lines into /usr/bin/teamviewer :-

userid=$(id -u)

if [ $userid = 0 ]
then
echo TeamViewer must not be executed as root!
exit 1
fi

CHANGE those line to

##userid=$(id -u)

##if [ $userid = 0 ]
##then
## echo TeamViewer must not be executed as root!
## exit 1
##fi

Save and Exit this file ( Press “ESC” then Press :wq! )

6. To Open TeamViewer from GUI. Click on Applications -> Internet -> TeamViewer
7. To Open TeamViewer from Terminal Click on Applications -> System Tools -> Terminal. On Terminal Execute Command teamviewer

Testing TeamViewer between Linux-Linux OR Linux-Windows OR Windows-Linux


Linux-Linux (For another linux machine follow installation step as per given above)

Machine Name's: Linux1 & Linux2

Linux1
Login as Normal User

Go to Application --> Internet --> Click on TeamViewer --> It will open one Window with user ID and Password.

Linux2
Login as Normal User

Go to Application --> Internet --> Click on TeamViewer --> It will open one Window with user ID and Password.

Now go to any one machine and give User Name and Password of another Machine and Connect --> Now you can see Remote Desktop Of 1st Machine.


Linux-Windows OR Windows-Linux

On Linux Machine:

Login as Normal User

Go to Application --> Internet --> Click on TeamViewer --> It will open one Window with user ID and Password.

On Windows Machine:

Note: Download .exe package and Install in windows machine (Download Website: http://www.teamviewer.com/hi/download/index.aspx)

Go to Start --> All Programs --> Click On TeamViewer Application.

Now go to any one machine and give User Name and Password of another Machine and Connect --> Now you can see Remote Desktop of 1st Machine.


If anything kind of doubts please reply to this post i will correct ASAP.....

1 comment:

  1. Thanks sandeep, This post i have got very helpfull, Thanks once again...


    With Warms,
    Raj Kiran

    ReplyDelete