Watching your Slingplayer on Linux 11


Thia article comes from community member Bitpopler on how to watch your Windows SlingPlayer version 1.4.x with Linux.slingplayer linux

Here is how to do it :

Install wine (I use 1.1.42 from WineHQ on Debian unstable).

Then get the winetricks Script by typing “wget http://www.kegel.com/wine/winetricks” in a terminal window

I am running SlingPlayer for Windows 1.4.0.206 Version. You can get it here.

Before installing Slingplayer there are a few other things you need to do.

Run winetricks by typing “sh winetricks” in a terminal window.

Select gdiplus and wmp7 (Windows Media Player 7) for install.

After installing these packages you will need to download some files that the SlingPlayer need to run. These are dependancy files. Click here to download.

Unzip these files and copy all of them to /home/<your username>/.wine/drive_c/windows/system32.
Replace <your username> with your Username .

Now you will need to register these files by typing and running each one of these in a terminal window :

wine /home/<your Username>/.wine/drive_c/windows/system32/regsvr32.exe /home/<your Username>/.wine/drive_c/windows/system32/msxml3.dll

wine /home/<your Username>/.wine/drive_c/windows/system32/regsvr32.exe /home/<your Username>/.wine/drive_c/windows/system32/dxdiagn.dll

wine /home/<your Username>/.wine/drive_c/windows/system32/regsvr32.exe /home/<your Username>/.wine/drive_c/windows/system32/quartz.dll

wine /home/<your Username>/.wine/drive_c/windows/system32/regsvr32.exe /home/<your Username>/.wine/drive_c/windows/system32/qcap.dll

You should get “successfully registered” Messages after running each one.

Now type “winecfg” into a terminal window.

Under Sound just press on apply for the autodetected settings (may take a second to show up).

Under Libraries select – dxdiagn, qcap, quartz andmsxml3

Edit these Libraries and set them all to native Windows

Now you are ready to install Sling Player Application. Double Click the Setup and it should go all the way through. After that you should have a working Slingplayer.

Enjoy and if you have any questions let us know.


Leave a Comment

11 thoughts on “Watching your Slingplayer on Linux

  • Pingback: Tweets that mention Watching your Slingplayer on Linux | -- Topsy.com

  • JD4200

    Thanks, all seems to work; however, during the configuring of the slingbox, on the last page where it asks to click ‘next’ to save the settings, it seems to crash.
    Any one else having the same problem? I’m looking into a way to fix this.

    I’ve made a simple bash script which automates all of the above instructions:
    http://pastebin.ca/raw/1887992

    Copy it into a file and make it executable (chmod +x file-name)

  • June N

    Install steps works nicely! I got as far as the last step (installing SlingPlayer…) and it installed correctly. I’m running to a problem in SlingPlayer itself. I can not add my Slingbox into the directory. Whenever I click on the “Add” button, nothing happens. Anyone else having this same issue?

    I’d love to get this to work on my Ubuntu 10.04 LTS; wine 1.1.42; winetricks v 20100526.

  • Bitpopler

    hi,

    i also must say that i am using a dyndns account which i allready have running to watch via internet.

    greets

  • boagernes

    Having a problem installing Slingplayer right now. DLLs registered, Winetricks OK, problem comes short time after agreeing to license on Slingplayer 1.4 and 2.04. I am currently running Ubuntu 10.04. Problem is that I get a menu stating that the installer has experineced a problem with IDriver.exe and has to close. It also cites a potential deficiency in Wine.

    Anybody got any good ideas or experienced this before?

    b

  • Matt M

    Here’s the code from his script:

    #!/bin/bash
    # This scripts setups up Slingbox on Linux
    # Please make sure wine, wget and unzip are installed (they should be already)
    if [[ -d ~/.wine ]];
    then
    echo "Setting up SlingBox for Linux"
    else
    echo "Fail: Is Wine installed, or do you have a .wine directory in your home?"
    exit
    fi

    mkdir ~/slingtemp
    cd ~/slingtemp
    echo "Downloading winetricks" ; wget -nv http://www.kegel.com/wine/winetricks && chmod +x winetricks
    echo "Dowloading SlingBox" ; wget http://download.slingmedia.com/player/pc/SlingPlayer_PC_1.4.0.206_Setup-US.exe
    echo "Downloading dependancies" ; wget http://answers.slingbox.com/servlet/JiveServlet/download/6226-1834/slingplayer_dependancies.zip

    clear
    echo "Installing winetricks packages"
    echo "Follow the installtion through, if asked to install any additional packages please click yes"
    ./winetricks gdiplus wmp9

    clear
    echo "Unzipping dependancy files"
    unzip slingplayer_dependancies.zip && mv slingplayer_dependancies/* ~/.wine/drive_c/windows/system32
    clear

    echo "Registering DLL files"
    wine ~/.wine/drive_c/windows/system32/regsvr32.exe ~/.wine/drive_c/windows/system32/msxml3.dll 2>/dev/null
    wine ~/.wine/drive_c/windows/system32/regsvr32.exe ~/.wine/drive_c/windows/system32/dxdiagn.dll 2>/dev/null
    wine ~/.wine/drive_c/windows/system32/regsvr32.exe ~/.wine/drive_c/windows/system32/quartz.dll 2>/dev/null
    wine ~/.wine/drive_c/windows/system32/regsvr32.exe ~/.wine/drive_c/windows/system32/qcap.dll 2>/dev/null

    clear
    echo "In the window that is about to appear do the following:"
    echo "Under Sound just press on apply for the autodetected settings (may take a second to show up)"
    echo "Under Libraries select – dxdiagn, qcap, quartz andmsxml3 and press add"
    winecfg
    clear

    echo "Follow the installation through, then all is complete"
    wine SlingPlayer_PC_1.4.0.206_Setup-US.exe

  • Jake

    Hey,

    Thanks for the awesome guide. I’ve gotten everything working so far and I’m working on the Slingbox Setup Wizard, which is telling me “Cannot play the stream due to a hardware audio driver problem. Please make sure the latest audio hardware drivers are installed. Error: 0x80040256″

    Any ideas what I might need to do here, anyone?

  • Matt M

    No problem, it’s up there in his post, I think the URL was pastebin or something like that. If nothing else, it documents the code in case the download ever goes away.

    This next post is duplicated a couple places, I came up with a few improvements to make SlingPlayer more tolerable.

    Here’s the directions using that script:

    1. Install WINE and open “winecfg” (Wine Config) — now is a good time to click “Audio” and “Apply” so you don’t forget later.

    2. Run the script to set everything up — just follow directions, click “Next” as needed. If Media Player crashes just un-check “Restart media player” and select “Don’t Send” on the error report.

    3. Configure SlingPlayer

    ————-

    Once you have SlingPlayer working, you may notice your computer will go to sleep while watching. I found a workaround in Gnome (I’m running Ubuntu Netbook Remix but it should work on any system running Gnome). It sets the appropriate flag to prevent the computer from going idle while SlingPlayer is running, and clears the flag when SlingPlayer is closed. Now it will behave like Windows and your computer will keep running until it reaches critical battery (which hibernates without asking) or until you close SlingPlayer. This is how Windows works.

    1. Save the script somewhere (I put it in the .wine directory)

    2. Edit the script to reflect the current path of your SlingPlayer application launcher, it should be similar to what I have listed

    3. Edit the application launcher (or create a new one) that executes the script instead of SlingPlayer directly

    Here’s my script:


    #!/bin/bash
    gnome-screensaver-command -i -n SlingPlayer -r Streaming&
    inhibitPid=$!
    # -- Edit the BELOW line to match the original application launcher command
    env WINEPREFIX="~/.wine" wine "C:\Program Files\Sling Media\SlingPlayer\SlingPlayer.exe"
    # -- Edit the ABOVE line to match the original application launcher command
    kill $inhibitPid
    #End

    —————–

    Another tip — I found that the channels don’t always change properly as if the first key press is lost or there is severe lag between the 1st/2nd key presses. A workaround I discovered is to decide the channel and then as fast as you can type Space or some other control key to kick-start control mode. So to tune channel 120 I type “Space120Space” and it goes into control mode, shows the current channel, types the numbers, and the last space clicks OK to accept the new channel.

  • mmd

    Thanks for the instructions. I have it working on Ubuntu 10.10 with just some minor tweaks to your instructions above.

    thanks again!

  • mmd

    Thanks for your instructions. I have it working on Ubuntu 10.10 with just some minor tweaks to your instructions.

    Thanks again!