Ubuntu :: Daemon That Executes Commands Based On Input Device In Use?

Jan 28, 2011

I have a computer with a trackpad and a touchscreen. I want to run unclutter if I use the touchscreen, and kill it when I use the trackpad or a USB mouse.

The I'm pretty sure the touchscreen is /dev/input/mouse0, and the trackpad is /dev/input/mouse1

I have a general idea of how this should work, but no idea what tools and commands to use to implement it.

View 1 Replies


ADVERTISEMENT

Fedora :: Making A Shortcut That Executes A Couple Commands At Once ?

Jul 14, 2011

I want to use a desktop icon shortcut that essentially does this...

Is there a way I can do this? I don't really want to create an alias because I just want it to be an icon I double click to do all of this. But if I have to create an alias in which it does these ocmmands then I use the shortcut to terminal... then it types the alias that is fine also.

View 1 Replies View Related

Programming :: Script Which Logs Into Devices Over Ssh And Executes Commands?

Mar 23, 2010

I would like to make a script, where I specify my Cisco devices IP addresses as arguments to the script and then this script automatically logs into every one of them and does "show version" and "exit" in every Cisco device. I have public/private key authentication system with my Cisco devices- thats why I'm using ssh-agent and ssh-add. I did something like this:

Code:

#!/bin/bash
if [ -z $1 ]; then
echo USAGE:
echo "$0 IP1 IP2 IP3 IPn"

[code].......

However, it logs nicely into the first device(I'm able to execute IOS commands in this first Cisco device etc) and then does nothing further.

View 1 Replies View Related

General :: Shell Script That Logs Into Another Machine And Executes Some Commands?

Jan 5, 2011

I am trying to write a script that connects to a server and executes some commands on there. Something like this:

#!/bin/sh
telnet remote_machine
cd /home/some_directory
cat a_file_in_current_directory

Unfortunately after login/password I guess the script doesn't jump past the telnet command, until I exit. What do I need to do to make the script start executing commands in the remote shell?

View 1 Replies View Related

Programming :: Create A RS232 C Program That Executes A Series Of Commands Down The Line To A Robot?

Jan 5, 2011

I am trying to create a RS232 C program that executes a series of commands down the line to a robot. Everything seems to work fine, except any sequential write to the serial port. At first I thought it was the UART's buffer being filled too fast, but even with a 50 uS delay it still throws the error.

Here is my code:

Code:
#include <termios.h>
#include <stdio.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/signal.h>
#include <sys/types.h>

[Code]...

View 1 Replies View Related

CentOS 5 :: Create A CentOS Based LiveCD That Mounts A NFS Share And Executes One Script?

Aug 14, 2009

I'm trying to create a CentOS based liveCD that mounts a NFS share and executes one script there. The NFS never mounts altough while logged I can mount it with the very same command that I use in the KS.

In the %post I have :

%post --log=/tmp/post.log --erroronfail
mkdir /mnt/nfs
mount -o nolock 10.23.1.1:/csc/RemoteHome /mnt/nfs

I added the --log in order to debug, but nothing is written in /tmp/post.log. I tried redirection on the mount command with >> /tmp/debug.log but this is not written. Maybe during the post sequence /tmp is RO ? Anyway, I tried with ifup lo, service portmap start in the %post, but doesnt change (I even have a service : command not found in the live cd creator output).

Here is the remainder of the KS :
lang en_US.UTF-8
keyboard us
timezone US/Eastern

[Code]...

View 10 Replies View Related

General :: Creating A Daemon Based Sftp Client?

Mar 18, 2011

If i were to build an sftp client which launched with logon details, and could then controlled by sending commands to that daemon; would that be ideal way to create an sftp client with disposable credentials?

View 1 Replies View Related

Programming :: Passing Commands To Running Daemon?

May 10, 2010

I am working on a daemon that I want to change some variables while its running. Is this possible?I want to implement a command line type interface for my daemon so I can send it commands that will change the current values of specific variables, and also be able tell the daemon to load/save a config file.The only thing I have found so far is passing arguments to a daemon, but that seems to be a one-time shot when your first starting it.

View 6 Replies View Related

Fedora Hardware :: Full Speed USB MSC Device Detected As Input Device?

Apr 7, 2011

I am working on an embedded system, which is an USB MSC device that supports some vendor specific scsi commands. I am using FC10 laptop as USB host for testing, and it runs some small apps based on sg3. All has been well for ~ a week. The FC10 laptop is able to communicate with the device and retrieve data. Suddenly, starting from today, the laptop is not able to properly detect the device. When plugged-in, the MSC device is detected as input device (I thought). This is observed from "dmesg" output and changes in "/dev/input/".The device under development is running at full speed. When I connect to winXP, no problem. A windows file explorer pops up, showing the content of the drive.Also, the FC10 has no problem with other USB flash drive (high speed).

View 1 Replies View Related

Programming :: Select The Branch Based On The INPUT?

May 23, 2011

I want to select the branch based on the INPUT. Here is the program segment which uses the case statement.

case $INPUT in

1)branch="Computer Science";;
2)branch ="Electrical";;
3)branch = "Mechanical";;
4)branch= "Aerospace";;
esac

When I run this script, I am getting an error, Electrical command not found?

View 2 Replies View Related

Networking :: Specifying Output Int Based On Input Int And Source IP On Multiple 802.1q?

May 4, 2011

I have a pair of interfaces bringing in traffic from multiple vlans each. I need to route or forward traffic to and output interface based on the physical interface and source IP address in the packet.I have multiple ip rules to send traffic to custom routing tables and each of those custom tables had a default route out the appropriate interface, but traffic isn't flowing. Afterwards I tried using iptables and put an ACCEPT any statement in every chain of every table. What am I missing, ebtables maybe??

View 1 Replies View Related

General :: Keyboard Input Time Is More For Typing Commands?

Aug 15, 2010

While typing commands it takes more time to type.let me know on how to correct this

View 3 Replies View Related

General :: Script To Input Commands Into Gnome-terminal?

Nov 24, 2010

I'm trying to get a script to open a gnome-terminal and input commands into it, just as you would typing them in. That way, I can automate commands using bash, even if the terminal is running a non-bash program like telnet, mysql, vim, etc.

So, for instance..

I would like to open telnet to connect to a mud (I'm aware of the security concerns) and input commands through a script.

This way, I can log in, enter name/password, and do some start-game stuff automatically.

This isn't just for a mud, though. I'd like to be able to script inputs for any terminal application... maybe automate vim, mysql, or whatever.

View 1 Replies View Related

Programming :: Bash - Calling A Specific Variable Based On User Input?

May 3, 2011

I'm trying to call a specific variable based on a user selection. For example:

Code: Select a file:

[1] foo.tar
[2] bar.tar

Enter a selection: I have already coded each possible selection to have its own variable. If the user selects 2 I need to select $SELECTED_TAR2, or if they select 1 I need to select $SELECTED_TAR1 and then do something like this behind the scenes:

Code: cp /home/user/$SELECTED_TAR2 /home/user/backup/$SELECTED_TAR2

I was thinking something like this:

Code: echo "Enter a selection: "
read -e SELECTED_NUMBER
cp /home/user/$SELECTED_TAR$SELECTED_NUMBER /home/user/backup

[code]....

View 2 Replies View Related

Networking :: Communication Manager Daemon And HP Laptops With Synaptics Pointing Device?

Nov 7, 2010

I have installed 10.04 on several machines as well as imbedded inside VISTA. All of these installs work fine except the one on my HP Pavillion dv9000. The synaptics device on these machines is very touchy in all operating systems, but caused a strange issue in ubuntu 10.10. While connected to the internet and working fine I barely touched the pad and everything quit. I rebooted and found no way to reconnect to the internet. On the panel there was a little icon about the connection manager. Hovering over this icon gave the message "Connection Manager daemon not working". The usual tab to "enable networking" was dim and could not be activated.

I searched for several hours and found no reference regarding this daemon. Is there a source of the op sys names for such daemons and what sort of terminal command would I use to restart it if I knew what it was called? I ended up scrubbing the partition and reinstalling. Even the recovery process would not get the daemon to restart.

View 1 Replies View Related

Ubuntu :: Upgrading To A Ralink Based USB Wireless Device?

May 23, 2010

I have recently upgraded my USB wireless network connection for one of my computers to N from G. As I am (temporarily) based in China the device (and all documentation) are in Chinese. I THINK it is based on a Ralink 28XX chip. I am running Ubuntu 10.04. Network Manager claims that the wireless network is disconnected does not list any sources This is the basic info that I am able to find (I am using these commands in ignorance, by the way!) lsusb shows:

Code:

Bus 002 Device 002: ID 1d57:d2d1
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 148f:3070 Ralink Technology, Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

dmesg shows (after plugging the thing in):

Code:

[ 2081.028069] usb 1-1: new high speed USB device using ehci_hcd and address 5
[ 2081.178000] usb 1-1: configuration #1 chosen from 1 choice
[ 2081.208886] phy2: Selected rate control algorithm 'minstrel'

[code]....

View 5 Replies View Related

Ubuntu Multimedia :: How To Add Device For Sound Input

May 2, 2011

I delete input device. How to fox it? All the sound is working only microphone problem.

View 2 Replies View Related

Ubuntu :: Disable Input Device - AutoAddDecices=True

Jun 10, 2010

I have installed Lynx and want to use two X servers at the same time. Each server has its own ServerLayout section in xorg.cong. The first ServerLayout Section has AutoAddDevices enabled, so that new input devices are added automatically. The second ServerLayout has AutoAddDevices disabled, and one InputDecice pointing to /dev/input/mouse3. That way, this mouse is the only input decive affecting the second X instance.

Unfortunately, this mouse is also controlling the first server (due to AutoAddDecives). Can anyone tell me how to disable this? I want every input device to be added to the first server, except this mouse. In earlier versions of ubuntu, I used a hal rule to make hal ignore this mouse. So it was not added to the first server. Now that hal is not used by lynx anymore, I don't know how to do this. I have already read some things about udev and the xorg.conf.d folder.

View 1 Replies View Related

Ubuntu Multimedia :: Auto-select USB Mic As Input Device?

Jul 6, 2010

I use a USB webcam with a built in microphone. It works fine, but every time I plug it in I have to go to sound properties and select it as the input device. There are no other input devices present on my system. Since it's the only one there, is there any way to get it to automatically select when I plug it in? If not, I think that would be good functionality to add. Does anyone know who or what team to contact about that?

View 3 Replies View Related

Ubuntu Multimedia :: No Audio Input Device Can Be Found?

Feb 8, 2011

No audio input device can be found in sound preference>input but in sound preference>hardware>it shows the input webcam recorder device.

When I use

Code:
alsamixer

onto terminal it shows this

and also i checked cable device and everything. And it was working till I last hour. I rebooted computer then there's some problem, I haven't change anything before or after rebooting.

View 3 Replies View Related

Ubuntu Multimedia :: Input But No Output On Firewire Device?

Jun 11, 2011

I'm using FFADO on JACK in order to use my firewire device (M-Audio Profire 610) and I seem to have the opposite issue as others who have similar problems. Everything starts up fine, and I can record audio into Ardour using my inputs, but I can't get any output from any of my 8 line outs.

I've checked the connections using QjackCtl, and I tried to route audio from another program (Audacious) but I can't seem to pull audio out of the device (or the computer won't send my device audio?).

View 1 Replies View Related

Ubuntu Multimedia :: No Input Device Present - Maverik 10.10

Jul 11, 2011

I can't use my line-in/microphone jack. In system-management-sound input tab there is no input device listed, and the input controls are grayed-out. sudo lshw -C sound produced:

description: Audio device
product: N10/ICH 7 Family High Definition Audio Controller
vendor: Intel Corporation
physical id: 1b

[Code]....

View 1 Replies View Related

Fedora :: Disable Input Device For X?

Feb 16, 2010

I have a Kore Controller from Native Instruments [URL] using it as a sound card on Fedora 12. Its input knobs are supported by Linux, too, but they are pretty useless for me.It came out that these input knobs send mouse movements from time to time, letting my mouse pointer jumping to the upper left corner of the screen.

So I want to disable the knobs, i.e. I want X to not interpret these "knob actions" as mouse movements. What is the best way to achive this? Can I disable it somewhere in HAL configuration or do I have to modify xorg.conf? And how do I do this?Simply plugging out the Kore Controller is not an option for me because I use it as sound card.

View 8 Replies View Related

General :: USB Midi Input Device?

Jul 18, 2010

I just bought an M-Audio Keystation 49e off of craigslist and I'm at a bit of a loss on where to start to use it as an input device for muse or rosegarden.

Distro: Debian Lenny
Kernel: 2.6.26-2-686
Laptop: Compaq V5305WM

Everything seems setup, but I'm at a loss on how to use it in the applications. It doesn't have any sound synthesis abilities on the keyboard, it's just an input device. Without the keyboard I usually go this route:

jackd -R -d alsa &
timidity -Oj -iA &
rosegarden

And midi events output sounds and all that jazz. I'm wanting to input notes / record from the keyboard. But still output all sounds in the aforementioned manner. If I could get those to happen while I record that would help a bunch. Maybe it's just too late in the day for me to wrap my brain around it at the moment.

[Code]...

View 7 Replies View Related

Ubuntu :: Audio Input Device Constantly Reset To Mute

May 3, 2010

On karmic the audio input device would constantly reset to muted. On lucid, it keeps resetting it to the microphone jack at the back of the computer (While I have a webcam up and running that it knows is what I use. How can I get it to remember my audio input? One more functionality issue till bingo. How can I give a window "Widget" status: I want it not to minimize when I hit ctrl alt D (Like conky and other widgets).

View 1 Replies View Related

Ubuntu Multimedia :: Usb Webcam As A Default Audio Input Device?

Oct 15, 2010

I'm having here annoying "problem" with my webcamera. Everytime I want to use it as a microphone it needs to be switched manually in sound settings menu. It's not a big deal but I would really rather let it be switched automatically like plug and play or something like that.

View 8 Replies View Related

Ubuntu :: Audio Input Device Setting Always Reverts To Default

Jun 24, 2011

I use a Logitech USB headset with microphone at work for phone conferencing, and for some reason whenever I restart Ubuntu (and sometimes seemingly at random times), the settings for the audio input device revert to the defaults (the internal audio hardware).I can always reset it back to the USB headset by going to the sound configuration menu (Preferences -> Sound -> Input), but if any applications that use a microphone are already running, they will need to be restarted in order to make use of the newly configured input device.

View 2 Replies View Related

General :: How To Create Dummy Input Device

Mar 19, 2009

Long story short - on my laptop, touch pad is recognised as PS/2 mouse. Everything works (moving, clicking, dragging, vertical scroll). But I often accidental click the pad while typing.Synaptic driver recognises it as ALPS glide point it seems (synclient -m 1 gives me back only x,y difference for the gestures, but X,Y coordinates are always 0,0) - so then I get everything right including disabling mouse on keyboard input - but scrolling doesn't work So I came up with 2 possible ideas - which I don't know how to do/test:1. Perhaps there is a way to disable mouse input while typing without synaptics drivers?2. Create a dummy input device (mouse), and tie synaptics driver to it. Add another input device in xorg.conf to point to the real touch pad as PS/2. And make the synaptics disable "real mouse" by enabling GuestMouseOff option.

View 1 Replies View Related

Fedora :: Fto Remember Audio Input Device?

Apr 11, 2010

I need to set the default input device to be the microphone on my webcam for when I skype, but it seems to keep resetting itself, so I keep going in and changing it.

I am right clicking the volume icon and going into Sound Prefs -> Input, and selecting the camera.

How do I stop it from forgetting this and resetting it?

View 4 Replies View Related

Fedora :: Which Device To Use For Ffmpeg Sound Input?

Dec 27, 2010

I am trying to record a video clip, using my webcam, but sound synchronisation is always poor. I have used Cheese, UCView and VLC. One possible cause is explained in the reply to this question, but I am not an expert. In desperation, I now want to try ffmpeg. The ffmpeg documentation gives the following example

Code:
ffmpeg -f oss -i /dev/dsp -f video4linux2 -i /dev/video0 /tmp/out.mpg
My system has no /dev/dsp, but does have /dev/snd with these files
Code:
$ ls /dev/snd

[Code]...

View 11 Replies View Related







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