Announcement

Collapse
No announcement yet.

OM on Ubuntu

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • OM on Ubuntu

    I'm starting this new thread so that people that are new to linux (like me) can get some help to get OM up and running on linux (even being able to develop on linux).

    Since I don't know anything about linux my self I need some basic step by steps...
    I got a nice how to list from Kevin in another thread but it seems I need some more (the quote below is from that thread).

    Originally posted by kross View Post
    Go to http://www.virtualbox.org/ and install VirtualBox.
    Go to http://www.ubuntu.com/ and download an Ubuntu .iso disk image.
    Run VirtualBox, and create a new Virtual Machine. Select Linux Ubuntu as the OS type, and use defaults for the rest of the options.
    Click settings, then click Storage, and associate the virtual CD-ROM drive for the VM to the .iso image you downloaded. This will let you boot the VM from the .iso to install Ubuntu into the VM.
    Start the VM, letting it boot from the .iso image. Install Ubuntu onto your VM.
    When it's done installing, you'll need to reboot the VM. Before starting the VM again, make sure you go back into settings, and remove the .iso image, so it doesn't try booting from the .iso image again.

    Now you should have Ubuntu installed in a VM. But when you run it, you'll need to install some development tools. Go to a command prompt (you can also do this from the GUI, but I find command line easier), and install some stuff:

    sudo apt-get install subversion monodevelop

    You'll use subversion to check out the source code into your home folder. This is the command line version of subversion, it doesn't have the nice shell integration like TortoiseSVN. Monodevelop is the development environment, similar to Visual Studio (it can read VS solution and project files).

    I think you'll need some extra library dependencies, as I mentioned in another Linux thread here. libgdiplus and libndesk-dbus-glib1.0-cil-dev are the ones that immediately come to mind. Just apt-get install them, like above.

    This is the bare minimum to get you going. If you run into problems, give me a shout!

    -- Kevin
    I'll try to provide a list of what's needed to load here:
    • libgdiplus
    • libndesk-dbus-glib1.0-cil-dev
    • libasound2
    • libasound2-dev
    Use the following line in a terminal window to load the above libraries:
    Code:
    sudo apt-get install libgdiplus libndesk-dbus-glib1.0-cil-dev libasound2 libasound2-dev

    The following is only valid when testing OM by running the code from Monodevelop (otherwise this is handled by the installer):
    Copy the file libgstreamersharpglue-0.10.so from the OMPlayer folder located under plugin-farm in the source code downloaded from svn to /usr/local/lib by using the following code for a 32bit install:
    Code:
    sudo cp openmobile/branches/plugin-farm/OMPlayer/lin32/libgstreamersharpglue-0.10.so /usr/local/lib
    Then register this new library with the code:
    Code:
    sudo ldconfig
    You should now be ready to test OM by running it from MonoDevelop.

    To add microsoft font's (to allow usage of webdings font) use the following code:
    Code:
    sudo apt-get install msttcorefonts
    sudo fc-cache -fv
    Last edited by Borte; 04-30-2011, 03:55 PM.
    Failure is not an option...
    __________________________________________________ ______________________________
    The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

  • #2
    Ah yes, I knew I was forgetting something. See my last post in this thread: http://www.mp3car.com/openmobile/146...too-linux.html

    Basically, libgstreamersharpglue-0.10.so isn't installed. It doesn't exist in the Ubuntu repositories, you need to copy it manually to /usr/local/lib, and run ldconfig after copying it.

    -- Kevin

    Comment


    • #3
      I read that thread before posting. I was trying to find a package for it, wasn't realizing I had to manually copy and register it. I'll try that. Thanks again.

      Edit: Seems like I have to start over... Ubuntu doesn't boot anymore, gives me a Kernel panic message...
      Last edited by Borte; 04-24-2011, 05:19 PM.
      Failure is not an option...
      __________________________________________________ ______________________________
      The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

      Comment


      • #4
        At some point I would be happy to try this out. But if/when a running (even if not perfect) version of OM has been achieved it would be nice if someone re-built the VM so others can install Virtual Box and give it a spin

        I know there are other things like specific drivers some folks will need to worry about, but I'm sure we'll work it out.

        John
        03 Cadillac CTS
        ZOTAC G43ITX-A-E 2.5ghz Core i3 2GB 160GB SSD
        Win7 Ultimate - OpenMobile - Directed HD - Wifi
        OMMaps + MS GPS Puck - WiFi via LTE Android phone
        2 Zones - Matrix Orbital LCD - Arduino - Build Pics

        Comment


        • #5
          Originally posted by jmullan99 View Post
          At some point I would be happy to try this out. But if/when a running (even if not perfect) version of OM has been achieved it would be nice if someone re-built the VM so others can install Virtual Box and give it a spin
          You mean a fully working preconfigured vm (virtualbox or vmware) that is downloadable?
          Failure is not an option...
          __________________________________________________ ______________________________
          The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

          Comment


          • #6
            Yup! Well, practical I wouldn't know. But ya, a VM with a working OM, updatable. I know different hardware needs different drivers, but Linux tends to be pretty good at covering most of the bases.

            I needed a Linux box for one particular recurring chore at work. I got the VMWare player and a prebuilt Debian VM. Works pretty good for what I need and I didn't have to get into the bowels of Linux to do it. Doing this would help some of us that want to test if their little one-off custom plugins will work in Linux.

            Just a thought. If it's a fruitless effort, flames are tolerated
            03 Cadillac CTS
            ZOTAC G43ITX-A-E 2.5ghz Core i3 2GB 160GB SSD
            Win7 Ultimate - OpenMobile - Directed HD - Wifi
            OMMaps + MS GPS Puck - WiFi via LTE Android phone
            2 Zones - Matrix Orbital LCD - Arduino - Build Pics

            Comment


            • #7
              I don't know enough about linux to know how hard it would be to have OM auto update but it should be doable. A dev computer which can get the latest svn should at least be possible (like what's described above).

              One problem might be where to host it, another would be license restrictions (if any).

              ---------- Post added at 11:31 PM ---------- Previous post was at 11:08 PM ----------

              Originally posted by kross View Post
              Basically, libgstreamersharpglue-0.10.so isn't installed. It doesn't exist in the Ubuntu repositories, you need to copy it manually to /usr/local/lib, and run ldconfig after copying it.
              Got it to work. Had to copy it with elevated privileges to get around some permission problems. Thanks for your help.
              Failure is not an option...
              __________________________________________________ ______________________________
              The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

              Comment


              • #8
                Originally posted by Borte View Post
                I don't know enough about linux to know how hard it would be to have OM auto update but it should be doable. A dev computer which can get the latest svn should at least be possible (like what's described above).
                In general, programs in Linux should never auto-update.

                Originally posted by Borte View Post
                One problem might be where to host it, another would be license restrictions (if any).
                I think Bittorrent would be the best way to distribute VM images. It wouldn't require much bandwidth from any one person, once enough people start seeding. I don't believe there would be any restrictions on distributing Linux VM images.

                Originally posted by Borte View Post
                Got it to work. Had to copy it with elevated privileges to get around some permission problems. Thanks for your help.
                Yeah, I forgot to mention you would need to use su or sudo. Glad you got it working.

                -- Kevin

                Comment


                • #9
                  Originally posted by kross View Post
                  In general, programs in Linux should never auto-update.
                  I meant an update that the user would start from within the vm itself. Like a link running a script that would get the latest svn for OM. Is that possible? Kinda like a bat file for windows.

                  Originally posted by kross View Post
                  I think Bittorrent would be the best way to distribute VM images.
                  Not if we want to have some kind of control over versions as soon as you release it onto torrent it would end up as multiple versions. It would be easier if we had one single place for hosting (preferably our own OM site but I dont the size limits for the site).[/QUOTE]
                  Failure is not an option...
                  __________________________________________________ ______________________________
                  The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

                  Comment


                  • #10
                    To get the latest source code, all you need to do is run "svn update" from the source folder. But yeah, if you want to put that in a script, with a desktop icon, there's no reason you couldn't do that.

                    As for Bittorrent, I was just suggesting a way to host large files without worrying about size or bandwidth limits on your web server.

                    Comment


                    • #11
                      Originally posted by kross View Post
                      To get the latest source code, all you need to do is run "svn update" from the source folder. But yeah, if you want to put that in a script, with a desktop icon, there's no reason you couldn't do that.
                      Do you have short description of what I'd have to do to make this work? Like what kind of file would I have to create.
                      Failure is not an option...
                      __________________________________________________ ______________________________
                      The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

                      Comment


                      • #12
                        You could put something like this into a file (the name of the file doesn't matter, and doesn't need any special file extension, unlike Windows):

                        Code:
                        cd ~/openmobile
                        svn update
                        You could call it something like updateOM.sh (sh is a common, but optional, file extension for shell scripts).

                        Make the file executable by executing "chmod +x updateOM.sh"

                        To test it, just type "./updateOM.sh". The "./" at the beginning is needed.

                        To create a desktop icon for it, just right-click the desktop and select "Create Launcher", and fill out the details.

                        Edit: you could also create the script on the desktop (instead of your home folder), make it executable, and skip the "Create Launcher" step.
                        Last edited by kross; 04-25-2011, 05:42 PM.

                        Comment


                        • #13
                          Thanks. Worked like a charm!
                          Failure is not an option...
                          __________________________________________________ ______________________________
                          The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

                          Comment


                          • #14
                            I will be trying to follow this thread to get OM up and running on my machine.

                            Question however...

                            Is there a different dependency list between developing OM for linux and for running it or are they both the same?

                            I will try to get this up and running under Ubuntu 12.04.1 and go from there.

                            I can probably even setup a torrent to put it up and available as well once I have it up and running.

                            I want to get it working under x86 as well as ARM versions of ubuntu.
                            (WIll be developing under x86 and will be running it on a ARM machine.)

                            Comment


                            • #15
                              Originally posted by redheadedrod View Post
                              Is there a different dependency list between developing OM for linux and for running it or are they both the same?
                              As far as I know it's the same but it's been a while since last I tested it so my memory might be "lacking" at certain points.
                              Failure is not an option...
                              __________________________________________________ ______________________________
                              The only full multizone / multiscreen cross platform open source Front End -> OpenMobile

                              Comment

                              Working...
                              X