FatdogArm Beta1/2/3/4- 16 April 2016

A home for all kinds of Puppy related projects
Message
Author
mories
Posts: 70
Joined: Mon 21 Dec 2009, 12:51

Obconf problem

#31 Post by mories »

Fatdog running quite well in ODROID-u3. Very good job.

Obconf failed to find obconf.ui.
I think it's problem of change in source of gladedir by resourcedir.
Copying obconf.ui in the current directory works correctly.

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#32 Post by jamesbond »

Thanks mories, fixed. You re-install obconf from the repo.
Still working on that pkeys thing, though.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#33 Post by ally »

hey guys

awesome work!

couple of Qs please

1. the image to tv through hdmi is over-scanning by about half an icon all round, how do I adjust?

2. sound, no sound out via hdmi - is this to b expected?

regards

:)

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

Re: minor problem with pkeys

#34 Post by jamesbond »

mories wrote:The pkeys parameter does not work properly. In rc.sysinit is used

Code: Select all

ls /lib/keymaps/${pkeys}*
what do not exist.
Fixed. Patch:

Code: Select all

--- fatdog-scripts/etc/rc.d/rc.sysinit
+++ fatdog-scripts/etc/rc.d/rc.sysinit
@@ -128,14 +128,15 @@
 
 # load keymaps and console fonts - rc.country no longer used
 # modified from original keymap loading code (c) Barry K
 [ -z "$pkeys" ] && [ -e /etc/keymap ] && read pkeys < /etc/keymap 
 if [ "$pkeys" ]; then
-       pkeys=$(ls /lib/keymaps/${pkeys}* | sed -ne '1 {s|^.*/||; p}')
+       pkeys_path="$(find /lib/keymaps/ -name "${pkeys}*" | head -n 1)"
+       pkeys=${pkeys_path##*/}
        if [ "$pkeys" ]; then
                echo ${pkeys%%.*} > /etc/keymap
-               zcat /lib/keymaps/$pkeys | loadkmap 
+               zcat $pkeys_path | loadkmap 
                case $pkeys in 
                        de*|be*|br*|dk*|es*|fi*|fr*|it*|no*|se*|pt*)
                                modprobe nls_cp850
                                zcat /lib/consolefonts/lat1-12.psfu.gz | loadfont
                                echo lat1-12.psfu > /etc/fontmap
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#35 Post by jamesbond »

ally wrote:hey guys

awesome work!
Thanks.
1. the image to tv through hdmi is over-scanning by about half an icon all round, how do I adjust?
Try to adjust your TV for "Just Scan". If there is no such thing, try to adjust to zoom factor on your TV. If you're using HDMI-to-VGA or HDMI-to-DVI, then I don't know ... don't have the hardware.
2. sound, no sound out via hdmi - is this to b expected?
There is sound. Open terminal and type "speaker-test -t wav -c 2" and you should hear something. If you mean sound from web-browser, launch "fatdog soundcard wizard" from control panel, choose the first entry (output, I think) and from there choose "fix rate at 44100". You should hear sound from web too.

Good luck.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#36 Post by ally »

thanks jb

both settings issues with the tv - my bad

I was hoping to stream from thedarewall.com but seamonkey is having difficulties, not sure if it's a flash issue (media files not playing on bbc.news website either) but package manager shows flash installed and youtube works ok?

pushing my luck but would a chrome be available in the future?

:)

edit: could the odroid be used as dlna server using the scripts from shinobar or do they have to be compiled for the arm?

edit2: I've just noticed that the bbc news website is transferring to the mobile (http://m.bbc.co.uk...) presumably because the chipset is from the galaxy s3, this may be why the streaming is proving difficult, can the browser be 'forced' in some way?

pps - sorry for lots of Qs! :)

mories
Posts: 70
Joined: Mon 21 Dec 2009, 12:51

obconf and pkeys

#37 Post by mories »

Thanks jb.

The new obconf working properly. Just a little extra detail: when called from fatdog-control-panel (with obconf %f) an error "unable to extract the file% f" occurs.
I think the solution is to modify obconf.desktop removing the% f.

Regarding pkeys parameter (in my case pkeys=es) finds an appropriate map, but then loadkmap gives an error "not a valid binary keymap".

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#38 Post by jamesbond »

ally wrote:both settings issues with the tv - my bad
No worries. Glad you can make it work.
I was hoping to stream from thedarewall.com but seamonkey is having difficulties, not sure if it's a flash issue (media files not playing on bbc.news website either) but package manager shows flash installed and youtube works ok?
Ok this is something I had to put in BIG CAPITAL letter in the first post (in fact I'm going to edit the post after this reply). I'm sorry if this is going to ruin your world. In the ARM world, with very rare exception, there is NO FLASH. Why? Flash performance on generic ARM cpu is *so bad* that it embarassed Adobe who decided to stop distributing ARM version of Flash for generic ARM a few years ago. Adobe still makes Flash for ARM of course, but:
a) only for Android devices that pay them license
b) only for select Linux manufacturers that pay them license
c) and those Flash player uses some kind of acceleration (either GPU or VPU), so it is very hardware/platform-specific (you can't get a Flash player from Cubieboard2 to run on Odroid, for example).

In FatdogArm, the only platform that has Flash player is OLPC XO-4. Not even OLPC XO-1.75 has it. Why? Because OLPC has paid blanket licensing for Flash player on OLPC XO-4, so you have it. Other platforms don't have it. Sorry :(
pushing my luck but would a chrome be available in the future? :)
No. I'm not aware of official ARM version of Chrome built by Google. The best we can do is Chromium - but beware that Chromium doesn't come with Flash either ...

On another note, somebody managed to fish Android's Flashplayer and run it under Linux using tricks similar to ndiswrapper (remember that?), using a special library (pepperflash or something) which tricks the Flash player to think that it is running on Android. I'll see if I can get this done, but firstly I need to find Flash player for Odroid if this is going to happen.

EDIT:
Alternatively, Mozilla is trying to break free from Flash: http://mozilla.github.io/shumway/ is a flash player built entirely on Javascript. It works, but it's still in early days and not usable for viewing youtube.
edit: could the odroid be used as dlna server using the scripts from shinobar or do they have to be compiled for the arm?
I haven't seen shinobar's scripts. If it is pure scripts (no binaries) then it should work; if it contains binaries (=compiled programs) then they all have to be recompiled for ARM. Note that the kernel may need some settings to be enabled too, I'm not too sure about it. Point me to the right link, I may look at it.
edit2: I've just noticed that the bbc news website is transferring to the mobile (http://m.bbc.co.uk...) presumably because the chipset is from the galaxy s3, this may be why the streaming is proving difficult, can the browser be 'forced' in some way?
You can use the usual add-ons to change user agents; but more often than not, mobile websites provide options to switch back to "desktop" views.
mories wrote:Thanks jb.

The new obconf working properly. Just a little extra detail: when called from fatdog-control-panel (with obconf %f) an error "unable to extract the file% f" occurs. I think the solution is to modify obconf.desktop removing the% f.
Of course. I will clean it. I think there are many more of them that slipped my notice.
Regarding pkeys parameter (in my case pkeys=es) finds an appropriate map, but then loadkmap gives an error "not a valid binary keymap".
This is after the patch, I presume? I need a way to test it that I can revert back to US keymap ... but I'll get back to you.
Last edited by jamesbond on Wed 02 Apr 2014, 16:27, edited 2 times in total.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#39 Post by ally »


jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#40 Post by jamesbond »

Re-compilation on ARM required. Source?
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#41 Post by ally »


User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#42 Post by mavrothal »

jamesbond wrote: Alternatively, Mozilla is trying to break free from Flash: http://mozilla.github.io/shumway/ is a flash player built entirely on Javascript. It works, but it's still in early days and not usable for viewing youtube.
Most youtube videos are html5 too, so you do not really need flash.
For other sites the ViewTube script for Greasemonkey is pretty effective.
For other (than video) flash content though, you are out of luck.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#43 Post by ally »

thanks marv

seen that before, needs to be able to stream thedarewall....

jb - I have have just given a ubuntu mix a spin (http://oph.mdrjr.net/robroyhall/images/ ... 101.img.xz) and can confirm that streaming works via chromium in that build

I'm not competent enough to find details of the flash (or alternative) that is responsible for the streaming (sorry)

unfortunately too choppy to watch even when fully buffered which was a surprise given the chipset specs

:)

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#44 Post by jamesbond »

ally wrote:seen that before, needs to be able to stream thedarewall....
I never visited thedarewall before, now I just did :)
It does use (and only use) flash - flowplayer to be exact; and refuse to display when flash isn't there.

But all is not lost. Thedarewall doesn't produce its own content, it only re-hashes somebody else's (the two videos I watched both came from youtube). They aren't even trying to hide it - go to the site, do "view source", then look at "og:video"; and you'll see what I mean. It's trivial to write a simple html scraper to collect the youtube url, and pass this to ViewTube script from mavrothal.
jb - I have have just given a ubuntu mix a spin (http://oph.mdrjr.net/robroyhall/images/ ... 101.img.xz) and can confirm that streaming works via chromium in that build
That's good to know. The question is where they got the Flash player. Really. Unlike the traditional Flash (which you can download from Adobe's site), Pepper Flash isn't distributed by Adobe, it is distributed by Google in their Chrome browser (no separate download) - and is actually internally maintained by Google (instead of Adobe). So you can only get Pepper Flash when you get Chrome. But (as far as I know) there isn't Chrome for ARM (perhaps bundled together with ChromeOS/Chromebooks, but I can't find a separate download page). So where did they get the Pepper Flash player?

I found this http://forum.odroid.com/viewtopic.php?f=8&t=2374. Note that the guys in the forum can't confirm the authenticity of the files. I've downloaded them and keep them (for the time I'm motivated enough to build Chromium) - and a simple "ldd" testing seems to confirm that all the library dependencies are satisfied, which means it *should* work on FatdogArm. But beware, this is unofficial sources, no updates, etc.
I'm not competent enough to find details of the flash (or alternative) that is responsible for the streaming (sorry)
No worries, see my reply above. It is trivial for someone to write a script to pull the stream off thedarewall.
unfortunately too choppy to watch even when fully buffered which was a surprise given the chipset specs
I haven't run Ubuntu on Odroid for a significant of time; but according to Mick, he found that Ubuntu is slow. Plus I did say that Flash (without acceleration) is slow :) (As of today, Pepper Flash on Linux doesn't use any acceleration).

I'll look into that minidlna stuff.

@All
By the way - the "bison" and "flex" packages in devx is built wrongly. I have corrected them. If you need to build something that uses either of them, please re-install the packages from the repo.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

User avatar
ally
Posts: 1957
Joined: Sat 19 May 2012, 19:29
Location: lincoln, uk
Contact:

#45 Post by ally »

thank you

not many streams come from youtube, popular ones are putlocker (firedrive?), allmyvideos and ishared

I did find a hack a while ago (can't find it now) that ran putlocker through a media player (think it was vlc) but only putlocker as they showed the stream url in the source code

thanks for your efforts!

:)

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

Re: obconf and pkeys

#46 Post by jamesbond »

mories wrote:Regarding pkeys parameter (in my case pkeys=es) finds an appropriate map, but then loadkmap gives an error "not a valid binary keymap".
Try this patch to rc.sysinit (after you apply the previous one, otherwise, may have to apply manually):

Code: Select all

@@ -127,35 +127,32 @@
 grep -q 'input/mice' /etc/mousedevice && modprobe usbhid
 
 # load keymaps and console fonts - rc.country no longer used
 # modified from original keymap loading code (c) Barry K
-[ -z "$pkeys" ] && [ -e /etc/keymap ] && read pkeys < /etc/keymap 
+[ -z "$pkeys" ] && [ -e /etc/keymap ] && read -r pkeys < /etc/keymap 
 if [ "$pkeys" ]; then
-	pkeys_path="$(find /lib/keymaps/ -name "${pkeys}*" | head -n 1)"
-	pkeys=${pkeys_path##*/}
-	if [ "$pkeys" ]; then
-		echo ${pkeys%%.*} > /etc/keymap
-		zcat $pkeys_path | loadkmap 
-		case $pkeys in 
-			de*|be*|br*|dk*|es*|fi*|fr*|it*|no*|se*|pt*)
-				modprobe nls_cp850
-				zcat /lib/consolefonts/lat1-12.psfu.gz | loadfont
-				echo lat1-12.psfu > /etc/fontmap
-				echo 850 > /etc/codepage
-				;;
-			cz*|hu*|pl*|ro*|sk*|croat*|slovene*)
-				modprobe nls_cp852
-				modprobe nls_iso8859-2
-				zcat /lib/consolefonts/lat2-12.psfu.gz | loadfont
-				echo lat2-12.psfu > /etc/fontmap
-				echo 852 > /etc/codepage
-				;;
-			*)	# default - empty fontmap, iso-8859-1 codepage
-				rm -f /etc/fontmap
-				echo ISO-8859-1 > /etc/codepage
-				;;
-		esac
-	fi
+	echo $pkeys > /etc/keymap
+	loadkeys $pkeys
+	case ${pkeys##*/} in 
+		de*|be*|br*|dk*|es*|fi*|fr*|it*|no*|se*|pt*)
+			modprobe nls_cp850
+			setfont lat1-12
+			echo lat1-12 > /etc/fontmap
+			echo 850 > /etc/codepage
+			;;
+		cz*|hu*|pl*|ro*|sk*|croat*|slovene*)
+			modprobe nls_cp852
+			modprobe nls_iso8859-2
+			setfont lat2-12
+			echo lat2-12 > /etc/fontmap
+			echo 852 > /etc/codepage
+			;;
+		big) setfont big ;;
+		*)	# default - empty fontmap, iso-8859-1 codepage
+			rm -f /etc/fontmap
+			echo ISO-8859-1 > /etc/codepage
+			;;
+	esac
 fi
 
 ### other little things
 [ -f /etc/resolutionfix ] && eval $(cat /etc/resolutionfix)
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#47 Post by jamesbond »

ally wrote:thank you

not many streams come from youtube, popular ones are putlocker (firedrive?), allmyvideos and ishared

I did find a hack a while ago (can't find it now) that ran putlocker through a media player (think it was vlc) but only putlocker as they showed the stream url in the source code

thanks for your efforts!

:)
Ok there is still hope, there is gnash and lightspark. We'll see :D
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

mories
Posts: 70
Joined: Mon 21 Dec 2009, 12:51

Re: obconf and pkeys

#48 Post by mories »

jamesbond wrote: Try this patch to rc.sysinit (after you apply the previous one, otherwise, may have to apply manually):
With this patch the pkeys parameter works correctly .

Thank you very much for your attention.

IhaveU3
Posts: 12
Joined: Sat 08 Mar 2014, 02:17
Location: Sydney

wifi

#49 Post by IhaveU3 »

Hi James
Fred here :D
You asked me:
By the way, why don't you use the network wizard from control panel? Why the need to run wpa_supplicant and dhcpcd manually?
I had not been able to get the network wizard to make the connection to my router, hence tried the manual connection.
The error consists as follows: wlan0: deauthenticated from 00:1b:9c:08:70:95 (Reason: 15)
If I use wpa_cli and request status it will sometimes authenticate:
At the moment, I use the following script which is much more reliable

Code: Select all

wpa_cli -iwlan0 disconnect
for i in `wpa_cli list_networks | grep ^[0-9] | cut -f1`; do wpa_cli -iwlan0 remove_network $i; done
wpa_cli -iwlan0 add_network
wpa_cli -iwlan0 set_network 0 auth_alg OPEN
wpa_cli -iwlan0 set_network 0 key_mgmt WPA-PSK
wpa_cli -iwlan0 set_network 0 psk '"MyWord"'
wpa_cli -iwlan0 set_network 0 mode 0
wpa_cli -iwlan0 set_network 0 ssid '"Dogsbreath"'
wpa_cli -iwlan0 select_network 0
wpa_cli -iwlan0 enable_network 0
wpa_cli -iwlan0 reassociate
wpa_cli -iwlan0 status
sleep 1
dhcpcd wlan0
Seems something about ipV4 not happy Jan :(
Fred stumped again :D

mories
Posts: 70
Joined: Mon 21 Dec 2009, 12:51

Bootmenu

#50 Post by mories »

@jb:

The idea/tool Bootmenu
http://jamesbond3142.no-ip.org/wiki/wik ... ecBootMenu
seems me very interesting and useful.
It's available some kernel / initrd for testing and use.
Thanks in advance.

Post Reply