Skip to main content

the avatar of Karatek's Blog

How to fix the Teamspeak Audio mute problem on Linux

In this article, I’m gonna show you how to fix tix the TeamSpeak Audio mute problem on Linux. It has been tested on my machine, you can see details below.

Part Model
Operating System OpenSUSE Tumbleweed
Desktop Environment KDE Plasma 5.20.4
Host X470 AORUS ULTRA GAMING
Kernel 5.10.1-1-default
Window Manager KWin
CPU AMD Ryzen 5 2600 (12) @ 3.400GHz
GPU NVIDIA GeForce GTX 1060 6GB
PulseAudio Version 14.0-rebootstrapped

The problem

When using TeamSpeak on Linux, you may have experienced this issue: Starting TeamSpeak mutes certain applications, such as Spotify or VLC. This is pretty annoying, especially while gaming, since you constantly have to tab out of your game, open the volume control applet and unmute the application, only to see it getting muted later. This is not a solution, so let’s fix it.

The fix

Fixing this is pretty straight forward (See the OpenSUSE Wiki). All you have to do is commenting out the line load-module module-role-cork in /etc/pulse/default.pa. If you know what you’re doing, cou can do this yourself, but I’ll give step-by-step instructions below.

Using KDE Kate

  1. Hit [Alt] + [Space].
  2. Enter kdesu kate /etc/pulse/default.pa and hit [Enter].
  3. Search for the line saying “load-module module-role-cork” (Hint: Use [Ctrl] + [F])
  4. Put a # in front of it. It should look now look like the following:
    ### Cork music/video streams when a phone stream is active
    # load-module module-role-cork
    
  5. Save the file ([Ctrl] + [S]) and close the window.
  6. Open krunner by pressing [Alt] + [Space] and type pulseaudio -k && pulseaudio --start [Enter].

Using GNOME gedit:

  1. Open a terminal window.
  2. Start a root session. On Ubuntu/Debian based systems, I recommend using sudo bash, on SUSE/RHEL based systems use su -. Enter the required password, if you are prompted to.
  3. Edit the file /etc/pulse/default.pa. For doing so, type: gedit /etc/pulse/default.pa
  4. Search for the line saying “load-module module-role-cork”
  5. Put a # in front of it. It should look now look like the following:
    ### Cork music/video streams when a phone stream is active
    # load-module module-role-cork
    
  6. Save the file ([Ctrl] + [S]) and close the window.
  7. Exit the root session by typing exit.
  8. Kill the PulseAudio Server: pulseaudio -k
  9. Start it again: pulseaudio --start

Using the terminal (universal method)

  1. Open a terminal window. On KDE Plasma, this is done by opening the Kickstarter Menu and searching for “Konsole”.
  2. Start a root session. On Ubuntu/Debian based systems, I recommend using sudo -s, on SUSE/RHEL based systems use su -. Enter the required password, if you are prompted to.
  3. Edit the file /etc/pulse/default.pa. For doing so, type: vim /etc/pulse/default.pa
  4. Search for the line saying “load-module module-role-cork”. For doing so, enter a /and the line afterwards, so /load-module module-role-cork. See this wiki entry for more help regarding searching in VIM.
  5. Enter editing mode by hitting the key i on the keyboard. Now you will be able to edit the text file.
  6. Now out comment the line by putting a # in front of it. It should now look like the following:
    ### Cork music/video streams when a phone stream is active
    # load-module module-role-cork
    
  7. Now hit escape in order to exit editing mode and type :wq and hit Enter. This will save the file and exit vim.
  8. End the root session by using exit.
  9. Kill the PulseAudio Server: pulseaudio -k
  10. Start it again: pulseaudio --start

Sources

Further Reading


a silhouette of a person's head and shoulders, used as a default avatar

GRUB, u-boot, kernels and DTB loading (on the BPi M2 Zero and others)

While I was experimenting with the BananaPi M2 Zero board, I soon needed to adopt its device tree file (dtb).

Fortunately, the friendly members of the openSUSE:Factory:ARM community quickly hinted me at the grub2 "devicetree" command which can be specified similar to "linux" or "initrd" to name a file that's loaded as device tree.

Unfortunately, there is no way to make this really persistent, short of editing the grub generator scripts which will get lost on every grub2 update.

The other option would be to decompile the board's DTB file ("/boot/dtb/sun8i-h2-plus-bananapi-m2-zero.dtb" in my case), change and then recompile it, replacing the original file. This has two downsides: first, it will get overwritten with every update of the "dtb-sun8i" package (no idea how often this will be the case) and second, you might want to have the original file as fallback ready. In general, editing package managed files is not a good idea in my book, if it can be avoided it should be.

So I looked into the "who loads which device tree file" and found out that actually the dtb is loaded by u-boot, even before grub starts. U-boot has the name of the board built-in and thus the file name it is looking for. Additionally it has a search list of directories that it searches to find the dtb file. So the simplest way to apply your own dtb file would probably be to put it, with the original file name into the search path after the original file. I tried this approach at first, but then went for explicitly specifying a different filename, which is just not as subtle in case you need to debug this years later ;-)

So the method is relatively easy:

  1. put your modified dtb file into /boot, I named it custom.dtb.
  2. boot into u-boot, interrupt booting on the serial console
  3. in u-boot console, enter setenv fdtfile custom.dtb
  4. in u-boot console, enter saveenv
That's it. Now boot and verify that your dtb file is used.

Note that the u-boot environment is saved on the EFI partition of the SD card (first partition, FAT format) as file "uboot.env". If you need to reset the environment to the built-in defaults, then you can always mount the SD card in another machine and move away or delete uboot.env.


a silhouette of a person's head and shoulders, used as a default avatar

Disponible el vigesimotercer número de la revista digital SoloLinux

Ya tenemos disponible el vigesimotercer número de la revista digital SoloLinux la cual, como siempre, podéis leer online o descargar para poder disfrutar en vuestro lugar de vacaciones si tenéis una conexión de internet limitada o donde queráis, que para eso el Software Libre promueve la libertad.

Disponible el vigesimotercer número de la revista digital SoloLinux

La introducción es repetitiva, pero es que es interesante hacer un poco de historia. Hubo un tiempo en que las revistas sobre Linux digitales estuvieron de moda. Tenemos todavía publicándose Atix y Full Circle Magazine (en inglés, gracias Vampiro Nocturno), pero antes teníamos a Linux+, Papirux, Begins o TuxInfo, por citar algunas discontinuadas.

Desde hace un tiempo una revista digital SoloLinux tiene su entrada mensual en el blog, tener todas las alternativas posibles para compartir conocimiento es algo que caracteriza al Conocimiento Libre.

Y es loable que incluso en fiestas tan señaladas como las de final de año sean capaces de publicar su recopilatorio. ¡Muchas gracias por vuestro trabajo!

En palabras de sus creadores:

«No faltamos a nuestra cita mensual, la noche ha sido larga, pero aun así seguimos al pie del cañón. Uno de enero del 2021, primer día del año.

Desde SoloLinux os deseamos un feliz y prospero año nuevo, y que mejor manera de celebrarlo que descargando el nuevo número de la revista sololinux.«

Más información: Revista Sololinux N23

Disponible el vigesimotercer número de la revista digital SoloLinux

Así que, ya tenemos disponible el vigésimosegundo número de la revistas digital SoloLinux, el cual llega cargado de contenidos y con el siguiente índice.

SEGURIDAD
Como configurar Firewalld en CentOS 8
Instalar y configurar FirewallD en Debian 10
Escanear un servidor linux con Nikto
Permisos de archivo estándar simples en linux


MANUALES
Instalar el repositorio RPM Fusion en Fedora, CentOS y RHEL
Crear y administrar máquinas virtuales con Virt-Manager
Uso del comando stat en linux
Anarchy – Instalar Arch Linux para
novatos
Instalar el Kernel 5.10 LTS en Ubuntu o Linux Mint
Instalar un servidor Debian 10 con
Yunohost
Montar un servidor casero con FreedomBox
Instalar XFCE 4.16 en Ubuntu 20.04 o Linux Mint
Uso del comando Nslookup en linux
Uso del comando Netstat en linux
REDES
Monitorizar la red con Iptraf
Uso del comando route en linux

NOTICIAS
Características del Kernel 5.10 LTS
(disponible la RC-6)
CentOS se muere – Bienvenido Rocky Linux
Linux vs MacOS – Sus principales
diferencias
Entrevista a un Sysadmin Linux en 17 preguntas


SOFTWARE
Instalar Tixati Torrent en Ubuntu 20.04 y otros linux

HARDWARE
Que son los inodos en linux
Mantener los controladores Mesa
actualizados

OPINIÓN DEL LECTOR
La opinión de Raydel Comas Rodríguez
La opinión de Erwin Andres Espitia

La revista puede ser descargada o simplemente visualizarla en línea, ya que se cuelga en diferente servicios como Calameo. A continuación os dejo los enlaces de descarga y visualización directa de todos los números publicados hasta la fecha.

Además, recordar que desde el número anterior se ha abierto el canal oficial sololinux.es de Telegram: https://t.me/sololinux_es

Sololinux #23 Diciembre 2020
[/one_half]

Evidentemente, este proyecto no se centra en exclusivo a los contenidos de su web y está abierto a colaboraciones de todo tipo. De esta forma si estas interesado en insertar publicidad en nuestra revista, o quieres que publiquemos algún articulo que hayas escrito tu mismo, puedes contactar con «Adrián» por correo electrónico: adrian @ sololinux. com

Muchos ánimos en este proyecto que ya parecer estar consolidad y que que facilita la difusión del Software Libre de una forma que ya no es tan habitual en estos tiempos pero que es igual de válida y necesaria en algunas ocasiones.

the avatar of Chun-Hung sakana Huang

WordPress with container 練習小記

WordPress with container 練習小記


OS: openSUSE Leap 15.2 in Azure


今天來寫 WordPress 的練習文章

現在 WordPress 的使用率已經越來越高了, 今年的一些讀書計劃的內容內也有 WordPress 的規劃

首先就使用 container 的方式來進行練習.


規劃架構



  • 使用 openSUSE Leap 15.2 VM in Azure 作為 container host

  • 使用 container 方式執行 MySQL 與 WordPress

  • 建立獨立的 container network 給 WordPress 與 MySQL

    • 好處是可以使用名稱的方式連接

  • 建立 container volume web-data

    • 掛載 MySQL 的 /var/lib/mysql 以利後續維護與升級

  • 可以考慮另外建立獨立的 volume 來存放 WordPress 的 Plugin

在 Azure 內建立 openSUSE Leap 15.2 的 VM


SSH 連線虛擬機器, 並使用 > sudo su - 切換為管理者 root


啟動 docker 服務

# systemctl  start  docker


首先觀察主機上的 volume


# docker  volume  ls


DRIVER              VOLUME NAME


建立 volume

# docker  volume  create  web-data


web-data


觀察資訊

# docker  volume  ls


DRIVER              VOLUME NAME

local               web-data



# docker  volume  inspect  web-data


[

    {

        "CreatedAt": "2021-01-03T06:04:30Z",

        "Driver": "local",

        "Labels": {},

        "Mountpoint": "/var/lib/docker/volumes/web-data/_data",

        "Name": "web-data",

        "Options": {},

        "Scope": "local"

    }

]


  • 可以觀察 web-data 在本機上面的 mountpoint




一樣, 建立之前先觀察資訊


# docker  network  ls


NETWORK ID          NAME                DRIVER              SCOPE

0362ba8e433b        bridge              bridge              local

1e4986872739        host                host                local

0ac3b895fef7        none                null                local


建立 network


# docker  network  create  web-network


457bc7fc24f0b26796f32f5f3191853b9363a3a83e07044cf8d4fe5bd8a213fa


再次觀察資訊

# docker  network  ls


NETWORK ID          NAME                DRIVER              SCOPE

0362ba8e433b        bridge              bridge              local

1e4986872739        host                host                local

0ac3b895fef7        none                null                local

457bc7fc24f0        web-network         bridge              local


爲何要建立 network, 因為預設 bridge network 不能用名稱解析, 這樣會連接不到

可以參考官方的說明: Differences between user-defined bridges and the default bridge

  • https://docs.docker.com/network/bridge/

  • User-defined bridges provide automatic DNS resolution between containers

  • Containers on the default bridge network can only access each other by IP addresses, unless you use the --link option, which is considered legacy

另外一篇文章


開始佈署 MySQL


# docker  run  --name  web-mysql --network web-network -e  MYSQL_ROOT_PASSWORD=rootpassword  -e  MYSQL_DATABASE=wp  -e  MYSQL_USER=sakana  -e  MYSQL_PASSWORD=sakanapassword -d  mysql:5.7



開始佈署 WordPress

# docker  run  --name  web-wordpress  --network  web-network  -e  WORDPRESS_DB_HOST=web-mysql:3306 -e WORDPRESS_DB_NAME=wp  -e  WORDPRESS_DB_USER=sakana  -e  WORDPRESS_DB_PASSWORD=sakanapassword  -p  80:80  -d  wordpress


  • 因為只是實驗, 所以上面的相關密碼就用簡單的方式


如果要更安全的方式可以考慮使用 docker secret



進行測試

首先在 Azure 上的網路安全性群組, 先開放 port 80 可以存取



接下來連線 VM 的對外 IP

就會進入 WordPress 的安裝畫面

語系選繁體中文 -- > 繼續




輸入相關資訊

點選 安裝WordPress




大功告成

點選 登入



使用剛剛建立的帳號密碼

就可以進行登入



接下來就可以進入後台轉寫文章, 進行設定



或是觀察自己的第一個 WordPress 了




另外也有看到 docker-compose 安裝方式, 先放在下面, 以後再說

docker-compose 安裝


在 minikube 上架設 Stateless Wordpress




又離 WordPress 進了一步

~ enjoy it



Reference


the avatar of Nathan Wolf

a silhouette of a person's head and shoulders, used as a default avatar

openSUSE Tumbleweed on the Banana Pi BPI-M2 ZERO

This is the first post of a small series about openSUSE on the Banana Pi BPI-M2 ZERO.

Preface

I recently got myself a Banana Pi M2 Zero board while ordering other stuff at an electronics distributor. The M2 zero is the same form factor and feature set as the Raspberry Pi Zero W (the GPIO pin headers are said to be compatible, it has WiFi and Bluetooth built in and an USB OTG port). The CPU is an Allwinner H2+, a quad-core ARM processor running a 1GHz clock speed, RAM size is 512MB. Processing power is probably comparable to a Raspberry Pi 2 board.

I bought the M2 Zero to use it with an RTLSDR stick to receive the signal of my outside RF temperature sensor. This worked with the Raspberry Pi Zero W, but was a bit too much for the slower CPU which has other more important things to do anyway (playing internet radio ;-), so the M2 Zero was a cheap, more powerful alternative. The box will be running headless and thus I do not care about support for graphics and multimedia anyway.

In the end, I switched the RF receiver to a RaspyRFM board whih is using less energy and simpler to use than an RTLSDR stick just to receive some sensors and now the M2 Zero board is free for tinkering...


openSUSE on the M2 Zero

There was already an image available for the Banana Pi M2 Plus (called "sinovoipbpim2plus"), which is the "bigger brother" of the M2 zero, but that image did not boot. Experimenting with the u-boot image from armbian lead to success in "openSUSE Tumbleweed boots with armbian u-boot". Thanks to the friendly openSUSE ARM community, a matching u-boot version for the M2 Zero was built quickly and I could submit the updated image in OBS to get an image ready for the board (called "sinovoipbpim2zero").

Some small things are still to be sorted out, this is why I would suggest you use the image from the home:seife:bananapi repository for now. Since the board has only WiFi networking (more on that in a later post...), you'll need a serial console wired up for initial setup and I strongly suggest to use at least the "openSUSE-Tumbleweed-ARM-X11-..." image and not the JeOS image, since JeOS does not contain NetworkManager and using WiFi with wicked (actually using anything with wicked) is not fun.

So put the image on the SD card, connect the serial console, boot the box up. Log in as root. WiFi connection is easily established then:

nmcli dev wifi connect YOUR_SSID password YOUR_PASSWORD

That's it, have fun! ;-)



Addon note: When I started to write this post, my home:seife:bananapi repo was necessary for actually getting WiFi to work (contained a fixed kernel-firmware package). This has all been submitted to upstream or openSUSE:Factory:ARM now. All that's "special" in my repo now is a slightly extended package selection in the image (the "dtc" package is included) and a fixed config.sh script that makes NetworkManager actually work correctly, including name resolution, see boo#1180234 for details), so the image from openSUSE:Factory:ARM should be "good enough" for most uses already and in the near future I'll probably retire the home:seife:bananapi project or use it just for development stuff).

a silhouette of a person's head and shoulders, used as a default avatar

Pemenang Survei openSUSE Indonesia Tahun 2020

Terima kasih sebelumnya kami ucapkan sudah berkenan untuk mengisi survei Tahun ini, semoga saran dan masukan dari teman-teman semuanya bisa membuat komunitas openSUSE Indonesia bisa lebih baik lagi.

Kami ucapkan juga selamat kepada 5 pemenang terpilih acak yang beruntung mendapatkan T-Shirt dan Majalah edisi spesial dari openSUSE Indonesia, Mohon kirimkan alamat, ho hp, dan ukuran T-shirt ke email admin@opensuse.id

  1. Ahmad Sabilil Maromi
  2. Yoga Marselino
  3. Dikman Satya Nugraha
  4. Fajar Mustaqim
  5. Yusuf Ayuba

Buat yang belum beruntung jangan berkecil hati, nantikan event-event kami selanjutnya.

a silhouette of a person's head and shoulders, used as a default avatar

#openSUSE Tumbleweed revisión de la semana 53 de 2020

Tumbleweed es una distribución “Rolling Release” de actualización contínua. Aquí puedes estar al tanto de las últimas novedades.

Tumbleweed

openSUSE Tumbleweed es la versión “rolling release” o de actualización continua de la distribución de GNU/Linux openSUSE.

Hagamos un repaso a las novedades que han llegado hasta los repositorios estas semanas.

El anuncio original lo puedes leer en el blog de Dominique Leuenberger, publicado bajo licencia CC-by-sa, en este enlace:

La última semana de este 2020 llega a su fin y con ella el año. Yhacemos un repaso de esa última semana ya en el recién estrenado 2021.

Tumbleweed se ha despedido con un gran final y 7 nuevas snapshots llegaron hasta los repositorios (1224, 1225, 1226, 1227, 1228, 1229 y 1231).

Los cambios más notables que trajeron fueron:

  • Mozilla Firefox 84.0
  • gtk+ 2.24.33: la publicación final de la serie gtk 2
  • Linux kernel 5.10.3
  • Ruby 3.0: rubygems han sido habilitadas, la versión predeterminada sigue siendo 2.7

Y esto es lo que se esperan en próximas actualizaciones ya de cara al 2021:

  • Linux kernel 5.10.4
  • icu 68.1
  • Multiples versiones de python 3. Además de la versión python 3.8, será reintroducida la version 3.6. Los móculos para python serán recompilados para ambas versiones.
  • RPM 4.16
  • Rpmlint 2.0
  • openssl 3

Si quieres estar a la última con software actualizado y probado utiliza openSUSE Tumbleweed la opción rolling release de la distribución de GNU/Linux openSUSE.

Mantente actualizado y ya sabes: Have a lot of fun!!

Enlaces de interés

Geeko_ascii

——————————–

a silhouette of a person's head and shoulders, used as a default avatar

Gestor de juegos en Linux: Lutris más que un lanzador

En estas fechas siempre apetece pasar un poco de tiempo dándole al teclado y al ratón (o al gamepad si es el caso) jugando a un videojuego. Y sí, en Linux no es solo posible sino que cada vez es más fácil gracias a los juegos nativos, Wine, PlayOnLinux o, la aplicación que quiero compartir con vosotros hoy, Lutris un gestor de juegos en Linux muy interesante que no solo nos ayuda a lanzar juegos sino que nos ayuda a organizar nuestra colección.

Gestor de juegos en Linux: Lutris

Atrás quedó el tiempo en que jugar en Linux era una quimera ya que era imposible hacerlos funcionar. Pero eso ha cambiado.

Dejando de lado los juegos libres y nativos para GNU/Linux (podéis ver un ejemplo de 31 de ellos activos en 2020 en esta entrada) y los disponibles vía emulación, las compañías de videojuegos y los emuladores especializados como Wine están haciendo que cada vez sea más fácil utilizar nuestra máquina libre en una plataforma de videojuegos.

Además, aparecen proyectos como el que nos ocupa en esta entrada, Lutris, que no solo nos ayudan a instalar juegos sino que te ayuda a gestionarlos.

En pocas palabras, Lutris es una aplicación que busca centralizar todos los juegos que tu equipo pueda ejecutar (o al menos lo intentará) recopilando los juegos que tengas tiendas virtuales como GOG, Humble Bumble o la todopoderosa Steam y, además, gestionará los juegos que tengas instalados en tu equipo, tanto nativos como emulados.

Gestor de juegos en Linux: Lutrix

Para ello, tenemos las siguientes secciones:

  • Library, que nos muestra los juegos instalados en nuestro sistema.
  • Sources, que nos muestra los juegos que tenemos en nuestras tiendas online (Lutris, GOG, Humble Blumble y Steam)
  • Runners, que nos muestra los diferentes motores que tenemos para lanzar juegos (Linux, MAME, Wine, Wine Steam, Snes, ZDoom, etc.)
  • Platforms, que nos muestras las diferentes plataformas que tenemos ya activos y disponibles.

Gestor de juegos en Linux: Lutrix

Quizás lo más interesante es navegar por la librería de Lutris y utilizar los scripts de la Comunidad que nos facilitan su instalación y optimización, con lo que nos hacen posible disfrutar de nuestra máquina linuxera como plataforma de juegos.

Gestor de juegos en Linux: Lutrix

Estas vacaciones he invertido un poco de tiempo para probarlo y he conseguido instalar juegos tanto de Steam como emulados de SuperNintendo o Sega, aunque lo que más me interesaba, su modo gestor de juegos. Seguiré investigando.

the avatar of Nathan Wolf