LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-04-2011, 04:35 AM   #1
assasukasse
Member
 
Registered: Mar 2006
Location: UK
Distribution: Debian, Ubuntu
Posts: 133

Rep: Reputation: 15
Question Audio surveillance Linux


Hello everyone,
I would like to use my laptop as a remote surveillance in my office. I already use motion for taking snapshots, however it happens that most of the time the screen of my laptop is being closed so it becomes no use.
I am looking for a way to grab via ssh the output of the microphone which is embedded in my dell. I would like to have a stream "on demand" so that whenever i realize that the screen of my lap is closed I could listen to what is going on in the room (such as who is using my desk or my phone).
Is there something available?
 
Old 10-04-2011, 05:16 AM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
Hello,

I came across the following online:
Code:
arecord -f dat | ssh -C user@host aplay -f dat
I'm not on linux, so I can't dig up in my misc. code for what I used to use. Let me know if that works or not for you.

Cheers,

Josh
 
1 members found this post helpful.
Old 10-05-2011, 04:01 AM   #3
assasukasse
Member
 
Registered: Mar 2006
Location: UK
Distribution: Debian, Ubuntu
Posts: 133

Original Poster
Rep: Reputation: 15
thanks!
It works wonderfully
however i tried to modify it as following

Code:
arecord -f cd | ssh -C user@host aplay -f cd
it is also possible to omit the -f parameter and revert to an 8 bit mono stream, which is good for slow connections.

I tried to put it in a shell file:

Code:
#!/bin/bash
ssh $1 'arecord | ssh -C $2 aplay'
unfortunately it doesnt work unless authorization with rsa key is on, i was wondering if there is any command to make the second ssh wait and display the password request when needed...
 
Old 10-05-2011, 06:59 AM   #4
corp769
LQ Guru
 
Registered: Apr 2005
Posts: 5,818

Rep: Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004Reputation: 1004
You could always use the "read" command to get input, in this case your password, store it within a variable, and then use the variable with your ssh command.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Professional Linux Surveillance servo888 Linux - Software 5 10-14-2010 06:26 PM
Linux Surveillance systems oxman Linux - Hardware 4 03-25-2010 02:54 PM
surveillance software that records audio and video Bob82604 Linux - Software 1 03-02-2009 12:59 PM
Surveillance Systems Linux Recommendations metallica1973 Linux - Security 5 03-01-2009 01:34 PM
Need a program to do audio surveillance. joebattig Linux - Software 1 07-30-2008 06:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:53 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration