pUPnGO - 6Mb ISO - Basic Building Block Puplet

A home for all kinds of Puppy related projects
Message
Author
starhawk
Posts: 4906
Joined: Mon 22 Nov 2010, 06:04
Location: Everybody knows this is nowhere...

#301 Post by starhawk »

sc0ttman, what in blazes did you do with the jwm config & default-app settings? :? On every other Puplet I've used, jwm config is in /etc/xdg (and I don't recall where the default-app settings are)... but I can't find 'em in pUPnGO!

Really what I want to do is edit the main Menu so that the apps I've added show up. But if I can't find the files... :wink:

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

#302 Post by Keef »

starhawk:

.jwmrc (containing menu items) is in root. You can also get to it via the menu - edit settings. I'm assuming this is what you are after. Apologies if I'm barking up the wrong tree.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#303 Post by nooby »

I am going to try to use otf_sfsloader to load tc_412.sfs but it worked using pkginstall.sh so I didn't have to make use of the otf.

But seems to be an older TCL? The Firefox I had already installed on another modern TCL did not work. But I try again. :)

How can I update/upgrade TCL to the latest final 3.5 version?
I use Google Search on Puppy Forum
not an ideal solution though

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#304 Post by sc0ttman »

Hi goingnuts,

I have recently added file size checks to the otf sfs loader ... it checks for a save file and if found, checks the file size of the sfs against the free space in the save file.

It's a bit simplistic in parts.. I just assume the free space in the save file must be at least 3x larger then the sfs file size, before the sfs can be loaded safely.

If not, a warning is given, and the user must confirm to load the sfs. If they choose "No", then they get a message about making the save file bigger.

Here is the function I added to /usr/sbin/otf-sfs-loader.sh

Code: Select all

#sc0ttman start
check_sfs_size () {
	# assume it's all gonna work
	TOO_BIG=false
	# $1 is the SFS FILE
	echo $1
	SFSFILE="${1}"
	# get the PUPMODE
	. /etc/rc.d/PUPSTATE
	# note, these vars are used from PUPSTATE
	PUPMODE=$PUPMODE
	SAVE_LAYER=$SAVE_LAYER
	# check if save file is being used
	if [ $PUPMODE -eq 12 ] || [ $PUPMODE -eq 13 ];then
		# get save space in bytes
		PUPSAVESPACE=`df -B 1 | grep $SAVE_LAYER | awk '{print $4}'`
		# keep only the numbers, if needed
		#PUPSAVESPACE=$(echo "$PUPSAVESPACE" | sed "s/[^0-9]//g")
		# get size of sfs file in bytes
		SFSSIZE=$(stat -c %s "$SFSFILE")
		# get required free space (around 3x the size of sfs file)
		REQUIREDSPACE=$(($SFSSIZE * 3))
		# if free space is less than required space 
		if [ $PUPSAVESPACE -lt $REQUIREDSPACE ];then
			# cannot load sfs file
			TOO_BIG=true
		else
			# loading sfs will be ok
			TOO_BIG=false
		fi
	fi # end if save file is being used
}
# sc0ttman end
And this is added to the load_sfs function:

Code: Select all

# sc0ttman start - check save file space before loading
check_sfs_size "$REPLY_CHAR"
if [ "$TOO_BIG" = true ];then
	TEXT="Warning: The SFS file '$(basename $SFSFILE)' may be too big for your save file.\nAre you sure you want to load it?"
	yesno_fc
	if [ "$REPLY_CHAR" = "No" ];then
		TEXT="You can make your save file bigger here:\n\nMenu->Utility->Resize personal storage file\n\n"
		message_fc
		break
	fi
fi
REPLY_CHAR="${1}"
# sc0ttman end
That bit above is added immediately after this:

Code: Select all

else	#silent run
  REPLY_CHAR="${1}"
  FILENAME=$(basename $REPLY_CHAR)
fi
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

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

#305 Post by goingnuts »

sc0ttman: Thanks for sharing - I will include your code in next build.

starhawk: The programs for auto-build of jwm-menu is not included - as Keef says - its done by hand. I think the size of xdg-programs and the needed libs seems to be to much compared to the effect: Its just updating the menu...Would be nice if a script could do the same...

nooby seemed to be able to use the attached drivers for his ethernet - might be useful for others. I think there is a post somewhere in this forum with a lot of extra drivers for P412 - just cant find them...Would like to include as many drivers as possible in the next build...
Attachments
P412_AR81Family-linux-v1.0.1.14.pet
Ethernet drivers
(32.88 KiB) Downloaded 297 times

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#306 Post by sc0ttman »

goingnuts wrote:Would like to include as many drivers as possible in the next build...
You could start with the zdrv from Puplite 4.0 - it is a standard 4.2 zdrv, but I added most, if not all, of the extra drivers I could find for 2.6.25.16 (and I will add the one posted above, too!)

(I think it should work with 4.1, right?)
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

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

#307 Post by technosaurus »

I haven't checked out your recent init script, but IIRC there was a desire for cp -u? I am currently writing some wrappers for busybox cp to allow most of the full version's options. The workaround for cp -u is

the simplified version of the full wrapper for "-u" would be something like:

Code: Select all

#replace: "cp -u $1 $2" with:
[ "$1" -nt "$2"] && cp -f $1 $2 || cp $1 $2
#force cp if $1 is newer
#rely on cp failure if $2 is newer
#but still cp in case $2 does not exist
The full wrapper will support same file system {by comparing stat -c %d FILE}, --long-options, and backups {partially ... in progress, figuring out when cp wants a directory/file destination} Let me know if you need any of those
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].

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

#308 Post by goingnuts »

sc0ttman: I will take the drivers from your puplite - thanks :D
technosaurus: Thanks - that might save 36K in initrd - the -u switch is used for load session saved to cd-stuff if I remember correct.

Have been buried in trying to make a wireless-CLI-manager - first using code from org. P412 netwizard - still too complicated for me :cry: Then tried to follow code from jemimah´s pwireless2 using a static build of wpa_cli and wpa_supplicant - but still not working (always)...Would be nice to have in pUPnGo someday...

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

#309 Post by technosaurus »

A lot of the stuff in iwconfig and wpasupplicant seems unnecessary. I know there is interest in a tool for busybox with a simpler to parse interface... I'm keeping an eye out, but in the mean time, the gentoo wiki has some good stuff for net setup... perhaps I should add WiFi to bashbox... when I get back to my internet connection that is...I am working on a control interface that uses only httpd and ash cgi scripts, so that would be a good test for the platform... works with any browser that supports forms.
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].

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

#310 Post by goingnuts »

...perhaps I should add WiFi to bashbox..
That really would be nice! And the control interface idea also is very interesting!

taca0
Posts: 123
Joined: Thu 07 May 2009, 00:57

#311 Post by taca0 »

The new version works for my K6 AMD but I can not install the programs from bootcd because I not have cd . I boot from CF card hard drive adapter.

How I install GUI and also how I see pdf files??


Thanks!

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

#312 Post by goingnuts »

taca0: After boot browse to the directory where boot files are (CF card hard drive).
Use command "otf_sfs_loader.sh GUI_412.sfs" to load GUI-sfs or command "pkginstall.sh GUI_412.sfs" to install.
No pdf-viewer present - you will have to install one your-self - as most of other stuff you might need.

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

#313 Post by technosaurus »

http://www.murga-linux.com/puppy/viewtopic.php?t=61922
mupdf is a light pdf viewer that I compiled a while back... minimal dependencies too.
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].

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

#314 Post by goingnuts »

Attached a small script to replace fixmenus/all the xdg-menu-stuff. Not as sophisticated but do the job...
If other categories are needed just edit the script.
Creates file .jvmrc-installed in /root that should be included in main .jwmrc (already done in pUPnGO the latests versions).
Attachments
jwm_xdg_alt.png
Menu in pUPnGO after using pm_jwm_xdg - creating the right .desktop-files and added a few icons for the main menu
(104.81 KiB) Downloaded 1023 times
pm_jwm_xdg.zip
scrip to make jwm menu from desktop-files in /usr/share/applications
(1 KiB) Downloaded 280 times

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

#315 Post by technosaurus »

I notice that Amazon's infineon has iwconfig built in to busybox. I had planned on doing this myself, but would prefer to _not_ reinvent the wheel if someone could point me to the source or patch ...it is elusive to all of my googling except that maybe they are in violation of the GPL???
There are some other interesting modifications as well.
http://wiki.gpl-devices.org/wiki/Infine ... on_Busybox

Edit
I found a tbz of the source something else of interest
http://code.google.com/p/open1211/sourc ... /apps/wsc/
Wireless simple config by atheros and intel
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].

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

#316 Post by goingnuts »

Getting closer to wireless in pupngo although not quite there yet. Managed to compile iwconfig, iwlist and wpa_supplicant static. Created a script that succesfully connect my zd1211 usb wireless interface to WPA and WPA_PSK wireless in org. P412.
In pupngo drivers load but was unable to do a ifconfig wlan0 up. Response was the cryptic "SIOCSIFFLAGS: No such device"
Solution was to manually install zd1211 firmware archive from /lib/modules/all-firmware.
Anyone know which part of Puppy is responsible for installing the firmware-packets? Is it udevd, kernel or something else? :?:

Next problem now is that iwlist do not report found network types correctly in pupngo - and that breaks my connect-script - as the reported types are:
"(unknow Wireless Token 0x8C05)"
Strange the iwlist works in org. P412 but not in pupngo...
Last edited by goingnuts on Wed 23 Feb 2011, 15:54, edited 1 time in total.

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

#317 Post by Keef »

I've managed to get wifi working ok, using ndiswrapper too. Bit crude really, just copied over everything I thought I needed over from standard 412 and made an sfs out of it all. Used Tiny-Perl for the ndiswrapper setup, but this could be taken out and installed as a pet, then removed afterwards.
Start it up with a script based on the info in the "How to configure wifi from the commandline" thread. WPA has tended to be a bit hit and miss with the 4 series I've found, sometimes it works for a while, then decides not too. Had to sort out a few dependencies, but most I think, were in the glibc sfs. Can't remember exactly (not on Puppy at the mo') but might have had to use the iwconfig from org 412 - will check later.

nooby
Posts: 10369
Joined: Sun 29 Jun 2008, 19:05
Location: SwedenEurope

#318 Post by nooby »

Don't get me wrong now. I am a bit nitpicking but I would actually prefer that you told in the first post of the thread which TCL you have there. Now it says this very general thing:
080211: Special build with TC as GUI.
But is that the old 2.6 something I don't remember which version it was but it was not one of the later version when I tried to use it some week ago.

Have you updated the TCL now to the latest then or what?
I use Google Search on Puppy Forum
not an ideal solution though

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

#319 Post by technosaurus »

goingnuts wrote:Getting closer to wireless in pupngo although not quite there yet. Managed to compile iwconfig, iwlist and wpa_supplicant static. Created a script that succesfully connect my zd1211 usb wireless interface to WPA and WPA_PSK wireless in org. P412.
In pupngo drivers load but was unable to do a ifconfig wlan0 up. Response was the cryptic "SIOCSIFFLAGS: No such file or directory"
Solution was to manually install zd1211 firmware archive from /lib/modules/all-firmware.
Anyone know which part of Puppy is responsible for installing the firmware-packets? Is it udevd, kernel or something else? :?:

Next problem now is that iwlist do not report found network types correctly in pupngo - and that breaks my connect-script - as the reported types are "unknow". Strange the iwlist works in org. P412 but not in pupngo...
if you still have your wireless tools package, there is a multicall binary build (like busybox) that will save some space (however this will also make it an easy port to busybox next time I have an hour or so and a decent internet connection) The wireless tools source is pretty easy to follow IIRC, so it shouldn't be too hard to track down the source of "unknown"... maybe even make some shell parsability improvements to the output.

modutils (modprobe, insmod ...) does the firmware loading from info built in to the kernel module itself (I think there is a way to override using a config file in /etc/???) - I don't have the sources available but you can check your busybox source code to see where modutils* is looking for the firmware and config file (there have been many improvements to the various modutils as of late, so it may be a bug that was fixed - I seem to recall seeing something along those lines fly across the mail list)... of course that assumes you have the firmware, you can get a lot of "blobs" from woof or from other distros if necessary
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].

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

#320 Post by goingnuts »

Keef: Thanks - good to know its possible. Maybe I am making it more difficult for myself to insist on having pupngo being all static...But I will try your path testing the original iwconfig and iwlist.

nooby: Description updated and the "no support" and "no upgrades" stated as well. :wink:

technosaurus: Thanks - your ref. to arch-linux cli wireless got me further in my CLI-wireless script...
As for BB modifications I am a little reluctant to go that path right now - might be to heavy stuff :) I did try to use org. modprobe but did no difference...
The output from static iwlist scan is:
"(unknow Wireless Token 0x8C05)"

comming 2 times, in the place where it should state:

"IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (2) : TKIP CCMP
Authentication Suites (1) : PSK
IE: IEEE 802.11i/WPA2 Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : CCMP
Authentication Suites (1) : PSK
Preauthentication Supported"

So its the translation part of the code in iwlist.c that does not get handled well - or the info iwlist gets from the device...
Well - I´ll keep trying as it must be possible.

Post Reply