Teamviewer 6 pet package

Browsers, email, chat, etc.
Message
Author
User avatar
tronkel
Posts: 1116
Joined: Fri 30 Sep 2005, 11:27
Location: Vienna Austria
Contact:

Teamviewer 6 pet package

#1 Post 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.
Last edited by tronkel on Tue 01 Nov 2011, 10:08, edited 1 time in total.

DPUP5520
Posts: 800
Joined: Wed 16 Feb 2011, 05:38

#2 Post 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.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69651][b][i]PupRescue 2.5[/i][/b][/url]
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=72178][b][i]Puppy Crypt 528[/i][/b][/url]

User avatar
tronkel
Posts: 1116
Joined: Fri 30 Sep 2005, 11:27
Location: Vienna Austria
Contact:

#3 Post 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.
Life is too short to spend it in front of a computer

DPUP5520
Posts: 800
Joined: Wed 16 Feb 2011, 05:38

#4 Post 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.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69651][b][i]PupRescue 2.5[/i][/b][/url]
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=72178][b][i]Puppy Crypt 528[/i][/b][/url]

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#5 Post 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 fixhttp://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
Attachments
teamviewer_anti_root.pet
(1.99 KiB) Downloaded 1008 times
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

DPUP5520
Posts: 800
Joined: Wed 16 Feb 2011, 05:38

#6 Post by DPUP5520 »

patched isn't working for me, giving me same issues I had after doing manual modifications to the script.
Attachments
tv6.png
(38.63 KiB) Downloaded 5689 times
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69651][b][i]PupRescue 2.5[/i][/b][/url]
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=72178][b][i]Puppy Crypt 528[/i][/b][/url]

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#7 Post 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.
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

DPUP5520
Posts: 800
Joined: Wed 16 Feb 2011, 05:38

#8 Post 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.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69651][b][i]PupRescue 2.5[/i][/b][/url]
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=72178][b][i]Puppy Crypt 528[/i][/b][/url]

User avatar
tronkel
Posts: 1116
Joined: Fri 30 Sep 2005, 11:27
Location: Vienna Austria
Contact:

#9 Post 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!)
Life is too short to spend it in front of a computer

JackWagon
Posts: 51
Joined: Tue 17 Aug 2010, 15:05
Location: dead center, USA

TeamViewer.pet available for version 7?

#10 Post by JackWagon »

Anyone know of a TeamViewer.pet available for version 7? :wink: :P

jw

DPUP5520
Posts: 800
Joined: Wed 16 Feb 2011, 05:38

#11 Post 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.
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=69651][b][i]PupRescue 2.5[/i][/b][/url]
[url=http://www.murga-linux.com/puppy/viewtopic.php?t=72178][b][i]Puppy Crypt 528[/i][/b][/url]

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#12 Post by 666philb »

Last edited by 666philb on Sat 22 Jun 2013, 20:29, edited 3 times in total.
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
Pete22
Posts: 264
Joined: Fri 08 May 2009, 22:59
Location: Utah, USA

teamviewer 7

#13 Post by Pete22 »

I could not get teamviewerstart.pet to run. Any ideas?

Pete22

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#14 Post by 666philb »

hi pete.... you need both of those links.

you also need wine installed ...EDIT: wine not needed as included in the .deb
Last edited by 666philb on Sat 03 Mar 2012, 10:34, edited 1 time in total.
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
Pete22
Posts: 264
Joined: Fri 08 May 2009, 22:59
Location: Utah, USA

Wine and Teamviewer

#15 Post 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

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#16 Post 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

Code: Select all

teamviewer
in a terminal
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

User avatar
Pete22
Posts: 264
Joined: Fri 08 May 2009, 22:59
Location: Utah, USA

Teamviewer 7

#17 Post 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.

User avatar
Pete22
Posts: 264
Joined: Fri 08 May 2009, 22:59
Location: Utah, USA

teamviewer start pet

#18 Post 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

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#19 Post 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
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

Sylvander
Posts: 4416
Joined: Mon 15 Dec 2008, 11:06
Location: West Lothian, Scotland, UK

#20 Post 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?

Post Reply