1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Wir sind dabei - mit Pyra Prototyp!

    Für weitere Informationen hier klicken!
    Dismiss Notice

PanDebian

Discussion in 'Pandora OS (SuperZaxxon GNU/Linux)' started by Gregor, Feb 5, 2011.

  1. Gregor

    Gregor Still Fresh

    Joined:
    Jan 13, 2011
    Messages:
    53
    I hacked together a system for making Pandora's Angstrom and Debian play together. PanDebian will install a debootstrap-generated chroot of Debian to a loopback file or ext{2,3}-formatted SD card and give you simple access to it (no additional X11, no separate window manager).


    Download URL: http://repo.openpandora.org/?page=detail&app=PanDebian


    Project URL: http://bitbucket.org/GregorR/pandebian


    If you're interested in getting Debian on your Pandora, give it a shot. Please note that since this isn't a prebuilt image, it will take a LONG time to install, on the order of four to five hours.


    Videos of PanDebian:




    I occasionally make bugfixes (of course), and as of version 0.3.0 the PanDebian installer is capable of updating an existing PanDebian installation to the latest one, integrating all bugfixes. Just run the installer and provide the same options you would to do a fresh install, then it will detect that an update is occurring (and tell you so), and only perform update actions.


    The only packages the install comes with besides the base ones are lxpanel, lxterminal and the synaptic graphical package manager. Of course, with that last one you can easily install virtually anything else you can imagine. It links in your very-important resolv.conf and .Xauthority files so that you can always access networks and X from within Debian. It also comes with a tool to allow you to share host SD cards into the Debian image, which isn't done automatically.


    I am not liable if your Pandora blows up :)


    EDIT: Just noting what it comes with


    EDIT 2: Some additional features it has


    EDIT 3: New features (0.2)


    EDIT 4: Update mode, 0.3.0


    EDIT 5: Narcissistically adding video links.
     
    Last edited by a moderator: Jun 2, 2011
    klapse likes this.
  2. mth411

    mth411 Member

    Joined:
    Sep 29, 2003
    Messages:
    510
    Wow, cool idea.


    Can you suggest any favorite Debian apps we might apt-get install?


    Since debian has so many packages (and so many of them games).
     
  3. levi1123

    levi1123 Member

    Joined:
    Oct 12, 2009
    Messages:
    430
    Great! I've been waiting for a 'plug and play' OS swap tool for the Pandora, just to play with. Will try this when I get home
     
  4. alerino

    alerino Well-Known Member

    Joined:
    Aug 11, 2007
    Messages:
    3,199
    i already use stuckie's extend, hope yours bring something fresh and new, maybe you guys should join forces


    i'll give it a try, certainly
     
    Last edited by a moderator: Jan 2, 2016
  5. Gregor

    Gregor Still Fresh

    Joined:
    Jan 13, 2011
    Messages:
    53
    Yeah, I'm aware of it, I hoped to position myself as an alternative. The concepts are broadly similar. PanDebian is just simpler, which means it has slightly worse integration (e.g. for the time being there's no direct access from Debian to the Pandora's other mounted cards), but easier maintainability. Beyond that as far as I know (disclaimer: I haven't used the Debian extend, so this may be a lie), the only major benefits I provide are slightly simpler invocation (ultimately PanDebian generates and installs a PND file which will automatically launch a given Debian installation, so it's one-click) and less interference (I just stick a menu in the corner, use it or not as you please). Neither of these are particularly fundamental.


    However, to be honest, this was basically me packaging up what I'd already done before I learned about the Extends system :p
     
    Last edited by a moderator: Jan 2, 2016
  6. Stuckie

    Stuckie Member

    Joined:
    Apr 7, 2004
    Messages:
    492
    Location:
    Tired, and sleeping in the basement...
    That would be good.. my stuff has kinda stagnated for quite a while as I've not really had a great deal of time to work on it.


    However, no-one's really complained to me much about anything breaking, so it seems fine to me! And a few people use it, so it's all good :)

    I haven't had a look at yours yet ( my Pandora is in for repair just now ) but the only "integration" I do is some careful binding of host folders into the chroot jail. That's really all that needs done for the most part.


    Only other difference I can see, again from not using it just from what's written here, is that mine is just a generic "open a loop-back file" system without much hand-holding in setting anything up ( though there is a gigantic wiki page on it that I wrote for the newer Extend Utils that everyone seems to hate! go figure, hehe ) The stock version of my Extend just opens up a shell and lets you get on with it, it doesn't actually run anything by default - I left that up to whoever was using it to fiddle with, for instance.


    Just be wary of people asking for Ubuntu now ;)


    That path leads to madness, I tell you! MADNESS!! MWHAHAHAHAAHAHA *choke* *cough* *keels over*
     
    Last edited by a moderator: Jan 2, 2016
  7. Gregor

    Gregor Still Fresh

    Joined:
    Jan 13, 2011
    Messages:
    53
    Ah, from the giant wiki page I sort of skimmed I thought it did a lot more :p ... and from IRC I had the (totally-wrong) impression that it actually unionfs'd some kind of abominable Angstrom-Debian hybrid, which would make maintainability grotty. If not, then yeah, we're pretty identical, the only exceptions being that I use debootstrap, which takes an enormous amount of the burden off of me, and have a slightly different default configuration, which was just for my own convenience. Bizarrely, although on a desktop I am very much a console-jocky, and a web browser is the most graphical application I use (screw IDEs!), on a device with a touchscreen I really want a nice graphical menu...


    Here's a trick: debootstrap supports Ubuntu. Mind you, I haven't tried selecting one of the Ubuntu versions. If it doesn't support it well enough ... well, when all you've got is a chroot, the distinction is almost purely political, so who cares, just install sid :p
     
    Last edited by a moderator: Jan 2, 2016
  8. Gregor

    Gregor Still Fresh

    Joined:
    Jan 13, 2011
    Messages:
    53
    Just caught a bug ... if your install is caught in a loop trying to install packages, redownload pandebian.pnd and use the new one. Sorry!
     
  9. debernardis

    debernardis Still Fresh

    Joined:
    Oct 2, 2008
    Messages:
    37
    Is there a way I can correct the old package and restart just before it starts looping? It's looping now :(


    EDIT: OK, don't mind, I'm starting over
     
    Last edited by a moderator: Feb 5, 2011
  10. Gregor

    Gregor Still Fresh

    Joined:
    Jan 13, 2011
    Messages:
    53
    The bug was that it was detecting whether the packages were installed incorrectly, looking for usr/bin/synaptic instead of usr/sbin/synaptic. To make it stop looping (if you've still got it going) and let it finish, just sudo touch <whatever>/usr/bin/synaptic, it'll detect the existence of that file, and continue.

    loltiming


    Sorry 'bout that bug :p
     
  11. Stuckie

    Stuckie Member

    Joined:
    Apr 7, 2004
    Messages:
    492
    Location:
    Tired, and sleeping in the basement...
    It's Ubuntu's use of Upstart rather than the normal SystemV init scripts that buggers it up ;) It plain doesn't work in chroot jails.. there's a huge bug report about it, but they don't seem arsed to fix it for some reason.


    Also, Ubuntu's debootstrap varient is rootstock ( well, for creating ARM specific builds anyway ) - though it it's been buggy for a while now ( anything but a minimal setup buggers up quite badly. )


    Oh yes, I know.. I've already wandered that route many times ;)


    As for the UnionFS stuff (well, AUFS, but they're pretty much identical), that's for other types of Extends - Root Extends, Home Extends, etc.. I just lumped them all together as they're all exactly the same kind of thing, a filesystem hiding in an ext2 loopback file, hence the giant wiki documentation of doom.


    I also used debootstrap to set the system up.. but from what I gather, you do it on the Pandora itself when your installer is run, and the installer creates the PND, where as I've "prebuilt" the loopback file, so to speak.


    Curse you making me want to get back to hacking away at my Extend System! Not quite sure what else to do with it, short of adding a proper GUI system to it so it's not a pain in the arse to use.
     
  12. alerino

    alerino Well-Known Member

    Joined:
    Aug 11, 2007
    Messages:
    3,199
    Bless both! :D


    Extends with GUI would be awesome!
     
  13. Gregor

    Gregor Still Fresh

    Joined:
    Jan 13, 2011
    Messages:
    53
    Pffffff. zenity = instant UI, no effort X-P
     
  14. debernardis

    debernardis Still Fresh

    Joined:
    Oct 2, 2008
    Messages:
    37
    I have installed Pandebian (Squeeze variety), and on top the full Openoffice.org suite.


    Starts very quickly! Now I'm looking forward for enhancements, Mr. Gregor :)


    First of all, mounting Pandora sd cards. You could get hints from the excellent work made by Qole on the N900 to run Debian in a chroot.


    See http://talk.maemo.or...ead.php?t=34550


    The packages are: easy-deb-chroot and easy-chroot


    Here's a video - OOO Writer starts amazingly quick!

    https://www.youtube.com/embed/2JqniVzhhso?feature=oembed
    Code:
    sudo mount --bind /media/mysdcard /mnt/ram/mydebianpartition/media/mysdcard/
     
    Last edited by a moderator: Feb 6, 2011
  15. Gregor

    Gregor Still Fresh

    Joined:
    Jan 13, 2011
    Messages:
    53
    Added two new things (version 0.2):

    • PanDebian installs made by the newest PND have access to ALSA. To fix this in a PanDebian install made before now, just go into a root shell in PanDebian and `adduser <username> audio`, where <username> is of course your username.
    • There is now a second application, "PanDebian Share", which will let you easily share cards to the PanDebian install. This can also be done manually as pointed out above.



    Would anybody using this please post here which version of Debian you installed, whether you installed it to a loopback or not, and whether you experienced any problems or odd behavior? I'd like to get this out of the "Beta Testing" forum and uploaded somewhere real, but I'll only do that if I have fair confidence that it's not killing people :p
     
    Last edited by a moderator: Feb 7, 2011
  16. debernardis

    debernardis Still Fresh

    Joined:
    Oct 2, 2008
    Messages:
    37
    Thank you Gregor for this project: it's fundamental, in my opinion, for an advanced use of the Pandora, and it's quite easy to install and put to work.


    I installed Squeeze in a loopback file - the first problem I noted is that, of the 3 menu items concerning synaptic, no one works. I have to invoke synaptic in a root terminal. The second problem is that - inside debian apps - the 'compose' key combo of the Pandora, shift+enter, doesn't work yet, and it's quite a problem for non-English language with abundance of accents and other diacritics (àèéìòóù).


    Other things I've installed are Pdfchain (a gui tool to cut/paste/turn and make other things to the pages of pdf files), Tomboy and the Kazehakase browser; I've still to find how to sync Tomboy to my ubuntu one account. Another thing I'd like to do is to turn to LibreOffice; I'll report my results here then.
     
  17. Gregor

    Gregor Still Fresh

    Joined:
    Jan 13, 2011
    Messages:
    53
    Made a Squeeze install, figured out why. The synaptic menu entries depend on a binary from the package `menu', which is "recommended" but not a dependency. Install that and it'll work. I'll add it to the PND's install script tomorrow.

    Errr ... I don't suppose you have any idea how this works or where it's configured to do so? :)
     
  18. Stuckie

    Stuckie Member

    Joined:
    Apr 7, 2004
    Messages:
    492
    Location:
    Tired, and sleeping in the basement...
    You're brave ;)


    The ExtendUtils stuff has been hiding in the GP32X "Software Hacking" section for quite a while, along with my other hackery - like booting into Debian directly from SD; which with Squeeze now being released, I'd really rather like to have another look at!


    Though my Pandora's been sent back for repair, so I'm a bit stuck for testing.
     
  19. debernardis

    debernardis Still Fresh

    Joined:
    Oct 2, 2008
    Messages:
    37
    I was oh so wrong and my faith in Pandora wasn't enough. Shame. :blink:


    The compose key in Pandebian works.


    It works in Tomboy, it works in Iceweasel, it works in Kazehakase,


    It happens not to work in Openoffice.org, and since this program was the main reason I went Pandebian, I was falsely reporting a bug.


    Now in order to expiate my sin I'm going to dig into OOO to see why.
     
  20. debernardis

    debernardis Still Fresh

    Joined:
    Oct 2, 2008
    Messages:
    37
    apt-get install locales (in case it's not installed yet)


    dpkg-reconfigure locales


    reboot


    check that the lang variable is set to your language (for me it_IT.utf8) by checking the output of the locale command


    now OOO should get compose key.


    Please test if works for you :)
     

Share This Page