Fix sound issue for Teamviewer 9 on Ubuntu 13.10 (valid also for Teamviewer 11 on Ubuntu 14.04 LTS)

485

Finally TeamViewer is running with sound (the suggested fix also works for Teamviewer 11 on Ubuntu 14.04 LTS by simply considering the different path /opt/teamviewer11/).

This is what you need to do:

  1. Add wine repository and install wine1.6:

    sudo apt-add-repository ppa:ubuntu-wine/ppa
    sudo apt-get update
    sudo apt-get install wine1.6
    
  2. Download and install TeamViewer:

    wget http://download.teamviewer.com/download/teamviewer_linux.deb
    sudo gdebi teamviewer_linux.deb
    
  3. Copy over wine binaries:

    sudo cp /usr/bin/wine /usr/bin/wineserver /usr/bin/wine-preloader /opt/teamviewer9/tv_bin/wine/bin/
    sudo cp /usr/lib/i386-linux-gnu/libwine.so.1.0 /opt/teamviewer9/tv_bin/wine/lib/
    sudo cp -R /usr/lib/i386-linux-gnu/wine/* /opt/teamviewer9/tv_bin/wine/lib/wine/
    
  4. Reconfigure your teamviewer profile and start winecfg to see if audio is working.

    teamviewer --update-profile
    teamviewer --winecfg
    
Share:
485

Related videos on Youtube

AliC
Author by

AliC

Updated on September 18, 2022

Comments

  • AliC
    AliC over 1 year

    I have a PHP script which uses Jquery to store a PHP SESSION variable.

    The script says "Hooray it worked", but the session variables GotTheUserTZ and UserTimeZone are not stored - because when I reload the page, I keep getting "Undefined index: UserTimeZone" from the line:

    echo $_SESSION['UserTimeZone'];
    

    I cannot figure out the issue.

    Thanks :)

    <?php
    
        // HTML HEADER AND BODY CODE IN ANOTHER FUNCTION
    
        session_start();
    
        // ALL OF BODY HTML OUTPUTTED HERE
    
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    
    if (!isset($_SESSION['GotTheUserTZ']))
    {
    ?>  
            <script type="text/javascript">
                $(document).ready(function() {
            var gmtRe = /GMT([\-\+]?\d{4})/;
            var d = new Date().toString();
            var tz = gmtRe.exec(d)[1];
    
        request = $.ajax({
            url: "<?php echo $GLOBALS['SITEURL'].'storetimezoneajax.php' ?>",
            type: "POST",
            data: "vv="+tz
        });
    
        // Callback handler that will be called on success
        request.done(function (response, textStatus, jqXHR){
            // Log a message to the console
            alert("Hooray, it worked!");
        });
    
        // Callback handler that will be called on failure
        request.fail(function (jqXHR, textStatus, errorThrown){
            // Log the error to the console
            alert(
                "The following error occurred: "+
                textStatus, errorThrown
            );
        });
    
            });
            </script>   
    <?php   
    
    
        echo $_SESSION['UserTimeZone'];
    }
    
    ?>
    
        </body>
    </html>
    

    and the storetimezoneajax.php in the same directory:

    <?php
    
    $_SESSION['GotTheUserTZ'] = "yes";
    
    $_SESSION['UserTimeZone'] = $_POST['vv'];
    
    ?>
    

    I'm running on localhost if that makes a difference.

    • Admin
      Admin about 10 years
      I don't have enough rep to comment... To add to iRaS excellent answer, if you installed teamviewer first, then wine, a bad config/teamviewer9 may have been left over and not properly updated with "teamviewer --update-profile". If that is the case, when "teamview --wincfg" is run, you will not see any options to select when you are in the audio tab. I had to "rm -rf .config/teamviewer9", from my home directory, to get it to work.
    • M. Eriksson
      M. Eriksson over 7 years
      In your storetimezoneajax.php, you need a session_start(); before setting the session variables. If you set session variables without starting the session, the values will be thrown away at the end of the request since it will just be as any other array.
    • M. Eriksson
      M. Eriksson over 7 years
      On your HTML-page, you are checking that if $_SESSION['GotTheUserTZ'] is NOT set, then you're trying to echo $_SESSION['UserTimeZone'], which, obviously won't be set either.
  • TRX
    TRX about 10 years
    I don't have enough rep to comment... To add to iRaS excellent answer, if you installed teamviewer first, then wine, a bad config/teamviewer9 may have been left over and not properly updated with "teamviewer --update-profile". If that is the case, when "teamview --wincfg" is run, you will not see any options to select when you are in the audio tab. I had to "rm -rf .config/teamviewer9", from my home directory, to get it to work.