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 Tue 22 Jul 2014, 21:29
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
Lupu-515 Beta New Version DEC 18
Moderators: Flash, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 131 of 210 [3149 Posts]   Goto page: Previous 1, 2, 3, ..., 129, 130, 131, 132, 133, ..., 208, 209, 210 Next
Author Message
rcrsn51


Joined: 05 Sep 2006
Posts: 8904
Location: Stratford, Ontario

PostPosted: Thu 02 Dec 2010, 16:45    Post subject:  

Béèm wrote:
I tested fluppy 8 and I don't have the issue, neither in UTF nor in no-UTF.

Perhaps Jemimah would know why her version of xmessage can handle UTF issues better.
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1795
Location: South Australia

PostPosted: Thu 02 Dec 2010, 17:10    Post subject:  

playdayz wrote:
I have collected all of the pet packages ttuuxxx has created for Lucid and now I am stuck. How can I combine all of those pets into one folder to make into an sfs. I need to take the /usr/, /bin, and so forth folders out of the pet and combine them all into single /usr, /bin. etc. folders. Like making one giant pet out of them. I can see how to do it one by one.


I have been suggesting personalised sfs files for some time so I think it's a good idea too.
I know puppy comes the the mksquashfs and dir2sfs scripts but I have not been successful using them to create a sfs.

What I tried was, rename package.pet to package.pet.tar.gz then extract the file to /mnt/home/working, then while in the working type dir2pet name-001 and a sfs file name-001.sfs should be created. I also assumed that you could extract many pets to the working directory before you applied the dir2sfs script.

Maybe some one can explain the error of my ways.

Thanks

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Thu 02 Dec 2010, 17:19    Post subject:  

smokey01 wrote:
playdayz wrote:
I have collected all of the pet packages ttuuxxx has created for Lucid and now I am stuck. How can I combine all of those pets into one folder to make into an sfs. I need to take the /usr/, /bin, and so forth folders out of the pet and combine them all into single /usr, /bin. etc. folders. Like making one giant pet out of them. I can see how to do it one by one.


I have been suggesting personalised sfs files for some time so I think it's a good idea too.
I know puppy comes the the mksquashfs and dir2sfs scripts but I have not been successful using them to create a sfs.

What I tried was, rename package.pet to package.pet.tar.gz then extract the file to /mnt/home/working, then while in the working type dir2pet name-001 and a sfs file name-001.sfs should be created. I also assumed that you could extract many pets to the working directory before you applied the dir2sfs script.

Maybe some one can explain the error of my ways.

Thanks


Do it the easy way... use petmakerplus http://www.murga-linux.com/puppy/viewtopic.php?p=290171
It has an sfs option. Select it from the tabs.
I have a huge 8.2mb sfs that totally customises Puppy for me, but I also have a .pet which does the same but works better. Forget why... think it was something to do with links. Smile

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send private message 
playdayz


Joined: 25 Apr 2008
Posts: 3788

PostPosted: Thu 02 Dec 2010, 17:24    Post subject:  

SFS making. Here's what I do.

I create the potential sfs in a folder the same as in making a pet--in fact it often is the pet. Then,

Code:
 mksquashfs4 name-of-folder name-of-folder.sfs -noI


At the end is -noI (the capital ninth letter of the alphabet). It disables compression of the inodes--which fixed a problem that prevented a jre sfs from working.
Back to top
View user's profile Send private message 
DaveS


Joined: 09 Oct 2008
Posts: 3726
Location: UK

PostPosted: Thu 02 Dec 2010, 17:31    Post subject:  

playdayz wrote:
SFS making. Here's what I do.

I create the potential sfs in a folder the same as in making a pet--in fact it often is the pet. Then,

Code:
 mksquashfs4 name-of-folder name-of-folder.sfs -noI


At the end is -noI (the capital ninth letter of the alphabet). It disables compression of the inodes--which fixed a problem that prevented a jre sfs from working.


Odd. I didnt do that and got a nice jre sfs working. Huh..... beginners luck Smile

_________________
Spup Frugal HD and USB
Root forever!
Back to top
View user's profile Send private message 
playdayz


Joined: 25 Apr 2008
Posts: 3788

PostPosted: Thu 02 Dec 2010, 17:40    Post subject:  

Quote:
Odd. I didnt do that and got a nice jre sfs working. Huh..... beginners luck

I was getting one that would work on my machine--sometimes--depending which directories I put the java stuff in. But other times, the contents of directories would disappear. At least the -noI is a possible option to keep in mind.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8904
Location: Stratford, Ontario

PostPosted: Thu 02 Dec 2010, 17:42    Post subject:  

@Beem: Try this:

1. Locate the hidden file /root/.XResources

2. Add the line
Code:
xmessage*international:true

3. Restart X.
Back to top
View user's profile Send private message 
playdayz


Joined: 25 Apr 2008
Posts: 3788

PostPosted: Thu 02 Dec 2010, 17:45    Post subject:  

Possibility.

The issues with jwm that caused Openbox to be default have been worked away. Shinobar's firstrun wizard deals with one of them (not relocating panel when changing screen resolution).

Stellarium not running properly full screen seems to be fixed in 493.

OpenOffice Impress seems to be OK in 493.

The last problem is that the widget at the lower right of gnome-mplayer does not cause full-screen (unless you click it 3 times!)--I have a gnome-mplayer that I removed that widget from, and there are still 2 other ways to cause full screen.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Thu 02 Dec 2010, 18:44    Post subject:  

rcrsn51 wrote:
@Beem: Try this:

1. Locate the hidden file /root/.XResources

2. Add the line
Code:
xmessage*international:true

3. Restart X.
Brilliant, rcrsn51
As well in UTF as in no-UTF the display is correct now, altho the font has changed, but that's not a big deal.
But I still have those messages when executed through a console.
Code:
######### locale nl_BE and utf ##########
# CPUtemp
Warning: Missing charsets in String to FontSet conversion
#

######### locale nl_BE no utf #########
# CPUtemp
Warning: locale not supported by C library, locale unchanged
#


I suppose this addition only effects xmesssage, but not other applications like ROX.

A pity that this code isn't by default in the .XResources file.
I keep having the impression, that National Language Support is the poor guy in puppy.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch

Last edited by Béèm on Thu 02 Dec 2010, 20:21; edited 1 time in total
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8904
Location: Stratford, Ontario

PostPosted: Thu 02 Dec 2010, 19:48    Post subject:  

Béèm wrote:
A pity that this code isn't by default in the .Xsources file.
I keep having the impression, that National Language Support is the poor guy in puppy.

I don't know enough about NLS to comment. But it would be interesting to know why this works better in fluppy.
Back to top
View user's profile Send private message 
Béèm


Joined: 21 Nov 2006
Posts: 11782
Location: Brussels IBM Thinkpad R40, 256MB, 20GB, WiFi ipw2100. Frugal Lin'N'Win

PostPosted: Thu 02 Dec 2010, 20:09    Post subject:  

rcrsn51 wrote:
Béèm wrote:
A pity that this code isn't by default in the .Xsources file.
I keep having the impression, that National Language Support is the poor guy in puppy.

I don't know enough about NLS to comment. But it would be interesting to know why this works better in fluppy.
I looked at the fluppy 8 sfs, but /Xsources doesn't contain the statement you advised. Nor did fluppy's save file.
I will ask Jemimah.

National Language Support is simple in the concept. The user should be able to write with accented characters and use the dead-key support.
Not only for text in documents, but also for file names on his PC.
I know it's easy to say and less evident to implement maybe.
I suspect it's a matter of size.
NLS support fully implemented would grow a puppy pretty much I suppose, which is against some goal to reduce puppy as much as possible in size.

_________________
Time savers:
Find packages in a snap and install using Puppy Package Manager (Menu).
Consult Wikka
Use peppyy's puppysearch
Back to top
View user's profile Send private message 
playdayz


Joined: 25 Apr 2008
Posts: 3788

PostPosted: Thu 02 Dec 2010, 20:56    Post subject:  

Quote:
NLS support fully implemented would grow a puppy pretty much I suppose, which is against some goal to reduce puppy as much as possible in size.

Not necessarily I don't think. If the NLS support was provided by Language Packs as shinobar has done, so that one could download, for instance, French, and have the the French for all or most puppy programs. I definitely agree with your original statement in terms of size if all languages were automatically provided. A little program like mtpaint could have 750K of program code and over 1 MB of languages.

Getting the Language Packs adapted to Lucid and providing them in PPM is a goal which will depend on what goes on for the next 2-3 weeks.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7781
Location: qld

PostPosted: Thu 02 Dec 2010, 21:01    Post subject:  

playdayz wrote:
I have collected all of the pet packages ttuuxxx has created for Lucid and now I am stuck. How can I combine all of those pets into one folder to make into an sfs. I need to take the /usr/, /bin, and so forth folders out of the pet and combine them all into single /usr, /bin. etc. folders. Like making one giant pet out of them. I can see how to do it one by one.


One by one? .. take you an hour!

Here's a script that takes a second...
Code:
#!/bin/sh
#script to turn a pack of puppy pets into an sfs
#plonk this in your $PATH.. suggest /usr/sbin
#usage
#make a directory any where you like and put in a bunch of pet packages
#invoke IN THAT DIRECTORY "pet2sfs <somename>-<verionnumber>"
#OR invoke IN THAT DIRECTORY "pet2sfs <somename>-<verionnumber> <option-for-mksquashfs>"
#give it a version number
#extra parameter if you want to preserve inodes or add other options to 'mksquashfs' eg -noI
[[ $1 = "" ]]&& echo "error, you must give a name for you new sfs" && exit
[[ `echo $1|grep "-"` = "" ]]&& echo "error, you must give a version number using a dash  to delimit for you new sfs" && exit
CURDIR=`pwd`
cd $CURDIR
DIR="$1"
mkdir $DIR
LIST=`ls|grep pet$`
#extract pets
for i in $LIST;do
PKGNAME=`basename $i .pet`
mv -f $i ${i}.tar.gz
tar -zxf ${i}.tar.gz 2>/dev/null
cp -rf $PKGNAME/* $DIR
rm -rf $PKGNAME
mv -f ${i}.tar.gz $i
sync
continue
done
cd $CURDIR/$DIR
rm -f pet.specs
[ -x pinstall.sh ] && rm -f pinstall.sh
[ -x puninstall.sh ] && rm -f puninstall.sh
cd $CURDIR
#make sfs
echo "now making ${DIR}.sfs" &
sleep 2
mksquashfs $DIR ${DIR}.sfs $2
sync
[[ `ls|grep  ${DIR}.sfs` = "" ]]&& echo "error: something went wrong, ${DIR}.sfs didn't get created" && cd $HOME &&exit
cd $HOME
echo "${DIR}.sfs created. All done"
echo "Cheerio"


Cheers!

(um.. this script probably took far less time to write than unpacking and repacking all ttuuxxx' packages one by one!)
example.png
 Description   this is what I see in ~/bunchofpets dir after I run "pets2sfs whatever-1 -noI"
NOTE: the 'noI' on the end is optional, you can use other params for mkaquashfs or none at all
 Filesize   35.51 KB
 Viewed   3701 Time(s)

example.png

pets2sfs-1.tar.gz
Description  extract the script and plonk in your $PATH, suggest /usr/sbin, invoke in a directory with the pets only.. use with caution
gz

 Download 
Filename  pets2sfs-1.tar.gz 
Filesize  813 Bytes 
Downloaded  2092 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
playdayz


Joined: 25 Apr 2008
Posts: 3788

PostPosted: Thu 02 Dec 2010, 21:32    Post subject:  

Mick to the rescue once again. Thanks for the tool.

Now, how cool is this -> ttuuxxx's treasures (6.5MB)

http://diddywahdiddy.net/Puppy500/ttuuxxxs_treasures-1.sfs

beaver, dillo, evince, fileroller, freemeemapplet, gcalctool, gedit, gweled, leafpad, lxtask,moc, mrxvt, murrine, network_tray, ogle-DVD, p7zip,xz, parcellite, Remove-Thumbnails, tar-bz2-extraction-tool

I haven't tested them all.

Donwload the sfs to /mnt/home, then Menu -> System -> Bootmanager config and select ttuuxxx's_treasures.sfs and reboot. There they all are!

Looks like no menu entry in jwm for dillo but it is there and runs.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7781
Location: qld

PostPosted: Thu 02 Dec 2010, 21:38    Post subject:  

smokey01 wrote:
playdayz wrote:
I have collected all of the pet packages ttuuxxx has created for Lucid and now I am stuck. How can I combine all of those pets into one folder to make into an sfs. I need to take the /usr/, /bin, and so forth folders out of the pet and combine them all into single /usr, /bin. etc. folders. Like making one giant pet out of them. I can see how to do it one by one.


I have been suggesting personalised sfs files for some time so I think it's a good idea too.
I know puppy comes the the mksquashfs and dir2sfs scripts but I have not been successful using them to create a sfs.

What I tried was, rename package.pet to package.pet.tar.gz then extract the file to /mnt/home/working, then while in the working type dir2pet name-001 and a sfs file name-001.sfs should be created. I also assumed that you could extract many pets to the working directory before you applied the dir2sfs script.

Maybe some one can explain the error of my ways.

Thanks

Smokey

The script I just posted will do 1 or 100 pets up into an sfs.

I just tried with 1 pet and it worked just fine. Note though that my script deletes any pet.specs or pinstall/puninstall.sh scripts.

Say you wanted to make music player sfs..
(note, these pet names are not correct, for example only)

Where ever you want you make a directory called "mymusicpets" or something.
In that directory you put say, deadbeef-1.pet, songbird-1.pet, aqualung-1.pet and more or less if you want.
The easiest way then is to open that directory in rox then right click and open a terminal.
Now, think of a name for your sfs.. lets call it mymusicsfs-1 .. give it a version number.. it can be anything, doesn't even need to be a number, but for obvious reasons it should be.
Now, in the terminal you opened type:
Code:
pets2sfs mymusicsfs-1

In a matter of seconds the mymusicsfs-1.sfs will appear in your /mymusicpets directory.

Your new sfs is ready to use.

HTH

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 131 of 210 [3149 Posts]   Goto page: Previous 1, 2, 3, ..., 129, 130, 131, 132, 133, ..., 208, 209, 210 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.1540s ][ Queries: 13 (0.0477s) ][ GZIP on ]