Skip to main content

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

I Have No Idea How To Debug This

On my desktop system, I’m running XFCE on openSUSE Tumbleweed. When I leave my desk, I hit the “lock screen” button, the screen goes black, and the monitors go into standby. So far so good. When I come back and mash the keyboard, everything lights up again, the screens go white, and it says:

blank: Shows nothing but a black screen
Name: tserong@HOSTNAME
Password:
Enter password to unlock; select icon to lock

So I type my password, hit ENTER, and I’m back in action. So far so good again. Except… Several times recently, when I’ve come back and mashed the keyboard, the white overlay is gone. I can see all my open windows, my mail client, web browser, terminals, everything, but the screen is still locked. If I type my password and hit ENTER, it unlocks and I can interact again, but this is where it gets really weird. All the windows have moved down a bit on the screen. For example, a terminal that was previously neatly positioned towards the bottom of the screen is now partially off the screen. So “something” crashed – whatever overlay the lock thingy put there is gone? And somehow this affected the position of all my application windows? What in the name of all that is good and holy is going on here?

Update 2020-12-21: I’ve opened boo#1180241 to track this.

the avatar of Network Users Institute

Images openSUSE Leap 15.3 en version Alpha disponibles

Les images Alpha de la prochaine version stable de openSUSE Leap sont d’ores et déjà disponibles içi software.opensuse.org/distributions/testing selon la feuille de route de openSUSE Leap 15.3. Vous noterez au passage la nouvelle structure des images pour chaque architecture dans des onglets. Jump est également passé par là et qui rend compatible au niveau des […]

The post Images openSUSE Leap 15.3 en version Alpha disponibles appeared first on Cybersécurité, Linux et Open Source à leur plus haut niveau | Network Users Institute | Rouen - Normandie.

the avatar of YaST Team

Digest of YaST Development Sprint 115

The YaST Team just finished the last sprint before the Christmas break of this convulted 2020. So let’s start the festivities by celebrating what we have achieved in the latest two weeks. That includes:

  • Several additions to AutoYaST
  • Better management of required packages
  • Usability improvements in the registration process
  • Drop of the SysVinit support
  • Translation infrastructure for the wicked Cockpit module

Let’s go into the details.

You may remember that we recently introduced support in the YaST Partitioner for tmpfs mount points and for Btrfs subvolume quotas. Now those technologies have been incorporated to AutoYaST. See this pull request for some overview of the tmpfs support or this other one if you want to check the full documentation. If you are more curious about Btrfs subvolume quotas, check this pull request for some general description with screenshots or the documentation one for more comprehensive information.

We also improved how YaST manages the packages to install in order to support the different storage technologies and file systems. During installation, YaST now makes a difference between optional and mandatory packages, which implies it will not longer force you to install ntfsprogs just because there is a leftover NTFS partition somewhere in the system. Moreover, in an installed system YaST only forces installation of those packages strictly needed to perform the Partitioner actions, reducing to a minimum the number of repository refresh operations triggered by the Partitioner.

Regarding the registration process during the installation of SLE (SUSE Linux Enterprise), we have been working in a couple of fronts:

In a more general scope, we removed some bits of code in YaST that were still trying to modify the obsolete /etc/inittab file. See the announcement in the yast-devel mailing list about the definitve drop of support for SysVinit.

Going beyond YaST itself, we added internationalization support to our Cockpit module for wicked. The corresponding project is now available in the openSUSE Weblate instance and all the automation is in place to ensure all the translations contributed by our awesome volunteers are incorporated into future releases of the module.

As mentioned at the beginning of the post, this was the last development sprint of 2020, which also means this will be the last blog entry from the YaST Team this year. We will restart the usual development (and reporting) pace after the Christmas and new year season. So there is only one more thing left to say - see you in 2021!

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

Mi escritorio Plasma de diciembre 2020 #viernesdeescritorio

Me está gustando esto de compartir mi pantalla siguiendo la iniciativa #viernesdeescritorio y gracias a la energía de Lina castro (@lirrums). Así que, de forma extraordinaria, añado por segundo mes consecutivo una entrada a la serie «Mi escritorio», en la que comparto en el blog el aspecto de mi ordenador. Espero que mi escritorio Plasma de Diciembre 2020 os guste.

Mi escritorio Plasma de diciembre 2020 #viernesdeescritorio

Esta va a ser la séptima vez que muestro mi escritorio Plasma 5 en público. Respecto al mes pasado quiero comentar que sigo utilizando Latte Dock y cada vez más acostumbrado al entorno oscuro.

Como es habitual, la captura está realizada sobre mi portátil Slimbook Pro de 13 pulgadas, el cual tiene instalado un KDE Neon con Plasma 5.20.3.

Utilizo el motor de ventana Kvantum, lo cual le confiere un aspecto muy particular, con unas transparencias muy elegantes. Me quedaba cambiar los iconos y ya lo hice, ahora tengo utilizo Papirus-Dark.

El resultado de mi escritorio de diciembre de 2020 es un escritorio más vistoso, e incluso diría recargado que queda genial para estos días pre-navideños e ideal para que mis alumnos vean la capacidad de personalización de Plasma, estos días que por diversas razones mi portátil es parte fundamental en las clases.

En definitiva, este el el resultado. Pincha en la imagen para verlo un poco más grande.

Las características del escritorio son las siguientes:

Gestor de Ventanas: Kwin (he probado con Wayland, se ve incluso mejor pero tiene un bug en Kontact me imposibilita utilizarlo)

Look and Feel: Otto de Jomada (uno de los grandes diseñadores de temas para Plasma)

Estilo de Plasma: Otto-not-rounded

Fondo: solamente sé que se llama cusd.

Estilo de aplicación: Kvantum

Iconos: Papirus-Dark

Plasmoides:

  • Barra de tareas: Latte dock centrada y que se ocultamiento automático y que contiene, de izquierda a derecha, lanzador de aplicaciones Kickoff, gestor de tareas solo iconos (que ahora es el por defecto en Plasma), Let is snow y bandeja de sistema.
  • Reloj digital: Digital Clock BeClock Style
  • Daily Forecast: para tener la información meteorológica.
  • Let is snow: un plasmoide visual que añade nieve sobre nuestro escritorio y del cual hablé hace poco tiempo.

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

お家ファイルサーバーの構築

この記事は openSUSE Advent Calendar 18日目です。 残り、あと少しですが、まだ埋まってなく3年連続の完走がピンチ。みなさんご協力下さい。

この内容は小江戸らぐのオフな集まり2月と、オフだけどオンライン開催だった5月の発表内容でもあります。

ことの始まり

この春、ファイルサーバーを組みました。これまで、写真等の大きめのファイルはデスクトップに置いていましたが、タブレットやスマフォを使用しているとデスクトップを起動しないこともあり、アクセスするにはちょっと不便でした。かといってクラウドに上げるには容量が大きいのが現状です。

このとき、電源の故障で引退した、ちょっと古いけどまだ使える一式(Socket FM2 の M/B, AMD A4-5300 APU, DDR3 8 GBメモリ)があったのと、鹿さん から、使わなくなったファイルサーバー用の MiniITX ケースを頂いたので、これでファイルサーバーを組んでみることにしました。

RAID カード調達

HDD は NAS 用のものを適当に買うとして、1度はRAID 5 や 6 で組んでみたい!ということで、RAID カードを探しました。一般のご家庭(誤変換)では、数万円クラスのカードを使っているかと思いますが、この「ありあわせ構成」には不釣り合いです。安く入手する方法としては、ヤフオクなどでサーバーから抜き取ったものを探す手がありますが、あまりに古いと EFI に対応していなかったり、4 KB セクタや 2TB の壁にあたる可能性があります。また、中古品はキャッシュ保護用のバッテリーが死んでいる可能性もあります。

そこで今回は eBay で3世代前の Adaptec ASR-71605 の新古品を買ってみました。キャッシュ保護用のコンデンサ付き、送料込みで 8500円くらいでした。ドライバはカーネルに入っているのですぐに使えます。

意外と高かったのがケーブルでした。Mini SAS HD から SATA ×4にするもので、Amazon で 2500 円くらいでした。

OS インストール

セットアップに困ることはないはずが、openSUSE 15.1 をインストールすると、なぜかディスプレイドライバが固まります。いろいろ試したところ modeset ドライバを ACPI が有効な状態で使うとダメなようです。今回はディスプレイはほとんど使わないので nomodeset を起動オプションに追加することで回避しました。(modeset ドライバだと、コンソールの解像度がディスプレイにあわせて変わるので良いのですが…)

ファイルサーバーの設定

Samba は入れるだけです。とっても簡単ですね。

Btrfs にしてスナップショットを取るようにしました。このあたりはOSCのスライドや Geeko Magazine を見てください。

iSCSI サーバーは4月に書いた別の記事で。

バックアップの設定

重要なディレクトリを選んで USB 接続の HDD に1日に1回、Snapper の最新スナップショットからバックアップを取るようにしました。単純に rsync でコピーを取ります。Btrfs のバックアップといえば、ファイルシステムレベルで差分転送をできる btrfs send があります。しかし、ファイルシステムが壊れてしまった場合に、btrfs send を行うとバックアップも壊れる可能性があるのではないかと考え、今回は使用しませんでした。

タイマーとスクリプトはこのような感じです。タイマーの時間は Snapper の実行中にならないように気をつける必要があります。

backup-to-usb-disk.timer

[Unit]
Description=Back up files to USB disk daily

[Timer]
OnCalendar=*-*-* 6:20:00
Persistent=true

[Install]
WantedBy=timers.target

backup-to-usb-disk.service

[Unit]
Description=Back up files to USB disk

[Service]
ExecStart=/usr/local/sbin/backup-to-usb-disk.sh
Type=oneshot

backup-to-usb-disk.sh

#!/bin/bash

set -e

if [ ! -f /var/backup/backupdisk ]; then
    echo "Back up disk is not found"
    exit 1
fi

# home
snapshot_root=/home/.snapshots

cd $snapshot_root
latest_snapshot=`ls -1 | grep "[0-9]*" | sort -nr | head -n 1`/snapshot/
echo "creating back up of /home/.snapshots/$latest_snapshot"

if [ ! -e $latest_snapshot ]; then
    echo "Snapshot directory error"
    exit 1
fi

target_dir=/var/backup/home/

rsync -va --delete $latest_snapshot $target_dir

様子見中

Snapper が走る時(おそらく)に btrfs-cleaner がかなり CPU を使うので、試しに Quota 機能を無効にしています。

おわりに

簡単にではありますが、ファイルサーバーを構築したときのいろいろを紹介しました。このファイルサーバーでは、先日書いた Spotify クライアント も動いています。新たな活用を始めたら記事にしたいと思います。

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

Novedades de Konversation de diciembre de 2020

La pasada actualización de las aplicaciones de KDE de diciembre nos ofreció interesantes nuevas funcionalidades. En el artículo del anuncio ya hablamos largo y tendido de las novedades de Kontact, también hemos hablado de Dolphin, el explorador de archivos, y de Konsole y Spectacle, y ahora tocan las novedades de Konversation de diciembre de 2020. Esto no para, esto es KDE!

Novedades de Konversation de diciembre de 2020

A pesar de que poco a poco Telegram o Matrix va ganando adeptos en el tema de conversaciones en forma de chat entre los usuarios no hay que olvidar que el ecosistema KDE tiene una aplicación propia para de chat IRC llamada Konversation.

Esta aplicación goza de muy buena salud y se une al servicio de lanzamientos habitual , añadiendo un buen número de nuevas funcionalidades, entre las que destacan las siguientes:

  • Konversation permite ahora la descarga de temas de iconos para alias desde store.kde.org, la página que proporciona novedades visuales a casi todas las aplicaciones KDE.
  • El historial del canal se puede borrar para proteger la privacidad.
  • Las capacidades de las que dispone el servidor se muestran al conectar.
Novedades de Konversation de diciembre de 2020

Mejoras en los protocolos de comunicación

También es interesante destacar las mejoras en un buen número de técnicas del protocolo que consiguen que la comunicación sea más fluida y segura:

  • El protocolo IRCv3 se ha mejorado con el uso adicional para la negociación de capacidades v3.2.
  • Konversation usa ahora mecanismos de autenticación SASL en CAP LS.
  • Se añade un marcador de fecha a la primera línea al cambiar de fecha en caso de que la fecha no se incluya en la marca de tiempo.
  • Konversation sigue el estándar para el manejo de cadenas de texto cuando envía la orden PASS.
  • Se ha añadido la capacidad znc.in/self-message.
  • Se han desactivado las peticiones WHO para los servidores de twitch.tv.

Más información: KDE

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

Genera códigos Qr desde la terminal de #Linux

Veamos cómo podemos generar códigos Qr desde nuestra términal de GNU/Linux sin necesidad de instalar nada

A veces queremos compartir un texto o un enlace entre nuestro equipo y nuestro teléfono móvil. Veamos cómo hacerlo generando un código Qr desde la terminal de nuestra distribución GNU/Linux para después escanearlo con nuestro teléfono.

Para hacerlo no es necesario instalar nada. Simplemente utilizar un servicio web mediante la herramienta curl al que le pasamos un texto o un enlace.

Para generar nuestro código Qr podemos ejecutar cualquiera de estas dos acciones en nuestra terminal:

printf "https://lamiradadelreplicante.com" | curl -F-=\<- qrenco.de

curl qrenco.de/https://lamiradadelreplicante.com

Y se nos mostrará el código Qr de esta (añorada) url o de aquella que queráis, pudiendo también generar un código de un texto, etc.

También podemos generar un código Qr fácilmente desde el navegador añadiendo qrenco.de/ delante de la url en la barra de direcciones.

Ya veis que es un proceso muy sencillo. Y además el código está disponible para poder revisarlo.

Enlaces de inteŕes

the avatar of openSUSE News

KDE Frameworks, VirtualBox, systemd update in Tumbleweed

Five openSUSE Tumbleweed snapshots have been released since last Friday.

Snapshot 20201215 is the latest update to arrive in the rolling release. The snapshot updated KDE Frameworks 5.77.0 and offered a significant amount of bug fixes and additions for the 83 addon libraries; the Breeze Icon package added an edit-move action icon, the Attica package fixed a crash and KDeclarative relicenses files to the LGPL v2 or later. Both the KIO and Kirigami packages had extensive work done; KIO cleaned up dead code and now requires Qt 5.13. Kirigami fixed rendering borders to the proper size and also made a fix for low power mode. openSUSE’s autoyast2 4.3.64 package added support for Btrfs quotas. The default window sizing was fixed in an update of gnome-tweaks 3.34.1. Location-aware applications will notice a fix for Wifi crashes in the 2.5.6 geoclue2 package. Some obsolete settings were removed from the 4.3.6 yast2-security package and text editor vim fixed the CTRL-Z behavior.

The smallest snapshot of the week was 20201214. The lone Japanese package man-pages-ja provided nearly a year’s worth of updates to version 20201115.

Some GStreamer packages like gstreamer-devtools and gstreamer-editing-services updated to version 1.18.2 in the 20201213 snapshot. KDevelop5 5.6.1 provided some small performance improvements and a set of oddities were fixed with initial parsing of project files, The Linux Kernel 5.9.14 provided serval USB serial fixes as well as Advanced Linux Sound Architecture fixes. The only major update to arrive this week in Tumbleweed was an update to xapps 2.0.0, which should benefit Cinnamon, MATE and Xfce users. Document viewer xreader 2.8.0 added an issue with the Tab key toggling checkboxes and moved the new sidebar button to be part of the navigation group.

GStreamer had various stability, performance and reliability improvements in its 1.18.2 release, which fixed an MPEG-TS timestamping regression when playing DVB streams, that arrived in snapshot 20201212. Firmware updater package fwupd 1.5.3 added the serio->firmare_id for the UDev device manager. A minor release of systemd 246.7 had some udev renaming options made; a full list of changes can be found here. Support for Python 3.5 was removed in the python-cryptography 3.3 package and libzypp 17.25.5 fixed the update of GNU Privacy Guard keys with an elongated expiration date. The GNOME desktop’s indexing and search provider tracker 3.0.2 improved the turtle parser and made the UPDATE parser tree processing iterative rather than recursive.

The 20201211 snapshot kicked off the week with the 6.1.16 maintenance update to virtualbox, which had a workaround to improve resizing of 32-bit VMs with the VMSVGA graphics controller, and it does not try to use RandR version 1.3 due to bugs causing the X server to hang. The 5.2.0 machine emulator version of qemu has a new KVM feature that improves the handling of asynchronous page faults, and new arm boards mps2-an386 (Cortex-M4 based) and mps2-an500 were added. The qemu update also has RISC-V improvements for the Ibex (OpenTitan) Platform Level Interrupt Controller.

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

¡El editor Kate de #KDE cumple 20 años!

Kate es el editor de textos avanzados de la comunidad KDE y ha cumplido 20 años este diciembre de 2020

Un 14 de diciembre del año 2000 un joven desarrollador de 18 años llamado Christoph Cullmann, enviaba un correo a una lista de correo al responsable de Kwrite para informarle de que estaba trabajando en una interfaz MDI Kwrite, que más tarde sería Kate.

Kate (KDE Advanced Text Editor) empezaba así su andadura hasta convertirse en lo que es hoy en día. Un gran editor de texto con muchos complementos y funcionalidades, que lo hacen muy útil a la hora de editar textos.

En todo este tiempo han sido muchas las personas que han colaborado de una u otra manera en desarrollo del editor o con herramientas externas que utiliza el propio editor.

Y sigue siendo una herramienta con un gran desarrollo destrás, no hace falta más que ver que en el último mes, se han aceptado:

Y también existen:

Esto último también da cuenta de que hay muchas personas que utilizan Kate y se preocupan de reportar y de pedir uevas funcionalidades.

Cuando no uso Vim, Kate es el editor de texto que utilizo cuando quiero usar un editor con interfaz gráfica. Además también es multiplataforma, por lo que en mi portátil del trabajo con Windows, también lo tengo instalado.

Y por el blog son varios los artículos y tutoriales que he dedicado a esta gran herramienta:

Pero echemos un vistazo a cómo ha evolucionado la interfaz de Kate en estos 20 años de historia.

Kant aka Kate en 2001, KDE 2.2.x:
KDE 4.x version en 2010
Kate e 2020

Enhorabuena al proyecto y que siga muchos años más ofreciéndonos una alternativa de calidad y software libre.

Enlaces de interés

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

起動するkubeletのバージョンを上げる

私はKubicでKubernetesを構築しているのですが、Kuibcをアップデートしてkubeletのバージョンが1.19に上がったはずなのにもかかわらず、kubectl get nodeでずっとバージョンが1.18となっていて悩んでいました。

結論

/etc/sysconfig/kubelet に設定されている KUBELET_VERを、1.18から1.19に変更する

調査

パッケージを確認

まず、パッケージがなんのバージョンが入っているかを確認します。

kubic1-host:~ # zypper se kubelet

S  | Name                          | Summary                   | Type
—+——————————-+—————————+——–
i  | kubernetes-kubelet            | Kubernetes kubelet daemon | package
i  | kubernetes1.17-kubelet        | Kubernetes kubelet daemon | package
  | kubernetes1.17-kubelet-common | Kubernetes kubelet daemon | package
i  | kubernetes1.18-kubelet        | Kubernetes kubelet daemon | package
i  | kubernetes1.18-kubelet-common | Kubernetes kubelet daemon | package
i+ | kubernetes1.19-kubelet        | Kubernetes kubelet daemon | package
  | kubernetes1.19-kubelet-common | Kubernetes kubelet daemon | package
  | kubernetes1.20-kubelet        | Kubernetes kubelet daemon | package
  | kubernetes1.20-kubelet-common | Kubernetes kubelet daemon | package

 どうやら、1.17、1.18、1.19、と、いろいろなバージョンが入ってるようです。

今見たら、1.20も入ってますね。

使ってるバイナリを確認

kubic1-host:~ # type kubelet

kubelet is hashed (/usr/bin/kubelet)

ふむふむ。/usr/bin/kubelet、ですね。

こういう実行ファイルはスクリプトの場合があったりするので、種別を調べてみます。

kubic1-host:~ # file /usr/bin/kubelet
/usr/bin/kubelet: POSIX shell script, ASCII text executable

なるほど、スクリプトっぽいですね。

中身を確認します。

kubic1-host:~ # cat /usr/bin/kubelet
#!/bin/sh
# Loader Script for Multi-Version Kubelet arrangement introduced to openSUSE in March 2020
source /etc/sysconfig/kubelet

if [ -z “$KUBELET_VER” ]       
then
  echo “ERROR: KUBELET_VER= not defined in /etc/sysconfig/kubelet”
  exit 1
else
  /usr/bin/kubelet$KUBELET_VER “$@”
fi

どうやら、/etc/sysconfig/kubeletの値を参照しているようです。こちらを確認してみます。

kubic1-host:~ # cat /etc/sysconfig/kubelet
KUBELET_VER=1.19
KUBELET_EXTRA_ARGS=”–container-runtime=remote –container-runtime-endpoint=unix:///var/run/crio/crio.sock –runtime-request-timeout=15m –c
group-driver=systemd -v=2 –runtime-cgroups=/systemd/system.slice –kubelet-cgroups=/systemd/system.slice”

なるほど、KUBELET_VERが定義されています。nodeのバージョンが低いときは、ここが1.18となっていましたので、それを1.19に更新しました。

それからKubernetesを起動すると、見事バージョンが1.19にあがってました。

今なら1.20に上がる予感・・・・

メーリングリスト

最近忙しいこともあって、なかなかメーリングリストなどの情報源にあたれず・・・もしかしたら、こういったことはとうに情報共有されていたのかもしれません。また、この設定がKubic独自なのか、一般的なのか、といったことも追いきれておらず。追って調査したいと思います。

そもそもの使い方

アップデートで使い続けるのではなく、折を見て最新プリメイドイメージに乗り換えていく運用が今っぽいのかも・・・・・