2013-03-08

Slitaz -- TeamViewer/get-teamviewer -2




/etc/init.d/teamviewerd: No such file or directory

http://hg.slitaz.org/wok/file/7ae80fa5a40a/get-teamviewer/stuff/get-teamviewer
http://hg.slitaz.org/wok/diff/7ae80fa5a40a/get-teamviewer/stuff/get-teamviewer


1.
tux@slitaz:~$ sudo teamviewer --daemon start

/etc/init.d/teamviewerd start
/opt/teamviewer8/tv_bin/script/tvw_daemon: line 185: /etc/init.d/teamviewerd: No such file or directory
fail


2.
tux@slitaz:~$ ls -l /etc/init.d/team*
ls: /etc/init.d/team*: No such file or directory

tux@slitaz:~$ grep teamviewerd /var/lib/tazpkg/installed/teamviewer/files.list
/opt/teamviewer8/tv_bin/script/teamviewerd.service
/opt/teamviewer8/tv_bin/script/teamviewerdMint.conf
/opt/teamviewer8/tv_bin/script/teamviewerd.sysv
/opt/teamviewer8/tv_bin/script/teamviewerd.conf
/opt/teamviewer8/tv_bin/teamviewerd


3.
tux@slitaz:~$ sudo /opt/teamviewer8/tv_bin/script/teamviewerd.sysv start
Starting teamviewerd...

tux@slitaz:~$ netstat -tp
netstat: showing only processes with your user ID
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 192.168.0.100:37282     server15002.teamviewer.com:5938 ESTABLISHED -
tcp        0      0 192.168.0.100:60123     server1600.teamviewer.com:5938 TIME_WAIT   -
netstat: /proc/net/tcp6: No such file or directory

tux@slitaz:~$ ps ax | tail -6
 3117 ?        Sl     0:00 /opt/teamviewer8/tv_bin/teamviewerd -d
 3133 ?        Sl     0:00 c:\TeamViewer\TeamViewer.exe
 3156 ?        Ss     0:00 /opt/teamviewer8/tv_bin/wine/bin/wineserver
 3162 ?        Sl     0:00 C:\windows\system32\services.exe
 3180 pts/2    R+     0:00 ps ax
 3181 pts/2    S+     0:00 tail -6


4.
Applications -> Internet -> TeamViewe 8

tux@slitaz:~$ netstat -tp
netstat: showing only processes with your user ID
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
tcp        0      0 192.168.0.100:37282     server15002.teamviewer.com:5938 ESTABLISHED -
tcp        0      0 localhost:38060         localhost:60014         ESTABLISHED 3133/c:\TeamViewer\
tcp        0      0 localhost:49201         localhost:5939          ESTABLISHED 3133/c:\TeamViewer\
tcp        0      0 localhost:60014         localhost:38060         ESTABLISHED 3133/c:\TeamViewer\
tcp        0      0 localhost:5939          localhost:49201         ESTABLISHED -
netstat: /proc/net/tcp6: No such file or directory
tux@slitaz:~$


5.
http://hg.slitaz.org/wok/raw-rev/7ae80fa5a40a

diff -r 990f8bfa7b6d -r 7ae80fa5a40a get-teamviewer/stuff/get-teamviewer
--- a/get-teamviewer/stuff/get-teamviewer    Fri Mar 08 09:22:27 2013 +0100
+++ b/get-teamviewer/stuff/get-teamviewer    Fri Mar 08 11:32:57 2013 +0100
@@ -48,11 +48,12 @@
 mv $PACKAGE $PACKAGE-$VERSION

 cd $PACKAGE-$VERSION/fs
-ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE
+ln -s $(cd usr/bin ; ls $PACKAGE*) usr/bin/$PACKAGE 2> /dev/null || true
 mkdir -p usr/share/applications
 sed "s|EXEC|/usr/bin/$PACKAGE|g;s!ICON!/$(find opt | grep $PACKAGE.png)!g" \
-    < $(find opt | grep desktop.template) \
+    < $(find opt | grep -E '(desktop.template|\.desktop$)') \
     > usr/share/applications/$PACKAGE.desktop
+sed -i 's/readlink -e/readlink $0 || echo /' $(find opt | grep /$PACKAGE$)
 cd ../..

 cat > $PACKAGE-$VERSION/receipt <<EOT