Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 18 Dec 2014, 13:31
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
pUPnGO - 6Mb ISO - Basic Building Block Puplet
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 21 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, ..., 19, 20, 21, 22, 23, ..., 56, 57, 58 Next
Author Message
starhawk

Joined: 22 Nov 2010
Posts: 3208
Location: Everybody knows this is nowhere...

PostPosted: Mon 14 Feb 2011, 01:28    Post subject:  

sc0ttman, what in blazes did you do with the jwm config & default-app settings? Confused 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

_________________

Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 649
Location: Staffordshire

PostPosted: Mon 14 Feb 2011, 08:01    Post subject:  

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.
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Mon 14 Feb 2011, 09:46    Post subject:  

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. Smile

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
Back to top
View user's profile Send private message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Thu 17 Feb 2011, 10:10    Post subject:  

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:

#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:
# 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:
else   #silent run
  REPLY_CHAR="${1}"
  FILENAME=$(basename $REPLY_CHAR)
fi

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 784

PostPosted: Fri 18 Feb 2011, 04:35    Post subject:  

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...
P412_AR81Family-linux-v1.0.1.14.pet
Description  Ethernet drivers
pet

 Download 
Filename  P412_AR81Family-linux-v1.0.1.14.pet 
Filesize  32.88 KB 
Downloaded  210 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2386
Location: UK

PostPosted: Fri 18 Feb 2011, 07:40    Post subject:  

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?)

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Fri 18 Feb 2011, 09:53    Post subject:  

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:
#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

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 784

PostPosted: Fri 18 Feb 2011, 12:25    Post subject:  

sc0ttman: I will take the drivers from your puplite - thanks Very Happy
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 Crying or Very sad 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...
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Fri 18 Feb 2011, 13:54    Post subject:  

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.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 784

PostPosted: Fri 18 Feb 2011, 16:43    Post subject:  

Quote:
...perhaps I should add WiFi to bashbox..

That really would be nice! And the control interface idea also is very interesting!
Back to top
View user's profile Send private message Visit poster's website 
taca0

Joined: 06 May 2009
Posts: 122

PostPosted: Sat 19 Feb 2011, 00:28    Post subject:  

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!
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 784

PostPosted: Sat 19 Feb 2011, 03:00    Post subject:  

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.
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Sun 20 Feb 2011, 03:36    Post subject:  

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.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 784

PostPosted: Mon 21 Feb 2011, 10:20    Post subject:  

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).
jwm_xdg_alt.png
 Description   Menu in pUPnGO after using pm_jwm_xdg - creating the right .desktop-files and added a few icons for the main menu
 Filesize   104.81 KB
 Viewed   980 Time(s)

jwm_xdg_alt.png

pm_jwm_xdg.zip
Description  scrip to make jwm menu from desktop-files in /usr/share/applications
zip

 Download 
Filename  pm_jwm_xdg.zip 
Filesize  1 KB 
Downloaded  200 Time(s) 
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4424

PostPosted: Tue 22 Feb 2011, 18:37    Post subject:  

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/Infineon_Amazon_Busybox

Edit
I found a tbz of the source something else of interest
http://code.google.com/p/open1211/source/browse/trunk/apps/wsc/
Wireless simple config by atheros and intel

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 21 of 58 [868 Posts]   Goto page: Previous 1, 2, 3, ..., 19, 20, 21, 22, 23, ..., 56, 57, 58 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0960s ][ Queries: 12 (0.0106s) ][ GZIP on ]