LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-30-2012, 10:20 AM   #1
PhoenixAndThor
Member
 
Registered: Sep 2009
Location: Geogia, USA
Distribution: Ubuntu, Debian, Live CDs
Posts: 213

Rep: Reputation: 39
SSH "walkie-talkie" setup, is it possible?


Okay, I have converted a netbook into an SSH tunneling box. I setup port forwarding on my router and I have already verified that I can SSH into the netbook/server with another netbook(main) from just about any access point, and the tunneling works great. Now for my question: The netbook/server has built-in speakers and a mic. Is it possible to stream audio in both directions over SSH, so I can talk to people in my house using the encrypted tunnel? If I can't do it in both directions, can I at least turn the netbook/server into a listening device?

Last edited by PhoenixAndThor; 03-30-2012 at 10:37 AM.
 
Old 03-30-2012, 05:30 PM   #2
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 140

Rep: Reputation: 9
You can use pulseaudio for that purpose. You can actually configure pulseaudio in such manner, that you would be able to connect to it remotely from different computer. It is easily achievable by using paprefs.
 
Old 04-01-2012, 08:46 PM   #3
PhoenixAndThor
Member
 
Registered: Sep 2009
Location: Geogia, USA
Distribution: Ubuntu, Debian, Live CDs
Posts: 213

Original Poster
Rep: Reputation: 39
No luck with pulseaudio, but I did get something out this:

Code:
arecord -f dat | ssh -C user@host aplay -f dat
Doing this "links" my microphone to the speakers on the server, but there's 1 or 2 seconds of lag. I tried to switch arecord and aplay in the above command, thinking it would turn the netbook into a listening device, but the terminal window just freezes and nothing happens. I tried arecord, and then played the file locally from an sshfs mounted directory, but it's choppy. maybe I'm going about it the wrong way. Is there any voice chat program designed to run from the console, like teamspeak? I don't want to load my server up with a whole bunch of stuff.
 
Old 04-02-2012, 05:17 AM   #4
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 140

Rep: Reputation: 9
Maybe try NAS.
ANd just simple switching won't do what you want to achieve. You turn it upside-down: ssh to remote computer, ssh from remote computer to local computer and do exactly same as you stated above, then it work.

P.S. pulseaudio would work, if you would setup ssh-tunnel and use it for communication to-from pulseaudio. You just need make it accessible remotely and allow connecting to streams from remote computer.
 
Old 04-02-2012, 07:42 PM   #5
PhoenixAndThor
Member
 
Registered: Sep 2009
Location: Geogia, USA
Distribution: Ubuntu, Debian, Live CDs
Posts: 213

Original Poster
Rep: Reputation: 39
Okay, I'll try the pulseaudio thing again. Does the linux distro on the server matter? It's running Arch off of a 4GB flash drive.
 
Old 04-03-2012, 05:18 AM   #6
WizadNoNext
Member
 
Registered: Nov 2009
Posts: 140

Rep: Reputation: 9
It doesn't matter at all, as long pulseaudio is able to another pulseaudio. I don't think they would change protocol to often.
 
Old 04-05-2012, 04:21 PM   #7
PhoenixAndThor
Member
 
Registered: Sep 2009
Location: Geogia, USA
Distribution: Ubuntu, Debian, Live CDs
Posts: 213

Original Poster
Rep: Reputation: 39
Unfortunately, I ran into a bug with SSH on Arch Linux and I have to start from square 1 again with the server project. You guys can go ahead and close this thread (or remove it). The bug I'm talking about is where SSH freezes up for no reason after a few minutes After a lot of testing (and connecting my netbook directly to the server) I have verified that the problem is Arch. My desktop system runs Linux Mint (using the same sshd_config file!), and I can do anything through SSH (scp, tunneling, mounting, etc.) for as long as I want. So until I find another suitable distro, I don't have a server to play with
 
  


Reply



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
[SOLVED] Networking over one or more walkie talkie pairs Ulysses_ Linux - Networking 11 05-29-2011 11:27 AM
"Keep laptop running on lid close?" + "ssh via crossover cable?" FatalKeystroke Linux - Laptop and Netbook 7 03-11-2011 07:53 AM
"setup" or "elinks" text garbage displayed sr99 Red Hat 1 12-06-2006 07:43 PM
"mythtv-setup" giving "Session management error: Authentication Rejected" Mitchua Ubuntu 0 10-09-2005 04:32 PM
hardware hacking (2 way radio / walkie talkie) qwijibow General 10 12-08-2004 06:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:13 AM.

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
Open Source Consulting | Domain Registration