<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Rafael Vázquez on Medium]]></title>
        <description><![CDATA[Stories by Rafael Vázquez on Medium]]></description>
        <link>https://medium.com/@rafavg77?source=rss-4e1bac73c077------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_TFhmjAcivr7gk-E.png</url>
            <title>Stories by Rafael Vázquez on Medium</title>
            <link>https://medium.com/@rafavg77?source=rss-4e1bac73c077------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:54:38 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rafavg77/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Streaming Audio from Arch Linux with Pipewire to a Raspberry Pi with PulseAudio]]></title>
            <link>https://medium.com/@rafavg77/streaming-audio-from-arch-linux-with-pipewire-to-a-raspberry-pi-with-pulseaudio-d0d9451645e6?source=rss-4e1bac73c077------2</link>
            <guid isPermaLink="false">https://medium.com/p/d0d9451645e6</guid>
            <category><![CDATA[arch]]></category>
            <category><![CDATA[pipewire]]></category>
            <category><![CDATA[streaming]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[pulseaudio]]></category>
            <dc:creator><![CDATA[Rafael Vázquez]]></dc:creator>
            <pubDate>Mon, 03 Feb 2025 17:46:20 GMT</pubDate>
            <atom:updated>2025-02-03T17:46:20.169Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*H-FoOzgK4b7Z_yVbUZrGVQ.png" /></figure><p>Low-latency audio streaming is essential for many real-time applications, such as live performances or interactive multimedia setups. While Snapcast was tested as an alternative for streaming audio from Arch Linux with PipeWire to a Snapcast server, it is better suited for use cases like Spotify due to its buffer-based synchronization. However, streaming from PipeWire to PulseAudio offers an almost imperceptible latency, making it an excellent choice for real-time audio transmission.</p><p>Streaming audio from an Arch Linux system using PipeWire to a Raspberry Pi running PulseAudio is a great solution for transmitting audio to a home theater system. By utilizing a Raspberry Pi connected to an audio receiver, this setup allows you to take advantage of high-quality sound systems for an improved listening experience. This guide will walk you through the necessary steps to configure both the server (Raspberry Pi) and the client (Arch Linux) for seamless audio streaming.</p><h3>Setting up the Server (Raspberry Pi)</h3><h3>Install Required Packages</h3><p>On your Raspberry Pi, running Raspbian, execute the following commands to install and enable the necessary services:</p><pre>sudo apt-get install pulseaudio pulseaudio-module-zeroconf avahi-daemon<br>systemctl --user enable pulseaudio<br>systemctl --user start pulseaudio<br>sudo systemctl enable --now avahi-daemon<br>sudo systemctl start avahi-daemon</pre><h3>Configure PulseAudio</h3><p>Edit the PulseAudio configuration file to allow network connections:</p><pre>sudo nano /etc/pulseaudio/default.pa</pre><p>Add the following line at the end of the file:</p><pre>load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1;192.168.68.0/22 auth-anonymous=1</pre><p>Also, ensure the following line is uncommented to enable Zeroconf discovery:</p><pre>load-module module-zeroconf-publish</pre><p>Save the file and restart PulseAudio:</p><pre>systemctl --user restart pulseaudio</pre><h3>Setting up the Client (Arch Linux with PipeWire)</h3><h3>Create Configuration File</h3><p>On your Arch Linux system, create the necessary configuration directory and file:</p><pre>mkdir -p ~/.config/pipewire/pipewire.conf.d/<br>nano ~/.config/pipewire/pipewire.conf.d/zeroconf-discover.conf</pre><p>Add the following configuration to the file:</p><pre>context.modules = [<br>{   <br>  name = libpipewire-module-zeroconf-discover<br>  args = { }<br>}<br>]</pre><p>Save the file and restart the PipeWire services:</p><pre>systemctl restart --user pipewire wireplumber</pre><h3>Verifying the Connection</h3><p>After completing the setup, you should be able to see the Raspberry Pi as an available audio sink on your Arch Linux system. You can verify this using pw-cli or any PipeWire-compatible audio manager.</p><p>This setup enables seamless audio streaming from your Arch Linux machine to the Raspberry Pi over the network, making it ideal for various multimedia applications.</p><h3>Future Improvements</h3><p>I am still investigating how to make the Arch Linux machine automatically detect the PulseAudio server on the local network. Currently, I have to establish an SSH connection to make Arch Linux with PipeWire recognize the remote PulseAudio server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d0d9451645e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Fix ASUS ROG Strix G16 without audio in Ubuntu 23.10]]></title>
            <link>https://medium.com/@rafavg77/fix-asus-rog-strix-g16-without-audio-in-ubuntu-23-10-e3e616fc9f5c?source=rss-4e1bac73c077------2</link>
            <guid isPermaLink="false">https://medium.com/p/e3e616fc9f5c</guid>
            <category><![CDATA[fix-no-audio]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[ubuntu-23]]></category>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[asus-rog-strix]]></category>
            <dc:creator><![CDATA[Rafael Vázquez]]></dc:creator>
            <pubDate>Sun, 26 Nov 2023 22:53:23 GMT</pubDate>
            <atom:updated>2023-11-26T22:53:23.279Z</atom:updated>
            <content:encoded><![CDATA[<p>This article contains the steps to fix the lack of internal audio on the ASUS ROG Strix G16 laptop running Ubuntu 23.10. Includes references to articles, posts and other repos from people who shared to solve the problem. Additional information: Bluetooth and USB audio if you merge without applying these steps.</p><h3>Requirements</h3><ul><li>It is necessary to disable SecureBoot and FastBoot from the BIOS before applying the solution.</li><li>Install acpica-tools with:</li></ul><pre>sudo apt install acpica-tools</pre><h3>Generate the patch</h3><p>It is necessary to dump the ACPI tables to validate if the amplifier is connected by <a href="https://www.kernel.org/doc/Documentation/i2c/dev-interface">I2C</a> or <a href="https://www.kernel.org/doc/html/v4.9/driver-api/spi.html">SPI</a></p><pre>cd Documents <br>mkdir cirrus &amp;&amp; cd cirrus <br>sudo cat /sys/firmware/acpi/tables/DSDT &gt; dsdt.dat <br>iasl -d dsdt.dat</pre><p>The result will be the creation of the dsdt.dsl file and in which we must search for CSC3551.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*bHAvKHB5J-xsQhZj.png" /></figure><p>As seen in the previous image, the interface being used is SPI3.</p><p>To generate the patch it is necessary to clone the following repo and access the Sound capture</p><pre>git clone https://github.com/thor2002ro/asus_zenbook_ux3402za.git </pre><p>Access the repo and edit the ssdt-csc3551.dsl file where you have to replace the SPI0 interface with SPI3, as a suggestion save the file with the name cirrus_ssdt_patch.dsl.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*i758U_0LYOCcwboi.png" /></figure><h3>Install Patch</h3><p>To install the patch, execute the following commands</p><pre>iasl -tc cirrus_ssdt_patch.dsl<br>mkdir -p kernel/firmware/acpi<br>cp cirrus_ssdt_patch.aml kernel/firmware/acpi<br>find kernel | cpio -H newc --create &gt; patched_cirrus_acpi.cpio<br>sudo cp patched_cirrus_acpi.cpio /boot/patched_cirrus_acpi.cpio</pre><p>The following lines must be added to the /etc/default/grub file</p><pre>GRUB_EARLY_INITRD_LINUX_CUSTOM = &quot;patched_cirrus_acpi.cpio&quot; <br>GRUB_TIMEOUT_STYLE =menu <br>GRUB_TIMEOUT = 5</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*fdmonCaeTzDFKmfh.png" /></figure><p>Apply the modifications with the following command</p><pre>sudo update-grub update - grub</pre><p>The step of death is to restart and when you turn on the equipment, enjoy the audio working 🤣.</p><h3>References</h3><ul><li><a href="https://github.com/thor2002ro/asus_zenbook_ux3402za/tree/main/Sound">https://github.com/thor2002ro/asus_zenbook_ux3402za/tree/main/Soun</a>d</li><li><a href="https://asus-linux.org/wiki/cirrus-amps/">https://asus-linux.org/wiki/cirrus-amps/</a></li><li><a href="https://gist.github.com/lamperez/d5b385bc0c0c04928211e297a69f32d7">https://gist.github.com/lamperez/d5b385bc0c0c04928211e297a69f32d7</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e3e616fc9f5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ASUS ROG Strix G16 sin audio en Ubuntu 23.10]]></title>
            <link>https://medium.com/@rafavg77/asus-rog-strix-g16-sin-audio-en-ubuntu-23-10-b30abd795388?source=rss-4e1bac73c077------2</link>
            <guid isPermaLink="false">https://medium.com/p/b30abd795388</guid>
            <category><![CDATA[asus-rog-strix]]></category>
            <category><![CDATA[ubuntu-23]]></category>
            <category><![CDATA[diy]]></category>
            <category><![CDATA[fix-no-audio]]></category>
            <category><![CDATA[ubuntu]]></category>
            <dc:creator><![CDATA[Rafael Vázquez]]></dc:creator>
            <pubDate>Sun, 26 Nov 2023 22:44:52 GMT</pubDate>
            <atom:updated>2023-11-26T22:44:52.406Z</atom:updated>
            <content:encoded><![CDATA[<p>Este artículo contiene los pasos para solucionar de la falta de audio interno en la laptop ASUS ROG Strix G16 con Ubuntu 23.10. Incluye las referencias a los artículos, post y demás repos de personas que compartieron para solucionar el problema. Dato adicional el audio por bluetooth y USB si fusiona sin aplicar estos pasos.</p><h4>Requisitos</h4><ul><li>Es necesario deshabilitar SecureBoot y FastBoot desde el BIOS antes de aplicar la solución.</li><li>Instalar las acpica-tools con:</li></ul><pre>sudo apt install acpica-tools</pre><h4>Generar parche</h4><p>Es necesario dumpear las tabals ACPI para validar si el amplificador esta conectado por <a href="https://www.kernel.org/doc/Documentation/i2c/dev-interface">I2C</a> o <a href="https://www.kernel.org/doc/html/v4.9/driver-api/spi.html">SPI</a></p><pre>cd Documents<br>mkdir cirrus &amp;&amp; cd cirrus<br>sudo cat /sys/firmware/acpi/tables/DSDT &gt; dsdt.dat<br>iasl -d dsdt.dat</pre><p>El resultado será la creación del archivo dsdt.dsl y en el cual debemos buscar CSC3551.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/926/1*3Z0E4BGRRRZ8MbwL4iyBYw.png" /></figure><p>Como se observa en la imagen anterior, la interfaz que se está utilizando es la SPI3.</p><p>Para generar el parche es necesario clonar el siguiente repo y acceder a la caprta Sound</p><pre>git clone https://github.com/thor2002ro/asus_zenbook_ux3402za.git</pre><p>Acceder al repo y editar el archivo ssdt-csc3551.dsl en donde se tiene que sustituir la interfaz SPI0 por SPI3, como sugerencia guardar el archivo con el nombre cirrus_ssdt_patch.dsl.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*pCjgMPpdlOhG57Di5JwQMQ.png" /></figure><h4>Instalar Parche</h4><p>Para instalar el parche se deben ejecutar los siguientes comandos</p><pre>iasl -tc cirrus_ssdt_patch.dsl<br> mkdir -p kernel/firmware/acpi<br> cp cirrus_ssdt_patch.aml kernel/firmware/acpi<br> find kernel | cpio -H newc --create &gt; patched_cirrus_acpi.cpio<br> sudo cp patched_cirrus_acpi.cpio /boot/patched_cirrus_acpi.cpio</pre><p>Se debe agregar las siguientes linea al archivo /etc/default/grub</p><pre>GRUB_EARLY_INITRD_LINUX_CUSTOM=&quot;patched_cirrus_acpi.cpio&quot;<br>GRUB_TIMEOUT_STYLE=menu<br>GRUB_TIMEOUT=5</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/835/1*jAD7q29odtrHW_M17o-EOw.png" /></figure><p>Aplicar las modificaciones con el siguiente comando</p><pre>sudo update-grub</pre><p>El paso de la muerte es reiniciar y al encender el equipo disfrutar del audio 🤣.</p><h4>Referencias</h4><ul><li><a href="https://github.com/thor2002ro/asus_zenbook_ux3402za/tree/main/Sound">https://github.com/thor2002ro/asus_zenbook_ux3402za/tree/main/Soun</a>d</li><li><a href="https://asus-linux.org/wiki/cirrus-amps/">https://asus-linux.org/wiki/cirrus-amps/</a></li><li><a href="https://gist.github.com/lamperez/d5b385bc0c0c04928211e297a69f32d7">https://gist.github.com/lamperez/d5b385bc0c0c04928211e297a69f32d7</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b30abd795388" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Instalar TriggerCMD en Raspberry Pi 4 / Rasbian Buster]]></title>
            <link>https://medium.com/@rafavg77/instalar-triggercmd-en-raspberry-pi-4-rasbian-buster-e81f725f2e12?source=rss-4e1bac73c077------2</link>
            <guid isPermaLink="false">https://medium.com/p/e81f725f2e12</guid>
            <category><![CDATA[raspberry-pi-4]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[triggercmd]]></category>
            <dc:creator><![CDATA[Rafael Vázquez]]></dc:creator>
            <pubDate>Tue, 07 Sep 2021 05:30:01 GMT</pubDate>
            <atom:updated>2021-09-07T05:30:01.796Z</atom:updated>
            <content:encoded><![CDATA[<p>Trigger es un servicio en la nube nos permite ejecutar comando en nuestros dispositivos de manera segura sin tener que abrir puertos en nuestros routers de internet de nuestras casas. Es compatible con Windows, Mac y Linux y se pueden configurar diferentes comandos a los respectivos sistemas operativos.</p><p>Inicial mente debemos crear una cuenta en el TriggerCMD</p><p><a href="https://triggercmd.com/">TRIGGERcmd: Remotely run commands on your computers.</a></p><p>La versión gratuita nos permite ejecutar un evento por minuto en un dispositivo. La versión de paga no tiene esos límites por un costo muy bajo.</p><p>Una vez instalado y configurado la Raspberry Pi con Rasbian Buster ejecutaremos los siguientes comandos:</p><blockquote>sudo su -<br>apt-get -y update<br>apt-get -y upgrade<br>apt-get -y install npm nodejs</blockquote><blockquote>wget <a href="https://s3.amazonaws.com/triggercmdagents/triggercmdagent_1.0.1_all.deb">https://s3.amazonaws.com/triggercmdagents/triggercmdagent_1.0.1_all.deb</a></blockquote><blockquote>dpkg -i triggercmdagent_1.0.1_all.deb</blockquote><blockquote>Configurar el token obtenido de <a href="https://www.triggercmd.com/user/computer/create">https://www.triggercmd.com/user/computer/create</a></blockquote><blockquote>ejecutamos el comando triggercmdagent para configurar el token</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*y_amqGf6HKd59bzTTbnMlA.png" /></figure><p>Ejecutaremos el siguiente comando para instalar treiggercmd como un servicio del sistema</p><blockquote>sudo sh /usr/share/triggercmdagent/app/src/installdaemon.sh</blockquote><p>Realizar una reinicio y validar que el servicio se ejecute al arrancar el sistema</p><blockquote>sudo service triggercmdagent status</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IQKNlpGUA_8-WdVYE6-txA.png" /></figure><p>Al finalizar podemos ver que comandos están configurados por default y agregar nuevos commands y triggers accediendo al siguiente archivo /root/.TRIGGERcmdData/commands.json</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PggU2MrSLVKpAFPdrFoYkQ.png" /><figcaption>Contenido de archivo commands.json</figcaption></figure><p>Por default vienen configurados los triggers de Reboot, apt update. Si seguimos el mismo formato podremos incluir nuestros propios triggers y comandos.</p><p>Como mencioné al inicio al ser un servicio en la nube podremos mandar a ejecutar esos triggers desde cualquier lugar en internet como Google Home, Alexa, IFTT, Tvía CURL o vía WEB.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ezp41f1ftg0wQGnH-pbRdw.png" /><figcaption>Imagen que muestra las computadoras configuradas en mi cuenta</figcaption></figure><p>Al acceder al boton View Triggers podemos observar los triggers configurados en el archivo commands.json</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l5mokKVNbUh3vJx6ZJ_a5w.png" /><figcaption>Triggers configurados</figcaption></figure><p>Como ven TriggerCmd puede ser muy útil, entretenido dado que se pueden realizar muchas integraciones.</p><p>Estoy preparando otras Historias en donde compartiré como se puede utilizar TriggerCmd + un Webhook de IFTTT.</p><p>Hasta la próxima.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e81f725f2e12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Can’t complete SSH connection after successfully send the Password with Rasbian Buster]]></title>
            <link>https://medium.com/@rafavg77/cant-complete-ssh-connection-after-successfully-send-the-password-with-rasbian-buster-96dfbbc9a22?source=rss-4e1bac73c077------2</link>
            <guid isPermaLink="false">https://medium.com/p/96dfbbc9a22</guid>
            <category><![CDATA[raspbian]]></category>
            <category><![CDATA[raspberry-pi-4]]></category>
            <category><![CDATA[ssh]]></category>
            <dc:creator><![CDATA[Rafael Vázquez]]></dc:creator>
            <pubDate>Sun, 24 May 2020 09:23:09 GMT</pubDate>
            <atom:updated>2020-05-24T09:32:58.700Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KntIYEo4lwj2ya_00O5l2g.jpeg" /></figure><p>After installing Rasbian Buster on my new Raspberry Pi 4 and trying to make an SSH connection, I realized that the ssh connection was not possible. When executing the command to connect add the following parameter -vvv to see what the problem is.</p><blockquote>debug3: authmethod_lookup password<br>debug3: remaining preferred: ,password<br>debug3: authmethod_is_enabled password<br>debug1: Next authentication method: password<br>pi@192.168.88.213’s password: <br>debug3: send packet: type 50<br>debug2: we sent a password packet, wait for reply<br>debug3: receive packet: type 52<br>debug1: Authentication succeeded (password).<br>Authenticated to 192.168.88.213 ([192.168.88.213]:22).<br>debug1: channel 0: new [client-session]<br>debug3: ssh_session2_open: channel_new: 0<br>debug2: channel 0: send open<br>debug3: send packet: type 90<br>debug1: Requesting <a href="/service/mailto:no-more-sessions@openssh.com">no-more-sessions@openssh.com</a><br>debug3: send packet: type 80<br>debug1: Entering interactive session.<br>debug1: pledge: network<br>debug3: receive packet: type 80<br>debug1: client_input_global_request: rtype <a href="/service/mailto:hostkeys-00@openssh.com">hostkeys-00@openssh.com</a> want_reply 0<br>debug3: receive packet: type 91<br>debug2: channel_input_open_confirmation: channel 0: callback start<br>debug2: fd 3 setting TCP_NODELAY<br>debug3: ssh_packet_set_tos: set IP_TOS 0x48<br>debug2: client_session2_setup: id 0<br>debug2: channel 0: request pty-req confirm 1<br>debug3: send packet: type 98<br>debug1: Sending environment.<br>debug3: Ignored env TERM_PROGRAM<br>debug3: Ignored env SHELL<br>debug3: Ignored env TERM<br>debug3: Ignored env TMPDIR<br>debug3: Ignored env TERM_PROGRAM_VERSION<br>debug3: Ignored env TERM_SESSION_ID<br>debug3: Ignored env USER<br>debug3: Ignored env SSH_AUTH_SOCK<br>debug3: Ignored env PATH<br>debug3: Ignored env PWD<br>debug3: Ignored env XPC_FLAGS<br>debug3: Ignored env XPC_SERVICE_NAME<br>debug3: Ignored env SHLVL<br>debug3: Ignored env HOME<br>debug3: Ignored env LOGNAME<br>debug1: Sending env LC_CTYPE = UTF-8<br>debug2: channel 0: request env confirm 0<br>debug3: send packet: type 98<br>debug3: Ignored env DISPLAY<br>debug3: Ignored env _<br>debug3: Ignored env __CF_USER_TEXT_ENCODING<br>debug2: channel 0: request shell confirm 1<br>debug3: send packet: type 98<br>debug2: channel_input_open_confirmation: channel 0: callback done<br>debug2: channel 0: open confirm rwindow 0 rmax 32768</blockquote><p>After performing the proper validations that the IP of the raspberry PI is reachable on the same network, that the SSH service is running and after investigating the same problem I found the following solution.</p><blockquote>ssh -o “ProxyCommand nc %h %p” <a href="/service/mailto:pi@pirafa.colli.net">pi@</a>192.168.88.213</blockquote><p>The error is caused because OpenSSH sets a header called TOS (type of service) and sometimes some routers do not know what to answer when they detect that packet. I think that is what happened in my case and in two documented cases of the same problem.</p><p>Links to documented cases:</p><ul><li><a href="https://allthingscloud.eu/2017/09/29/ssh-login-hang-when-working-from-home/">SSH login hang when working from home</a></li><li><a href="https://access.redhat.com/discussions/3265241">sshd stopped working; connection hangs at debug2: channel 0: open confirm rwindow 0 rmax 32768 - Red Hat Customer Portal</a></li></ul><p>Thanks to Graham Land for the solution to this problem.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=96dfbbc9a22" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>