pUPnGO 2012

A home for all kinds of Puppy related projects
Post Reply
Message
Author
goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#91 Post by goingnuts »

starhawk: :) Did you get the install2usb to work? Anything from your download of Puppy 431-k2.6.25.16/Puppy 432v3 that helped (I think the wireless drivers might be worth a try)?Still interested in a port of SNS (I am still interested in finding the source...must be somewhere out there....)?
Glad you got Xorg working 8)! Sorry about the sound not working... :cry:

The typo is placed in "/usr/sbin/setmouse.sh" - and no need for re download - no new revision uploaded. :shock:

And thanks for all your testing and reporting :!:

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#92 Post by starhawk »

I stopped bothering with install2usb when I remembered that the CPi is far, far too antique to boot from it. Although I did eventually get Plop to boot the USB disk, the one single USB port on the CPi is USB1.1 at most (it might actually be 1.0 -- the Dell spec sheet is unclear) and so there are significant advantages to booting from CD -- the time it takes to boot via USB is ridiculous. I would NOT want to do that on this system with a regular Puppy! ...to be fair, once it was booted, it was properly responsive, just... it took bloody forever to boot, like 5-10min.

I will note that a USB2.0 cardbus hub I have does not appear to work, although I was mainly trying to boot from it. (Plop cannot boot from devices attached to hubs!)

Gave up on the drivers -- I don't know how a zdrv works, and without being able to unpack it (one of the things I don't know) I can't do much there.

I can try and migrate SNS over from 431 -- shouldn't be that hard since I really don't see it being a binary. I tend to ferret out dependencies by reading the shell scripts that make up so much of Puppy. Easier to find and copy what it calls, when you know what it calls ;) Besides, it's great for learning: you can see what code does what, since it's all so well-commented. Lotsa comments are a big plus in programming :D

...my worry with SNS is that it will use GTK2 and need to be backported to GTK1. I guess I could post the necessary files and let you do the work? I barely know a little QBASIC -- bash scripts are well beyond me! (It's like a foreign dialect of a familiar language -- you can sorta understand what stuff means, but it's hard to get the full picture overall.)

The other thing that's throwing me for a loop tho is how the pUPnGO Menu is created. I don't see a .jwmrc-menu file ANYWHERE and there's no /etc/xdg/ either.

...one last thing. The Console font is still very ugly even when in Xorg with proper drivers and screen size, as if it's using the wrong resolution. Any guess as to what might cause that? (I can post a photo if it helps.)

EDIT: the sound is simply a matter of compiling a replacement driver (is there a devx for pUPnGO?) but I really don't want to mess with that, partially because it's in the zdrv and partially because this CPi is so unbelievably underpowered compared to modern stuff that it's not funny. I'd probably eat up a whole day doing it right. Remember that my ability to compile is basically limited to typing "make [target]" in the Console!

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#93 Post by goingnuts »

Thanks for the updates. I would like to look at the SNS scripts - I have started to backport different networkmanagers but never finished any of them as most are huge and spread over a lot of files. So I you have the script(s) you are welcome to send them to me and I give it a try.

pUPnGO can install a sfs-file - use pkginstall.sh /path/2/sfs-file and it will be installed as if it was a pet. And uninstall as well...

The jwm menu is created by /root/pm_jwm_xdg.sh which read through the /usr/share/application/*.desktop files and generate the menu - sort of poor mans xdg.

Not many fonts in pUPnGO - only the ones I could not remove without breaking something :D You might try to put the full load of fonts from another puppy back and see if that helps.

There are no devx - I use the devx for P412 and an additional uclibc/dietlibc toolchain. I have worked on a devx for some time as well as a "pUPnGO-from-source-script" but they seem to never finish.

If you can get your hands on the sound-driver source I could try to make one for you - would be nice to get that working as well...

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#94 Post by starhawk »

"pUPnGO from source script" ... meaning a woof-like setup?

What would be even better is to be able to generate a 'mock pUPnGO' or 'pUPnGO edition' of/from other Puppies or Puplets.

That would be way cool -- for example, I could then generate a 432v3 version of pUPnGO and have sound work just fine. THAT edition of the sound driver is known good for sure. (I'll see if sources are included in a few.)

I'll get you the SNS scripts and other stuff, gz'd as one big pile so you have the complete setup ready to be PETed when you've got it working.

I'll post again when I've got those two bits together.

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#95 Post by goingnuts »

starhawk: thx

greengeek: I found that mp (minimal profit) text editor seems to work ok with copy paste between applications without crashing the source application - still a mystery why beaver and other gtk1.2 apps does that. mp has a different way of selecting text (right mouse button and mark outer points of that is to be selected) but normal shift-key and arrows/ctrl-c/ctrl-v works as well.

Attached tar.gz file - use "tar -xzf mp-3.3.18b.tar.gz" to unpack and copy the extracted files to /

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#96 Post by starhawk »

cs423x was carried over from 431 into 432 it looks like. At least, the source tarball isn't around in /lib/modules/all-firmware/ ... however...

http://www.alsa-project.org/main/index. ... ule-cs4236 should be of some significant use ;)

...lifted SNS from Puplite5. The entire set of icons that should be there are not, but everything else ought to be. Obvious dependencies are iwconfig and ifconfig -- I've not included those because I'd be quite surprised if you didn't already have them.

Also not included is a symlink. /usr/sbin/sns should be linked to ../local/simple_network_setup/sns .

Everything else needed should be in there. I've done my usual trick of preserving heirarchy... files are as follows:
../SNS-puplite5/etc/simple_network_setup/
../SNS-puplite5/usr/local/simple_network_setup/help_security
../SNS-puplite5/usr/local/simple_network_setup/rc.network
../SNS-puplite5/usr/local/simple_network_setup/sns
../SNS-puplite5/usr/sbin/ndiswrapper
../SNS-puplite5/usr/sbin/ndiswrapper-buginfo
../SNS-puplite5/usr/sbin/wpa_cli
../SNS-puplite5/usr/sbin/wpa_passphrase
../SNS-puplite5/usr/sbin/wpa_supplicant

I did not include ndiswrapperGUI.sh because it does not work. AFAIK one cannot copy or archive symlinks properly, so that's why I didn't copy the one mentioned above. All of that said, once you backport the scripts all to GTK1 and stick in iwconfig and ifconfig (if not pulling from Puppy 420, you might want to double-check the commands -- also I don't know their deps) it *should* work fine.

You get a proper tarball of this stuff, since Xarchiver (no Pupzip in Puplite5) doesn't want to gz a directory for some reason. I've made the tarball in Windows XP using 7zip and gzip together.

...and last, but not least...

THANK YOU for putting up with my inane never-ending questions :D I really do appreciate it, and I am remiss in not saying that sooner.
Attachments
sns-puplite5.tar.gz
Tarball of Simple Network Setup, liberally stolen from Puplite 5.0 (a Puppy 420 derivative).
(158.4 KiB) Downloaded 391 times

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#97 Post by Keef »

goingnuts / starhawk

Sorry to butt in, but it may help to have a newer version of the sns script, as it supports profiles. Barry's blog
Originally you had to re-enter everything after a reboot.
I've attached the two main files from /usr/local/simple_network_setup/

I did try stripping this down to CLI level once...
but failed miserably!
Attachments
rc.network.gz
rc.network script with dummy .gz extension
(12.96 KiB) Downloaded 397 times
sns.gz
sns script with dummy .gz extension
(40.24 KiB) Downloaded 375 times

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#98 Post by starhawk »

Hey, I didn't know about that. Should be really useful, then.

Thanks, Keef!

User avatar
Keef
Posts: 987
Joined: Thu 20 Dec 2007, 22:12
Location: Staffordshire

#99 Post by Keef »

...back again.

Hope this is not too off-topic, but may be of interest. For some time I have been messing with 4M Linux, an odd little distro with an almost amusingly bad website.
Anyway, the full distro has plenty of faults, but I got interested in the 'core' version. 4M boots with just a bzImage and an intrd.gz.
The initrd contains:

Code: Select all

init (symlink to BB)
/dev/console null tty1...tty6
/etc/init.d/ inittab
    /init.d/rcS
/lib/ld-2.10.1.so
     ld-linux.so.2
     libc-2.10.1.so
     libc.so.6
     libm-2.10.1.so
     libm.so.6
/sbin/busybox init (symlink to BB)
The rcS script sets up the filesystem, profile etc. 4M uses 'addons' which are just tar.gz packages of libs and programs etc. They can be included in etc/init.d to be used straight away.
This structure is easy to clone with the vmlinuz and libs from any Puppy - I'm currently using Wary libs/kernel. I did find that it would not boot with 412 files, but I recompiled BusyBox (with everything), and that worked, so might have been a missing applet or two.
I have been using various static apps that have been posted on the pupngo threads, and have got a gui using the files pinched from pupngo 2012. I had managed to get my wifi working (using the static wpa builds), but it's not having it at the moment for some reason. Shame, because I've got Opera-Next working on it now. Oh well...
Because it is so 'barebones' it means you have to really work on finding the dependencies to get things working - the static apps are a great help though. Termcap is needed for a start.
There is no persistence, (no way to save), but it is just for experimenting with.
Might be useful as a test bed, especially for static apps.
I've attached the rcS in case it takes anyones interest.
Attachments
rcS.gz
(13.72 KiB) Downloaded 396 times

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#100 Post by starhawk »

Of note, one small bit of advanced knowledge I do have is that PET files are basically *.tar.gz (aka tarball) archives with an md5sum appended somehow (I don't recall how, but IIRC the whole thing is spelled out at puppylinux.org somewhere).

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#101 Post by goingnuts »

Posted a first try of SNS with gtkdialog1 here. Not so much work going to gtk1 but removing xmessage-stuff and enabling ash-only took time. Also had to compile a newer dhcpcd, a static ethtool+ifplugstatus. But seems to work. Used the Puplite version but plan to go for the version Keef pointed at.
Keef: You mentioned you needed Termcap - what exactly are you missing? Is it the termcap.info files?
And the 4M looks worth a closer look - thanks!
starhawk: I was wondering if the sound is a driver missing or the absent of ALSA that gives problems? I do not know if ALSA can be done static at all - but as you are already having some of the shared libs for Xorg you might try adding a std ALSA-system? Anyway I will try to look into ALSA and the cs423x-stuff in 431.

Attached a static build of blinky-0.8...has retro look but with a low resource demand.

Add: Attached static build of alsalib/alsautils but stripped for most bins not needed for running alsaconf. The alsaconf is a slitaz script that runs with ash (original needs bash). I am not able to test this throughly - guess its mostly relevant for configuring ISA soundcards. Maybe worth a try - starhawk?

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#102 Post by starhawk »

goingnuts: I look forward to trying all 3 :D

I assume that for pUPnGO 2012 I do not need to install any GTK, just the SNS, ALSA, and Blinky *.pets?

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#103 Post by goingnuts »

starhawk wrote:goingnuts: I look forward to trying all 3 :D

I assume that for pUPnGO 2012 I do not need to install any GTK, just the SNS, ALSA, and Blinky *.pets?
Hope they work - and yes - no gtkdialog1 needed in pupngo2012 - its already there :)

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#104 Post by starhawk »

Re: GTK -- that's what I thought.

Re: testing -- I'll do that in a minute ;)

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#105 Post by starhawk »

SNS = dead in the water.

Apparently there is no easy way to associate a driver with a physical device unless it is done automatically -- which pUPnGO2012 DOES NOT.

Plugged in a spare Netgear WG111v3 adapter, having installed the SNS pet and the extra-drivers SFS. Nothing showed up in SNS about the adapter, except for a Windows option (I will NOT use ndiswrapper). modprobe was used, and it loaded the correct WiFi module as listed on WikiDevi (very handy site, that). However, ifconfig and iwconfig would not recognize the device. /dev/wlan0 doesn't exist so that may be part of the issue.

Is there an RXVT command that says, "take this effing driver that's loaded and stuff it into a USB port"?

Also, how do I properly get Blinky working? In the /root/Startup directory it displays in the upper-left corner of the screen.

Haven't tried sound yet.

goingnuts
Posts: 932
Joined: Sun 07 Dec 2008, 13:33
Contact:

#106 Post by goingnuts »

Do not know about the wifi-driver thing...If driver present and recognized (including firmware drivers) they are normally loaded during boot...If the extra driver are not present at boot but installed after boot they might not be picked up - but unsure how to get you further there. I think if the right drivers are loaded ifconfig/iwconfig will give you some response...
I have the SNS--retro working with pupngo2012 on an asus eeepc900 and on stationary pc with usb-zd1211 wireless-stick. Also the wired network adapters on both machines are recognized and connected.

For blinky add the below to /root/.jwmrc-tray

Code: Select all

<Swallow name="blinky">
blinky -bg "#DCDAD5"
</Swallow>
just after the pmfree swallow line

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#107 Post by technosaurus »

if anyone is looking to do a no-rox version, I wrote some C that checks file extension and gives you the MIME-type:
http://murga-linux.com/puppy/viewtopic.php?t=80916
These are the ones that (by default - not necessarily in pet packages) are semicolon separated in .desktop files as
MimeType=application/vnd.ms-asf;application/vnd.rn-realmedia;...

You can just grep `mimetype $filename` /usr/share/applications/*.desktop to find which programs can run it.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#108 Post by greengeek »

starhawk wrote: /dev/wlan0 doesn't exist so that may be part of the issue.
Does it maybe show up as an ethx instead of wlanx?

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#109 Post by technosaurus »

it could be ath0 on this older kernel too, may be a good time to try a later LTS kernel (2.6.32?)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#110 Post by starhawk »

All that shows up is lo. No eth0, no wlan0, and no ath0.

...of note, the Dell C600 (it's xvesa friendly ;) ) I used this time has no ethernet connector IIRC. (The CPi doesn't either.)

I think we need a copy of the "wireless module loader/tester" from Classic Network Wizard. I'd say port the whole thing over... but it's a goodly bit bigger, to say the least.

Unfortunately, I have no idea if it's one single script or a collection. I suspect one single script, which will make lifting out the loader-tester portion that much harder. I'd have to go looking to be sure tho.

Post Reply