Page 1 of 2
Teamviewer 6 pet package
Posted: Mon 31 Oct 2011, 19:51
by tronkel
Here is an update pet for the latest Teamviewer 6.
I've been told that a previous version 5 no longer works for some reason.
Tested in Racy 5.2Beta. should be OK in other recent Puppy versions as well.
19MB Download version that only runs as non-root here :
http://www.datafilehost.com/download-cf6f47c7.html
Patched version that can run as root:
http://www.datafilehost.com/download-c4b3dfad.html
This later version can start normally from the JWM menu.
edit: the following applies only to the non-root version, the second version above has a patched wrapper script that allows running as root.
There is an issue with this in that Teamviewer have altered their code so that
running as root user is no longer possible.
This is of course an issue that will affect all Puppy users, since Puppy basically runs as root. There is the possibility to run as user "fido" in newer versions of Puppy, but this is still experimental and is therefore not recommended.
To run Teamviewer, install the pet package and then open a terminal and issue the command "su spot" (no quotes).
Next step is to start Teamviewer by typing the command "teamviewer6". Because of this user restriction it is now no longer possible to start Teamviewer from the JWM menu directly.
A similar issue with Google Chrome (which will also not run as root user) has been neatly dealt with by Iguleder.
This fix for Google Chrome was possible because of the fact that the source code for this was obtainable. Unfortunately since
Teamviewer does not seem to make their source code available, an Iguleder-style fix is probably not feasible in the case of Teamviewer. However thanks to user spot, this is only a minor inconvenience.
Posted: Tue 01 Nov 2011, 01:24
by DPUP5520
running Teamviewer as root is possible, the script used to run it just has to be modified as it does a check to see if you are running as root or not, the program itself does not prevent you from running as root.
Posted: Tue 01 Nov 2011, 09:31
by tronkel
@DPUP5520
OK thanks for that. I didn't think of checking that. I'll modify the script and upload a new version of Teamviewer with that amended script.
Posted: Tue 01 Nov 2011, 09:43
by DPUP5520
The way they set up the scripts on the new 6.0.9258 version is a bit complicated, the old version 9224 was very easy to fix to run as root and I think they realized that, I've been trying for the last hour to get it running as root but every time I succeed and then package it into a pet it dies on me for some reason, once you change one part of the script you have to keep on changing other parts until it all works together so it's a little complicated and Im just too lazy to do it right now but if you get it working let me know as I'd like to upgrade from 9224 to 9258.
Posted: Tue 01 Nov 2011, 10:07
by 666philb
A similar issue with Google Chrome (which will also not run as root user) has been neatly dealt with by Iguleder.
This fix for Google Chrome was possible because of the fact that the source code for this was obtainable. Unfortunately since Teamviewer does not seem to make their source code available, an Iguleder-style fix is probably not feasible in the case of Teamviewer.
iguleders fix
http://www.murga-linux.com/puppy/viewtopic.php?t=72667 seems to work for this as well. I haven't tested it fully but teamviewer6 runs. here's an adapted version of iguleders.pet. i just changed the script in /usr/bin/ to point at teamviewer6 instead of google chrome. i've also added a desktop file that overwrites the original. so teamviewer can be started from the menu.
just install it after installing teamviewer6
Posted: Tue 01 Nov 2011, 21:00
by DPUP5520
patched isn't working for me, giving me same issues I had after doing manual modifications to the script.
Posted: Tue 01 Nov 2011, 21:12
by 666philb
teamviewerantiroot is the script in /usr/bin/ so run that in a terminal. the desktop file should be replaced with one that points to that. so it should work from the menu. works for me.
Posted: Tue 01 Nov 2011, 21:48
by DPUP5520
Thanks 666philb but no need for the antiroot script, apparently when I was playing around yesterday I had screwed something up that kept wine from running when trying to start teamviewer, booted up a fresh install and the pet I made which just took out the validate user out of the wrapper script and changing root to any other name in the killteamviewer script worked fine which I suspect is the same thing that tronkel did for his pet.
Posted: Wed 02 Nov 2011, 07:01
by tronkel
Interesting that 66philb found that Iguleder's script also worked for Teamviewer. Actually, now that I think about it, It probably would do.
Iguleder checked the Google Chrome code and found a C library function that does the user validate check. He then compiled a shared library that wraps this hacked function and is subsequently used to overwrite the original user validator function. It's very likely that the Teamviewer wrapper script calls the same built-in user validator function. Hence it works.
Yes, all my patch does is to comment out the validate_user function used in the script.
Anyway whatever, it seems to work for you and that's the main thing. Happy Teamviewering! (:lol: control freaks LOL!)
TeamViewer.pet available for version 7?
Posted: Tue 13 Dec 2011, 19:24
by JackWagon
Anyone know of a TeamViewer.pet available for version 7?
jw
Posted: Wed 14 Dec 2011, 07:48
by DPUP5520
Teamviewer 7 is not yet available for Linux clients, it will be available by the end of the first quarter of 2012 which if I still have internet I will fix up and upload to my db for download.
Posted: Thu 01 Mar 2012, 11:37
by 666philb
teamviewer 7
Posted: Thu 01 Mar 2012, 21:59
by Pete22
I could not get teamviewerstart.pet to run. Any ideas?
Pete22
Posted: Fri 02 Mar 2012, 07:32
by 666philb
hi pete.... you need both of those links.
you also need wine installed ...EDIT: wine not needed as included in the .deb
Wine and Teamviewer
Posted: Fri 02 Mar 2012, 21:01
by Pete22
>you also need wine installed
The teamviewer.deb from the teamviewer site includes wine, but it is hidden.
Are you saying I need to download a separate wine pet and install it too?
Would it not be better to get teamviewerstart.pet to use the secret version of wine from the teamviwer.deb file?
Thank you for working on this pet. Since I am often homebound, I use Teamviewer to help people remotely.
Pete
Posted: Sat 03 Mar 2012, 10:32
by 666philb
hi pete22
you are right about the wine, it's not needed
anyway, what puppy are you using? as i've tried this on both lucid puppy and on a vanilla slacko and it works! just the teamviewer7.deb (has to be 7) and the teamviewerstart.pet
you need to launch it from the network menu entry
or by typing
in a terminal
Teamviewer 7
Posted: Sat 03 Mar 2012, 16:48
by Pete22
I was able to get it working if I installed wine first. So thank you!!!!
Perhaps I did it wrong before. So Let me try again.
I may have looked under internet instead of network.
I will try this on several puppies and will tell you what happens.
Pete.
teamviewer start pet
Posted: Sat 03 Mar 2012, 18:27
by Pete22
It works great if when you are downloading the deb file, you tell puppy to open the .deb file with petget instead of saving it.
Do the same for your teamviewerstart.pet
All goes well.
This worked for me on lazYpup.5.28.4 and lighthouse pup 4.43
I found out where I went wrong. I downloaded the deb file instead. When I clicked on it, instead of installing it where it should go, it extracted it to a new directory in the download directory. That's why your teamviewerstart.pet could not find it.
I went back and found my download deb file.This time I right clicked to get the "open with" menu. I was hoping that petget would be listed there. But on my puppy, Lighthouse pup 4.43 it wasn't. However, when I finally found petget, I was able to properly open the saved deb file. Then your teamviewerstart.pet worked like a charm.
Is there an easy way to get petget on the open with menu?
I have lots of different puppy flavors. I will try teamviewerstart.pet on them as well.
Question: have you made teamviewerstart.pet so it might be continue to work with future versions of teamviewer or will it only work with version 7? [ assuming that teamviewer doesn't make too many changes to their program. ]
Again thanks for your work.
Pete
Posted: Sat 03 Mar 2012, 22:30
by 666philb
hi pete22
glad it's working for you now...
teamviewer won't run as root, so the startteamviewer.pet uses iguleders pet here
http://www.murga-linux.com/puppy/viewtopic.php?t=72667 , but rather than running chromium it runs teamviewer.
it should work with future versions of team viewer, but you will need to alter the script slightly..... navigate to /usr/bin/teamviewer right click on it and open as text.... you'll see this
Code: Select all
#!/bin/sh
LD_PRELOAD="/usr/lib/libpuppygc.so" teamviewer7
so when teamviewer8 comes out change the 7 to 8 (or whatever the new binary is called)
you can use iguleders pet to run other programs that refuse to run as root. (just change 'teamviewer7' to the name of the binary you want to run)
as for the default .deb action with your browser. in my firefox i do get a choice of whether to extract or use petget, i guess it may be different for each browser. anyway just saving the deb and then clicking on it installs it. you'll also have a copy of it then.
666philb
Posted: Tue 24 Jul 2012, 14:51
by Sylvander
Got this:
# teamviewer
TeamViewer: 7.0.9360
Profile: /root (root)
Desktop:
/etc/*-release
Error: *** TeamViewer can not be executed with sudo! ***
Either use your normal user account without sudo
or use a the real root account to log in to your desktop (not recommended!).
#
How to fix?