Lubuntu chrooted install
Nicolas Roussi
nroussi at gmail.com
Tue Oct 2 16:47:50 UTC 2012
I installed Lubuntu with the traditional 2 NIC setup but I had an issue
with the USB devices not showing up on the desktop of the users.
If you experience this issue this is what I did to resolve it:
First create the mounter.d directory
sudo mkdir -p /etc/ltspfs/mounter.d
sudo apt-get install python-notify
sudo cp /usr/share/doc/ltspfs/examples/notify /etc/ltspfs/mounter.d/
sudo
cp /usr/share/doc/ltspfs/examples/kde-desktop-icons /etc/ltspfs/mounter.d/
make sure that both are executable chmod a+x on both these files
edit kde-desktop-icons to have the following. Under "if mode=='add'" up to
"elif mode=='remove'" replace what there is there with this:
desktop_file_s = get_desktop_file_path(dev)
if os.path.exists(desktop_file_s):
print >>sys.stderr, ".desktop file already exists, skipping"
sys.exit(1)
icon = 'synaptic.png'
try:
desktop_file = open(desktop_file_s, 'w')
desktop_file.write('\n[Desktop
Entry]\nEncoding=UTF-8\nName=%s\nIcon=/usr/share/icons/gnome/32x32/devices/gnome-dev-removable.png\nType=Application\nExec=/usr/usr/bin/pcmanfm
"%s"\n' % (dev, mountpoint))
desktop_file.close()
except IOError, e:
print >>sys.stderr, 'unable to create desktop file:', e
When a user now plugs in a USB python notify will pop up an alert and a
.desktop file will be visible on the user's desktop
I hope this helps someone
--
Nicolas Roussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/edubuntu-users/attachments/20121002/12bdf857/attachment.html>
More information about the edubuntu-users
mailing list