Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 22 Aug 2014, 21:59
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How I watch Netflix on Precise Puppy
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [15 Posts]  
Author Message
heywoodj

Joined: 15 Mar 2009
Posts: 68

PostPosted: Mon 26 May 2014, 08:02    Post subject:  How I watch Netflix on Precise Puppy
Subject description: Successful with minimal addition to Precise 5.7.1
 

I was going to keep this to myself, but I figured there might be some interest in this. I had spent some time trying out things from mr_what's expansive HOW-TO : http://www.murga-linux.com/puppy/viewtopic.php?t=86016 where he uses Wine to run a Windows version of Firefox.
I had some success but mostly failures, due to my misunderstanding of what was being discussed here and elsewhere. Particularly vexing was using the PPM(Puppy Package Manager) with new PPAs to add what seemed like unnecessary packages, and still facing missing packages.

So after a couple weeks dabbling I finally had success, but figured the amount of stuff added could be reduced. And so this is what I came up with.

The usual precautions apply:There is no warranty, you should back up your computer,and if done improperly you could wreck your operating system. This worked for me, but YMMV. And this Firefox is somewhat unstable -- it crashes on initial startup, but is generally OK, when running.
Also, I'm no Linux guru, merely a Puppy enthusiast trying to give back a little to this wonderful community. The real hard work was done by others for which I'm eternally grateful.

Overview:
So far for me, this has only worked on a full install of Precise 5.7.1 to a ext4 partition. 4GB is big enough. Frugal has failed.

My test machine is a hp/Compaq nx6325 laptop(1.6GHz AMD, 4GB RAM).

I manually downloaded the compholio Wine .deb files and installed them, and tested the Wine installation.

I downloaded and installed through Wine, the Windows version of Firefox 18.0.2, ignoring the Mono and Gecko installations. Start Firefox and immediately disabled updates.

Using Firefox, got the European Union Expansion Font Update from Microsoft and installed it.

Restarted Firefox.

Downloaded and installed Silverlight-4 and disabled Silverlight update -- Remember, in this case, updates are bad and can undo your handiwork..

The following site is sometimes found.It has disappeared before
Went to the MS Silverlight DRM test site and checked Silverlight configuration.

Went to Netflix and signed in. Happiness followed. You may need to reload the page from time to time.



The Details:

First make sure your full install of Precise Puppy is working well, and connected to the internet.

For a full install on a ext4 partition, "user_xattr" is not needed
Open /etc/fstab and check to make sure xattr(extended file attributes) is enabled in the partition Precise is installed -- sda3 in my case:

    /dev/sda3 / ext4 defaults,user_xattr 0 1
    none /proc proc defaults 0 0
    none /sys sysfs defaults 0 0
    none /dev/pts devpts gid=2,mode=620 0 0
    /dev/fd0 /mnt/floppy auto noauto,rw 0 0



In a browser go to this page: https://launchpad.net/~pipelight/+archive/stable/+packages

Click on : wine-compholio - 1.7.XX-1~ubuntu12.04.1

and download these built files:

    wine-compholio-1.7.XX~ubuntu12.04.1_i386.deb
    wine-compholio-i386-1.7.XX~ubuntu12.04.1_i386.deb

where XX is the current version. Today, 7/16/14, XX=22.

I downloaded the files to /root/Downloads. Open ROX-filer to ~/Downloads. Click on the two .deb files separately and they should each install successfully.

But Wine is installed to /opt/wine-compholio/bin rather than /bin or /usr/bin which is where Puppy puts executables(Puppy experts, correction please). A symlink solves that problem.

Open a console and type:

Code:
ln  -s /opt/wine-compholio/bin/wine /usr/bin/wine

(Commandline copy&paste shortcut: copy by underlining text holding down left button; release button at end of line. Click on console. Paste by simultaneously clicking both left and right buttons (emulating middle button)).
Now enter:
Code:
wine --version
which should respond with:
Code:
wine-1.7.22
or whatever version was downloaded.
Congratulations, you have a working Wine.



Next, in a browser download the Windows version of Firefox-18.0.2:
http://download.mozilla.org/?product=firefox-18.0.2
to /root/Downloads.

In the console type:
Code:
cd Downloads;wine Firefox\ Setup\ 18.0.2.exe


which should start Wine which starts the Firefox installer.
Hit the "Cancel" button for Mono, since we probably won't be needing .NET stuff and "Cancel" again for Gecko.
When the installer finishes, launch Firefox.

Immediately disable Firefox updates since they will make Netflix unusable.
Code:
Tools->Options->Advanced->Updates



Next install the European Union Expansion Font Update from http://www.microsoft.com/en-us/download/details.aspx?id=16083

Double click on "EUupdate.EXE" in the Mozilla Downloads window, and follow the usual installation instructions.

When finished, EU Update will ask if you want to restart. Say "Yes" and "Terminate Process".
Close the console and In a new console:
Code:
wine "C:\\Program Files\\Mozilla Firefox\\firefox.exe"


and download:

http://silverlight.dlservice.microsoft.com/download/6/A/1/6A13C54D-3F35-4082-977A-27F30ECE0F34/10329.00/runtime/Silverlight.exe

and follow the install directions. Uncheck "Enable Microsoft Updates" box.


*************** the following step is optional, as the test site disappears occasionally ********************************

Go to http://web.sldrm.video.msn.com and when the video starts, right click on the video and left click "Silverlight". Click on the "Updates" tab and make sure "Never check for updates" is checked.
.

*********************************************************************************************

Now go and sign in at Netflix.com and enjoy! Firefox will hang occasionally and require reloading.

If Silverlight asks to update, decline.

I can't vouch that this Firefox will work correctly for everything and will often crash on startup. Do not be alarmed, once running it is usually okay.

Some keyboard controls:
<space> or <enter> = play/pause toggle
<F> = Full Screen
<ESC> = Exit Full Screen
<Right Arrow> = Forward 10 seconds
<Left Arrow> = Back 10 seconds

Special thanks to mr_what and 01micko for showing that Netflix was possible in Puppy.

Below is a short script to simplify starting Firefox. Extract it to /root, and drag it to your desktop if you desire.

HJ

edit: Added screenshots.
edit 6/9/14: updated launchpad link to current version.
edit 6/17/14:notes reflecting experience.
edit: 6/28/14:corrected embarrassing misstatement in my notes.
edit: 7/16/14:the Silverlight test site is back;useful but not necessary.
Start_Firefox.tar.gz
Description  Script for simplifying starting Firefox.
gz

 Download 
Filename  Start_Firefox.tar.gz 
Filesize  211 Bytes 
Downloaded  69 Time(s) 

Last edited by heywoodj on Wed 16 Jul 2014, 08:30; edited 7 times in total
Back to top
View user's profile Send private message 
heywoodj

Joined: 15 Mar 2009
Posts: 68

PostPosted: Sun 01 Jun 2014, 12:11    Post subject:  

OK, now 6 days and over 100 views out, I have received no comments.

Did this work for anybody?

Any clarification you need?

I'm happily watching Netflix on my Precise Puppy virtually every day, only issue is that Firefox may crash a time or two in the beginning. That's a small price for a made up solution using old software versions, running through (not) an emulator, I think. If only Windows was so simple to fix.

I think this solution may be more hardware intensive than Windows, and may give a more clippy video, especially on a wireless connection.

Curious for some feedback.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8179

PostPosted: Sun 01 Jun 2014, 13:54    Post subject:  

Perhaps because netflix as been avoided as it appeared to require mono but it appears you have disproved that. Your method does sound much less messy and would be handy for netflix users who do pop up now and then.

So heres a bump Smile

I don't use it myself...I seem to find plenty of alternatives so cannot comment on the technique. Silverlight its really just an rtmp player...now if we could find a way of getting the stream directly then it would play nicely in vlc or mplayer...there is a site that provides direct links for silverlight media and they work like a charm but unfortunately that does not include netflix.

mike
Back to top
View user's profile Send private message 
puppylinuxuser

Joined: 09 Jan 2014
Posts: 16

PostPosted: Mon 09 Jun 2014, 00:22    Post subject:  

i'm trying to get this working.

right now I'm getting a whoops something went wrong message...Digital Rights Management DRM erro

I used a newer cornholio wine then the guide.

I'm running precise on an sd card usb install, is that an issue over your statement in the instructions about a full install of precise?

my fstab looks like this:

none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /dev/pts devpts gid=2,mode=620 0 0
/dev/fd0 /mnt/floppy auto noauto,rw 0 0

thanks for the help and the guide. I'd sure like to have netflix on puppy!

edit: I will add that the test video (msn link) worked but that might not require DRM.
Back to top
View user's profile Send private message 
heywoodj

Joined: 15 Mar 2009
Posts: 68

PostPosted: Mon 09 Jun 2014, 23:14    Post subject:  

puppylinuxuser,
I've only dabbled with SD card installs, but I'm a little confused with your fstab... shouldn't there be a root, i.e. a "/" entry for your sd card?

mr_what's thread suggested using an ext4 partition so that xattr is enabled automatically.

BTW, cornholio... Heh,Heh! Heh,Heh! Cool!
(It's actually compholio, but I saw cornholio first time too!)


Edit: New package from https://launchpad.net/~pipelight/+archive/stable/+packages, click on "wine-compholio - 1.7.XX-1~ubuntu12.04.1", download
wine-compholio_ 1.7.XX-1~ubuntu12.04.1_i386.deb
wine-compholio-i386_1.7.XX-1~ubuntu12.04.1_i386.deb
Back to top
View user's profile Send private message 
puppylinuxuser

Joined: 09 Jan 2014
Posts: 16

PostPosted: Mon 09 Jun 2014, 23:56    Post subject:  

thank you for the help.

I used. 1.7.19-1

I'm confused by the fstab too. Don't really know enough about this stuff...

I may try a new install using ext4 to see if it works.
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8179

PostPosted: Tue 10 Jun 2014, 07:05    Post subject:  

the fstab root entry suggests a full install... for SD its usually frugal so root device is a chrooted aufs layering.

mike
Back to top
View user's profile Send private message 
puppylinuxuser

Joined: 09 Jan 2014
Posts: 16

PostPosted: Tue 10 Jun 2014, 09:16    Post subject:  

thanks for the additional info mikeb.

I did find this in the "how I patched wine for netflix thread



Quote:
The full install may be the most important thing to note, because Silverlight requires XATTR (extended file attributes) to be enabled on any volumes where it saves or caches information (i.e., the .wine directory which will be created in your home folder, and possibly in /usr/bin/wine although I'm not sure about that). A full install -- in my case, to a single ext4 volume -- allowed me to add "user_xattr" to fstab to ensure it was enabled.
Code:
cat /etc/fstab

/dev/sda1 / ext4 defaults,user_xattr 0 1
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
none /dev/pts devpts gid=2,mode=620 0 0
/dev/fd0 /mnt/floppy auto noauto,rw 0 0

Without XATTR, Netflix throws "N8156-6022" errors when attempting to play video. I don't know enough about Puppy's file systems to tell you if setting this flag in fstab would work for a frugal install, or if you can set XATTR to be included in a targeted SFS build. Can anyone fill in these particular blanks?


that is the error code I am getting.

here is the thread by mr_what I'm talking about: http://www.murga-linux.com/puppy/viewtopic.php?t=86016&sid=f222011a5cd2da5f7ada08943d543958

going to read further, maybe somebody has answered for a frugal.

I could run a full install on the SD card too, although i prefer frugal for my use
Back to top
View user's profile Send private message 
puppylinuxuser

Joined: 09 Jan 2014
Posts: 16

PostPosted: Tue 10 Jun 2014, 09:17    Post subject:  

edit sorry double post
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8179

PostPosted: Tue 10 Jun 2014, 10:32    Post subject:  

hmm ok... that crap...when is a movie not a movie...when corporations get their hands on them... Got an online game that will only run from ntfs as it does similar stuff for 'security'
(this is more like dos stuff isn't it with xattr)

So a full install on ext4 does provide for its needs.... in my head an ext4 save file could do the same BUT the unioned filesystem may in effect be seen as ext2 by wine.

It may help to move and symlink out the .wine folder to somewhere that is ext4 in that case. I did once experiment with a .wine image file too.
It would have to be posix as wine has a symlink or 2 in there. Quite a mix of worlds on this one.

mike
Back to top
View user's profile Send private message 
puppylinuxuser

Joined: 09 Jan 2014
Posts: 16

PostPosted: Wed 11 Jun 2014, 13:06    Post subject:  

could a person do this with slack too?

I like it more.

i'm trying a full install

edit:

ok I guess it takes some monkeying around to have the usb installer do a full install so I haven't tried that yet.

I did try making a frugal install on the sd card with an ex4 file format but it didn't boot.

so now i'm trying a frugal install on sd card with two partitions one ex2 and one ex4. I'm hoping that I can put the wine stuff on the ex4 and it will work.

not sure a little over my head here.
Back to top
View user's profile Send private message 
heywoodj

Joined: 15 Mar 2009
Posts: 68

PostPosted: Tue 17 Jun 2014, 02:13    Post subject:  

Okay, so I tried couple other methods of installation and this is what I believe I know:

1. A full Precise 5.7.1 install on a ext4 partition still works, even with the current 1.7.20 version of compholio.

2. A frugal install on the same ext4 partition fails with the dreaded "N8156-6022" error from Netflix, which seems to be an indication of Silverlight failure.

3. The full install, if on an ext4 partition does not require the "user_xattr" line on /etc/fstab to work.

4. I have not had any success with installs on USB flash drives, even with a separate ext4 partition onboard. In fact, I cannot get the USB drive to even boot if the booting partition is ext4, after trying the 5 different MBR options.

If someone knew what they were doing they COULD possibly negotiate a "chroot jail" setup in a second ext4 partition on a flash drive or maybe a SD card and do all the wine stuff there. I think that's along the line that mikeb was talking about...

5.The Silverlight test site has gone AWOL. A potential alternative site (bouncing balls) when used not only crashes Firefox, it also freezes my computer, requiring a hard reboot. Just like Windows, again!

I'll edit the first post to reflect these findings.

Last edited by heywoodj on Tue 17 Jun 2014, 12:01; edited 1 time in total
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8179

PostPosted: Tue 17 Jun 2014, 07:47    Post subject:  

Hmm not much to add at the moment... you basically have what is and is not possible.

Ext4 boots... I know grub4dos cannot directly...the wizard uses a alternative mbr to get around it.

As for chroot...some time ago we played with a method of running software in a separate aufs chrooted layer as a mean of clean testing/jailing. Amigo knows the technique well.

Basically unionfuse is used to make a union... the running system is the bottom layer...ie '/'. the new program is next (folder or sfs mounted to folder) and finally a read/write layer which is a folder somewhere convenient..could be tmpfs etc.
Once created to a further folder you then chroot into that and run ...

The information is scattered but thats the basic idea... it may be adaptable to this but may have the same problem as the usual puppy union...ie appearing as ext2 which I suspect is the problem here.

Alternative would be to do things like force a full install to flash... but obviously the frugal way is popular for various reasons.

mike
Back to top
View user's profile Send private message 
shadower_sc

Joined: 21 Apr 2010
Posts: 129
Location: Texas

PostPosted: Mon 14 Jul 2014, 14:12    Post subject: Re: How I watch Netflix on Precise Puppy
Subject description: Successful with minimal addition to Precise 5.7.1
 

I just wanted to say thanks for posting your how to. It helped me a lot in getting Pipelight setup and working in Precise Puppy. Now I can continue with creating an Updated Kiosk for my machines.
Back to top
View user's profile Send private message 
heywoodj

Joined: 15 Mar 2009
Posts: 68

PostPosted: Wed 16 Jul 2014, 01:25    Post subject: Re: How I watch Netflix on Precise Puppy
Subject description: Successful with minimal addition to Precise 5.7.1
 

shadower_sc wrote:
I just wanted to say thanks for posting your how to. It helped me a lot in getting Pipelight setup and working in Precise Puppy. Now I can continue with creating an Updated Kiosk for my machines.


Glad you found something useful here. A little curious as to what you're setting up, if you'd care to share.
edit: I just found your How-To. NVM.

I just did a re-install of Wine just to see if anything much changed. Still working, warts and all as before, now using wine-compholio version 1.7.22.

Oh, and the Silverlight test site is back! It's not necessary but maybe helpful to verify the Silverlight install.

I'll edit the first post to reflect this.

Just watched a couple hours of material on the new install, in the name of research, of course!

I also did try making a chroot jail on a second partition on a flash drive. The install didn't work, but I could kind of see the "outline" of a solution. I also decided that it's way more complicated than just doing a full install on a hard drive, so I'm unlikely to pursue it further.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [15 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1128s ][ Queries: 12 (0.0037s) ][ GZIP on ]