From owner-freebsd-questions@freebsd.org Wed Jul 1 15:02:39 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 41C223548A3; Wed, 1 Jul 2020 15:02:39 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.75]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49xkwt1CmXz4c8t; Wed, 1 Jul 2020 15:02:37 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([188.102.109.128]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPA (Nemesis) id 1Mgf8s-1j9dP43EIW-00h45V; Wed, 01 Jul 2020 17:02:34 +0200 Date: Wed, 1 Jul 2020 17:02:34 +0200 From: Polytropon To: Aryeh Friedman Cc: FreeBSD Mailing List , freebsd-java@freebsd.org Subject: Re: Allowing remote java app to access local sound system Message-Id: <20200701170234.9f6fa6dd.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:Ql/Mm8VZscoquDxmb6LK8l4fwqWH+gsb8Wt/x1DPJ9K63kYJkL8 9GD1IBmyZzmM6iBDSnunidf/quxe8hyJNcAKGLY+UQRPZdPhE8TNTE66nauo3yBtnf5nt5q EVhlwujoXjqHyx/h8yiaWBwouTcTax74ELtc4I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M X-Rspamd-Queue-Id: 49xkwt1CmXz4c8t X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 217.72.192.75) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [3.40 / 15.00]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; RECEIVED_SPAMHAUS_PBL(0.00)[188.102.109.128:received]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.10)[-0.100]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_SPAM_SHORT(0.94)[0.938]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(0.16)[0.161]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[217.72.192.75:from]; R_SPF_NA(0.00)[no SPF record]; RWL_MAILSPIKE_POSSIBLE(0.00)[217.72.192.75:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_LAST(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2020 15:02:39 -0000 On Wed, 1 Jul 2020 08:43:45 -0400, Aryeh Friedman wrote: > I have a (java) app that works fine on a remote host and displays it's GUI > by setting the DISPLAY environment variable. The app also requires a > working microphone (and other audio output devices). Is there any way to > make it use the microphone/audio output on my local machine? Note I > suspect I would need to do this transparently to Java. I am pretty sure > Java has no idea how to do this on its own. In the past, I had a similar question, titled "Audio for SSH and VNC" in October 2019. Maybe the following answers provide some inspiration? On Thu, 17 Oct 2019 00:10:00 -0400, Derek Schrock wrote: > On Wed, Oct 16, 2019 at 10:44:50PM EDT, Polytropon wrote: > > In order to extend the classic "remote desktop" concept > > in FreeBSD - here: SSH in combination with tigervnc-server > > and ssvnc-gui -, what is a good way to also transmit audio? > > For example, if you start a video player or a web browser > > with video and audio content, you can _see_ it on your remote > > system, while the audio is playing on the distant server. > > Is there an easy way to also get the audio to the remote > > system where it can be _heared_? > >=20 > >=20 > I've done this before via tunneling puslseaudio over ssh. > However, it would be easier to just use xrdp via net/xrdp > and audio/pulseaudio-module-xrdp. On Thu, 17 Oct 2019 13:18:00 +0100, Dave B via freebsd-questions wrote: > Look up a program called Seren. >=20 > The sources build just fine on modern Linux's, and possibly FreeBSD, > though I've not tried the latter. >=20 > =A0=A0=A0 http://holdenc.altervista.org/seren/=A0=A0 It's a non GUI tool,= running > in a command line terminal, so very low CPU usage.=A0 >=20 > (Pulse is good, but not exactly low impact.) >=20 > Seren was I think intended for gamers, many to many etc, but works point > to point just fine, and with very good quality audio. >=20 > It streams via UDP, as such wont travel over SSH, but OpenVPN works > well, if you only want one connection, else Seren can handle its own > encryption for the audio traffic.=A0 Though how "secure" that is, I don't > know.=A0 I move off default ports and hide "somewhere else" up in the > high-port space. >=20 > There is a simple text messaging facility too. >=20 > No affiliation, just a very happy user for remote ham radio needs. --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...