Fedora :: Script For Usb Insertion?

Sep 10, 2009

I am trying to figure out how to make Fedora run a certain command when I insert a USB device. Any ideas. I'd also like it to do different things based on which usb device I plug in.
I can write the script I just do not know the trigger sequence.

View 10 Replies


ADVERTISEMENT

General :: Insertion Of Vbr And VBR End Delay More

Apr 22, 2011

I am using Ubuntu marvic amd64 10.10. I installed ns-allinone 2.34. then I inserted vbr traffic according to one of forum from this linux " Insertion steps of VBR into NS2.34" I made the following changes

Makefile, line 36 : CC = gcc-4.3
Makefile, line 37 : CPP = g++-4.3
vbr_traffic.cc in ns2.34/tools then Makefile : tools/vbr_traffic.o of 183

then I use the command cd ns-allinone-2.34/ns-2.34/ && mv ns ns234 && make after that I delete the ns. with the new command I run the script with every time puase time 0 and simulation time 200, 10 250, 20 300, 40 400..... with DSR after completion of simulation, when i was try to plot graph between throughputs of receiving bits vs Maximul end to end delay, every time I got the delay more than 90, 100, etc so how can I reduce that problem. I thought problem was in insertion of vbr.

View 1 Replies View Related

Programming :: Run A Script At Usb Insertion?

Sep 20, 2010

I'm trying to run clamAV antivirus on USB insertion. I read about "udev" but it seems to be very complicated. I thought about running the script when the /media folder changes. I couldn't do that either.

I'm running MS "XP" on virtualbox and I'm sharing the /media folder from the host to the guest that's why I need an ON-DEMAND antivirus that scans the usb disk on insertion. (Light scan[neglecting archives and large files] is preferred to not overload the processor).

The script will contain the clamAV command line. The problem is how to set the execution time of the script...

View 3 Replies View Related

Ubuntu :: USB Insertion Hangs System / Stop It To Do So?

Dec 19, 2010

I'm running Ubuntu 10.10, 64-bit on an HP 8740w. Sometimes (I don't have the frequency yet, but it has happened a half-dozen times in the past couple of weeks) when I insert a USB storage device the system hangs, requiring a power-cycle. I have been careful to either eject or "safely remove" every USB device, but it still happens. I believe it only happens when I remove a device and later re-insert it, but I don't have enough data points to be sure.

Most of the time, I'm running VirtualBox, but I haven't captured the USB device in a VM.

First question - how can I go about figuring out what might be going wrong? Once it happens, my options are extremely limited (power switch). When this happened one time I left the system for 30+ minutes, and it did not recover.

Of course, when I wanted to see it, I did 10 insertions/removals without a hang.

View 9 Replies View Related

Ubuntu :: Change Volume Upon Headphone Insertion?

Mar 22, 2011

is there a way to have my volume level change to a specified level when i insert my headphones to avoid having my ears blasted with music because i forget to turn the sound down when shutting off my computer last time? perhaps a alsa patch or a script?

View 5 Replies View Related

Programming :: Recognize USB Insertion / Removal In Python?

Oct 15, 2010

How can I understand if a USB inserted or removed.

Someone said I need to study HAL. Is it true? If so I need some links, source code etc. do you know any?

View 1 Replies View Related

Debian Multimedia :: Encrypted DVDs Are Not Recognized Upon Insertion

Jun 21, 2015

I have Debian Jessie installed. When I insert a non-encrypted DVD movie DVD into the drive, a pop-up menu appears asking me what I want to do (e.g. "Open with vlc media player, etc.).

When I insert an encrypted DVD movie DVD into the drive, no pop-up menu appears.

I am able to play the encrypted movie DVD in vlc, and libdvdcss2 is installed. So my question is not about playing the DVD but rather about the failure to automatically detect it.

This behaviour happens in Gnome, Mate, and XFCE. (KDE has a Plasma Device Notifier Widget that is able to detect the encrypted DVD).

My other computer with Debian Wheezy is able to automatically recognize the encrypted DVD.

Here are the relevant lines from /var/log/syslog after the insertion of the encrypted DVD:

Code: Select allJun 21 14:52:04 debian-think-pad kernel: [ 2012.208964] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
Jun 21 14:52:04 debian-think-pad kernel: [ 2012.208972] sr 1:0:0:0: [sr0] 
Jun 21 14:52:04 debian-think-pad kernel: [ 2012.208977] Sense Key : Illegal Request [current]
Jun 21 14:52:04 debian-think-pad kernel: [ 2012.208986] Info fld=0x400

[Code] ....

Here are the relevant lines from /var/log/syslog after the insertion of the non-encrypted DVD:

Code: Select allJun 21 14:55:39 debian-think-pad kernel: [ 2226.518955] UDF-fs: INFO Mounting volume 'Check Please', timestamp 2009/06/02 17:43 (1e5c)
Jun 21 14:55:39 debian-think-pad udisksd[1161]: Mounted /dev/sr0 at /media/daniel/Check Please on behalf of uid 1000
Jun 21 14:55:39 debian-think-pad org.gtk.Private.UDisks2VolumeMonitor[1081]: index_parse.c:191: indx_parse(): error opening /media/daniel/Check Please/BDMV/index.bdmv
Jun 21 14:55:39 debian-think-pad org.gtk.Private.UDisks2VolumeMonitor[1081]: index_parse.c:191: indx_parse(): error opening /media/daniel/Check Please/BDMV/BACKUP/index.bdmv

Whan I run the mount command after inserting the non-encrypted DVD the following line appears in the output:

Code: Select all/dev/sr0 on /media/daniel/Check Please type udf (ro,nosuid,nodev,relatime,uid=1000,gid=1000,umask=77,iocharset=utf8,uhelper=udisks2)

Granted, this issue is not a major problem as I can start vlc and play the DVD. However, it might be useful to some new users to Linux to have the pop-up menu appear. Additionally, it would be interesting to learn why it works in Debian Wheezy and not in Debian Jessie.

View 0 Replies View Related

Debian Configuration :: Udev Script To Run Service On Device Insertion

Jan 24, 2010

I have just bought a DVB-T usb dongle to watch some TV. The software I'm using is vdr, which has to be started through the /etc/init.d/vdr service. I have created a udev script that executes the service on device insertion. It works nicely, however now when I boot up the computer it takes ages to get to desktop. I believe it is because of the WAIT_FOR part. But without this part, the service starts too soon because the usb dongle has been inserted but the firmware has not finished loading. Can someone point out an alternative way to do it? The script is here [URL].

View 4 Replies View Related

Programming :: How To Install Kernel Modules Automatically After Device Insertion

Jan 18, 2011

ubuntu could delay kernel module installation until device is inserted?Take my usb ath9271 wifi adapter as an example: when kernel boot up, no ath modules are installed until usb wifi apdapter is inserted, ath related modules are insmod.Could anybody how to achieve this? udev or something else?

View 5 Replies View Related

Ubuntu Multimedia :: Toshiba Quosmio Speaker Not Muted On Headphone Jack Insertion?

Jul 28, 2011

My only glitch with Ubuntu, which runs flawlessly on this beast, otherwise.I have spent more than 50 hours on this problem. In my case, inserting headphone jack doesn't mute internal speakers. There is sound in the headphone though.alsamixer ot gnome-alsamixer doesn't even show the headphone option. So I cannot change their values.I have tried model= various options, with no avail.I have uploaded my information to alsa projct and the link is: http://www.alsa-project.org/db/?f=18...788fc1458ff422

View 1 Replies View Related

Programming :: Socket Programming: Insertion Of 0x00 Into The Stream?

Dec 5, 2010

When sending data over the socket, the sending socket includes 0x00 after each sent byte. I wonder how this can be avoided -- I just want to transfer the data in the tx_buffer as it is.

# ./serv &
[1] 6895
# ./EUG 127.0.0.1
EUG: Data to be transmitted: 0x35 0x32 0x30 0xff 0x03 0x31
EUG: Data - #Bytes transmitted: 6
./serv: Here is the message: '5'

[Code]...

View 3 Replies View Related

General :: Upgrade From Fedora 5 To Fedora 11 With A Fedora 11 Live CD?

Sep 30, 2009

I just wanted to upgrade to fedora 11 from the current version 5 with the of a live cd.I dont want to loose the previous configuration files. upgrade everything except the / directory. How do you do that? I also have a retarded WINXP partition on the same drive which I dont wanna loose.

View 9 Replies View Related

Fedora Installation :: Import An X11 Xorg.conf File From Debian To Fedora And Have It Work?

Feb 26, 2009

Is it possible to import an xorg.conf file from Debian to Fedora and have it work? The reason for this is that I have an older monitor that only offers 800x600 as the maximum resolution.

View 2 Replies View Related

Fedora :: Versions Of Localepurge, Deborphan And Debfoster - Do They Exist In The Fedora Software Repository

Mar 7, 2009

install of Fedora, always used Debian or Ubuntu before now, and am looking for versions of localepurge, deborphan and debfoster - do they exist in the Fedora Software Repository?

View 10 Replies View Related

Fedora Networking :: Samsung N130 Realtek 8192 Doesn't Work In Fedora 12

Apr 2, 2010

I have a Samsung N130 with a Realtek 8192 wifi card (possibly 8192e, I'm not sure) and I am trying to run Fedora 12 on it. I used to run Ubuntu until trying their latest beta and realizing it's not very good, so I looked for something else. Ubuntu was at least easy to get the wifi working with just a few quick commands that were written out, word for word, in order, on the Ubuntu forums. I tried openSUSE on here and it didn't have wifi working out of the box either but people on their forums refused to give me actual instructions and just kept bumping me from thread to thread with people giving vague advice or else just telling me I was looking in the wrong place. I'm hoping that someone can give me clear and detailed instructions on how to get this wifi card working. Keep in mind that I am coming from Ubuntu and so I'm not super comfortable in CLI, if I need to do some CL stuff I will need clear and detailed instructions on how to do that.

View 4 Replies View Related

Fedora Networking :: Bulk Abd Real Data Transfer Over Ad Hoc / WLAN Network Under Fedora 13

Aug 21, 2010

I am newbie to linux, I am dealing with Fedora core 13. I have already succeedded in building an ad hoc network and a WLAN network. My next step is to get some networking statistics such delay, throughput, etc. So, I need traffic to flow through the network for both multimedia traffic and bulk data traffic. How to send files between nodes on the network (I found commands ftp, rcp but do not know whether they are the correct choice for this). ID their any application to perform this?

Also, I want to perform some video streaming between two nodes to study the behavior of real time data transfer. Is thier any application to perform this?

View 4 Replies View Related

Fedora X86/64bit :: Dell N5010 - Unable To Install Fedora On Unallocated Space

Sep 13, 2010

My laptop is currently running on Windows 7 Ultimate. I have a 320 GB HDD, which I have partitioned as follows. C: Drive as Windows 40 GB capacity and successively partitioned the rest of the drives for 50 GB capacity and left an unallocated space of 67 GB for fedora 13 x64 installation. The problem that I am facing is, that I am unable to install fedora on this unallocated space..even though I am checking the option for "Creating custom Layout". When I check the option for "Creating Custom Layout" Ive been shown with the only option to install fedora on the unused space on the HDD which is around 265 GB. I am also attaching a screen shot of my disk management. how I can install Fedora on this unallocated space of 67 GB?

View 12 Replies View Related

Fedora :: Error To Rebuild Inkscape Srpm Fedora 14 : Glib.h: No Such File Or Directory?

Dec 23, 2010

my problem is inkscape-0.48.0-1.fc14.3.src.rpm in fedora 14 64 bittry rebuild --source inkscape-0.48.0-1.fc14.3.src.rpm and this my error:I think something wrong pkgconfig .

attributes.cpp:20:32: fatal error: glib.h: No such file or directory
compilation terminated.
arc-context.cpp:21:28: fatal error: gdk/gdkkeysyms.h: No such file or directory

[code]....

View 6 Replies View Related

Fedora Hardware :: Parallel Printer CUPS Fedora 15 HP Doesn't Install Driver

Jun 3, 2011

This post is for an HP parallel printer but I think it should work for at least "some" other parallel printers.I am sure that someone smarter than me will follow up this post with a "well, just do this and that" and you will have your HP Laserjet 6P printer ready to go, but since questions litter the forums of MANY distros on how to get "at least" an HP parallel printer to work, I'll post this anyway.This may or may not work for you if you do not have an HP but you can try it.The install printer box will let you do an install for an HP Parallel and it asks for how it is to talk to it, through CUPS sock or "local host'. When we get through what I recommend you should chose "local host".

View 2 Replies View Related

Fedora Networking :: Fedora 10 Unable To Access To Windows Share Folders On LAN

Jan 8, 2009

I am using F10 desktop edition, all the computers using windows are able to access the shared folders over lan except me using F10. I have tried many things with smb but still unable to connect.I am new to linux so i dont khow much of its technicalities.kindly suggest how can i be able to access the shared documents ..

View 1 Replies View Related

Fedora Installation :: Uable To Boot Fedora From A CD While Keeping Other File On Computer?

Feb 14, 2009

I'm setting up my first Linux install and I was wondering if I would be able to boot Fedora from a CD while keeping every other file on my computer, or in other words if I would be able to put the /boot partition onto a cd. I've also read that Linux can be booted entirely from a logical partition. If that's true then can anyone help me in setting that up. Mostly my problem is I already have four primary partitions, one being a logical drive with plenty of free space in it, and I can't get rid of the primary partitions I already have.

View 1 Replies View Related

Fedora Networking :: How To Make Internet Sharing In Fedora With Two Inputs & One Output?

Feb 19, 2009

How to make internet sharing in Fedora with two inputs & one output.

View 14 Replies View Related

Fedora Networking :: How To Access Shared Windows Files From Fedora System?

Mar 24, 2009

How can I access shared Windows files from a fedora system

View 3 Replies View Related

Fedora Networking :: Fedora 10 Live Usb Detects Other WiFi Connections / Not Router

May 27, 2009

ok so the router works in windows and i know the config details of it.i can see other wifi access points in the area but not my one. i have tried joining it as a "hidden network" to no avail.is there any reason why fedora would not detect my own wifi when it detects substantially weaker signals instead??

View 2 Replies View Related

Fedora Servers :: Making A Fedora-based Video Hosting Server?

Jul 2, 2009

If any of you have successfully created a video hosting server with Fedora, can you give me any ideas of what software to get and how to configure it and so on? Or, if you have been unsuccessful, can you tell me what doen't work?

View 1 Replies View Related

Fedora Networking :: Unable To Access Fedora 10 Shared Folder From Windows

Aug 17, 2009

Linux OS : Fedora 10 (No graphical mode)Windows OS : XP and Windows Server NT...I am able to access from my windows to linux using following step//fedora10 ip username of admin and password...I am able to view the admin and shared printer of fedora 10.When i try to enter in the admin folder i am not able to access it. It is giving error "Access is denied".

View 6 Replies View Related

Fedora Installation :: Noobie> Fedora Server > Wanna Install Kde Or Gnome?

Sep 23, 2009

i am justin i'm 17 years old and new with linux, i use ubuntu and linux mint 7 and a friends of my has a dedicated fedora server. he asked me to intall a desktop manager ( or something that is the same, dont know how to call it ) so he could use remote desktop to acces his server

i have connected the server trought ssh and i am in the terminal. Now i want to install kde or gnome so i and my friend could use the server as a mail en WWW bla bla bla server. and my question is how i need to do that i tryd : yum groupinstall "KDE (K Desktop Environment)" and yum groupinstall "X Window System" but none works i have seen those commands on this forum so i tryd it.

View 14 Replies View Related

Fedora Installation :: How To Install Fedora 11 On External USB Drive With Anti-virus?

Sep 28, 2009

I have a Western Digital Pasport 320 GB hard drive. I wanted to create a live installation on it like a USB stick. I wanted it to serve as a portable OS that I could use to boot any other computer off of, and use it for diagnostics and anti-virus scanning on Windows based computers. The additional space is for my own personal use, kind of like having a mobile desktop where I have all of my documents in one place.What I need to know is how to set up Fedora 11 so that the hard drive will boot on most PCs regardless of their architecture. I also need to know what's a good Anti-virus to install onto it for the sake of fixing Windows hard drives.

Please keep in mind I'm a noob when it comes down to a lot of things, so if there's an antivirus I have to install manually, please included a step by step.

View 1 Replies View Related

Fedora :: Mounting Windows Server08 From Fedora 8 With Read/write Permissions?

Oct 7, 2009

I have Fedora 8 and we just switched over from a Windows "File Server" to Windows Server 2008 (10.1.1.17). I updated my fstab file and now when I go onto the Windows folders, I can list and read files, even save them, but new files are always read only.

fstab file (some, without the asterisks):
//10.1.1.17/USERS/Jeff/fs /home/mriuser/Desktop/fs cifs rw,username=jsadino,password=**** 0 0

I've tried ntfs-3g, auto, ntfs, smb, some umask combinations, changing ownerships, changing permissions, everything I could think of, but still can't modify new files.

[root@localhost tmp10]# mkdir tmp2
[root@localhost tmp10]# cd tmp2
[root@localhost tmp2]# touch tmp
[root@localhost tmp2]# ls -l

[Code]...

View 3 Replies View Related

Fedora :: Fedora 11+KDE - Login Screen Not Responding To Keyboard And Mouse After Update?

Nov 10, 2009

It's two days now I'm in deep troubles after my last "yum update". The system boots as usual, the graphical login pops up the normal way but no input is handled by either the internal keyboard (the system is a laptop), the mouse pad, the external USB mouse and keyboard.

The hardware itself seems to be working as I can pop up the BIOS menus and even edit the GRUB booting line. But, after GRUB there's no possible input. I've tried to boot the system with the Fedora 11 DVD, rescue menu and then chroot. This in order to run a "yum update" in the hope that the problem was in some broken update. No chance: there's no update.

My questions are:

1. Is there a way to boot Fedora withou any graphical interface from GRUB (or anything else to skip the KDE)?

2. Is there a way to have the (cabled) network activated at boot *before* the graphical login?

3. What the he** is happening to my otherwise pefectly working laptop?

View 8 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved