Skip to main content

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

Oh My Posh da color e información al prompt de tu terminal

Oh My Posh ofrece un montón de temas distintos para adornar el prompt,añadiendo color e información y un toque esclusivo a tu terminal

Desde hace año utilizo Tide como prompt para la terminal, donde uso Fish como shell, porque es útil, visualmente bonita y ofrece información útil y concisa.

Pero desde hace unos días, estoy probando Oh My Posh, un motor de prompts, en el que hay disponibles más de 120 temas distintos que ofrecen un rango de elección amplio.

Desde minimalistas, hasta recargados. Desde sobrios en colores, hasta llenos de colores. Ofreciendo seguro uno que se adapte a tus gustos, y si no, no te preocupes, puedes adaptarlos o crear tu uno a tu gusto.

Qués es Oh My Posh

Es un motor de prompts para la terminal, multiplataforma, escrito en Go y publicado bajo una licencia MIT. Trata de ser eficiente, rápido y personalible. Oh My Posh te permite utilizar el conjunto de colores completo de tu terminal utilizando colores para definir y representar el prompt.

Es altamente personalizable, ya que puedes ajustar fácilmente los temas existentes o crear los tuyos propios. Desde segmentos estándar hasta implementaciones personalizadas.

No importa qué shell estés utilizando (Bash, Fish, Zsh, etc), puedes transferir la configuración de un shell y/o máquina a otra para obtener el mismo prompt en cualquier lugar donde trabajes.

Instalación

Para instalarlo en tu máquina GNU/Linux simplemente hay que ejecutar el comando:

curl -s https://ohmyposh.dev/install.sh | bash -s

Para usar los temas, deberás tener una fuente tipográfica Nerd de símbolos instalada y configurada en tu equipo. Y configurar tu shell para que utilice el prompt de Oh My Posh.

En fish basta con edita el archivo ~/.config/fish/config.fish e incluir la siguiente línea: oh-my-posh init fish | source

Eso utilizará el tema predeterminado, pero si quieres utilizar alguno de los 124 temas disponibles, basta con que en vez de esa línea pongas la siguiente: oh-my-posh init fish --config '~/.cache/oh-my-posh/themes/<nombre_del_tema>' | source Y volver a abrir una terminal.

He hecho un vídeo donde hago un repaso a algunos de los temas de Oh My Posh, viéndolos en acción.

En el vídeo se aprecia la información que ofrece cuando entramos en un directorio Git de GitHub o GitLab, o en un directorio normal. Qué muestra cuando se ejcuta un comando erróneo, etc.

Hay temas simples y temas muy recargados, para ajustarse a todos los gustos. ¿Te animas a probarlo?

Este vídeo está alojado en archive.org:

También está disponible en YouTube para quien prefiera esta plataforma (o verlo mediante mpv u otra opción, en su equipo sin visitar la web de YouTube:

https://youtu.be/U8PqNdxBogY

Enlaces de interés

the avatar of openSUSE News

Tumbleweed Monthly Update - August 2024

Welcome to the monthly update for Tumbleweed for August 2024. This month has been a productive period with significant progress and updates. The rolling-release team is making headway on longer-term projects like dbus-broker showing promising progress and the transition to GNU Compiler Collection 14 as the default compiler is in its second phase as there are ongoing efforts to address the remaining build failures. Those efforts for GCC 14 becoming the default compiler are likely to arrive in the 20240827 snapshot. Go 1.22 became the default go compiler this month and ffmpeg switched from version 6 to 7. However, a critical issue emerged with the network stack in recent builds due to a race condition. Those using Wicked, which is a network configuration tool, were advised to delay updates or rollback using snapper while ongoing efforts focused on resolving the problem. A submit request for Wicked was made on August 28 for resolving the issue and will likely address the networking issue in a snapshot before August ends. Those not dependent on Wicked are encouraged to proceed with updates as usual.

Stay tuned and tumble on!

Should readers desire more frequent information about snapshot updates, they are encouraged to subscribe to the openSUSE Factory mailing list.

New Features and Enhancements

  • Linux Kernel 6.10.4: This update has some key changes including a fix to the klp_symbols macro in the kernel spec file, which addresses errors in the build process for openSUSE Tumbleweed. Networking improvements resolve issues in the bnxt_en driver and multiple fixes were made to the MPTCP protocol, which multiple path connection use while maximizing throughput and increasing redundancy. Updates to the DRM subsystem include fixes for memory leaks in Mesa’s V3D driver, handling issues in the AMD GPU driver and addressing black screen issues in the AST driver after resume. The update also includes critical bug fixes for the ALSA sound system, Btrfs file system and various other components.
  • GNOME 46.4: This update brings a series of enhancements and fixes across several core GNOME packages. While the gnome-bluetooth package updated to version 46.1, it addresses a bug that prevented some device icons from appearing correctly and includes updates for translations. The control center improves accessibility, resolves a memory leak in the default apps page and fixes issues related to network settings, Bolt visibility, and fingerprint enrollment. The gnome-software update corrects AppStream metadata formatting, includes translation updates and refreshes user docs and Help documentation.
  • php 8.3.10: This update brings a series of critical fixes and enhancements. In the core, it resolves several issues, including memory leaks, segmentation faults and support for systems with sysconf(_SC_GETPW_R_SIZE_MAX) == -1. Notable bug fixes include addressing a use-after-free in property coercion with __toString() and resolving crashes in DOMDocument::xinclude(). The updated package improves compatibility with libxml2 versions 2.13.0 and 2.13.2 and fixes issues in extensions like PDO. The update fixes buffer overflows, stream wrapper truncations and memory leaks.
  • KDE Plasma 6.1.4: This Konqi update brings a variety of fixes and improvements across several core components of the Plasma desktop environment. Discover addresses bugs related to license text parsing, icon caching and visibility calculations. The Crash handler Dr Konqi enhances reporting by integrating version information and improving metadata synthesis for crashes in kwin_x11. KPipeWire adds resilience to stream handling during PipeWire restarts and introduces a new encoder using libopenh264. KWin includes numerous fixes, such as improving window focus management, addressing crashes and enhancing rendering performance. Updates to the Plasma Desktop refine folder view behavior, applet layouts and visual configurations.
  • Frameworks 6.5.0: This update sees Attica add support for a new version field in DownloadDescription. Bluez Qt fixes connections related to the connectedDevices list property. Breeze Icons introduces new category icons and resolves issues with symlinks for various applications. Extra CMake Modules adds MANPATH support and improves WaylandScanner handling. KAuth enhances dbus backend functionality and KIO improves file handling, enhances logging and optimizes connection management. Additionally, Kirigami refines dialog behavior and accessibility features, while KTextEditor adds new actions for space and tab conversion along with improving drag behavior with wrapped lines. These updates collectively enhanced the functionality, stability and user experience across the KDE Plasma ecosystem.
  • systemd 256.5: The update restores the 32-bit version of libudev.so, which was inadvertently dropped during the merge of libudev-devel into systemd-devel. This restoration is essential for enabling plug-and-play support in Wine for 32-bit Windows applications. For a detailed list of changes, users can visit its GitHub changelog.
  • KDE Gear 24.08: Just in time for the upcoming Akademy 2024, KDE Gear 24.08 arrives with a fresh wave of updates across a broad range of applications. The release introduces new features for Dolphin like easier file management with administrative privileges and a streamlined Move to New Folder option. The disk visualizer Filelight has a friendlier interface and improves Windows version, which helps you visualize disk usage right from within Dolphin. Konsole makes navigating long outputs easier with a new bookmarking feature and video editor Kdenlive advances keyframe curve editing and refined effects handling. Travel apps like Itinerary and conference tracker Kongress are updated to assist you during Akademy, offering detailed travel plans and venue maps.

Key Package Updates

  • NetworkManager 1.48.8: The latest update resolves an issue with Open vSwitch (OVS) where stage3 activation could be triggered without an initialized DHCP client and improves configuration parsing by correctly handling the autoconnect-ports value to provide better control over automatic connections. Enhancements to IPv6 networking were made by preserving router preferences in neighbor discovery (NDISC).
  • pavucontrol 6.1: The major version of PulseAudio Volume Control package addresses issues such as translations not being correctly applied, a bug where unplugged audio cards would not disappear from the interface and a misalignment in Bluetooth codec selection. The application name in the desktop file has also been corrected to Volume Control. Version 6 introduces significant changes that including a migration from Gtk 3 to Gtk 4, embedded UI resources and improved support for 144 Hz monitors.
  • binutils 2.43: A new .base64 pseudo-op allows encoding data as base64 strings and Intel APX support is expanded with new instructions like CFCMOV and CCMP. The x86 Intel syntax now provides more warnings for mnemonic suffixes, and macros in assembly code can use \+ to track execution counts. Significant updates include support for armv9.5-a in AArch64 and new extensions in RISC-V, along with improved data handling in s390 and MIPS. The arm architecture drops support for outdated co-processors, while LoongArch gains finer control over assembly options. Enhancements in tools like readelf and objdump offer more detailed outputs, particularly for .eh_frame sections. The linker now includes options for segment handling and ISA level reporting. These updates enhance binutils’ functionality and adaptability across a wide range of platforms.
  • curl 8.9.1: This update addresses a critical regression fixing proper handling of sigpipe signals by initializing the struct correctly. Bug fixes include better detection of libssh and nettle in CMake providing better connection shutdown handling for event-based processing and more robust socket code for the --ip-tos option. Updates also improve compatibility and stability across different platforms, including fixes for 32-bit systems, OS400 builds and defensive coding for NULL inputs.
  • bash 5.2.32: Key fixes include correcting an inverted configure test for strtoimax(3) and resolving a problem where a DEBUG trap in an asynchronous process could mistakenly take control of the terminal, causing the calling shell to exit. The update corrects an issue where functions containing coprocesses were displayed with an erroneous COPROC command, making them unreadable as input.

Bug Fixes

  • orc 0.4.39:
    • CVE-2024-40897 was solved with versions before 0.4.39, which had a buffer overflow vulnerability in orcparse.c.
  • curl 8.9.1:
    • CVE-2024-7264 was a parser flaw that may cause crashes or leak heap contents.
  • Flatpak 1.15.10:
    • CVE-2024-424721 was a flaw that allows unauthorized file access via symlink in persistent directories.
  • tiff:
    • CVE-2024-7006 was a null pointer flaw that may cause crashes, which could lead to denial of service.
  • unbound 1.21.0:
    • CVE-2024-43167 was a null pointer flaw that may cause crashes, leading to a denial of service as well.
  • Mozilla Firefox 129.0: This release fixes 14 CVEs, which addresses multiple vulnerabilities, including fullscreen notification dialog obscuration with CVE-2024-7518, CVE-2024-7523, and CVE-2024-7529. There was an out-of-bounds memory access CVE-2024-7519 and CVE-2024-7522. There was type confusion and incomplete exception handling in WebAssembly with CVE-2024-7520 and CVE-2024-7521 along with some other CVEs affecting security and memory handling.
  • python311:
    • CVE-2024-6923 was a medium severity vulnerability in CPython’s email module that allows header injection due to improper quoting of newlines during email serialization.

Conclusion

August 2024 saw significant improvements for Tumbleweed users. Security fixes were made across multiple packages to ensure Tumbleweed remains stable and secure. Significant improvements were made in tools like pavucontrol, binutils and curl, with enhanced compatibility, performance and security. Noteworthy changes in packages such as php, systemd, and NetworkManager are crucial fixes. These updates collectively contribute to a more refined and stable rolling release environment.

Stay updated with the latest snapshots by subscribing to the openSUSE Factory mailing list. For those Tumbleweed users who want to contribute or want to engage with detailed technological discussions, subscribe to the openSUSE Factory mailing list . The openSUSE team encourages users to continue participating through bug reports, feature suggestions and discussions.

Contributing to openSUSE Tumbleweed

Your contributions and feedback make openSUSE Tumbleweed better with every update. Whether reporting bugs, suggesting features, or participating in community discussions, your involvement is highly valued.

(Image made with DALL-E)

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

Lanzado Calligra 4.0, la suite ofimática de KDE

El 16 de enero de 2017 publiqué la última entrada sobre esta suite ofimática. Se trataba del lanzamiento de Calligra 3.0 y desde entonces no he hablado nada más de ella. La razón es que estamos ante una de esas aplicaciones que ni acaban de despegar pero que mucha gente quisiera que lo hicier,a, inlucído un servidor. Eso no es obstáculo para alegrarme de que ha sido lanzado Calligra 4.0, la suite ofimática de KDE. ¿será esta vez la definitiva y el proyecto alcanzará la madurez necesaria para que no hablemos nunca más de su resurrecció?

Lanzado Calligra 4.0, la suite ofimática de KDE

Hacía más de 7 años que no hablaba de Calligra en en blog. Y es que el proyecto entró en dique seco y ha costado mucho revivirlo. Pero lo ha hecho con una gran actualización: la transición completa de Calligra a Qt6 y KF6, junto con una importante revisión de su interfaz de usuario.

Además, este nuevo Calligra 4.0 trae consigo algunos cambios en su ecosistema de aplicaciones. Por ejemplo algunas partes tradicionales como Kexi y Plan van a a tener un calendario de lanzamiento independiente, por tanto esta versión sólo contiene los cuatro componentes siguientes:

 En otras palabras, se entiende que han aligerado carga para que el globo vuele de forma estable, ya tendrán tiempo de adquirir nuevas aplicaciones a la suite. Una sabia elección.

Por otra parte, hay algunas novedades que desarrollaré más adelante pero en esta entrada destaco la novedad general y es queWords, Sheets y Stage presentan ahora un nuevo diseño de la barra lateral. Actualmente, esto se implementa utilizando un estilo proxy, que ya no será necesario una vez que se fusione la solicitud de fusión relacionada en Breeze.

Lanzado Calligra 4.0, la suite ofimática de KDE

Más información: Calligra

La entrada Lanzado Calligra 4.0, la suite ofimática de KDE se publicó primero en KDE Blog.

the avatar of openSUSE News

Tumbleweed Faces Regression with Wicked as Network Stack

With the switch to dbus-broker as D-Bus implementation in Tumbleweed Snapshot 20240825, a regression was introduced: When using Wicked for network configuration, the system boots up without network connectivity. Systems that use NetworkManager are not affected.

NetworkManager is the default for all new installations since 2022 and desktop installations since 2018, so this mostly affects systems which have been installed before, or have been switched to Wicked manually.

Users are advised to postpone system updates for now if they use Wicked or are unsure. Users who have updated already can use Snapper to rollback to an earlier snapshot.

The root cause appears to be a race condition between Wicked and the D-Bus system, which results in the network stack failing to initialize properly. When Wicked is launched, it struggles to interact with D-Bus, leading to the failure of various dependent network services. This sequence of events will leave the rolling release’s network stack inoperative, often requiring a manual restart to restore network functionality.

To address this problem, initial efforts are focusing on modifying the service dependencies in the systemd service files.

(Image made with DALL-E)

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

Añadir una nueva fuente tipográfica en el escritorio Plasma de KDE

Un rápido tutorial en el que veremos cómo añadir un nuevo tipo de letra a nuestro sistema GNU/Linux con escritorio Plasma de KDE

En algunos artículos de mi blog (por ejemplo este sobre lsd como reemplazo a ls) hablo sobre la conveniencia de instalar una fuente tipo Nerd, que incluye las letras, número y símbolos usuales más un conjunto de glifos o iconos, que hacen más vistoso tu escritorio o terminal.

Veamos en este pequeño tutorial cómo instalar una fuente de este tipo para usarla en nuestra terminal y que muestre iconos y darle un aspecto más agradable visualmente y más moderno.

Descargar una fuente

En el caso de este ejemplo, vamos a instalar una de esas fuentes tipo Nerd que incluyen iconos y multitud de símbolos, pero puede tratarse de la fuente que desees.

En mi caso vamos a descargar la fuente Noto Nerd Font, pero de todas las opciones, puedes descargar la que más te guste.

En este caso se descargará un archivo .zip. Pero si descargas una fuente de otro sitio web, quizás se trate del propio archivo .ttf de la fuente. Si descargamos el archivo .zip, descomprimimos el contenido y lo guardamos en una carpeta. Yo tengo las fuentes guardadas en una carpeta de mi /home, pero tu hazlo como prefieras.

Instalar la fuente en Plasma de KDE

Ya con los archivos .ttf a buen recaudo y organizados en una carpeta, vamos al propio proceso de instalación de la fuente en nuestro escritorio Plasma de KDE.

Vamos a Preferencias del sistema → Aspecto y estilo → Texto y tipos de letra → Gestión de tipos de letra. Pulsamos en el botón inferior: Instalar desde archivo y navegamos por el explorador de archivos hasta la ubicación donde están los archivos .ttf que hemos obtenido en el paso anterior. Seleccionamos un archivo .ttf o todos los que queramos instalar y aceptamos.

Nos preguntará si queremos que esa fuente sea de uso personal o del sistema. Si elegimos la primera opción, solo nuestro usuario podrá usarla. Si usamos la segunda opción, si en nuestro equipo hay más cuentas de usuarios, éstos también podrán utilizar ese tipo de fuente. Escogemos lo que queramos y damos aceptar (yo siempre elijo la primera opción).

Esperamos que termine el proceso y ya tendremos la fuente tipográfica disponible para poder utilizarla en nuestro equipo en donde queramos.

Si hay alguna aplicación abierta en la que queremos usarla, deberemos cerrarla y volverla a abrir para que esa nueva fuente esté disponible para esa aplicación y poder establecer que use esa nueva fuente instalada.

Y así de sencillo es instalar una nueva fuente tipográfica o tipo de letra en nuestro sistema GNU/Linux con el escritorio Plasma de KDE. Espero que te sea útil.

Enlaces de interés

the avatar of Open Build Service

Improving notifications to stay informed about moderation reports

In the latest set of improvements coming to the content moderation feature we focused on improving the experience of moderators reviewing incoming reports. By including more information about the state of reports we make it easier for moderators to comprehend the user reported content in the notifications. This will lower the time the moderators need to respond to reports. Content Moderation is part of the beta program. Our journey into content moderation began back in...

the avatar of openSUSE News

Addressing the Network Stack Issue

In recent testing scenarios involving a build and NetworkManager, a significant issue has surfaced: the network stack becomes non-operational.

Users are advised to postpone system updates for now, but if users have already updated, use Snapper to rollback; it’s important to note that while the issue primarily affects GNOME setups with Wicked, it can also impact servers without these components.

This problem has been consistently reproducible since at least the 20240825 Tumbleweed build. Bind 9.20.1 received an update has changes to DNS query handling and system controls, which may have inadvertently contributed to the network stack issue.

The root cause appears to be a race condition between Wicked and the D-Bus system, which results in the network stack failing to initialize properly. When Wicked is launched, it struggles to interact with D-Bus, leading to the failure of various dependent network services.

System logs show that D-Bus is either not fully active or not recognized by Wicked at the time of initialization, triggering a series of failures across services like DHCP and AutoIPv4.

This sequence of events will leave the rolling release’s network stack inoperative, often requiring a manual restart to restore network functionality.

To address this problem, initial efforts are focusing on modifying the service dependencies in the systemd service files. One proposed solution may be adding After=dbus.service to the Wicked service configuration. However, this adjustment alone may prove insufficient in many cases.

Further investigation is leading to more proposed solutions. The issue also appears to extend beyond Wicked, potentially affecting other services and indicating broader implications for the system’s initialization processes. The transition of NetworkManager and Wicked in some setups has uncovered the critical race condition affecting the network stack’s initialization. While recent adjustments to the systemd service configurations have significantly mitigated the issue, ongoing testing and further refinements are essential to achieve consistent network functionality. Users are advised to use snapper’s rollback to maintain proper network stack initialization.

(Image made with DALL-E)

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

First steps with Quickwit and syslog-ng

We are always looking for new ways to store log messages. Quickwit is a new contender, designed for log storage, and among others, it also provides an Elasticsearch-compatible API. From this blog, you can learn about Quickwit, and how to forward log messages from syslog-ng to it using the Elasticsearch-compatible API.

Read more at https://www.syslog-ng.com/community/b/blog/posts/first-steps-with-quickwit-and-syslog-ng

syslog-ng logo

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

Crea tu web con Portabloc. El CMS minimalista, ligero y personalible.

Portabloc te permite crear tu web o blog de manera sencilla. Un software minimalista, ligero y personalizable

Un CMS o sistema de gestión de contenidos, es el software que hace posible que una persona pueda poner en marcha un sitio web o un blog en internet. Uno de los más utilizados y más conocido es WordPress (con el que está escrito este mismo blog).

Desarrollado como software libre, cualquiera con conocimientos técnicos, puede utilizarlo de manera libre para uso personal.

Pero estas opciones tienen engorrosos aspectos técnicos que a muchos se nos escapan de nuestros conocimientos, por eso delegamos ese mantenimiento en terceros, que administran la parte técnica mientras nosotros solo nos dedicamos a escribir.

Portabloc, es un CMS que quiere hacer sencilla esa parte técnica. Con un código de menos de 300Kb, publicado con una licencia libre AGPL y pocos requerimientos técnicos, podremos poner en marcha y mantener nuestro sitio web o blog de manera sencilla.

Hace tiempo ya compartí por el blog Bashblog, un script en Bash que nos ponía en marcha un sitio web de manera sencilla.

En este caso quiero dar a conocer Portabloc, que tal como dicen en su web:

CMS minimalista, ligero y fácilmente customizable. Para quienes quieren crear sitios sencillos y modernos sin complicarse la vida.

Y eso es lo que garantiza que hace. Con Portabloc crea tu blog solo a partir de archivos de texto. Crea esos archivos en formato markdown y suéltalos en tu carpeta /posts. Portabloc hace la magia para que eso se traduzca a una bonita página web en tu servidor.

  • Sin bases de datos, solo tus archivos y carpetas.
  • Admite la sintaxis Markdown y Gemini.
  • Soporte de etiquetado.
  • Fácil. Flexible. Portátil.
  • Ligero
  • Menos de < 300 KiB

Los requerimientos técnicos por parte del servidor son sencillos:

  • PHP >5.03 o superior
  • mbstring
  • mod_rewrite

Y con eso ya tienes una web minimalista, sin rastreo de visitantes, en la que compartir tu proyecto o ideas con el mundo. Además también crea lo necesario para que sigan tu blog o web mediante feeds RSS. ¿No suena interesante?

Te invito a que leas en la página web del proyecto cómo poner en marcha el software. Tan sencillo como descomprimir un archivo .zip, editar un archivo de configuración con los datos de tu web y empezar a poner en marcha tu sitio web o blog.

Enlaces de interés

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

Las novedades de Konsole en KDE Gear 24.08

Ayer inicié la serie de entradas con las novedades del pack de aplicaciones que ha puesto a disposición de todo el mundo la Comunidad KDE. Hoy os presento las novedades de Konsole en KDE Gear 24.08, una aplicación imprescindible para los desarrolladores.

Las novedades de Konsole en KDE Gear 24.08

La potencia de la terminal o pantalla de comandos es algo que vas descubriendo a medida que te involucras más en el uso de sistemas libres. La rapidez, la información que proporciona y la gran versatibilidad que ofrece hacen que el dominio de la consola de comandos algo imprescindible para sacar el máximo provecho a tu equipo.

Esta es la razón que Konsole, el visor de terminal de la Comunidad KDE no haga más que mejorar con cada versión, combinando los comandos simple y potentes con pinceladas visuales y de usabilidad para hacer todavía más eficiente el trabajo con ella.

De esta forma, y como leeemos en el anuncio de lanzamiento de KDE Gear 24.08, Konsole 2 llega con una nueva mejora de usabilidad: si necesita crear un marcador de algo importante en un largo texto de salida, haga un doble clic en la barra de desplazamiento para definir un marcador de posición. Más tarde podrá desplazarse hacia atrás para localizarlo rápidamente.

Las novedades de Konsole en KDE Gear 24.08

Esta utilidad me parece bastante interesante. Estoy pensando en los largos mensajes de error que a veces aparecen al ejecutar aplicaciones, en los archivos de ayuda o el los scripts que suelo utilizar para conversión de imágenes o vídeos en lote.

Más información: KDE Gear 24.08

Y, recuerda, todo este software es gratuito y sin publicidad en todos los sentidos: no te cuesta ni un euro y no se cobra en en forma de datos personales. No obstante, si quieres ayudar a su desarrollo siempre puedes participar en su campaña de recaudación de fondos.

La entrada Las novedades de Konsole en KDE Gear 24.08 se publicó primero en KDE Blog.