LinuxVillage

Questions En => Help requests => Discussion démarrée par: ka9yhd le 19 février 2013 à 00:30:31

Titre: Using PCmanFM to view networked computers---- (Solved)
Posté par: ka9yhd le 19 février 2013 à 00:30:31
The other nite I was at my friends house and I was using my laptop running PClinuxOS-OpenBox Bonsai.  I could see all of the computers on my friends network using PCmanFM 1.10, but when I clicked on one to view the contents of the hard drive I receive and error message of:

Not mounted


I am not presented with any way to mount the networked computer.
Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: djohnston le 19 février 2013 à 00:58:45
More details, please. From PCManFM, you are clicking Go > Network Drives. Then you see networked computers. Is it a Linux BSD or Windows network? Do you have samba client installed? If not, do you have nfs installed?

Are you starting PCManFM as root or as a regular user? Here are a couple of threads dealing with samba mounts:
http://ubuntuforums.org/showpost.php?p=10308725&postcount=5 (http://ubuntuforums.org/showpost.php?p=10308725&postcount=5)
http://forums.opensuse.org/english/get-technical-help-here/applications/461354-ldxe-pcmanfm-superuser-doesnt-work-opensuse-11-4-a.html (http://forums.opensuse.org/english/get-technical-help-here/applications/461354-ldxe-pcmanfm-superuser-doesnt-work-opensuse-11-4-a.html)

Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: djohnston le 19 février 2013 à 06:42:04
Okay, go to the OpenSuse forums link posted above and start reading from the fourth post (oldcpu's). To cut to the chase, the next post, from anubisg1, says:

Citer
using "su -" than pcmanfm works without warning.

Try that method, browse to the networked drive, try to mount it, then see if you get a samba prompt for a user and password. Open a terminal.

su -
pcmanfm &
exit

Don't enter exit in the terminal until you have closed pcmanfm.

Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: Taco.22 le 19 février 2013 à 07:15:32
Have you tried using Gigolo?  I know it's a different distro but this Mint thread (http://forums.linuxmint.com/viewtopic.php?f=175&t=68513) on your question might help.  It's LXDE with PCManFM - close!

Also look at melodie's tip (http://linuxvillage.net/index.php?topic=44.0) on using Gigolo.  Gigolo does Windows shares.

EDIT - found this (http://www.pclinuxos.com/forum/index.php?topic=82636.0) on the PCLOS forum.  The suggestion was Pyneighborhood but in the end lead to this link (http://forums.linuxmint.com/viewtopic.php?f=42&t=52144&start=0) on the Mint forums. 
Basically the upshot is that if you're not using Nautilus then your FM - PCManFM, Thunar etc - need a helper to network.  Gigolo and Pyneighborhood are two, and they should both be in your PCLOS repo.
Titre: Re : Re : Using PCmanFM to view networked computers---- Help please
Posté par: patrick013 le 20 février 2013 à 06:58:50
Have you tried using Gigolo?

I've never had success using Gigolo.

It just doesn't see everything.   If not installed at boot.

I've thought it needs a refresh button, where hald would
pick  up new usb's after boot.   Or network items  contacted
after boot as well.   Refresh would run hald and bingo,
everything would be there.   Like fsarchiver probe from
terminal, waiting to be mounted in the Gigolo  gui.

Maybe I'm just stupid about something, I use PcManFM
instead.   But Gigolo does have the potential, but doesn't
perform up to it for me.   Could be a great "mount tool"  .

Perhaps run hald from root terminal, could refresh PcManFM
as well.

Oh well.

Patrick013
Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: Taco.22 le 20 février 2013 à 07:15:06
Gigolo needs to be started, either from apps menu or in autosart, and then connected to the remote server.  It can bookmark a remote server if it is a regular.  You launch Gigolo, you make the connection, then you view that connection through a FM nominated in Gigolo's prefs.  If you minimize Gigolo and close the FM, you need to bring Gigolo back up to reopen the FM.

This is where I might have another play around with Nautilus - it auotmounts network shares.  It's just a bit of a handful in a minimal setting such as OB!!
Titre: Re : Re : Using PCmanFM to view networked computers---- Help please
Posté par: djohnston le 20 février 2013 à 20:57:18
This is where I might have another play around with Nautilus - it auotmounts network shares.  It's just a bit of a handful in a minimal setting such as OB!!

Multiple dependencies!
Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: Taco.22 le 21 février 2013 à 00:08:01
Citation de: djohnston
Multiple dependencies!

Yeah, last time I tried out Nautilus in Openbox I needed a big stick to try and beat it into shape and stop it trying to take over the world.  And talk about a dependency issue!!  Still, time is a great healer and I am almost ready to go through the pain again - this time with a bigger stick!!
Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 21 février 2013 à 15:52:47
Hi ka9yhd,

Wouldn't it be more simple to install Nautilus in your PCLOS Openbox ?

Titre: Re : Re : Using PCmanFM to view networked computers---- Help please
Posté par: djohnston le 21 février 2013 à 22:55:17
Hi ka9yhd,

Wouldn't it be more simple to install Nautilus in your PCLOS Openbox ?

And/or try gigolo, as Taco.22 has suggested?
Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 22 février 2013 à 01:13:11
The problem with gigolo is that it is outdated and no more maintained, as far as I know. Nautilus might provide much better results.

Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: Taco.22 le 22 février 2013 à 02:05:54
Citer
The problem with gigolo is that it is outdated and no more maintained, as far as I know.

The fact that something may not currently be under active development doesn't mean that it won't work properly, depending on how complicated it is.  Gigolo is simply a front end, a GUI, for GIO/GVFS.  The last release was in 2010 but a number of distros still offer it as their default network manager - because it just works.

When you install it you also need to install gvfs.  Make sure that includes gvfs-backends - in Debian that is a separate download.  Easiest way to run it is to autostart it and have it in the system tray.  Click on it, set up the connection then open the session in your file manager.  Gigolo default in prefs is "gvfs-open" - if that doesn't fire up the FM then edit the pref with the name of the FM.  Thunar needs its name, Spacefm uses gvfs-open - don't know what PCManFM needs.

Citer
Nautilus might provide much better results.
Nautilus is a whole other kettle of fish - I'm playing with it now and hope to have a test ISO posted soon so people can try it out.
Titre: Re : Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 22 février 2013 à 02:29:26
I'm playing with it now and hope to have a test ISO posted soon so people can try it out.

We will have to recruit a few more testers. :)

Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 05 mars 2013 à 22:53:57
Hi Robert,

Please copy/paste here the content of you file /usr/share/applications/nautilus.desktop and we will be able to provide you with a modified one which will show in the menus. I think there is a line "NotShowIn" or, "ShowOnlyIn" which bothers and has to be tweaked.

Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 06 mars 2013 à 02:10:24
Hi,

Just open a console and look what you find, this way:

ls /usr/share/applications/nautilus<tab>

where <tab> is when you press the tab key of the keybaord. Or you can also type:

ls /usr/share/applications/nautilus*

and if files having a name which starts with "nautilus", the shell in the console will complete the name. Then bring back the result here.

If you find the nautilus*.desktop file, you can then do in console:

cd /usr/share/applications/
then type the name of the text editor and give the file name as argument. ie:

geany nautilus*
then it should open it in geany and you just have to copy paste the content. (using the console is often less confusing than looking a several dozen icons).

/you can't go into "/usr/share/applications/nautilus.desktop" because nautilus.desktop will be a file, not a folder.



Titre: Re : Re : Using PCmanFM to view networked computers---- Help please
Posté par: djohnston le 06 mars 2013 à 14:07:12
If I enter /usr/share/applications/nautilus.desktop into the file manager I am presented with an error message:

"The specified directory is not valid"

The file manager is correct. /usr/share/applications/ is the directory and nautilus.desktop should be a file within that directory, assuming that nautilus was installed correctly by Synaptic.

In additions to melodie's directions, you could use the locate database to find all nautilus files. Open a terminal.

su -
updatedb
exit
locate nautilus | grep .desktop
Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 07 mars 2013 à 13:24:05
No it doesn't. Can you try to redo your post ?

Open your file with geany, I believe it is installed. Do in console:

geany /usr/share/applications/nautilus.desktop //if this is the exact name for the file, if not correct it.

Then in the menus of Geany go to Edit>Select all ; then Edit > Copy ; then in the editor of the forum, right-clic and paste. Once done, select all the text you just pasted in the editor of the forum and click to code button just after, so that the 2 code tags are there the start code tag and the end code tag.

example text
Quote my post if you need to see the start tag and the end tag...

Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 07 mars 2013 à 14:27:16
Your file is incomplete.

Can you show me just this from this file: a line where it says "OnlyShowIn=XYZ" where "XYZ" can be names of desktops, and "Category=" with whatever is after the sign "=" ?

Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 07 mars 2013 à 20:17:34
Here is your guilty line:

Citer
OnlyShowIn=GNOME;

you will have to comment it:

Citer
#OnlyShowIn=GNOME;

and perhaps it would be a good idea to copy it (as user) into your home under:
the  ~/.local/share/applications

(If the directory applications does not exist in your .local/share directory, then you will have to create it).

This way you will have the entry in the menus, and you will also have it lasting even if nautilus is updated, in the future. (Otherwise an update would overwrite your change).

Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 07 mars 2013 à 22:26:48
Hi,
The sign "~/" stands for "/home/yourself", which for you is "/home/robert", up to there nothing wrong.

I'll have a closer look at this issue you are having and will tell you what I am finding.

Titre: Re : Re : Using PCmanFM to view networked computers---- Help please
Posté par: djohnston le 07 mars 2013 à 23:17:37
Exec=nautilus
Icon=system-file-manager
Terminal=false
Type=Application
StartupNotify=true
NoDisplay=true
OnlyShowIn=GNOME;
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=2.32.2.1
X-GNOME-Autostart-Phase=Desktop
X-GNOME-Autostart-Notify=true
X-GNOME-AutoRestart=true
X-GNOME-Provides=filemanager
AutostartCondition=GNOME /apps/nautilus/preferences/show_desktop
Encoding=UTF-8
X-Desktop-File-Install-Version=0.11
Categories=X-MandrivaLinux-System-FileTools;

It seems to have worked at copy/ paste this time using FireFox 19.  The last several attemps were while I was using Chromium.

Now that you've commented the line OnlyShowIn=GNOME; (should now be #OnlyShowIn=GNOME), comment the line NoDisplay=true, so that it reads #NoDisplay=true. The NoDisplay line tells the system not to show the icon. You can also delete both lines entirely, if you wish.

If you have a problem with where the item shows in your menu, post the Categories= line.

EDIT: The NoDisplay= line defines whether the item is displayed in the system menu or not. I suppose you could also set it to NoDisplay=false, but I've always just deleted the line if I want the menu item shown.

Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 08 mars 2013 à 00:44:12
Hi,

I wonder where to find nautilus in pclos actually ? I have booted the vbox bonsai I have, updated it, and the package manager does not find any nautilus ?   :o

Titre: Re : Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 08 mars 2013 à 01:38:48
I did a search for "nautilus"  and found it.

Please tell me more, where did you found it and how did you install it? If I know I could perhaps help you better.

Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 08 mars 2013 à 08:19:32
Which one is the repos configured in you system ?
Titre: Re : Re : Using PCmanFM to view networked computers---- Help please
Posté par: djohnston le 08 mars 2013 à 20:26:01
But still nothing showing in the menus.

If you have a problem with where the item shows in your menu, post the Categories= line.

Titre: Re : Re : Using PCmanFM to view networked computers---- Help please
Posté par: djohnston le 08 mars 2013 à 20:53:00
Look in the above post where you copied and pasted from what I posted  ;).  The last line is:

Categories=X-MandrivaLinux-System-FileTools;

Hmmm. It should be showing in the menu in the File Tools section. Try changing the line to:

Categories=FileManager;X-MandrivaLinux-System-FileTools;

Reboot so that the Openbox menu will be sure to be repopulated. If that doesn't work, you'll need to clear the cache in your home directory.


Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: djohnston le 08 mars 2013 à 21:13:58
One other possibility comes to mind. Is there a TryExec= line in the desktop file? If so, comment or delete the line. If all else fails, use a file manager to browse to ~/.cache/openbox/sessions/. Delete any files in there, but not the directory itself. Then logout and login again. I can't remember how the version you're using is set up. The menu cache may repopulate as soon as you log in again, or it may take up to five minutes or so.

EDIT: If it were me, I'd also get rid of the following lines:

X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=nautilus
X-GNOME-Bugzilla-Component=general
X-GNOME-Bugzilla-Version=2.32.2.1
X-GNOME-Autostart-Phase=Desktop
X-GNOME-Autostart-Notify=true
X-GNOME-AutoRestart=true
X-GNOME-Provides=filemanager
AutostartCondition=GNOME /apps/nautilus/preferences/show_desktop

You're not running a Gnome desktop, and you don't need them for Openbox.
Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: djohnston le 08 mars 2013 à 21:58:55
Cool.
Titre: Re : Using PCmanFM to view networked computers---- Help please
Posté par: melodie le 08 mars 2013 à 22:49:54
I am happy to know that now it is solved.



Titre: Re : Using PCmanFM to view networked computers---- (Solved)
Posté par: melodie le 13 mars 2013 à 01:11:31
It is usually a good one, fast and regularly updated.