{"id":46,"date":"2015-09-07T21:55:49","date_gmt":"2015-09-07T18:55:49","guid":{"rendered":"http:\/\/small-service.com\/?p=46"},"modified":"2016-09-20T22:46:05","modified_gmt":"2016-09-20T19:46:05","slug":"wer","status":"publish","type":"post","link":"https:\/\/small-service.com\/?p=46","title":{"rendered":"start TeamViewer via ssh"},"content":{"rendered":"<p>I&#8217;ve had situation when I urgently need access to my desktop. And I had only one program for remote control &#8211; <a href=\"https:\/\/www.teamviewer.com\" target=\"_blank\">teamviewer<\/a>.<br \/>\nSo here described one of the ways to run it when you have only ssh (i.e. command line):<\/p>\n<ul>\n<li>\u00a0first of all connect to remote machine via ssh.<\/li>\n<li>check if daemon is running fine:<br \/>\n<code>teamviewer --daemon status<\/code><\/li>\n<li>determine Partner ID (remote machine id):<br \/>\n<code>teamviewer --info | grep \"TeamViewer ID\"<\/code><\/li>\n<li>start it via one of the <a href=\"http:\/\/small-service.com\/?p=18\" target=\"_blank\">these<\/a> methods. In my case worked only one:<br \/>\n<code>export DISPLAY=\":0.0\"<\/code><br \/>\n<code>teamviewer<\/code><\/li>\n<li>obtain password. Here is two possible ways&#8230;\u00a0in command line: <code>teamviewer --passwd [PASSWD]<\/code><br \/>\nthis one din&#8217;t work for me \ud83d\ude41 so lets\u00a0\u00a0take screen-shot of \u00a0teamviewer window (with password) and via scp download it. for this:<br \/>\n<code>xwd -name TeamViewer | xwdtopnm | pnmtopng &gt; passwd.png<\/code><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve had situation when I urgently need access to my desktop. And I had only one program for remote control &#8211; teamviewer. So here described one of the ways to run it when you have only ssh (i.e. command line): \u00a0first of all connect to remote machine via ssh. check if daemon is running fine: [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[23,24,25,26,21,22],"_links":{"self":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/46"}],"collection":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=46"}],"version-history":[{"count":5,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions"}],"predecessor-version":[{"id":257,"href":"https:\/\/small-service.com\/index.php?rest_route=\/wp\/v2\/posts\/46\/revisions\/257"}],"wp:attachment":[{"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/small-service.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}