ArchPup - First Puppy with pacman for installing apps

A home for all kinds of Puppy related projects
Message
Author
simargl

#141 Post by simargl »

Scooby Nice colors man :lol: And yes messagebus start and stop work for you, something else must be problem.
I installed batti to see what will happen and like you also got error only different:

Code: Select all

[root@archpup ~]# batti
 
Neither UPower nor DeviceKit.Power could be initialized!
This can have multiple reasons.
Here is the error for UPower:

    org.freedesktop.DBus.Error.Spawn.ChildExited: Launch helper exited with unknown return code 1

And this is the error for DeviceKit.Power:

    org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.DeviceKit.Power was not provided by any .service files
So it's just one more annoying gtk/python/ application.
If you want my suggestion try qbat from AUR (package is only 200 KB). If you don't want to compile let me know, and I will upload package for you later.

stifiling
Posts: 388
Joined: Sun 30 Dec 2007, 03:56

#142 Post by stifiling »

Scooby,

puppy default battery monitor appears to work just fine. i pulled it right out of precise's /root/Startup folder. if you want to try it just delete the .gz on the end. you might also have to first run the command:

Code: Select all

chmod +x /path/to/powerapplet_tray
Attachments
powerapplet_tray.gz
(11.82 KiB) Downloaded 189 times

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#143 Post by Scooby »

simargl wrote: So it's just one more annoying gtk/python/ application.
If you want my suggestion try qbat from AUR (package is only 200 KB). If you don't want to compile let me know, and I will upload package for you later.
Agreed lets forget it!


Stifling

I tested powerapplet_tray

Code: Select all

/powerapplet_tray: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
My head is kind a squared from hacking now so have to leave i for now

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#144 Post by Scooby »

I am trying to create a puppy iso

[20:48 root@archpup tmp] > mkisofs -D -R -o /mnt/sdb1/_ISO/Linux/AUTO/ArchPup-edited.iso -b /tmp/ArchPup/isolinux.bin -c /tmp/ArchPup/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table /tmp/ArchPup/
call to search_tree_file with an absolute path, stripping
initial path separator. Hope this was intended...
genisoimage: Uh oh, I cant find the boot catalog directory '/tmp/THINSlacko-5.3.3t-SCSI'!


What is boot catalog, I thought it was were I have the files to go into ISO resides.

Any input into making ISO?

stifiling
Posts: 388
Joined: Sun 30 Dec 2007, 03:56

#145 Post by stifiling »

Scooby wrote:I tested powerapplet_tray

Code: Select all

/powerapplet_tray: error while loading shared libraries: libpng12.so.0: cannot open shared object file: No such file or directory
tip i learned from mavrothal:

Code: Select all

ln -s /usr/lib/libpng15.so.15.13.0 /usr/lib/libpng12.so.0
puppy's battery monitor should run after that.
Scooby wrote:Any input into making ISO?
i use isomaster and edit an already working iso...deleting the files out that i don't want, and replacing them with the ones that i do. and saving as a new iso.

Code: Select all

pacman -S isomaster

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#146 Post by mavrothal »

Looking at Scooby's quest for a battery monitor and realizing that (old and new) laptops are both widespread and usually "single user" machines (ie easier to run single user OSs or as root), I would suggest to include a battery monitor tray app (rather than conky module) in 132.
If not the puppy powerapplet then some other small arch app with minimal dependencies.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

anikin
Posts: 994
Joined: Thu 10 May 2012, 06:16

battery powerapplet

#147 Post by anikin »

From Barry's blog: http://bkhome.org/blog/?viewDetailed=01837
powerapplet_tray 2.3
There have been a couple of reports of my battery tray applet 'powerapplet_tray' not working.

I had expected that the path to examine would be /proc/acpi/battery/BAT0/ or /proc/acpi/battery/BAT1, however the base directory can have other names. Forum member 'peebee' has reported this:

/proc/acpi/battery/C23B/

I have fixed this and bumped the version number to 2.3. Testers are welcome.

Note that it uses the new yaf-splash (gtkdialog-splash) to put up an info box when clicked on. If you want it to work with the old yaf-splash, you will need to modify the source.

PET here (compiled in Wary, with GTK 2.20.1):
http://distro.ibiblio.org/pub/linux/dis ... ay-2.3.pet

Source here:
http://bkhome.org/sources/alphabetical/p/
Us#er: pu#p#p#y Pas#swo#rd: li#n#u#x

Posted on 7 Oct 2010, 7:33
perhaps, someone will want to compile it in Archpup.

Sage
Posts: 5536
Joined: Tue 04 Oct 2005, 08:34
Location: GB

B-I-G

#148 Post by Sage »

My view is that BIG is just foot-shooting. There are already plenty of BIG Puppies. There are lots of faults and shortcomings with ArchPup; its only redeeming feature at present is small and fast. BIG is for folks who are too blinkered at best, idle at worst, to achieve K.I.S.S. Small will always remain beautiful. E = mc^2 , also think Schrodinger, Dirac and Heisenberg (can't seem to transpose their equations into this box, but, as you'll already know, they are small!). Writing in assembler would earn more Brownie points and be a more worthy contribution to humanity.

simargl

#149 Post by simargl »

Here are the latest changes in ArchPup:
HARDWARECLOCK="UTC" added to /etc/rc.conf
new deamon script /etc/init.d/hwclock with this content

Code: Select all

#!/bin/sh
. /etc/rc.conf

case $HARDWARECLOCK in
	UTC) HWCLOCK_PARAMS="--utc";;
	localtime) HWCLOCK_PARAMS="--localtime";;
	*) HWCLOCK_PARAMS="";;
esac

case "$1" in
	stop)
		hwclock --adjust $HWCLOCK_PARAMS
		hwclock --systohc
		;;
esac
What will this thing do - Just set hardware clock to user selected "UTC" or "localtime", and sync
system time to hardware clock on system reboot. Also I removed about 20 or more useless
files from /etc, see there https://bitbucket.org/simargl/archpup if you are interested.
What's your opinion. Is this OK?

For powerapplet I would suggest that someone make PKGBUILD and upload it to AUR,
so everyone can use it. Personally I don't need battery monitor as I don't have a laptop,
but for others adding it to AUR seems like good idea.

@Sage: Would you be so kind and explain with some more details what are "lots of faults and
shortcomings with ArchPup". Thanks.

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#150 Post by mavrothal »

simargl wrote:Also I removed about 20 or more useless
files from /etc, see there https://bitbucket.org/simargl/archpup if you are interested.
What's your opinion. Is this OK?
Are you sure that all kind of connections, firewalls and protocols will work without /etc/dhcpcd.conf, protocols and services?
simargl wrote:For powerapplet I would suggest that someone make PKGBUILD and upload it to AUR,
so everyone can use it. Personally I don't need battery monitor as I don't have a laptop,
but for others adding it to AUR seems like good idea.
But do you intend to provide a battery monitor with 132, regardless if powerapplet_tray will be in AUR or not?
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

simargl

#151 Post by simargl »

As you know Puppy Linux uses HWCLOCK="localtime", but in Arch Linux announcement says: We now strongly
discourage the use of HWCLOCK="localtime", as this may lead to several known and unfixable bugs.
On the other side, if HWCLOCK is set to UTC then Windows would not show the time correctly. I will change it to localtime, to avoid possible complaints.
mavrothal,
those files you mentioned are all provided by Arch packages

Code: Select all

[root@archpup ~]# spkg file dhcpcd.conf
Package                   File
dhcpcd                    /etc/dhcpcd.conf
pwireless2                /usr/local/Pwireless2/dhcpcd.conf
[root@archpup ~]# spkg file protocols  
Package                   File
iana-etc                  /etc/protocols
[root@archpup ~]# spkg file services 
Package                   File
iana-etc                  /etc/services
libreoffice               /opt/libreoffice3.6/program/services/services.rdb
libreoffice               /opt/libreoffice3.6/ure/share/misc/services.rdb
libreoffice               /opt/libreoffice3.6/ure/lib/stocservices.uno.so
qt                        /usr/include/Qt/qdesktopservices.h
qt                        /usr/include/QtGui/qdesktopservices.h
I will add powerapplet_tray if it can use Faenza theme, so tray icons will look nice and consistent.

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#152 Post by mavrothal »

simargl wrote:As you know Puppy Linux uses HWCLOCK="localtime", but in Arch Linux announcement says: We now strongly
discourage the use of HWCLOCK="localtime", as this may lead to several known and unfixable bugs.
On the other side, if HWCLOCK is set to UTC then Windows would not show the time correctly. I will change it to localtime, to avoid possible complaints.
But then a "proper" linux distro shows the wrong time till you sync the clock and from what I can see 55% of the Archpup downloads are from Linux machines...
simargl wrote:I will add powerapplet_tray if it can use Faenza theme, so tray icons will look nice and consistent.
I do not really care which battery monitor will be included. I just believe that any distro should (does) include one OOTB.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#153 Post by Scooby »

stifiling wrote:

Code: Select all

ln -s /usr/lib/libpng15.so.15.13.0 /usr/lib/libpng12.so.0
Works now! Thanks, Still I like batterymon the best.

Scooby likes quests :twisted:
stifiling wrote: i use isomaster and edit an already working iso...deleting the files out that i don't want, and replacing them with the ones that i do. and saving as a new iso.

Code: Select all

pacman -S isomaster
I want to create a script that works across different puppies so I will try to make it work
with makeisofs. But I will have a look at isomaster.

simargl

#154 Post by simargl »

mavrothal wrote:I do not really care which battery monitor will be included. I just believe that any distro should (does) include one OOTB.
Battery monitor is already included, it's called conky. I thought powerapplet was some 'special wish', if not then it's fine.
Image

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#155 Post by mavrothal »

simargl wrote:Battery monitor is already included, it's called conky. I thought powerapplet was some 'special wish', if not then it's fine.
mavrothal wrote:I would suggest to include a battery monitor tray app (rather than conky module) in 132
The reason you want a tray applet for battery and not conky is that laptops have a small screen usually filled by whatever you are using. You do not want to start closing/moving windows while you are working on battery power to check your battery levels and time left to work on it.
Is a basic usability thing but if you think is a luxury... so be it.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

Scooby
Posts: 599
Joined: Sat 03 Mar 2012, 09:04

#156 Post by Scooby »

simargl wrote:
mavrothal wrote:I do not really care which battery monitor will be included. I just believe that any distro should (does) include one OOTB.
Battery monitor is already included, it's called conky. I thought powerapplet was some 'special wish', if not then it's fine.
...
Is that a progressbar beneath "ACPI Battery: Charged"

Do you have the script for it?

User avatar
mavrothal
Posts: 3096
Joined: Mon 24 Aug 2009, 18:23

#157 Post by mavrothal »

Scooby wrote: Is that a progressbar beneath "ACPI Battery: Charged"

Do you have the script for it?
I do not know exactly for the specific one but this (and the link therein) should help.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==

Sage
Posts: 5536
Joined: Tue 04 Oct 2005, 08:34
Location: GB

#158 Post by Sage »

@Sage: Would you be so kind and explain with some more details what are "lots of faults and
shortcomings with ArchPup". Thanks.
Assumed it'd be apparent from foregoing + my own earlier comments? Not necessarily to be taken as personal admonishment (are you American? - they don't seem to have the same appreciation of the language and its usage as do the Brits), just that the gestation of all Puppies has been and continues to be fraught - as evident from BK's blog, inter alia.

simargl

#159 Post by simargl »

I don't have conky config from that screenshot, but you may look here http://vaipui.wordpress.com/2012/06/10/conky-battery/
Sage, my nationality is actually Serbian and I can hardly communicate in English at all, but I try :wink:.
Mine short messages are sometimes interpreted as I am being mad or something and I'm sorry about that.
So let's return to this subject - for you ArchPup shortcoming is that in radio list is missing BBC, or something more.
I am asking with best intention of improving for future release

ciento
Posts: 181
Joined: Sat 18 Sep 2010, 02:53

#160 Post by ciento »

I never noticed any flaws in your english. If there were,
compare it to the famous little mole on Cindy Crawford :lol:

Understanding linux, Serbian and English, is quite a feat!

Post Reply