FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Edubuntu User

 
 
LinkBack Thread Tools
 
Old 10-02-2012, 04:47 PM
Nicolas Roussi
 
Default Lubuntu chrooted install

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.dsudo apt-get install python-notifysudo 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 filesedit 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('
[Desktop Entry]
Encoding=UTF-8
Name=%s
Icon=/usr/share/icons/gnome/32x32/devices/gnome-dev-removable.png
Type=Application
Exec=/usr/usr/bin/pcmanfm "%s"
' % (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


--
edubuntu-users mailing list
edubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/edubuntu-users
 

Thread Tools




All times are GMT. The time now is 09:45 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org