Tagged: pcmanfm automount polkit
- This topic has 16 replies, 4 voices, and was last updated Jun 15-10:53 am by amp.
-
AuthorPosts
-
June 12, 2020 at 3:52 pm #37312Member
amp
Hi,
I’m new to antix and have been working on a remaster of antix 19 base.
I have installed jwm pcmanfm gvfs and udiskie and policykit-1-gnome. I still have installed udisks2 and polkit-1. Also, I removed antix automount script and udevil to avoid conflicts. I can see all my devices (partitions and USB pendrive) in /Media, and I can access them with all applications (say geany, etc). However, they do not appear in pcmanfm side menu. I assume it is a polkit permission problem. I still have polkit original settings. Also, If I navigate with pcmanfm to /media, I can access the USB volume, but very slowly. And it does not mount any of the HD partitions.
Any pointer as to where look for a solution?Thanks.
- This topic was modified 2 years, 10 months ago by amp.
- This topic was modified 2 years, 10 months ago by amp.
June 12, 2020 at 10:23 pm #37322Memberamp
::A little update,
I have checked /etc/fstab, and it seems that all the volumes are listed there, which might be what prevents pcmanfm from accessing them, since pcmanfm removes mounted volumes from places.
The fstab entries indicates “made by make-fstab”.
I have already removed the automount package and I couldn’t figure out how these entries were generated.
Is there some other init script which would do that and that I should disable?June 13, 2020 at 12:12 am #37325ModeratorBobC
::Have you considered using SpaceFM instead of PCManFM? Because antiX comes with it, I think your odds on integrating more easily would be better.
I’m not saying anything against PCManFM, but I will say when I load a distro that uses it, I always end up loading SpaceFM in addition or as a replacement, and the area where it shines by comparison for me was device mounting.
June 13, 2020 at 2:04 am #37329Memberamp
::Yes, spacefm is/was installed in antix and worked fine. But I’m not used to it, I find it distracting, too many options. On debian, pcmanfm + gvfs + udisks2 works fine out of the box, but here there must be a little hitch that I haven’t figured out yet.
June 13, 2020 at 2:42 am #37330Forum Admin
anticapitalista
::This person managed to get it to work.
https://forum.mxlinux.org/viewtopic.php?f=40&t=53899
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
June 13, 2020 at 6:53 am #37363ModeratorBobC
::Yes, spacefm is/was installed in antix and worked fine. But I’m not used to it, I find it distracting, too many options. On debian, pcmanfm + gvfs + udisks2 works fine out of the box, but here there must be a little hitch that I haven’t figured out yet.
Yes, I thought that too at first, and initially I would install PCManFM because I had it on Debian and Knoppix and other Linux versions, and was familiar with it, but figured out over time that the extra complexity might have been added or included to make up for the lacking’s in the simpler file managers. PCManFM did work, but SpaceFM has a lot more features, but they are actually USEFUL.
Did you watch Dolphin Oracle’s video tutorial on SpaceFM? I picked up quite a bit from that. No turning back after that. The only lacking that made me keep another FM online was search usefulness trying to find the right icons for things, where surprisingly XFE was the winner.
June 13, 2020 at 7:35 am #37365Member
Xecure
::In the same way I prefer fluxbox, amp prefers pcmanfm. Good thing there are many choices.
For pcmanfm, I tried to install it on a live USB without persistence, but I believe I need to save changes and reboot to make some stuff launch at start.
Try apt autoremove first, and maybe reinstall gvfs, udisks2 and udiskie.Other posts on the antiX forum suggest installing gvfs-backends, so you could try that too.
7.you can install pcman-fm with the package-installer, control-centre ->system ->package-installer ->File Managers
Afaik, pcmanfm needs the gvfs-backends , which you should install, tooWhile I was testing, before restarting, I got all drives to display on pcmanfm by executing dbus-launch pcmanfm. Some of the packages needed should auto launch pcmanfm with dbus support after rebooting.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.June 13, 2020 at 1:03 pm #37385Memberamp
::Hello Anticapitalista,
I have tried those settings, but they did not work. Maybe because this person seems to have worked from antix core up, whereas I worked from antix base down. I suspect the presence of the fstab entries, which result in the devices being mounted on /media, might block pcmanfm automounting.June 13, 2020 at 1:52 pm #37389Forum Admin
anticapitalista
::Did you install gvfs-backends, like Xecure suggests?
Philosophers have interpreted the world in many ways; the point is to change it.
antiX with runit - leaner and meaner.
June 13, 2020 at 2:37 pm #37394Memberamp
::I have tried installing gvfs-backends, but it didn’t change anything. It shouldn’t be needed anyway or, at least, I never used it on debian.
I’d like to know how antix rewrites /etc/fstab and automount all volumes in /media accordingly, so that I could disable this function. I have already uninstalled automount and also made a test with antix-core, which does not list automount among the installed packages, and still antix manages to rewrite /etc/fstab entries and mounts all volumes on /media.June 13, 2020 at 3:14 pm #37410Member
Xecure
::I will try installing antix 19.2.1 base from zero on live system and try to get pcmanfm working. Don’t expect any news soon as it is very late here where I live and I will do the testing tomorrow. I know of at least 2 antiX users that sometimes post here who use pcmanfm, so I know it works. If they could come here and comment their experience, this would have been much easier (and painless) experience for all.
I know that a live system and installed system are not the same, but I really don’t want to install and overwrite any of my installations right now. They are working just fine and I wont risk it. If I have time, I will try with a virtual machine after I get this to work on live USB.
antiX Live system enthusiast.
General Live Boot Parameters for antiX.June 13, 2020 at 4:07 pm #37412ModeratorBobC
::Since he thinks the fstab might be causing the problem, I think he could try making a backup copy of /etc/fstab and remove the non HD volumes,
and then reboot to see if that fixes it.Just my 2 cents worth…. I’m no expert
June 13, 2020 at 8:38 pm #37428Memberamp
::BobC,
I tried that, but fstab get rewritten on reboot and the entries are still there and the volumes get mounted on /media.June 13, 2020 at 11:13 pm #37435ModeratorBobC
June 14, 2020 at 5:33 am #37439Member
Xecure
::I still believe it is something related to dbus.
After spending more time than I wanted, I got these results.
A) amp’s SETUP
On a antiX 19.2.1 base (running jwm), fully updated, I chose to install and uninstall the packages you mention.
Installed: pcmanfm, gvfs, udisks2, udiskie and policykit-1-gnome
uninstalled: udevil
Before rebooting, I did:
1. Set up pcmanfm as main file manager.
Control Centre > Desktop > Preferred Applications
In the program I set File manager: pcmanfm.desktop (found in /usr/share/applications, in case you cannot find it)
2. Edit ~/.jwm/startup file (in case you cannot find it, you can open it from Control Centre > Edit JWM Settings, and select the startup file). You need to add these lines in the empty space between <StartupCommand> and </StartupCommand>udiskie -a & dbus-launch --exit-with-x11 pcmanfm -d &What is this for? udiskie -a sets udiskie to automount stuff.
dbus-launch stuff is for adding dbus support to pcmanfm. I have very little knowledge on dbus stuff, so this is the only think I can figure out for getting the devices panel on pcmanfm. I am just a noob, probably more of a noob that you.
3. Launching pcmanfm with root privileges. Unfortunately, if you want dbus support with root permissions, you will have to a) launch from terminal, b) create a .desktop file (like pcmanfm-root.desktop) with Exec command the same as termina launch
gksu dbus-launch pcmanfmB) EASIEST SOLUTION I FOUND
Starting with the same system,
Installed: pcmanfm, gvfs, udisks2,
So, I am using antiX automount system to mount shit, and it will launch pcmanfm with the mounted shit.
1. Set up pcmanfm as main file manager using Preferred Applications.
2. If at any time I want to manually mount stuff on pcmanfm, I launch pcmanfm with dbus support
dbus-launch pcmanfm
You can also set the steps 2 and 3 form the A) Testing option to automate dbus support.So, summary, I got pcmanfm to work and automount shit and manually mount/unmount shit.
The dbus stuff is just my attempt to get that to work, but it is not ideal. Hopefully someone with real pcmanfm experience can explain what I am missing.If this worked for you, change the topic tittle to solved, If it didn’t, please post what went wrong, what do you see, etc.
antiX Live system enthusiast.
General Live Boot Parameters for antiX. -
AuthorPosts
- You must be logged in to reply to this topic.