Page 1 of 2
Run the native OS with Ubuntu 11.04
Posted: Wed Sep 14, 2011 12:06 am
by verg0
Hi ive installed Ubuntu 11.04 (Natty) v1.1 (16/08/2011) for the joggler an im quite impressed!
My question: is it possable to run the Native OS Desktop as a front end and keep an Ubuntu environment running underneeth as i realy like the native joggler desktop part (well the p&p skin realy lol)
Re: Any way to keep the native OS Desktop with Ubuntu 11.04
Posted: Thu Sep 15, 2011 1:00 am
by verg0
Hi been messing with Ubuntu 11.04 and got tango to run!
Must be in ROOT: "sudo su"
1. Mount mmcblk0p2 somewhere, if not already done:
"sudo mount /dev/mmcblk0p2 /mnt"
2. Copy the whole openpeak folder to your root:
"sudo mkdir /openpeak"
"sudo cp -r /mnt/openpeak/* /openpeak"
3. Copy the whole /lib/intel folder to your root:
"sudo mkdir /lib/intel"
"sudo cp -r /mnt/lib/intel/* /lib/intel"
"sudo umount /mnt" (optional)
4. Mount mmcblk0p4, if not yet done:
"sudo mount /dev/mmcblk0p4 /mnt"
5. Copy all its contents to /media:
"sudo cp -r /mnt/* /media"
"sudo umount /mnt" (optional)
6. Make a copy of localrun and name it 'starto2':
"sudo cp /openpeak/tango/localrun /openpeak/tango/starto2"
7. EDIT the "/openpeak/tango/starto2" file (i use WinSCP as i don't like iv)
and uncomment "export SDL_AUDIODRIVER=alsa"
8. Create this script called tango in the '/home/joggler/' directory (make it executable (chmod 0755))
Code: Select all
#!/bin/sh
export LD_LIBRARY_PATH=./:/openpeak/tango/common_libs:/lib/intel:/usr/lib
cd /openpeak/tango
# Start tango (-fs = full screen)
./tango -fs /openpeak/gui/opphone.swf
9. Type "sudo ./tango" in terminal on the joggler to start the o2 software (tango)
-
Done!
-
NOTES:
To exit the O2 frontend press the Escape key or if you have ssh installed type (in root):
"killall tango"
Re: Run the native OS with Ubuntu 11.04
Posted: Thu Sep 15, 2011 2:24 am
by verg0
Even tho the o2 software runs, it gives allot of errors:
Code: Select all
root@joggler:/openpeak/tango# ./tango -fs /openpeak/gui/opphone.swf
./tango: /openpeak/tango/common_libs/libcurl.so.4: no version information available (required by ./tango)
./tango: ./libcrypto.so.0.9.8: no version information available (required by /openpeak/tango/common_libs/libcurl.so.4)
./tango: ./libssl.so.0.9.8: no version information available (required by /openpeak/tango/common_libs/libcurl.so.4)
Openpeak Flash Player: 21654
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libmurrine.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so) initialization check failed: Gtk+ version too old (micro mismatch)
(tango:1547): Gtk-WARNING **: GModule (/usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so) initialization check failed: Gtk+ version too old (micro mismatch)
Thu Sep 15 02:07:20 2011 [4294790846]: (opos) WRN: op_LoadLibrary failed: libiw.so.29: cannot open shared object file: No such file or directory /openpeak/tango/fp_class_modules/libOPUtil.so
Thu Sep 15 02:07:20 2011 [4294790846]: (FlashPlayer) WRN: Dynamic link library "libOPUtil.so" does not appear to be a valid class module
===========================================
Openpeak Flash Player
Build Date....: Jun 25 2010
Build Time....: 14:31:27
Build Target..: Linux (X86)
Build Type....: Release
SVN Revision..: $Revision: 21654 $
SVN Date......: $Date: 2009-11-16 15:45:54 -0500 (Mon, 16 Nov 2009) $
Flash Local Security is DISABLED
Thu Sep 15 02:07:21 2011 [4294791276]: (FlashPlayer) WRN: ===========================================
Thu Sep 15 02:07:21 2011 [4294791276]: (FlashPlayer) WRN: Build Date....: Jun 25 2010
Thu Sep 15 02:07:21 2011 [4294791276]: (FlashPlayer) WRN: Build Time....: 14:31:27
Thu Sep 15 02:07:21 2011 [4294791276]: (FlashPlayer) WRN: Build Target..: Linux (X86)
Thu Sep 15 02:07:21 2011 [4294791276]: (FlashPlayer) WRN: Build Type....: Release
Thu Sep 15 02:07:21 2011 [4294791276]: (FlashPlayer) WRN: SVN Revision..: $Revision: 21654 $
Thu Sep 15 02:07:21 2011 [4294791276]: (FlashPlayer) WRN: SVN Date......: $Date: 2009-11-16 15:45:54 -0500 (Mon, 16 Nov 2009) $
Thu Sep 15 02:07:21 2011 [4294791276]: (FlashPlayer) WRN: Flash Local Security is DISABLED
===========================================
Thu Sep 15 02:07:21 2011 [4294791276]: (FlashPlayer) WRN: ===========================================
Thu Sep 15 02:07:21 2011 [4294791456]: (FlashPlayer) WRN: PlugIn Name.......: "Shockwave Flash"
PlugIn Description: "Shockwave Flash 10.0 r45"
Thu Sep 15 02:07:21 2011 [4294791706]: (FlashPlayer) WRN: Flash Plug-in Version: 10.0
Flash Plug-in Version: 10.0
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: ****************************************************
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: STREAM..........: 088572E8
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: URL.............: "file:///openpeak/gui/./apps/maintenance/auto-reboot-control.xml"
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: Response Code...: 0
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: Error...........: "Couldn't read a file:// file"
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: ****************************************************
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: ****************************************************
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: STREAM..........: 08860C70
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: URL.............: "file:///tmp/previousSsrState.cache"
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: Response Code...: 0
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: Error...........: "Couldn't read a file:// file"
Thu Sep 15 02:07:22 2011 [4294792496]: (FlashPlayer) WRN: ****************************************************
Thu Sep 15 02:07:24 2011 [4294794576]: (FlashPlayer) WRN: ****************************************************
Thu Sep 15 02:07:24 2011 [4294794576]: (FlashPlayer) WRN: STREAM..........: 08E07300
Thu Sep 15 02:07:24 2011 [4294794576]: (FlashPlayer) WRN: URL.............: "file:///openpeak/gui/mainmenus/language.xml"
Thu Sep 15 02:07:24 2011 [4294794576]: (FlashPlayer) WRN: Response Code...: 0
Thu Sep 15 02:07:24 2011 [4294794576]: (FlashPlayer) WRN: Error...........: "Couldn't read a file:// file"
Thu Sep 15 02:07:24 2011 [4294794576]: (FlashPlayer) WRN: ****************************************************
nvram_read_hwinfo: cannot open '/proc/boardrev' : No such file or directory
failed to find super block for /dev/net: invalid ext3 file system
Terminated
root@joggler:/openpeak/tango#
Since im a linux newbee, can anyone help me correct some/any of the errors and update the instructions please
Ps: It should also be possable to write a script with a symlink for tango to run without the need of several commands to get it to run but i cant figure out how.
hope someone can help me please? :s
Re: Run the native OS with Ubuntu 11.04
Posted: Thu Sep 15, 2011 3:55 am
by BuZz
might be nice if this could be done via a chroot and bind mount environment without copying files. i will try and find time to look into it. thanks.
Re: Run the native OS with Ubuntu 11.04
Posted: Thu Sep 15, 2011 8:45 am
by verg0
@ BuZz, yes please do, i would love to simplify this, thank you...
Ps: can this be done with a bind mount command in the fstab (/etc/mtab)
if so would you know the correct syntax? (im a linux newbee...)
Re: Run the native OS with Ubuntu 11.04
Posted: Fri Sep 16, 2011 4:07 pm
by BuZz
I wouldn't worry about the warnings/errors btw.
i knocked up this quick script
http://joggler.exotica.org.uk/source/scripts/tango.sh
Code: Select all
#!/bin/sh
mkdir -p /opt/o2 /openpeak
mount /dev/mmcblk0p2 /opt/o2
mount -o bind /opt/o2/openpeak /openpeak
mount /dev/mmcblk0p4 /media
export LD_LIBRARY_PATH=".:/openpeak/tango/common_libs:/opt/o2/lib/intel:/opt/o2/usr/bin"
cd /openpeak/tango
./tango -fs /openpeak/gui/opphone.swf
cd /
umount -l /media /openpeak /opt/o2
Note i didn't include "export KMP_DUPLICATE_LIB_OK=TRUE" as it seemed to work without, although I have only tested really quickly. it basically does the same stuff as you wrote above, but doesnt copy the data off the internal flash but binds the folders to the usb root fs and runs from there. i also didn't mount /media on the internal flash.
[edit] added the /media mount in
[edit] changed some paths
Re: Run the native OS with Ubuntu 11.04
Posted: Fri Sep 16, 2011 4:37 pm
by BuZz
it also seems to work without pathing in the lib/intel folder, but ive seen that mentioned. do a couple of the apps need that perhaps ?
Re: Run the native OS with Ubuntu 11.04
Posted: Sat Sep 17, 2011 12:43 pm
by verg0
Hi Buzz, cool script! thanks
only issue i have with the script is when i use it to mount a Plug n Pimped joggler squeeze play and opra browser wont execute?
have you any ideas why?
maybe we need to link the /media/gforums directory someware?
Re: Run the native OS with Ubuntu 11.04
Posted: Sat Sep 17, 2011 1:29 pm
by BuZz
This will only work with the flash stuff but surely if you need squeezeplay and opera, you are better to run the versions for the underlying os

it might be possible to get them to work, but then you might as well just boot the internal flash normally

Re: Run the native OS with Ubuntu 11.04
Posted: Sat Sep 17, 2011 2:19 pm
by BuZz
It should be possible to make more stuff work by chrooting to internal os. I'll see what I can knock up.
Re: Run the native OS with Ubuntu 11.04
Posted: Sat Sep 17, 2011 3:58 pm
by verg0
Thanks again Buzz, I took on board what you said, and yes it would be better to run the versions for the underlying OS...
The 'only' reason I wanted to run the Openpeak Software was keep the look and feel of the Jogglers Native frontend, as im sure allot of people would agree.... THEN.... I had thought....
I could 'Create Launcher' icons on the Ubuntu Desktop (don't know how to change the icon size) that look the same as the Jogglers, then launch the native apps from there....
Eg; for the Calculator app:-
ICON COMMAND: "sudo /home/joggler/calculator.sh"
SCRIPT: "/home/joggler/calculator.sh" (chmod 0755)
Code: Select all
#!/bin/sh
mkdir -p /opt/o2 /openpeak
mount /dev/mmcblk0p2 /opt/o2
mount -o bind /opt/o2/openpeak /openpeak
mount /dev/mmcblk0p4 /media
export LD_LIBRARY_PATH=".:/openpeak/tango/common_libs:/opt/o2/lib/intel:/opt/o2/usr/bin"
cd /openpeak/tango
./tango -fs /openpeak/gui/apps/o2_calculator/main.swf
cd /
umount -l /media /openpeak /opt/o2
This has a greater potential as we can then create 'extra' icons for 'other' apps such as Squeeze Play, Spotify (free in Wine) etc...
Only thing is i wouldn't know where to start with configuring the desktop to emulate the 'home(exit)', 'next icon page' buttons (im only a newbee) ??
What are your thoughts? ill create the icons and scripts for the desktop if someone can help with the desktop ??
Re: Run the native OS with Ubuntu 11.04
Posted: Sat Sep 17, 2011 4:03 pm
by BuZz
what about using something like
http://www.starkeith.net/coredump/2011/ ... y-narwhal/ ?
Also if you like big icons to launch programs, you might want to take a look at jolios, which is what i use.
Re: Run the native OS with Ubuntu 11.04
Posted: Sat Sep 17, 2011 4:22 pm
by BuZz
here's a way to run tango (via chroot)
http://joggler.exotica.org.uk/source/scripts/tango2.sh
it mounts the flash partitions, binds current sys/proc/tmp/dev to the device and copies the Xauthority file to /tmp along with a script to launch tango.
Re: Run the native OS with Ubuntu 11.04
Posted: Sat Sep 17, 2011 4:49 pm
by verg0
Hi Buzz, your script sounds great! however i couldnt get it to run? any ideas (i ran this in root...)
Code: Select all
cp: cannot stat `/root/.Xauthority': No such file or directory
./tango: /openpeak/tango/common_libs/libcurl.so.4: no version information available (required by ./tango)
./tango: ./libcrypto.so.0.9.8: no version information available (required by /openpeak/tango/common_libs/libcurl.so.4)
./tango: ./libssl.so.0.9.8: no version information available (required by /openpeak/tango/common_libs/libcurl.so.4)
Openpeak Flash Player: 21654
(tango:2919): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
No protocol specified
(tango:2919): Gtk-WARNING **: cannot open display: :0.0
Re: Run the native OS with Ubuntu 11.04
Posted: Sat Sep 17, 2011 4:52 pm
by BuZz
run it as sudo, or change it to copy the .Xauthority directly from joggler home folder.
Re: Run the native OS with Ubuntu 11.04
Posted: Sat Sep 17, 2011 4:54 pm
by pete
You have to run it from a terminal session on the Joggler versus an SSH session to the Joggler. Great news there Buzz!. The Joggler has now replaced the Chumby on the home office desk; running Ubuntu; fast great capacitance screen. I like to listen to the local radio shows there; work fine across the pond.
Re: Run the native OS with Ubuntu 11.04
Posted: Sat Sep 17, 2011 4:59 pm
by verg0
@ pete_c still the same in putty: :s
Code: Select all
./tango.sh
cp: cannot stat `/root/.Xauthority': No such file or directory
./tango: /openpeak/tango/common_libs/libcurl.so.4: no version information available (required by ./tango)
./tango: ./libcrypto.so.0.9.8: no version information available (required by /openpeak/tango/common_libs/libcurl.so.4)
./tango: ./libssl.so.0.9.8: no version information available (required by /openpeak/tango/common_libs/libcurl.so.4)
Openpeak Flash Player: 21654
(tango:2971): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
No protocol specified
(tango:2971): Gtk-WARNING **: cannot open display: :0.0
root@joggler:/home/joggler#
Re: Run the native OS with Ubuntu 11.04
Posted: Sat Sep 17, 2011 5:12 pm
by BuZz
log in as the joggler user, and run it via "sudo". or change the script to copy the .Xauthority from /home/joggler instead of ~/
Re: Run the native OS with Ubuntu 11.04
Posted: Sun Sep 18, 2011 2:15 am
by verg0
215am... Please forgive me, the '.Xauthority' does not exist on the ubuntu distro i have got downloaded (Ubuntu 11.04 (Natty) - (Joggler Image v1.1 - 16/08/2011) ext4)....
the script did work on the joli os but i like the ubuntu distro better...
any more help would be most appreciated....
Re: Run the native OS with Ubuntu 11.04
Posted: Sun Sep 18, 2011 2:20 am
by BuZz
if you are logged in on the joggler user in X, there should be an .Xauthority file in /home/joggler - ive not tested the script on ubuntu, but i see no reason why it shouldn't work. jolios is an ubuntu base anyway.
I can test it on ubuntu after the weekend.