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 Sat 20 Dec 2014, 04:45
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Some suggestions that will make Puppy excellent
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 4 [59 Posts]   Goto page: 1, 2, 3, 4 Next
Author Message
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Fri 15 Oct 2010, 08:59    Post subject:  Some suggestions that will make Puppy excellent  

It is always very difficult for linux newbies to use and adapt to linux operating systems. Being easy enough for linux newbies is a major test for every linux OS, and almost all OSes fail in it. I would suggest following improvements which should make the lives of Puppy linux users easy-
1. Desktop drive icons: They should show volume labels along with drive numbers.
2. Grub bootloader config: It should have ability to detect existing operating systems and generate appropriate configurations to boot them. (I think the easiest way to do that is to read existing bootloader config files, or better still edit existing bootloader.)
3. Lucid Puppy menus: Pupdial and Roaring Penguin icons are missing by default. It would be very convenient if they were present, as in Puppy 4.
4. Power buttons: Puppy should be able to shutdown by pressing power button on computer case, like Windows and a few other linux distributions.
5. Power management: It could be better if Puppy could support standby and hibernate modes. Major linux distributions like Ubuntu support it.
6. Window management: Puppy could have a better window manager like Openbox.
7. Packages : All puppies of same major version (e.g. 4.x, 5.x, ...) should have packages and kernels of same versions. This will improve compatibility.
8. Desktop drive icons: These could be locked, so users cannot accidentally delete it and then keep wondering how it disappeared (This mistake is often done by me, so I know it.)

Last edited by akash_rawal on Tue 29 Mar 2011, 02:51; edited 1 time in total
Back to top
View user's profile Send private message 
cb88


Joined: 28 Jan 2007
Posts: 1169
Location: USA

PostPosted: Fri 15 Oct 2010, 19:20    Post subject:  

1. Dunno
2.Thats a tough egg.. ubuntu often doesn't even do that well.
Nowdays theres lilo grub grub2 windows that would need to be supported at least. windows ammounts to chainloading so it is easy.
Linux boot loaders aren't quite as easy as you would acutally have to parse their config files.....in fact it may even be desirable to have a dedicated boot partition if you try out lots of OSes so you can keep the same grub all the time.
3. sounds like a simple oversight to me.

_________________
Taking Puppy Linux to the limit of perfection. meanwhile try "puppy pfix=duct_tape" kernel parem eater.
X86: Sager NP6110 3630QM 16GB ram, Tyan Thunder 2 2x 300Mhz
Sun: SS2 , LX , SS5 , SS10 , SS20 ,Ultra 1, Ultra 10 , T2000
Mac: Platinum Plus, SE/30
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6464
Location: Auckland, New Zealand

PostPosted: Fri 15 Oct 2010, 19:29    Post subject:  

(1) should be possible - someone posted how to use volume labels a couple of months ago.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sat 16 Oct 2010, 09:17    Post subject:  

Quote:
It is always very difficult for linux newbies to use and adapt to linux operating systems. Being easy enough for linux newbies is a major test for every linux OS, and almost all OSes fail in it. I would suggest following improvements which should make the lives of linux users easy


I am sort of an forever newbie in that I even fail to get what a volume label is?

I have frugally installed some 75 different Linux distros and will try out the Latest SuperOS today in frugal install.

I am sure of that I have no idea what a volume label is.

And not even recognixe one unless you pointed it out to me.

You expect much of us newbies

I agree that it would be cool if the install could make educated considerations of already installed OS and suggest what would be the best way to dual boot or trippel or quad or to boot then in a certain order.

To many OS think them should be the sole OS on that computer.

Even Linux guys get very surprised that one want to dual boot.

Wipe it all clean they say and refuse to talk to the dual booter. Smile

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Sat 16 Oct 2010, 13:29    Post subject:  

nooby wrote:
I am sure of that I have no idea what a volume label is.

Volume label is a name that can be given to a partition of a drive.
Microsoft Windows displays volume labels by default in Windows Explorer along with drive letters.
In Puppy also you can see volume labels in GParted (Menu>System>GParted partition manager). It will show them against each partition in "Label" column.
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sat 16 Oct 2010, 13:54    Post subject:  

Thanks, now that you remind me I remember that Ubuntu love UUID and that is not volume but a unique identifucation of a volume?

I got misled by the usage of

Pump up the volume! I want to hear the music.

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
upnorth


Joined: 11 Jan 2010
Posts: 262
Location: Wisconsin UTC-6 (-5 DST)

PostPosted: Sat 16 Oct 2010, 18:30    Post subject:  

i see fdisk -l has a nice tidy output and shows sizes, but blkid reveals the label and the uuid as well as the device and type.
Back to top
View user's profile Send private message Visit poster's website 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11180
Location: Arizona USA

PostPosted: Sat 16 Oct 2010, 21:33    Post subject:  

Quote:
# blkid -h
blkid 1.0.0 (12-Feb-2003)
usage: blkid [-c <file>] [-ghlLv] [-o format] [-s <tag>] [-t <token>]
[-w <file>] [dev ...]
-c cache file (default: /etc/blkid.tab, /dev/null = none)
-h print this usage message and exit
-g garbage collect the blkid cache
-s show specified tag(s) (default show all tags)
-t find device with a specific token (NAME=value pair)
-l lookup the the first device with arguments specified by -t
-v print version and exit
-w write cache to different file (/dev/null = no write)
dev specify device(s) to probe (default: all devices)
# blkid
/dev/loop0: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/sda1: LABEL="CORSAIR" UUID="BC91-2FE5" TYPE="vfat"
/dev/sdb1: LABEL="KINGSTON" UUID="040B-07A3" TYPE="vfat"
/dev/sdc1: UUID="D461-730D" TYPE="vfat"
#

What does it all mean? I'm using quirky 1.3 in a computer with 4 GB of RAM and no hard disk drive, and 2 flash drives plugged into USB ports and an mp3 player also plugged into a USB port to charge.

I hope running blkid didn't cause the mp3 player to lose track of where it was when I turned it off. Sad
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Sat 16 Oct 2010, 23:44    Post subject:  

Flash wrote:
Quote:
# blkid -h
blkid 1.0.0 (12-Feb-2003)
usage: blkid [-c <file>] [-ghlLv] [-o format] [-s <tag>] [-t <token>]
[-w <file>] [dev ...]
-c cache file (default: /etc/blkid.tab, /dev/null = none)
-h print this usage message and exit
-g garbage collect the blkid cache
-s show specified tag(s) (default show all tags)
-t find device with a specific token (NAME=value pair)
-l lookup the the first device with arguments specified by -t
-v print version and exit
-w write cache to different file (/dev/null = no write)
dev specify device(s) to probe (default: all devices)
# blkid
/dev/loop0: TYPE="squashfs"
/dev/loop3: TYPE="squashfs"
/dev/sda1: LABEL="CORSAIR" UUID="BC91-2FE5" TYPE="vfat"
/dev/sdb1: LABEL="KINGSTON" UUID="040B-07A3" TYPE="vfat"
/dev/sdc1: UUID="D461-730D" TYPE="vfat"
#

What does it all mean?

Honestly, I don't know which devices do /dev/loop0 and /dev/loop3 point to. Probably they point to your personal save file and main sfs file.
/dev/sda1, /dev/sdb1 and /dev/sdc1 point to your two flash drives and an MP3 player (maybe not respectively). They all have fat16 or fat32 filesystem.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6464
Location: Auckland, New Zealand

PostPosted: Sun 17 Oct 2010, 03:40    Post subject:  

Quote:
What does it all mean?

Well, this discussion is about making Puppy use the volume label to identify your disks. Only two of yours have a label: "CORSAIR" and "KINGSTON".

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
noryb009

Joined: 20 Mar 2010
Posts: 543

PostPosted: Sun 17 Oct 2010, 08:59    Post subject:  

GParted has the power to change/add labels, look at this picture: http://www.dedoimedo.com/images/computers/2009/gparted-look-1.jpg.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6464
Location: Auckland, New Zealand

PostPosted: Mon 18 Oct 2010, 00:43    Post subject:  

Yes, but what is the point in changing the labels if Puppy doesn't actually use them?
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Mon 18 Oct 2010, 11:26    Post subject:  

I think it will be more useful if we discuss how to implement them.
Now I have no time.
I will start implementing them at April 2011 onwards.

Last edited by akash_rawal on Sat 20 Nov 2010, 11:01; edited 1 time in total
Back to top
View user's profile Send private message 
jemimah


Joined: 26 Aug 2009
Posts: 4309
Location: Tampa, FL

PostPosted: Thu 04 Nov 2010, 23:11    Post subject:  

It shouldn't be too hard. The script you need to modify is /sbin/pup_event_frontend_d.

Modify the following function:

Code:
add_pinboard_func() { #needs ONEDRVNAME, DRV_CATEGORY, FSTYPE
 #ppPATTERN=' label="'"$ONEDRVNAME"'"'
 #v411 rerwin: avoid icon getting duplicated if it is renamed...
 ppPATTERN="/root/.pup_event/drive_${ONEDRVNAME}<"
 [ "`grep "$ppPATTERN" /root/Choices/ROX-Filer/PuppyPin`" != "" ] && return #precaution.
 free_coord
 echo "<?xml version=\"1.0\"?>
<env:Envelope xmlns:env=\"http://www.w3.org/2001/12/soap-envelope\">
 <env:Body xmlns=\"http://rox.sourceforge.net/SOAP/ROX-Filer\">
  <PinboardAdd>
   <Path>/root/.pup_event/drive_${ONEDRVNAME}</Path>
   <X>${COORD_X}</X>
   <Y>${COORD_Y}</Y>
   <Label>${ONEDRVNAME}</Label>
   <Args>${DRV_CATEGORY} ${FSTYPE}</Args>
  </PinboardAdd>
 </env:Body>
</env:Envelope>"  | rox -R
}


Just fix it so the Label is the drive label instead of the drive name. Of course you will need to add the logic to find the label.
Back to top
View user's profile Send private message Visit poster's website 
akash_rawal

Joined: 25 Aug 2010
Posts: 232
Location: ISM Dhanbad, Jharkhand, India

PostPosted: Wed 08 Dec 2010, 07:37    Post subject:    

Somehow I managed to get some time off my busy routine.
So I implemented the first one. Thanks to jemimah and upnorth for information, or else I might never come to know how to do that.
jemimah wrote:

The script you need to modify is /sbin/pup_event_frontend_d.

Modify the following function:

Code:

add_pinboard_func() { #needs ONEDRVNAME, DRV_CATEGORY, FSTYPE
 #ppPATTERN=' label="'"$ONEDRVNAME"'"'
 #v411 rerwin: avoid icon getting duplicated if it is renamed...
 ppPATTERN="/root/.pup_event/drive_${ONEDRVNAME}<"
 [ "`grep "$ppPATTERN" /root/Choices/ROX-Filer/PuppyPin`" != "" ] && return #precaution.
 free_coord
 echo "<?xml version=\"1.0\"?>
<env:Envelope xmlns:env=\"http://www.w3.org/2001/12/soap-envelope\">
 <env:Body xmlns=\"http://rox.sourceforge.net/SOAP/ROX-Filer\">
  <PinboardAdd>
   <Path>/root/.pup_event/drive_${ONEDRVNAME}</Path>
   <X>${COORD_X}</X>
   <Y>${COORD_Y}</Y>
   <Label>${ONEDRVNAME}</Label>
   <Args>${DRV_CATEGORY} ${FSTYPE}</Args>
  </PinboardAdd>
 </env:Body>
</env:Envelope>"  | rox -R
}


I modified it as:
Code:

add_pinboard_func() { #needs ONEDRVNAME, DRV_CATEGORY, FSTYPE
 #ppPATTERN=' label="'"$ONEDRVNAME"'"'
 #v411 rerwin: avoid icon getting duplicated if it is renamed...
 ppPATTERN="/root/.pup_event/drive_${ONEDRVNAME}<"
 [ "`grep "$ppPATTERN" /root/Choices/ROX-Filer/PuppyPin`" != "" ] && return #precaution.
 free_coord
 echo "<?xml version=\"1.0\"?>
<env:Envelope xmlns:env=\"http://www.w3.org/2001/12/soap-envelope\">
 <env:Body xmlns=\"http://rox.sourceforge.net/SOAP/ROX-Filer\">
  <PinboardAdd>
   <Path>/root/.pup_event/drive_${ONEDRVNAME}</Path>
   <X>${COORD_X}</X>
   <Y>${COORD_Y}</Y>
   <Label>$(blkid-name-generator $ONEDRVNAME)</Label>
   <Args>${DRV_CATEGORY} ${FSTYPE}</Args>
  </PinboardAdd>
 </env:Body>
</env:Envelope>"  | rox -R
if [ "$( cat /root/.drvlist | grep $ONEDRVNAME )" = "" ]; then
echo $ONEDRVNAME >> /root/.drvlist
fi
}

Notice a new executable blkid-name-generator in Label tag.
Using a text editor create a script /usr/bin/blkid-name-generator as:
Code:

#!/bin/sh
#Gather blkid output and filter out required device
blkid | grep "$@:" |
while read DEVICE PROPS
do
   echo $PROPS | sed -e "s/ /\;/g" > /tmp/blkid-tmp.txt
   . /tmp/blkid-tmp.txt
   DRLABEL=$( echo $LABEL | sed -e "s/;/ /g" )
   #Generate drive label
   if [ "$DRLABEL" = "" ]; then
      echo "$@"
   else
      echo "$DRLABEL
($@)"
   fi
done
#Handle the situation if blkid doesn't list required device
if [ "$( blkid | grep $@: )" = "" ]; then
   echo "$@"
fi
exit

However the function remove_pinboard_func() in /sbin/pup_event_frontend_d also needs to be edited:
Code:

remove_pinboard_func() { #needs DRV_NAME (name of entire drive)
 #ppPATTERN=' label="'"$DRV_NAME"'.*" '
 #[ "`grep "$ppPATTERN" /root/Choices/ROX-Filer/PuppyPin`" = "" ] && return
 #ALLNAMES="`grep -o "$ppPATTERN" /root/Choices/ROX-Filer/PuppyPin | cut -f 2 -d '"' | tr '\n' ' '`" #'geany
 #for ONEDRVNAME in $ALLNAMES
 #do
  #echo "<?xml version=\"1.0\"?>
#<env:Envelope xmlns:env=\"http://www.w3.org/2001/12/soap-envelope\">
 #<env:Body xmlns=\"http://rox.sourceforge.net/SOAP/ROX-Filer\">
  #<PinboardRemove>
   #<Path>/root/.pup_event/drive_${ONEDRVNAME}</Path>
  #</PinboardRemove>
 #</env:Body>
#</env:Envelope>"  | rox -R
 #done
 #Rewritten to cope with blkid-name-generator
 cat /root/.drvlist | grep "$DRV_NAME" |
 while read ONEDRVNAME
 do
 echo "<?xml version=\"1.0\"?>
<env:Envelope xmlns:env=\"http://www.w3.org/2001/12/soap-envelope\">
 <env:Body xmlns=\"http://rox.sourceforge.net/SOAP/ROX-Filer\">
  <PinboardRemove>
   <Path>/root/.pup_event/drive_${ONEDRVNAME}</Path>
  </PinboardRemove>
 </env:Body>
</env:Envelope>"  | rox -R
 sed -i -e "s/${ONEDRVNAME}//g" /root/.drvlist
 done
}

After that right-click on a drive icon, select "Run Desktop Drive Icon Manager" and then in "desktop icons" tab click "Tick box to erase then redraw and realign existing icons" and then click OK button.

Then restart X for changes to take effect.
And this works very well on puppy 430.

Last edited by akash_rawal on Mon 17 Jan 2011, 14:17; edited 2 times in total
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 4 [59 Posts]   Goto page: 1, 2, 3, 4 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
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.1144s ][ Queries: 13 (0.0062s) ][ GZIP on ]