Re: Automatically Running Script When USB Flash Disk Mounted

2009-01-28 Thread Γιώργος Πάλλας

Zaki Akhmad wrote:

Hello,

I am installing Portableapps[1] on my USB Flash Disk. I use Wine to
get this portableapps running on my Debian. I am curious how to make a
script, which automatically run the wine command when my USB Flash
Disk get mounted so that my portableapps running.

I'll appreciate any hint. Thanks.
  


Hi!

You can do this by writing a udev rule. Google it, and you'll find a 
solution. Sorry that I only have the time for just a hint...


G.


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Automatically Running Script When USB Flash Disk Mounted

2009-01-28 Thread Ron Johnson

On 01/28/2009 06:15 AM, Γιώργος Πάλλας wrote:

Zaki Akhmad wrote:

Hello,

I am installing Portableapps[1] on my USB Flash Disk. I use Wine to
get this portableapps running on my Debian. I am curious how to make a
script, which automatically run the wine command when my USB Flash
Disk get mounted so that my portableapps running.

I'll appreciate any hint. Thanks.
  


Hi!

You can do this by writing a udev rule. Google it, and you'll find a 
solution. Sorry that I only have the time for just a hint...


But if GNOME handles the devices, a udev rule won't help.

--
Ron Johnson, Jr.
Jefferson LA  USA

I am not surprised, for we live long and are celebrated poopers.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org




Re: Automatically Running Script When USB Flash Disk Mounted

2009-01-28 Thread Zaki Akhmad
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Jan 28, 2009 at 9:32 PM, Ron Johnson ron.l.john...@cox.net wrote:
 On 01/28/2009 06:15 AM, Γιώργος Πάλλας wrote:

 Zaki Akhmad wrote:

 Hello,

 I am installing Portableapps[1] on my USB Flash Disk. I use Wine to
 get this portableapps running on my Debian. I am curious how to make a
 script, which automatically run the wine command when my USB Flash
 Disk get mounted so that my portableapps running.

 I'll appreciate any hint. Thanks.


 Hi!

 You can do this by writing a udev rule. Google it, and you'll find a
 solution. Sorry that I only have the time for just a hint...

 But if GNOME handles the devices, a udev rule won't help.

Yup, I am using GNOME. But is it make a difference if I am using
another Desktop Environment such as LXDE, KDE, etc?

- --
Zaki Akhmad

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.2)

iEYEARECAAYFAkmAd1wACgkQT4k8JfIMt5da7QCgl6XlLYhTApMIwbLT+wOAb4/l
MVwAnRjy0jgufW4o4QTjATrU17g7x6S7
=q0tD
-END PGP SIGNATURE-


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Automatically Running Script When USB Flash Disk Mounted

2009-01-28 Thread Glennie Vignarajah
Le Wednesday 28 January 2009 vers 07:27, Zaki Akhmad(Zaki Akhmad 
zakiakh...@gmail.com) a écrit:
 Hello,

 I am installing Portableapps[1] on my USB Flash Disk. I use Wine
 to get this portableapps running on my Debian. I am curious how to
 make a script, which automatically run the wine command when my
 USB Flash Disk get mounted so that my portableapps running.


apt-cache show ivman
daemon to auto-mount and manage media devices
 ivman is a daemon that acts as a policy agent on top of HAL. It
 listens to HAL events and reacts with user-configurable
 actions. Currently it supports automount of new media and 
hot-plugged devices, autorun, autoplay for CDs and DVDs, and 
automatic camera management.

Perhaps, is this package are you looking for?
HTH
-- 
http://www.glennie.fr
The reasonable man adapts himself to the world; the unreasonable one 
persists in trying to adapt the world to himself. Therefore all 
progress depends on the unreasonable man.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Automatically Running Script When USB Flash Disk Mounted

2009-01-28 Thread Zaki Akhmad
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Jan 28, 2009 at 11:20 PM, Glennie Vignarajah glen...@glennie.fr wrote:

 apt-cache show ivman
 daemon to auto-mount and manage media devices
  ivman is a daemon that acts as a policy agent on top of HAL. It
  listens to HAL events and reacts with user-configurable
  actions. Currently it supports automount of new media and
 hot-plugged devices, autorun, autoplay for CDs and DVDs, and
 automatic camera management.

 Perhaps, is this package are you looking for?

Actually, at first I think, there's some script I have to write (still
don't know how exactly, though). But, let me try this ivman.

- --
Zaki Akhmad

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Use GnuPG with Firefox : http://getfiregpg.org (Version: 0.7.2)

iEYEARECAAYFAkmAjwIACgkQI3d58oE7Pt4O9ACcCe/HtM21pUHaW9WeEf8uh2I4
WXEAoIHxroswfNGn63CGmiDvQGZjFf0D
=6KBW
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Re: Automatically Running Script When USB Flash Disk Mounted

2009-01-28 Thread Glennie Vignarajah
Le Wednesday 28 January 2009 vers 17:59, Zaki Akhmad(Zaki Akhmad 
zakiakh...@gmail.com) a écrit:

Hello,

 Actually, at first I think, there's some script I have to write
 (still don't know how exactly, though). But, let me try this
 ivman.
In fact, you need some scripting. ivman would help to launch your 
script when your usb device get connected
Perhaps, you can try to start Wine by ivman.

-- 
http://www.glennie.fr
The reasonable man adapts himself to the world; the unreasonable one 
persists in trying to adapt the world to himself. Therefore all 
progress depends on the unreasonable man.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org