Shop OBEX P1 Docs P2 Docs Learn Events
General Linux Question — Parallax Forums

General Linux Question

NWCCTVNWCCTV Posts: 3,629
edited 2014-05-21 22:14 in General Discussion
So I am running Raspian on my Raspberry Pi. However, I understand this to be more geared towards newbies and has several programs I do not need. What I want to know is which Linux version is best on a Raspberry Pi if all I want to do is load a web browser and have the capability of playing Flash video. That is it. Nothing more.

Comments

  • Peter KG6LSEPeter KG6LSE Posts: 1,383
    edited 2014-05-08 19:28
    NWCCTV wrote: »
    So I am running Raspian on my Raspberry Pi. However, I understand this to be more geared towards newbies and has several programs I do not need. What I want to know is which Linux version is best on a Raspberry Pi if all I want to do is load a web browser and have the capability of playing Flash video. That is it. Nothing more.

    Mint has good support for flash . however the Pi is ARM and there for you need to compile or find a pre made distro . and only debain comes to mind for odd CPUs . PPC MIPS Ect
  • Heater.Heater. Posts: 21,230
    edited 2014-05-08 22:20
    NWCCTV,
    I am running Raspbian on my Raspberry Pi
    Excellent.
    I understand this to be more geared towards newbies
    Not at all. Raspbian is the ARM version Debian. They had to recompile all the packages for the somewhat older ARM architecture used on the Pi which is not supported by Debian. You can use the standard Debian on the Pi as well it's just a bit slower at floating point maths.
    ...has several programs I do not need...
    Perhaps. This is not usually a problem as SD cards are huge now a days. Just don't use those programs.
    ...What I want to know is which Linux version is best on a Raspberry Pi...
    That would be Raspbian.
    ...all I want to do is load a web browser...
    Quite doable. Midori is installed by default. Although you may get frustrated at it not being as fast as you would expect a browsers to be on a modern PC/Laptop.
    ...playing Flash video...
    Forget it. Adobe FLASH does not run on the Pi.

    It is possible to play video in the browser using GNASH as shown here:
    http://www.youtube.com/watch?v=gRXedwXrPh8
    I have never tried it and would imagine it's a terrible experience.

    However, the Pi can play video very well, outside of the browser, using omxplayer.

    What I have done a few times is download YouTube videos using a command line down loader and then play them in omxplayer.

    http://rg3.github.io/youtube-dl/
    That is it. Nothing more.
    That is actually asking an awful lot of the little Pi.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-05-08 23:41
    That is actually asking an awful lot of the little Pi.
    Yes, I am ware of this. I tried OMXPlayer but not working well. Midori will not display the video. What I am trying, (unsuccessfully I might add) to do is view an IP camera that is on my network. I am currently looking at using "Motion" but I cannot find any help on it. I need it to view an IP camera, not the Pi camera. This is only for setting up an IP camera, not going to record or play, just need it to view for a few minutes. I have been all over the Linux forums with no luck.
  • Heater.Heater. Posts: 21,230
    edited 2014-05-09 00:14
    What was the problem with omxplayer? Do you have enough memory set aside for the frame bufffer? Can you download and play vids from youtube with it?

    So the actual question you want to ask is not in the thread title or the opening post. This sort of thing is very time wasting for those who like to answer.

    I have no experience of IP cameras on the Pi or anywhere else. Seems to be a lot of people doing it according to a Google search. For example: https://github.com/EnigmaCurry/RaspberryPi-IP-Camera-Viewer
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-05-09 00:21
    Since you desire a web browser and watching Flash video, most of the limitations are likely in terms of hardware and not your choice of Linux distribution.

    But Linux distributions certainly are NOT all the same. Mint doesn't support Asian languages in the default configurations, so it is smaller than Ubuntu in overall storage demands.

    But what is more interesting is that the Red Hat/Fedora distribution is a resident corporation of the USA, so you MAY have to separately install Flash video drivers due to Microsoft's legal dominance in the USA. On the Debian side, the Flash drivers come installed in most cases and there are more alternatives.

    If you desire a 'full service' web Motzilla's Firefox or Iceweasel are very popular, but there are a list of alternatives.

    If you go to Distrowatch at www.distrowatch.com you may be able to find a tiny version of Linux that is idea for what you want in performance. But you may have to compile it yourself for the Raspberry Pi. It is always easier to start out with something that just is ready to load if you are new to Linux. Compiling from source code is a steep learning curve if you have never done it. And it may tie up your desktop computer for hours if you run a bit slow or short on memory.

    +++++++++++++++++
    Android may actually perform better for what you desire on the Raspberry Pi. It exploits a lot of proprietary features and code that Linux has not been able to use.
  • Heater.Heater. Posts: 21,230
    edited 2014-05-09 00:48
    Loopy,
    Red Hat/Fedora distribution is a resident corporation of the USA, so you have to separately install Flash video drivers due to Microsoft's legal dominance in the USA.
    Nonsense. What on Earth has Microsoft got to do with RedHat Linux and FLASH (Which is made by Adobe)?


    By the way, what FLASH video drivers? I have used FLASH on Linux for ages and never installed or even heard of any special video drivers provided with FLASH or by Adobe.
    On the Debian side, the Flash drivers come installed in most cases and there are more alternatives.
    Hugh? Which Debian packages are you talking about exactly. Certainly it has never been installed by default on any Debian system I have ever set up. Still it easy enough to install on a PC Debian.
    ...But you may have to compile it yourself for the Raspberry Pi....
    Great, somebody wants to view an IP camera on a Raspberry Pi and the solution is to spend a month or two compiling a whole new Linux distribution. Not to mention the half year or so it might take to learn how to do it. I think not.
    Android may actually perform better for what you desire on the Raspberry Pi.
    Android does not run on the Raspberry Pi.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-05-09 02:36
    @Heater
    If I were you, I would reconsider the merits of starting any forum posting with "nonsense".

    FYI, in the USA anyone can file a civil lawsuit without proving merit. It is only when the case comes to trial some 10 years later that the issue of the merit of the law suit is addressed.

    So Red Hat/Fedora does have to bend to the whims of MS or pay out years of legal fees for a pending law suit.
    OpenSUSE also has some exposure to this legal dilemma as they acquired Novell licenses, a US corporation.

    I am simply reporting experience. When I last installed Fedora some years ago, it advised me that I had to install Flash drivers on my own AND that it would be best if I paid for the versions licensed by Microsoft.


    +++++++++++++++++
    You may know more about programing in general, but these legal issues are real and at least the OpenSUSE issue has been mentioned in Wikipedia.

    I don't know what Microsoft has to do with Flash, but these firms are constantly suing each other or threatening to sue. At this point the particular issue may be resolved, but the fact that Fedora/Red Hat delivers something that bends to the will of bullies and suggest buying proprietary software to have full support, whiile Debian seems to be unconcerned with such, is a very valid consideration.

    I suppose that Red Hat/Fedora also has to bend to the whims of the NSA, but that too is not openly mentioned anywhere. Linux's european roots are strongly independent. I'd like to stay with that.
  • ajwardajward Posts: 1,130
    edited 2014-05-09 03:40
    @Loopy... I keep Winderz and Fedora on separate drives because I just don't trust windows.
    I also don't use the boot loader. I manually switch boot drives in bios because, again, I don't trust the fine Redmond product and I rarely boot anything but Fedora. Kind of a pain, I know, but if windows barfs and takes out its drive, I've lost nothing important and it doesn't affect my daily routine.

    Amanda
  • Heater.Heater. Posts: 21,230
    edited 2014-05-09 06:26
    Loopy,

    Nonsense :)

    Sorry yes, perhaps that was not totally polite.

    What I was fishing for is some pointer to a story about this Microsoft/Adobe-FLASH/RedHat situation you describe.

    Similarly for those mysterious, and unlikely, FLASH drivers from Microsoft for RedHat Linux.

    As it is I'm left here not knowing what you are talking about. A quick google around has not enlightened me yet.
    Linux's european roots are strongly independent. I'd like to stay with that.
    Sounds like a good plan.
  • John BoardJohn Board Posts: 371
    edited 2014-05-09 06:38
    If you don't mind putting a little effort into getting it running, Arch Linux is a pretty stripped down version of Linux. An RPi compatible arch download is available as both direct and torrent download from http://www.raspberrypi.org/downloads/. As far as I'm aware, Arch is little more than the kernel and some of the basic tools. I'm not sure whether it even has a display manager built in.

    Anyway, as I said, it'd take a bit more work to get running, but it is very lightweight.

    Ohh, and as for flash... Good luck with that. If you do get a half workable solution, I'd be more than happy to hear about it. I've always had a bit of trouble with flash support on linux.

    -John
  • ratronicratronic Posts: 1,451
    edited 2014-05-09 07:59
    Andy you can use a USB video camera plugged into the Pi if you want to play with video on the Pi. I am at the start of using the Opencv stuff with Python for things like object or face detection.

    I have only played with some things, one that is fun is the Canny function. I am using Raspbian and these are the commands for the command line to set it up -

    sudo apt-get update
    sudo apt-get upgrade

    sudo apt-get install libopencv-dev python-opencv

    and after that you can run this python program to simply display video from the USB video camera on your Pi monitor. You can explore online for more info for using opencv with Python.
    #color usb camera video display
    import cv2
    
    cap = cv2.VideoCapture(0)
    
    while(True):
    
      ret, frame = cap.read()
      if ret == True:
    
        cv2.imshow("Video", frame)
    
      if cv2.waitKey(10) == 27:  #escape key stops program
        break
    
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-05-09 09:06
    ajward wrote: »
    @Loopy... I keep Winderz and Fedora on separate drives because I just don't trust windows.
    I also don't use the boot loader. I manually switch boot drives in bios because, again, I don't trust the fine Redmond product and I rarely boot anything but Fedora. Kind of a pain, I know, but if windows barfs and takes out its drive, I've lost nothing important and it doesn't affect my daily routine.

    Amanda

    Well, if you are not using a boot loader such as Grub2 and you are switching between two hard disks you have to rely on constantly rewritting the BIOS EEPROM. These EEPROMs can fail and are more difficult to replace because the manufacturer will NOT provide you with a binary image to create a new one.

    On the other hand, if you study how a hard disk boots from a Master Boot Record (the MBR), this can be rewritten to just as often as any sector on a hard disk.

    In sum, it is generally considered safer and wise to use a boot loader. And Linux has created Grub2 specifically to safely survive along side of Window XP, Vista, 7, 8, or any other OS on the same hard disk... but in separate partitions.

    I don't trust Windows either, but this is really a case of not trusting the boot loader software that has been worked up by open source coders. You can use one of several Linux boot loaders -- LILO, Grub1, or Grub2 are the main choices. (But there are cetainly a lot of other ones, including what Microsoft and Apple try to assert.)

    LILO, Grub1, and Grub2 call Windows NTLDR to start a Windows partition.

    The trick here is to let the Windows OSes think that they have complete control of the hard disk, even though that is not what is reality. So you have to install Windows first, then create the vacant Linux partitions from within Windows so that Microsoft has a record of the number and size of all the partitions that it checks every time it boots.

    If you get that right, you can then install Linux on the empty partitions and format them anyway you want. Grub2 with sort out everything and you have Windows not shutting out Linux due to NTLDR finding a record of the number and sizes of partitions that doesn't match what it sees.


    http://en.wikipedia.org/wiki/Master_boot_record

    http://en.wikipedia.org/wiki/Comparison_of_boot_loaders
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-05-09 09:16
    Heater. wrote: »
    Loopy,

    Nonsense :)

    Sorry yes, perhaps that was not totally polite.

    What I was fishing for is some pointer to a story about this Microsoft/Adobe-FLASH/RedHat situation you describe.

    Similarly for those mysterious, and unlikely, FLASH drivers from Microsoft for RedHat Linux.

    As it is I'm left here not knowing what you are talking about. A quick google around has not enlightened me yet.

    Sounds like a good plan.

    This was way back when I first discovered Ubuntu 10.04. I was just beginning with Linux and trying various distributions. So the situation may be changed. But I guess it is the Video Codecs for Fedora, not actually Adobe Flash. Win32 Codecs in particular.

    The truth is I have no idea what these Codecs are or why I need them, but they come included with the Debian side of Linux, and are a thorny issue on the Fedora side. It is more a perception that all video on the internet these days is Adobe Flash. But there are quite a few reminants that still use Microsoft Codecs.

    You can NOW download and install free ones, but it is just one more detail in the Fedora installation.

    http://voices.yahoo.com/how-free-legal-multimedia-codecs-linux-2153175.html

    Take a look here for discussion on having to buy these for Fedora. People still think they have to do so. Fluendo actually sells propreitay Codecs right now.

    http://www.fluendo.com/shop/product/oneplay-codec-pack/

    http://forums.fedoraforum.org/showthread.php?t=292348
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-05-09 11:51
    you can use a USB video camera plugged into the Pi
    Yes, I know this. The idea is for something I have wanted to do for quite some time.
    So the actual question you want to ask is not in the thread title or the opening post.
    Actually it is. I felt after the first two replies that I should explain what I am trying to do. The underlying question is STILL which Linux version is best on a Raspberry Pi if all I want to do is load a web browser and have the capability of playing Flash video. That is it. Nothing more.
  • Heater.Heater. Posts: 21,230
    edited 2014-05-09 12:07
    NWCCTV,

    No, it turns out that the problem you are trying to solve is nothing to do with web browsers or playing FLASH video.

    You said it's all about viewing video from an IP camera.

    I hope the links provided help.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-05-09 14:49
    No, it turns out that the problem you are trying to solve is nothing to do with web browsers or playing FLASH video
    It really is. ALL IP cameras these days use a web browser for basic access and to setup. This is what I need to be able to do. I have installed Chromium and Gnash but still no luck. Yes, I can do this from a Netbook, an Android device, etc. but in the grand scheme of things I want to use the Pi because of its size. I have found that going to the Privacy Mask setting of the camera shows the live video feed in Chromium and in Midori. This might just be a work around for what I want to accomplish until I can write my own Python script to do it.

    I had already viewed the link you provided. The problem with hat is the hardware is wired to the Pi.
  • ValeTValeT Posts: 308
    edited 2014-05-09 14:56
    To answer your original question, get NOOBS. It comes with multiple images and has ArchLinux.

    To indirectly answer your question about flash players, I would make sure you have the model B RPI (Raspberry Pi) and make sure you overclock the processors. That will allow you to have faster processing so you will have a greater "window" for options.

    Does this help?
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-05-09 17:24
    get NOOBS
    That is what currently have. I am going to create a second SD Boot Card and play around wit the other versions of Linux for the Pi. Pi is Model B and is overclocked.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-05-10 01:42
    I still think Android has better video support than Linux for the Raspberry Pi. The chip makers are not sharing everything with Linux as they want to have someting to sell for proprietary developers.
    I do admit I can't be sure as I have its cousin, a Cubieboard. I don't actually own a Raspberry Pi. But the Cubieboard has twice the DRAM and still provides cleaner video in Android.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-05-10 12:14
    So the Cubieboard runs an Android OS? If so, It might be worth switching.
    Android does not run on the Raspberry Pi.
    According to this site it is doable.

    http://www.intorobotics.com/raspberry-pi-android-guides-resources/
  • Heater.Heater. Posts: 21,230
    edited 2014-05-10 13:33
    NWCCTV,

    Interesting, I had not seen that site before. I have not really been following the progress of Android on the Pi but according to the Android thread on the Raspi forums there is no such thing. Or perhaps some old versions that run very slowly.
    http://www.raspberrypi.org/forums/viewforum.php?f=73

    These guy seems to be making good progress with Android 4.4 but as of the 30th April it is still not booting:
    http://www.raspberrypi.org/forums/viewtopic.php?f=73&t=75190

    It does seem that Broadcom have a working Android for the Pi but I can't make out if you can actually get hold of it.
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-05-20 17:33
    I read that Arch Linux ARM is the best one for Raspberry Pi.
    Could you maybe elaborate? Perhaps a link to where you read this at??
  • Sir GawainSir Gawain Posts: 32
    edited 2014-05-20 18:11
    Raspian is all you need. I use it for all this and more.
    For best playback, you need to unlock the hardware by purchasing it over the email... about 2 pounds if memory serves...
    Then it can do 1080 no prob!
  • xanaduxanadu Posts: 3,347
    edited 2014-05-20 19:12
    Put FreeBSD on it, it will run on a Geode CPU I'm sure it will run on Pi's ARM.

    ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/11.0


    Edit: There's even an image, you going to try any of these suggestions out? I'm interested in finding out but not enough to buy one...
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-05-20 22:43
    you going to try any of these suggestions out?
    I will most likely try them out one at a time. I need to get something to work and as it looks right now I will not yet be able to get Android to work on it.
  • xanaduxanadu Posts: 3,347
    edited 2014-05-20 23:19
    Seems easy enough to try one out, if it doesn't go anywhere flash another :)
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-05-21 11:10
    Seems easy enough to try one out
    Yea, If I could just figure out a way to SSH in to it without having to use a monitor/keyboard/mouse!!!! Right now the only thing connected is power and the wireless LAN adapter. Makes it kind of nice as I can access from my laptop or my workstation while the Pi sits on my desk!!
  • xanaduxanadu Posts: 3,347
    edited 2014-05-21 11:56
    Your IP cam must have other video streams available than Flash no? I haven't looked at cameras in awhile and didn't even know they can output flash.

    I'm wondering if there is another output mode that would be more suitable for viewing on low power devices? I have some cheap IP cams that can output jpegs once per second, the frame rate sucks but it's great for low power devices. You could probably set it up to stream JPEG to ftp and then write a small HTML page to refresh the image if not.

    If you don't have a monitor keyboard or mouse hooked up to it, how would you watch the video lol?
  • NWCCTVNWCCTV Posts: 3,629
    edited 2014-05-21 22:14
    how would you watch the video lol
    I meant at the moment. However, the idea is to use a touchscreen on the finished product. IP cameras for the most part have their own dedicated software. Normally geared towards Windows systems or various browsers. several of them require ActiveX or Flash when viewing via a browser. It is becoming more of a hassle than I thought so I may switch to an Android device.
Sign In or Register to comment.