Author Topic: [SOLVED] TeamViewer  (Read 2293 times)

Offline ElCuervo

  • Hero Member
  • *****
  • Posts: 4147
  • I'm walking on sunshine!
[SOLVED] TeamViewer
« on: August 24, 2010, 12:06:24 PM »
Someone recently pointed this excellent program out to me here in one of the forums. I installed it from Synaptic, and it won't load on two different PCLinuxOS boxes, neither as user or root. When trying to get it up from Konsole, this appears:
Quote
[alan@dog8it ~]$ teamviewer
/usr/share/teamviewer/teamviewer: line 20: //usr/share/teamviewer/.wine/winelog: Permission denied

One of those boxes has wine on it, but it didn't matter. Anyway, after seeing the message, I installed wine on the other box and rebooted just as an experiment. Still no joy... but dammit, it works great in Windows. Does anyone have a cure?
« Last Edit: August 26, 2010, 04:17:03 AM by Texstar »
"If there were no change, there would be no butterflies" - Walt Disney

http://linuxcounter.net/cert/433721.png

Offline marian

  • Hero Member
  • *****
  • Posts: 608
  • Hi
Re: TeamViewer
« Reply #1 on: August 24, 2010, 12:54:09 PM »
Someone recently pointed this excellent program out to me here in one of the forums. I installed it from Synaptic, and it won't load on two different PCLinuxOS boxes, neither as user or root. When trying to get it up from Konsole, this appears:
Quote
[alan@dog8it ~]$ teamviewer
/usr/share/teamviewer/teamviewer: line 20: //usr/share/teamviewer/.wine/winelog: Permission denied

One of those boxes has wine on it, but it didn't matter. Anyway, after seeing the message, I installed wine on the other box and rebooted just as an experiment. Still no joy... but dammit, it works great in Windows. Does anyone have a cure?

Shouldn't that be wine teamviewer?
Freedom is the only way!

Offline daveysprocketbrew

  • Full Member
  • ***
  • Posts: 171
Re: TeamViewer
« Reply #2 on: August 24, 2010, 01:16:52 PM »
Mine installed no problem and it works great.  I have it set for speed and not quality and the lag is not too bad.  I'm not sure if they ported it to linux or just adapted it with wine.  I hope you can get it fixed, it's wonderful and worthwhile.  I now plan on getting PCLOS on my Mom's machine and helping her from a distance.  When I get home, I'll check that filesystem and see what mine says.

Offline old_guy

  • Hero Member
  • *****
  • Posts: 705
Re: TeamViewer
« Reply #3 on: August 24, 2010, 01:17:59 PM »
ElCuervo
I know that I had it working on one of my machines, so I just installed it thru synaptic on another machine to test. I get the same failure.

Checking back on the machine that has it working - it looks like I downloaded it from the teamviewer web site (a .tar.gz file), extracted it and then ran the teamviewer shell script.

I know that this is not the approved way, but the package in synaptic doesn't seem to work.

Comparing the two, they set up very differently. The one from their site sets up a .teamviewer folder in your home directory and has its own wine setup included.

Earl
Never too old to learn.

Offline MCP

  • Sr. Member
  • ****
  • Posts: 387
Re: TeamViewer
« Reply #4 on: August 24, 2010, 01:26:17 PM »
Just to add my experience.  I loaded teamviewer from synaptic and it works just fine.  I would suggest trying that first.

MCP

Offline old_guy

  • Hero Member
  • *****
  • Posts: 705
Re: TeamViewer
« Reply #5 on: August 24, 2010, 01:34:18 PM »
Update
I loaded from synaptic on another partition (have several working on this machine) and it works fine. Have to see if I can find what is different between the working and the nonworking setups - both loaded from synaptic.
Never too old to learn.

Offline ElCuervo

  • Hero Member
  • *****
  • Posts: 4147
  • I'm walking on sunshine!
Re: TeamViewer
« Reply #6 on: August 24, 2010, 02:39:54 PM »
I just installed it via Synaptic on a third machine, one that already has a good working version of Wine on it, and I still can't get it to work. The same command gives me the same message.

Shouldn't that be wine teamviewer?
Maybe, but that yields:
Quote
[alan@chickens ~]$ wine teamviewer
wine: cannot find L"C:\\windows\\system32\\teamviewer.exe"

I'm doing some more digging, but I will sure keep an eye on this thread. I really, really want it to put it to work. Thanks for all the help!
"If there were no change, there would be no butterflies" - Walt Disney

http://linuxcounter.net/cert/433721.png

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2881
    • other projects...
Re: TeamViewer
« Reply #7 on: August 24, 2010, 03:01:31 PM »
The teamviewer version from Synaptic works fine for a single user system but its setup can cause a problem: if you have more than one (1) user on your system then it will only work properly for the user listed as owner of the directory: /usr/share/teamviewer/
Now assuming that user is called jim and a different user, say joe, tries to start teamviewer then it will fail to start for user joe. To allow the user joe to run teamviewer you could enter the following command from a root-terminal:
Code: [Select]
chown -R joe:joe /usr/share/teamviewerAfter that, user joe can but user jim can no longer run teamviewer, unless you change the permission back to jim again, same for any other system user. Obviously, the user root can always start teamviewer but you don't wonna do that, right?  ;)
-p.

Offline rumbach

  • Full Member
  • ***
  • Posts: 60
Re: TeamViewer
« Reply #8 on: August 24, 2010, 03:37:23 PM »
Teamviewer won't work for me on pclinuxos 2010.7 fully updated.
Tried a new user name and no go.

But I installed it on full monty and it works just fine.

Offline ElCuervo

  • Hero Member
  • *****
  • Posts: 4147
  • I'm walking on sunshine!
Re: TeamViewer
« Reply #9 on: August 24, 2010, 03:39:35 PM »
The teamviewer version from Synaptic works fine for a single user system but its setup can cause a problem: if you have more than one (1) user on your system then it will only work properly for the user listed as owner of the directory: /usr/share/teamviewer/
Now assuming that user is called jim and a different user, say joe, tries to start teamviewer then it will fail to start for user joe. To allow the user joe to run teamviewer you could enter the following command from a root-terminal:
Code: [Select]
chown -R joe:joe /usr/share/teamviewerAfter that, user joe can but user jim can no longer run teamviewer, unless you change the permission back to jim again, same for any other system user. Obviously, the user root can always start teamviewer but you don't wonna do that, right?  ;)
-p.
Well... maybe! :) Actually, when I tried running from root earlier, it wouldn't do that, either.

However, thanks so much, pinoc. I changed permission per your instructions, and it works! It is strange that I installed it under the user that I gave ownership to, but whatever - I'm happy! Would you like to share how you come by that fix?

Since I first looked, I see that it clearly is not a wine-ported program, though. I'm still wondering what that line 20 .wine reference is about, but it doesn't really matter much any more.

Once again, thanks to everyone for pitching in!
« Last Edit: August 24, 2010, 03:41:19 PM by ElCuervo »
"If there were no change, there would be no butterflies" - Walt Disney

http://linuxcounter.net/cert/433721.png

Offline rumbach

  • Full Member
  • ***
  • Posts: 60
Re: TeamViewer [SOLVED]
« Reply #10 on: August 24, 2010, 04:25:35 PM »
Tks pinoc that worked.

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2881
    • other projects...
Re: TeamViewer [SOLVED]
« Reply #11 on: August 24, 2010, 04:48:45 PM »
@rumbach:
there is no difference between an updated FullMonty and a 2010.7 installation because: FullMonty = 2010.7 + customized desktop.  ;)
However, teamviewer will especially not work for a new system user unless you apply the described patch for that new user. But good to hear it worked!

@ElCuervo:
I think the teamviewer installer (setup by Teamviewer and supplied in Synaptic) assumes to have a single-user system and will simply pick up and use the permissions of the first non-root system user. But then no other system user can run the program  ::) Once you realize that the permissions are assigned that way the fix is straightforward. Btw, the linux version of teamviewer uses a customized setup of wine under /usr/share/teamviewer/.wine/ and the teamviewer executable (/usr/share/teamviewer/teamviewer) is just a script using this customized wine setup.

@packagers: Hello Neal... ;D
Not sure but maybe one solution could be to change the spec-file of the rpm by adding to define a group "teamviewer" and add all non-root system users to this group? Once there one could also add a desktop-file for teamviewer so it will show up in the PCmenu, a teamviewer logo could be downloaded from here.

Offline ElCuervo

  • Hero Member
  • *****
  • Posts: 4147
  • I'm walking on sunshine!
Re: TeamViewer [SOLVED]
« Reply #12 on: August 24, 2010, 05:01:11 PM »
Thanks, pinoc, I appreciate your great explanation of everything.

I guess I will find out the hard way soon enough, but I'm curious - does wine have to be installed before TeamViewer will work in Linux? It appears that you're saying the installation of TeamViewer sets up its own version in its own directory, but that is just a guess on my part, really.
"If there were no change, there would be no butterflies" - Walt Disney

http://linuxcounter.net/cert/433721.png

Offline pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2881
    • other projects...
Re: TeamViewer [SOLVED]
« Reply #13 on: August 25, 2010, 04:20:46 AM »
Thanks, pinoc, I appreciate your great explanation of everything.

I guess I will find out the hard way soon enough, but I'm curious - does wine have to be installed before TeamViewer will work in Linux? It appears that you're saying the installation of TeamViewer sets up its own version in its own directory, but that is just a guess on my part, really.

yes, correct, Teamviewer has its own customized wine setup included. This setup is completely independent of a wine installation from Synaptic, so you do not need to install wine in order to run Teamviewer.
On the other hand I assume you could run the MS-Windows version of Teamviewer under a PCLinuxOS Wine installation. Sorry but maybe now you are more confused than before  ;D

Offline daveysprocketbrew

  • Full Member
  • ***
  • Posts: 171
Re: TeamViewer [SOLVED]
« Reply #14 on: August 25, 2010, 06:08:28 AM »
Maybe since it's a beta, you can email them your troubles and solutions before it goes final.