Page 3 of 4

Posted: Mon 28 Jul 2008, 15:51
by MU
edit /usr/bin/pcmanfm

The last line,
from:

Code: Select all

pcmanfm.bin "$@" 2>/dev/null &
to:

Code: Select all

pcmanfm.bin "$@"  &
Now you should see errors by typing
pcmanfm

if you look at that script you see, that it runs gam_server and other things.
If they do not meet the library-requirements, there might be problems.

Mark

Posted: Mon 28 Jul 2008, 17:57
by Eastern Counties
Thanks for your reply, Mark. I did as you suggested and got a warning that I was missing libdbus-1.so.3. Since this wasn't amongst the other libdbuses in /usr/local/Pcmanfm/lib/ I made a symlink to libdbus-glib-1.so.2.1.0 called libdbus-1.so.3. However, when I used your script again, it still said that libdbus-1.so.3 was missing.

John

Posted: Mon 28 Jul 2008, 18:06
by Eastern Counties
My error - i mistyped the names of the linkk and target.

OK, with the symlink to libdbus-glib-1.so.2.1.0 called libdbus-1.so.3, I get a different error message:
pcmanfm.bin: symbol lookup error: /usr/local/Pcmanfm/lib/libdbus-glib-1.so.2: undefined symbol: dbus_connection_unref

Thanks again

John

PS How do I copy and paste error messages from a terminal?

Posted: Mon 28 Jul 2008, 18:21
by MU
PS How do I copy and paste error messages from a terminal?
Select with the mouse.
Middle click in the forum-message to paste.
Or send the output to a textfile:
for example:
ls -al 2>&1 >/root/test.txt


I attach the dbus lib from my current testsystem.
If it does not work, I could add an older one.

Extract in /usr/bin/

Mark

Posted: Mon 28 Jul 2008, 19:39
by Eastern Counties
Many thanks, Mark, that seems to have done the trick. I get a repeated error message as below (thanks also for tip on how to copy and paste):

** (pcmanfm.bin:26342): WARNING **: Failed to connect to the HAL daemon: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
#
** (pcmanfm.bin:26342): WARNING **: mime-type inode/directory has no desc


But the file manager opens anyway.

Thanks again

John

Posted: Mon 28 Jul 2008, 21:26
by MU
Fine :)
The lib is just required, because Pcmanfm was compiled with support for it.
But it is unused, as you have no full dbus on your Puppy.

In Muppy 0084alpha I just added:
dbus
hal
udev

3 daemons with *many* configfiles, that also slow down startup slightly..
As a result, Pcmanfm now shows all drives in the left pane (so you will not need hotpup, mut or pmount).

"Nice to have" but not really important.
I added the daemons for another reason, because more and more programs use it.
This makes it easier to use Gnome and KDE.
It was/is somewhat painfull to set these daemons up, I still get errors from some programs, though Gnome works ok meanwhile.
Because it is so difficult, I want to have them already installed, so that Muppys users don't have to bother with this issue.

Mark

Posted: Tue 29 Jul 2008, 14:58
by Eastern Counties
And what a neat little file manager PCMan is ...

Posted: Wed 01 Oct 2008, 00:26
by brymway
After reading thru and adding all the libs and dependencies I finally got pcman to work. I got hooked on it messing around with Muppy and when I put my normal dingo in I just had to have it. Well, I've upgraded to 4.1 alpha 7 and everything was hunky dory. But as soon as I got pcman working, the 'mounting' icons on the bottom of the screen don't work. I used to be able to click them, the computer would mount the drive and open the contents window. Now when I click any of the drives nothing happens. Is this linked to using the pcman filer? Along those same lines, is it possible to have the drives listed on the left window like on Muppy?

I know, two questions is a no-no but I am hoping they are closely related.

Posted: Wed 01 Oct 2008, 01:22
by MU
the mount icons depend on dbus, hal, and udev.
Puppy 4 has udev, but not hal and dbus as far as I know, because Barry developed an own eventmanager, that replaces them.

It was somewhat difficult to get all three working for Muppy, so I cannot give quick instructions for dingo.

Hotpup (the icons that display drives on the desktop), is also modified by Barry for dingo.
It seems that without a closer look at the code, at moment we must state, that the different eventsystems are incompatible.

It would require some programming to fix this, but I currently am busy in adding new Kernels to Muppy, so I cannot look at that issue.

One thing you can try:
edit the script that launches pcmanfm (/usr/bin/pcmanfm).
try to comment the line:

Code: Select all

/usr/local/Pcmanfm/lib/gam_server &
to

Code: Select all

#/usr/local/Pcmanfm/lib/gam_server &
Maybe that fixes the hotpup issue.

Mark

Posted: Wed 01 Oct 2008, 02:37
by brymway
Nope, that didn't do it. Thanks for the help anyway. I can wait until later. Keep up the great work with Muppy. I like it.

Posted: Mon 06 Oct 2008, 15:18
by droope
Hi

Have an issue, couldn't solve it reading the post.

pcmanfm.bin: error while loading shared libraries: libdbus-glib-1.so.2: cannot open shared object file: No such file or directory


Perhaps you could help me? :)

Thanks.

Dependency check

Posted: Mon 02 Feb 2009, 13:50
by Hayig2000
These dependencies required by Pcmanfm package are missing:
File /usr/local/Pcmanfm/lib/libdbus-glib-1.so.2.1.0 has these missing library files:
libdbus-1.so.3
File /usr/local/Pcmanfm/lib/libhal-storage.so.1.0.0 has these missing library files:
libdbus-1.so.3 libhal.so.1
File /usr/local/Pcmanfm/lib/libhal.so.1.0.0 has these missing library files:
libdbus-1.so.3
File /usr/bin/pcmanfm.bin has these missing library files:
libfam.so.0 libdbus-glib-1.so.2 libhal-storage.so.1 libhal.so.1 libdbus-1.so.3

The PETget package manager does not know what package/s has/have these libraries.

Using puppy 4.1.2

Posted: Mon 02 Feb 2009, 16:07
by MU
some of them are in /usr/local/Pcmanfm/libs/.
Petget just does not see them, as they are visible only for the pcmanfm startscript.
Those not there should be available in the Puppy 3 repository.
It is in Petget in the Puppy 3 tab, or search them here:
ftp://ibiblio.org/pub/linux/distributio ... ackages-3/

I think you only need:
ftp://ibiblio.org/pub/linux/distributio ... -1.0.2.pet

Hal is not explicitly needed I think.
Mark

Posted: Mon 02 Feb 2009, 16:19
by MU
I attach HAL from Muppy 0084 (Slackware 12.1).
Install it ONLY in a system, that has no HAL yet. Do not use it in Newyearspup/wows puplet.
I did not try it in Puppy 4.12, so backup your savefile first.
Mark

Posted: Mon 02 Feb 2009, 18:18
by magerlab
i've installed pcman 0.5 from slackware on puppy 4.1.2
works fine but complains that it can not connect to hal daemon

is there a way to set up hal to work as in unnamed pupplet?

Posted: Mon 02 Feb 2009, 18:28
by MU
to use hal and dbus, copy from ultrapup:

/etc/rc.d/rc.hald and rc.messagebus.
If you don't have it, I can attach them.

Then search /etc/rc.d/rc.sysinit for:

Code: Select all

#v408 only needed for 2.6.21.7, as 2.6.25.x loads these automatically...
#v408 kirk: Check for laptop battery...
modprobe battery
if [ -d /proc/acpi/battery ]; then
 results="`find /proc/acpi/battery -mindepth 1 -type d`"
 if [ ! -z "$results" ]; then
  modprobe ac
  modprobe thermal
  modprobe fan
 else
  rmmod battery
 fi
fi
Add afterwards:

Code: Select all

echo -n " * Starting system message bus" >/dev/console
/etc/rc.d/rc.messagebus start
echo -e "\\033[72G\\033[1;32mdone\\033[0;39m" >/dev/console #green [done] msg.
echo -n " * Hardware abstraction layer" >/dev/console
/etc/rc.d/rc.hald start
I have not tried, if this is sufficient, but it could be.
In Muppy, I used an extrascript in /etc/init.d/, that ran these commands.
Important is to run dbus before hal, if I remember well.

Mark

Posted: Tue 31 Mar 2009, 06:16
by macrocephalic
It was a bit of a pain to get it all working (getting all the libs etc) but now that it's working I'm very happy.

ROX is such an inadequate file manager it's disgusting - but this makes things a lot easier to use i.e.
-full path displayed in editable address bar
-tabs
-double click open (I have a touchpad with tap-scroll and single click is really clumsy)
-start typing file name to seek to it.

The only thing that doesn't seem to work straight off yet is the drive icon on the desktop (does nothing). I can manually change the link to run /usr/bin/pcmanfm with the arguments /root/.pup_event/drive_sda1 - but of course this won't fix the ongoing problem when I plug removable drives in etc.

Thanks MU

Posted: Tue 31 Mar 2009, 07:09
by magerlab
i think you can try to use pup_event manager for xfce 4 pets made by gray see here
http://puppylinux.asia/tpp/NOP/
it puts icons into desktop folder so they are visible in pcmanfm also

Posted: Wed 01 Apr 2009, 03:58
by macrocephalic
That site needs a username and password.

Also I might not be understanding correctly - but I'm still using the ROX desktop and just using PCmanfm for the file manager now.

Posted: Wed 01 Apr 2009, 04:43
by magerlab
name puppy
pswd linux

i thought tht you use pcmanfm to provide desktop, sorry.