udevil At A Glance
Slow Development Phase: SpaceFM and udevilUpdated March 2, 2015
The SpaceFM and udevil projects are currently in a slow development phase, mostly consisting of minimal maintenance (eg urgent and critical issues). You are still welcome to report any issue or request.
This is a small development team so please respect our time and be patient.
Issues are examined and reprioritized regularly. Just because a report is older does not necessarily give it highest priority. After your issue is reviewed, a Milestone will be set which will indicate the current priority of the issue (which may change). You can review the meaning of milestones. If no milestone has been set, your issue is still pending review.
The current preferred way to stay informed of project announcements is to subscribe to IgnorantGuru's Blog.
Thanks for participating in these projects!
A self-extracting installer is available in Downloads (click on a file and click View Raw to download). The installer MUST be run in a terminal. It automatically builds and installs, and should work with any recent distro. Run it like this:
The installer requires the build dependencies listed in the README file. Build dependencies include: (package names may vary on your distro)
libglib2.0-0 libglib2.0-dev libudev0 (>=143) libudev-dev autotools-dev build-essential fakeroot intltool pkg-config
Also recommended for network support: cifs-utils curlftpfs sshfs davfs2
Also recommended if using devmon: eject zenity
If any dependencies are missing, examine the error, install missing packages, and try again.
To reinstall or upgrade, just run the latest installer again.
For easy manual build instructions please see the README file.
To authenticate downloads see authentication instructions.
NOTE: Also see Post Installation steps below.
Post InstallationKernel Polling
You may need to enable kernel polling for device media to be detected by udevil. See the Enable Kernel Polling section below.
Networks and Files
By default, /etc/udevil/udevil.conf is set to allow only local fileystems and ISO files to be mounted, with mounting of networks disallowed. To allow networks and files to be mounted, in /etc/udevil/udevil.conf set:
allowed_types = $KNOWN_FILESYSTEMS, file, cifs, nfs, curlftpfs, sshfs, davfsYou may also need to install curlftpfs or ftpfs (ftp://), cifs-utils or smbfs (smb://), sshfs (ssh://), and davfs2 (http://).
If local ntfs filesystems aren't mounted writable, you may need to configure your system to mount ntfs with ntfs-3g (on some distros this is already done). For example:
sudo ln -s /sbin/mount.ntfs-3g /sbin/mount.ntfs # OR if mount.ntfs-3g is located in /usr/bin: sudo ln -s /usr/bin/mount.ntfs-3g /usr/bin/mount.ntfs
After installing udevil, /usr/bin/udevil should have the suid bit already set. If not, set it like this:
sudo chown root:root /usr/bin/udevil sudo chmod u+s,go-s,ugo+x /usr/bin/udevil ls -l /usr/bin/udevil -rwsr-xr-x 1 root root 226625 May 22 08:13 /usr/bin/udevilOR, to restrict execution of udevil to the 'plugdev' group only:
sudo chown root:plugdev /usr/bin/udevil sudo chmod u+s,go-s,o-x /usr/bin/udevil ls -l /usr/bin/udevil -rwsr-xr-- 1 root plugdev 226625 May 22 08:13 /usr/bin/udevilOR, if you don't want to use udevil for mounting, you can unset suid:
sudo chown root:root /usr/bin/udevil sudo chmod ugo-s,ugo+x /usr/bin/udevil ls -l /usr/bin/udevil -rwxr-xr-x 1 root root 226625 May 22 08:13 /usr/bin/udevilYou can also limit users and groups by editing /etc/udevil/udevil.conf
Enable Kernel Polling
You may need to enable kernel polling for device media to be detected by udevil. For example, if you insert a CD and udevil's monitor command doesn't report a change to the device, or udevil doesn't see a filesystem on the device, this is a symptom that kernel polling is not enabled.
Kernel polling is a newer feature of the Linux kernel and udev, so some distros don't yet have it enabled by default. To use kernel polling, your Linux kernel may need to be 2.6.38 or newer, and udev may need to be version 173 or newer.
To determine if kernel polling is enabled:
cat /sys/module/block/parameters/events_dfl_poll_msecs cat /sys/block/sr0/events_poll_msecsIf you get 0 or -1 from both of those commands, kernel polling may be disabled.
To enable kernel polling permanently (survives a reboot), add the following command to your /etc/rc.local file (anywhere before the 'exit' line in that file):
echo 2000 > /sys/module/block/parameters/events_dfl_poll_msecsAny number between 2000 and 5000 (milliseconds) should be reasonable - the higher 5000 means poll every 5 seconds, which is less overhead but a little slower.
OR pass this option to the kernel boot command line in grub:
OR add a udev rule to enable kernel polling on removable devices:
A reboot will be required for the above changes to take effect, or...
To enable kernel polling temporarily and immediately, enable common polling for the block module:
sudo bash -c 'echo 2000 > /sys/module/block/parameters/events_dfl_poll_msecs'
OR you can enable polling just for a single device like this (/dev/sr0 in this example):
sudo bash -c 'echo 2000 > /sys/block/sr0/events_poll_msecs'This change should be immediate - media will be detected. However, the above change will be lost when you reboot.