Sudo for blue teams: how to control and log better
Sudo had many features to help blue teams in their daily job even before 1.9 was released. Session recordings, plugins and others made sure that most administrative access could be controlled and problems easily detected. Version 1.9 introduced Python support, new APIs, centralized session recordings, however some blind spots still remained. Learn how some of the latest sudo features can help you to better control and log administrative access to your hosts. You will learn about JSON logging in sudo, chroot support, logging sub-commands, and how to work with these logs in syslog-ng.
You can read the rest of my blog at https://www.sudo.ws/posts/2022/05/sudo-for-blue-teams-how-to-control-and-log-better/

Sudo logo
YaST Development Report - Chapter 3 of 2022
These last few weeks have been very intensive days in the YaST team. Significant changes are coming to the SUSE and openSUSE worlds. Have you heard about SUSE ALP (Adaptable Linux Platform)? We are quite active in some discussions, research and workgroups about that topic. But, of course, we are continuing to work hard on YaST and on our D-Installer side project. So, let’s go with a summary of the most interesting features and fixes.
One-click Migration
Since openSUSE Leap 15.3, binary RPMs are shared between SUSE Linux Enterprise Server 15 and openSUSE Leap. Closing the gap between openSUSE and SUSE makes feasible the migration from openSUSE Leap to SLE without reinstalling the system completely. Migrating the system takes some steps, and sometimes manual intervention is required when the process goes wrong. Now, YaST offers a new client that simplifies the migration from openSUSE Leap to SLE, allowing to rollback the system in case that something fails.
Systemd and YaST Services
YaST provides three systemd services: YaST2-Firstboot.service, YaST2-Second-Stage.service and autoyast-initscripts.service. Some adjustments in the dependencies of those services were needed to make them to work correctly, see for example this and this. Adapting systemd dependencies is not a trivial task. There are always edge scenarios to consider, and we plan to continue working in this area.
Download and Installation Progress
While installing packages, YaST showed a dialog with quite some information about the steps being performed. For example, the dialog provided information about the downloading progress of each package, what package is being installed, etc. But the new version of libyzpp deployed in SLE 15 SP4 is able to perform operations in parallel such as downloading, installing or verifying packages. Keeping that rich progress dialog while performing operations in parallel was very challenging. After evaluating different options, finally it was decided to significantly simplify the progress dialog, making it compatible with parallel operations. Now, the dialog only contains a progress bar with the information about the total amount of packages pending to install and the download progress. The dialog also shows a secondary progress bar in a popup for some theoretically quick tasks taking longer than they should.
Other Interesting Improvements
-
Making AutoYaST more robust when setting the owner of files for the autoinst_files step.
-
Improvements in the way YaST imports users from other systems.
-
Packages yast2-nis-server and yast2-nis-clients were dropped from openSUSE Tumbleweed, although they are still maintained for openSUSE Leap and SUSE SLE.
-
YaST was adapted to call external commands in a more robust way. Research and more details can be found here.
-
AutoYaST does not export the resume kernel parameter anymore, and it only imports such a parameter if the indicated device exists. The AutoYaST documentation was extended to explain this new behavior.
-
Fixed missing help texts in the YaST Expert Partitioner.
-
Generating translations from XML files is correctly done now.
-
YaST does not fail anymore when using the installation media as part of the target system. This implies changes in different parts of YaST, like this, this or this.
-
The cockpit-wicked module was adapted to the latest changes in wicked for managing wireless network configurations.
D-Installer
Little by little we are able to invest more resources into our D-Installer side project. We are closer to finish the first iteration of our roadmap. Here is a summary of the main features developed since the first public release:
- Add reboot button.
- Ask for confirmation before installing.
- D-Bus API to ask questions to clients.
- Unmount target disk after installing.
- Fix language selector.
- Convert D-Installer into a real Cockpit module.
- Add support for yaml file configuration.
- Add support for remote installation.
Our beloved ruby-dbus gem also keeps evolving, supporting all the new features we demand for D-Installer. If you are interested in what is new in this great library, please have a look at its latest pull requests. And of course, we encourage you to give D-Installer a try. You can easily test it thanks to the D-Installer live image. We would like to know your opinion.
Please, remember that D-Installer is an experimental installer and it is still under development. We recommend to use a virtual machine to prevent any possible data loss.
Keep in Touch
As commented, we are very busy lately and our blogging cadence has been affected. We will do our best for blogging as frequently as possible with all the news from the YaST land. Meanwhile, do not hesitate to reach us in the usual channels: yast-devel and factory mailing lists at openSUSE, and at the #yast channel at libera IRC. Or even directly commenting on GitHub, whichever suits you better. See you soon and have a lot of fun!
Probando #openSUSE con 24H24L
Un vídeo en el que hago de «padrino» de Jose Jimenez que está detrás del proyecto 24H24L mientras el prueba openSUSE

José Jimenez creador del proyecto 24H24L está también llevando a cabo otro proyecto llamado: «probando distros». Que consiste en hacer un repaso de una distribución con alguna persona que use esa distribución de GNU/Linux de manera habitual.
En este caso ha querido probar openSUSE y me pidió si quería participar de la charla y que fuera su cicerone haciendo un repaso a esta distribución de GNU/Linux mientras él me iba preguntando dudas.
Después de buscar una fecha y hora que nos cuadrara a ambos, el pasado viernes 29 de abril de 2022 en el canal de Telegram @UnDíaUnaAplicación grabamos el paseo por openSUSE en directo mientras se retransmitía.
Pero si no pudiste asistir, el evento todo se grabó y José lo ha subido a PeerTube y YouTube para verlo en diferido cuantas veces quieras.
José Jimenez me confesó que usaba Fedora desde hace 20 años (eso sí es fidelidad, ¡pero en ese camino estoy yo con openSUSE!) y ha querido probar otras distribuciones de GNU/Linux.
Y para probarlas ha querido hacerlo junto con una persona que utilice esa distribución y que le vaya guiando, respondiendo dudas, dando consejos de uso, etc…
Ha probado Nitrux, ha probado Mabox y en esta ocasión le tocó el turno a openSUSE y para la ocasión descargó la versión Leap de publicaciones periódicas (anuales).
Instaló openSUSE Leap con escritorio Xfce en una máquina virtual y con ella en marcha le fui dando mis consejos a las dudas que surgían.
Principalmente estuvimos viendo de manera somera la herramienta de configuración del sistema llamada YaST y en concreto solo la parte de añadir repositorios e instalar software.
YaST es una herramienta modular que realiza muchas tareas de configuración en diferentes partes de nuestro openSUSE, lo que pudimos ver fue una muy pequeña parte de todo lo que ofrece esta herramienta.
Como complemento a YaST, también pudimos ver un poco por encima zypper, la herramienta de gestión de software y repositorios para la línea de comandos.
La verdad es que tenía un poco de miedo por no poder responder sus dudas, pero creo que salvé la situación bastante bien y traté de explicar bien los conceptos y preguntas que me formuló.
Ahora sois vosotros y vosotras la que tenéis que judgar si el paseo por openSUSE puede ser interesante para las personas recién llegadas. Tenéis los vídeos disponibles en PeerTube:
https://fediverse.tv/w/5QJ3mnqQTWKf2KiyHswn7Y
Y también disponible en YouTube en este enlace (copia y pega en el navegador o en un software que utilices):
https://www.youtube.com/watch?v=7abjnr_jZ1w
Al final se me pasó la hora de charla que casi ni me enteré… Se me hizo muy corto y me gustó mucho la experiencia de explicar de manera visual qué es openSUSE y cómo empezar a manejarla.
Quedaron muchos temas que tratar, pero no había que saturar. Espero que os guste el vídeo y os anime a probar esta distribución de GNU/Linux.

Lanzado Kdenlive 22.04, ahora compatible con la arquitectura M1 de Apple
Todavía me queda comentar el grueso de las actualizaciones de abril de las KDE Gear. En esta ocasión voy a cmenzar con el editor de vídeos no-lineal de la Comunidad. Y es que ha sido lanzado Kdenlive 22.04, una versión muy interesante que nos ofrece más estabilidad, algunas novedades y compatibilidad con la arquitectura M1 de Apple.
Lanzado Kdenlive 22.04, ahora compatible con la arquitectura M1 de Apple
Para quienes no lo conozcan, Kdenlive es el editor de vídeos no-lineal de KDE, una aplicación multiplataforma muy demanda por los usuarios de fácil uso y llena de posibilidades. Sus mejoras en estabilidad han sido impresionantes en los últimos tiempos, y su facilidad de uso lo hacen ideal para todo tipo de usuarios.
Y si a estas características se les une un equipo de desarrollo que está ofreciendo multiplataforma de calidad creciente en cada una de sus nuevas versiones principales estamos ante en una Killer App cada vez más famosa, incluso entre usuarios de sistemas privativos.
Este pasado 2 de mayo fue anunciado oficialmente en su blog la versión 22.04, la cual nos ofrece las siguientes e interesantes funcionalidades, que el equipo de desarrollo ha resumido de la siguiente manera:
El equipo de Kdenlive se complace en anunciar el lanzamiento de la versión 22.04. Este ciclo de desarrollo viene con más de 300 commits, la mayoría centrados en la estabilidad y el pulido, que van desde el empaquetado hasta las mejoras de la interfaz de usuario.
Además de las mejoras en las versiones de Windows y macOS, Kdenlive se ejecuta ahora en la arquitectura M1 de Apple e incluye compatibilidad inicial con la gama completa de colores de 10 bits en todas las plataformas, aunque hay que tener en cuenta que el color de 10 bits aún no funciona con efectos. Kdenlive también ofrece automáticamente la transcodificación de vídeos con velocidad de fotogramas variable a un formato fácil de editar, y algunos filtros, como Desenfoque, Levantamiento/Gama/Ganancia, Viñeta y Espejo, son ahora de hilos cortados, lo que mejora la velocidad de renderizado.
Y más novedades que me guardo para una futura entrada.
Más información: Kdenlive
La entrada Lanzado Kdenlive 22.04, ahora compatible con la arquitectura M1 de Apple se publicó primero en KDE Blog.
Iconos 3D para tu PC con Flat no more 2
El tema de los iconos del sistema es tan personal como la ropa que nos ponemos. Así que lo mejor es tener algo de variedad en la Comunidad para que cada cual utilice el que más le gusta. En los últimos tiempos se puso de moda los iconos minimalistas, plano, neon o coloridos, es gratificante encontrar otras colecciones de iconos que rompen esa tendencia, como es el caso de Flat no more 2, unos iconos 3D parra tu PC, una revisión de los Flat No More que presenté hace tiempo.
Iconos 3D para tu PC con Flat no more 2
Cambiar el tema de iconos de un escritorio es una de las formas de personalización casi más completa que puedes realizar sobre tu PC, ya que cambia totalmente el aspecto del mismo a la hora de interaccionar con tus aplicaciones, documentos y servicios.
Para el escritorio Plasma de la Comunidad KDE hay cientos de temas disponibles, y en el blog le hemos dedicado muchos artículos a ir presentando algunos de ellos, pero siempre aparece alguno nuevo o remozado que hace que siempre le volvamos a dedicar una nueva entrada.
De esta forma me complace presentar el tema de iconos Flat no more 2, una excelente colección de iconos detallados para Plasma que destaca por su aspecto 3D, sus colores y su contraste. Seguro que no deja indiferente a nadie.
Y como siempre digo, si os gusta el pack de iconos Fat no more 2 podéis “pagarlo” de muchas formas en la nueva página de KDE Store, que estoy seguro que el desarrollador lo agradecerá: puntúale positivamente, hazle un comentario en la página o realiza una donación. Ayudar al desarrollo del Software Libre también se hace simplemente dando las gracias, ayuda mucho más de lo que os podéis imaginar, recordad la campaña I love Free Software Day 2017 de la Free Software Foundation donde se nos recordaba esta forma tan sencilla de colaborar con el gran proyecto del Software Libre y que en el blog dedicamos un artículo.
Más información: KDE Store
La entrada Iconos 3D para tu PC con Flat no more 2 se publicó primero en KDE Blog.
Dia de la libertad del hardware 2022
Este evento es como el Guadiana, a veces se me pasa y otros años no. Se trata de la celebración que habitualmente organiza Caliu del Dia de la Llibertat del Maquinari 2022 (Dia de la libertad del hardware 2022) en Barcelona el próximo 14 de mayo que se enmarca dentro del Hardware Freedom Day. Un evento donde la Comunidad KDE suele estar muy presente y que este año no va a ser una excepción.
Dia de la libertad del hardware 2022
La convocatoria se ha realizado en catalán, y la podéis ver en la página del evento organizado por Caliu, pero me he tomado la libertad de traducirla para el blog e intentar conseguir dos objetivos: llamar la atención para que vaya más gente e inspirar a otras organizaciones a realizar acciones parecidas en su zona local.
Este año Caliu lo vuelve a celebrar, como hizo de forma continua desde el 2015 hasta el 2017 (como mínimo) un poco más tarde y lo anuncia de la siguiente forma:
Caliu celebrará el Día de la Libertad del Hardware el 14 de mayo al espacio joven La Fontana de Barcelona. La idea será de reunir ponentes para hacer cuatro charlas relacionadas con algún aspecto del hardware libre.
Según leemos en la Wikipedia:
El Día de la Libertad de Hardware es una celebración anual organizada por la Fundación Libertad Digital. El objetivo del Día de la Libertad de Hardware es celebrar el espíritu del hardware abierto y concienciar a más personas para que utilicen y contribuyan a proyectos libres y de hardware. El primer Día de la Libertad de Hardware se celebró el 20 de abril de 2013. La fecha de 2022 es el 16 de abril.
La información de interés y las charlas son las siguientes:
- Espacio Jove La Fontana Data
- Caller Gran de Gràcia, 190,192
De momento no hay listado de charlas, así que en cuanto las tenga las comparto con todos vosotros. Y, de momento, solo conozco este evento en toda España, así que si sabéis de otro lugar donde se celebre no dudéis en comentarlo.
La entrada Dia de la libertad del hardware 2022 se publicó primero en KDE Blog.
El Atareao en Podcast Linux #153
Bienvenidos a un nuevo episodio de los audios de Juan Febles, y este en concreto es la continuación del #152 que ya promocioné en el blog hace poco. En el capítulo de hoy tenemos a el Atareado en Podcast Linux, con el que podréis escuchar sus reflexiones sobre los paquetes de instalación de aplicaciones .deb, flatpak, snap y AppImage.
El Atareao en Podcast Linux #153

De un tiempo a esta parte estoy publicando casi todas las entregas que realiza Juan de su Podcast Linux, y la razón radica es que últimamente estoy enganchado a sus audios… y todos me parecen interesantes y promocionables.
En esta ocasión en la hora y poco de programa Juan habla de forma distendida con Lorenzo Carbonell, con el que hablan de las alternativas que tenemos para instalar aplicaciones en nuestro sistemas GNU/Linux.
Además se hace un repaso a los múltiples proyectos de divulgación que tiene Lorenzo y que honran su sobrenombre: el Atareao.
En palabras de Juan:
¡¡¡Muy buenas amante del Software Libre!!!
Bienvenido a otra entrega, la número 153, de Podcast Linux. Un saludo muy fuerte de quien te habla, Juan Febles. Hoy vuelve con nosotros Lorenzo Carbonell, Bloguero, podcaster y desarrollador en GNU/Linux, lo puedes escuchar cada lunes y jueves en su podcast y leer cuando quieras en atareao.es
Enlaces:
- Blog Atareao: https://www.atareao.es/
- Podcast Atareao: https://www.atareao.es/podcasts/
- Mastodon: https://atareao.es/mastodon
- Twitter: https://twitter.com/atareao
- Fediverse.tv: https://fediverse.tv/c/atareao
- Youtube: https://www.youtube.com/c/atareao
- Github: https://github.com/atareao
- Canal de Telegram: https://t.me/canal_atareao
Así que os invito a escuchar esta charla distendida de Lorenzo Carbonell con Juan Febles de más de una hora que seguro que no os defraudará como no lo ha hecho conmigo. ¡Dentro audio!
Más información: Podcast Linux
Sigue a Podcast Linux
Aprovecho para animaros a seguir Podcast Linux en algunos de los canales de comunicación que tiene:
- Twitter: https://twitter.com/podcastlinux
- Mastodon: https://mastodon.social/@podcastlinux/
- Correo: podcastlinux@disroot.org
- Web: https://podcastlinux.com/
- Telegram: https://t.me/podcastlinux
- Telegram Juan Febles: https://t.me/juanfebles
- Youtube: https://www.youtube.com/PodcastLinux
- Feed Podcast Linux: https://podcastlinux.com/feed
- Feed Linux Express (Audios Telegram): https://podcastlinux.com/Linux-Express/feed
La entrada El Atareao en Podcast Linux #153 se publicó primero en KDE Blog.
使用 certbot 申請 SSL 憑證 with openSUSE Leap 15.3 in GCP 小記
使用 certbot 申請 SSL 憑證 with openSUSE Leap 15.3 in GCP 小記
OS: openSUSE Leap 15.3 in GCP ( Preemptible )
DNS provider: gandi.net
上次寫這篇文章已經是 2020/9
可以參考之前的文章 https://sakananote2.blogspot.com/2020/09/certbot-ssl-with-opensuse-in-azure.html
那個時候如果要申請憑證還可以用 python3-certbot, 現在是用 snapd
今天再次測試使用 certbot 這個 ACME 客戶端來進行 Let’s Encrypt 憑證的申請.
因為要使用 certbot 配合 DNS 驗證來取得憑證, 之後要放在 GCP 的 Load Balancer 上面, 所以我在 GCP 上面建立 Preemptible GCE 來取得憑證, Preemptible 的好處就是費用便宜 :)
Let’s Encrypt 官網入門網頁
參考 Certbot 網頁上, openSUSE leap 15 與 nginx 的文件
首先登入到 GCP 上面的 openSUSE Leap 15.3
因為是 Lab 文件, 然後 Preemptible 不會超過 24 小時, 我就先切換為 root
> sudo su -
要安裝 certbot 套件, 現在要使用 snapd
參考 snapd 的安裝網頁
新增 repository
# zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.3 snappy
匯入 GPG Key
# zypper --gpg-auto-import-keys refresh
Retrieving repository 'Update repository of openSUSE Backports' metadata .[done]
Building repository 'Update repository of openSUSE Backports' cache ......[done]
Retrieving repository 'Debug Repository' metadata ........................[done]
Building repository 'Debug Repository' cache .............................[done]
Retrieving repository 'Update Repository (Debug)' metadata ...............[done]
Building repository 'Update Repository (Debug)' cache ....................[done]
Retrieving repository 'Non-OSS Repository' metadata ......................[done]
Building repository 'Non-OSS Repository' cache ...........................[done]
Retrieving repository 'Main Repository' metadata .........................[done]
Building repository 'Main Repository' cache ..............................[done]
Retrieving repository 'Update repository with updates from SUSE Linux Ente[done]
Building repository 'Update repository with updates from SUSE Linux Enterpris[-]
最近會遇到要 update SUSE Linux Enterprise 會比較久, 這個真的要看時段 QQ
# zypper dup --from snappy
Loading repository data...
Reading installed packages...
Computing distribution upgrade...
Nothing to do.
安裝 snapd
# zypper install -y snapd
設定 開機會啟動 snapd ( 我這個 case 其實不用, 但是也是紀錄一下 )
# systemctl enable --now snapd
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.service → /usr/lib/systemd/system/snapd.service.
openSUSE Leap 15.3 以及 Tumbleweed 要多執行以下指令
# systemctl enable --now snapd.apparmor
Created symlink /etc/systemd/system/multi-user.target.wants/snapd.apparmor.service → /usr/lib/systemd/system/snapd.apparmor.service.
接下來確認 snapd 已經是最新
# snap install core; snap refresh core
2022-04-30T14:38:36Z INFO Waiting for automatic snapd restart...
Warning: /snap/bin was not found in your $PATH. If you've not restarted your
session since you installed snapd, try doing that. Please see
https://forum.snapcraft.io/t/9469 for more details.
core 16-2.54.4 from Canonical* installed
snap "core" has no updates available
接下來安裝 Certbot
# snap install --classic certbot
Warning: /snap/bin was not found in your $PATH. If you've not restarted your
session since you installed snapd, try doing that. Please see
https://forum.snapcraft.io/t/9469 for more details.
certbot 1.26.0 from Certbot Project (certbot-eff*) installed
處理上面提到的指令路徑
# ln -s /snap/bin/certbot /usr/bin/certbot
因爲今天是要透過 certbot 來申請 SSL 憑證, 所以會執行 certonly 方式來執行
# certbot certonly --manual --preferred-challenges=dns -d *.ines.tw
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)
(Enter 'c' to cancel): sakana@study-area.org ( 聯絡信件 )
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server. Do you agree?
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y (同意協議)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: Y (同意分享 email, 這個看個人)
Account registered.
Requesting a certificate for *.ines.tw
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please deploy a DNS TXT record under the name:
_acme-challenge.ines.tw.
with the following value:
pGNqhluMQ3u-ejpPOMOdUG-ZO2gPrptWzyGmxYNyKpA
Before continuing, verify the TXT record has been deployed. Depending on the DNS
provider, this may take some time, from a few seconds to multiple minutes. You can
check if it has finished deploying with aid of online tools, such as the Google
Admin Toolbox: https://toolbox.googleapps.com/apps/dig/#TXT/_acme-challenge.ines.tw.
Look for one or more bolded line(s) below the line ';ANSWER'. It should show the
value(s) you've just added.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Press Enter to Continue (按下 Enter 之前, 要確認 DNS 供應商那邊已經設定 TXT 紀錄, value 是上面紫色的內容)
Successfully received certificate.
Certificate is saved at: /etc/letsencrypt/live/ines.tw/fullchain.pem
Key is saved at: /etc/letsencrypt/live/ines.tw/privkey.pem
This certificate expires on 2022-07-29.
These files will be updated when the certificate renews.
NEXT STEPS:
- This certificate will not be renewed automatically. Autorenewal of --manual certificates requires the use of an authentication hook script (--manual-auth-hook) but one was not provided. To renew this certificate, repeat this same certbot command before the certificate's expiry date.
We were unable to subscribe you the EFF mailing list because your e-mail address appears to be invalid. You can try again later by visiting https://act.eff.org.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
If you like Certbot, please consider supporting our work by:
* Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
* Donating to EFF: https://eff.org/donate-le
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
certonly 只申請憑證
--manual 手動方式
--preferred-challenges=dns
使用 DNS 進行驗證
-d *.ines.tw
要申請的網域名稱
相關憑證會存放在 /etc/letsencrypt/live/你的網域下
一次簽發 90 天
觀察相關資訊
# ls -lh /etc/letsencrypt/live/ines.tw/
total 4.0K
-rw-r--r-- 1 root root 692 Apr 30 14:50 README
lrwxrwxrwx 1 root root 31 Apr 30 14:50 cert.pem -> ../../archive/ines.tw/cert1.pem
lrwxrwxrwx 1 root root 32 Apr 30 14:50 chain.pem -> ../../archive/ines.tw/chain1.pem
lrwxrwxrwx 1 root root 36 Apr 30 14:50 fullchain.pem -> ../../archive/ines.tw/fullchain1.pem
lrwxrwxrwx 1 root root 34 Apr 30 14:50 privkey.pem -> ../../archive/ines.tw/privkey1.pem
主要有 4 個檔案
cert.pem: 申請的網域的SSL憑證 (Your domain's certificate)
可以對應到之前sslforfree的 certificate.crt - 公鑰
chain.pem: Let's Encrypt 的 鏈證書 (The Let's Encrypt chain certificate)
可以對應到之前sslforfree的ca_bundle.crt - 中繼憑證
fullchain.pem: 公鑰與中繼憑證合併 (cert.pem and chain.pem combined)
Nginx 如果要設定 ssl, 就會使用這個檔案
privkey.pem: SSL憑證的私鑰 (Your certificate's private key)
可以對應到之前sslforfree的private.key - 私鑰
這樣就算申請完畢, 但是要如何知道目前申請了那些憑證呢?
可以使用下列指令列出相關資訊
# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
Certificate Name: ines.tw
Serial Number: 3b21ee0374642cba9403c35278cb94e5923
Key Type: RSA
Domains: *.ines.tw
Expiry Date: 2022-07-29 13:50:52+00:00 (VALID: 89 days)
Certificate Path: /etc/letsencrypt/live/ines.tw/fullchain.pem
Private Key Path: /etc/letsencrypt/live/ines.tw/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
觀察憑證上面的資訊, 其實真正存放路徑是在 /etc/letsencrypt/archive/你的網域
# ls -l /etc/letsencrypt/archive/ines.tw/
total 20
-rw-r--r-- 1 root root 1830 Apr 30 14:50 cert1.pem
-rw-r--r-- 1 root root 3749 Apr 30 14:50 chain1.pem
-rw-r--r-- 1 root root 5579 Apr 30 14:50 fullchain1.pem
-rw------- 1 root root 1704 Apr 30 14:50 privkey1.pem
把相關憑證複製到使用者家目錄, 方便等等下載
# cp /etc/letsencrypt/archive/ines.tw/* /home/max
然後將 privkey1.pem 更改擁有人, 等等才有權限下載
# chown max /home/max/privkey1.pem
下載的方式有好幾種
回到自己的機器
方式 1: 使用 Web SSH 上面的下載按鈕
點選 GCE 服務頁面, 使用 WebSSH 登入後, 點選下載按鈕
輸入檔案名稱 , 點選 Download
預設的下載目錄應該是 ~/下載
方式 2: 使用 gcloud 指令
> gcloud compute scp test20220430:/home/max/cert1.pem /tmp/cert1.pem --zone asia-east1-b --project speedy-bazaar-245112
test20220430:/home/max/cert1.pem 這邊請換成 你的GCE名稱:路徑/檔案名稱
如果 zone 與 project 沒有預設設定, 請進行指定
方式 2 相對於方式 1 的好處是可以指定下載路徑
方式 3: 使用 scp 指令
> scp -i css_id_rsa 使用者@公共IP:/home/max/cert1.pem /tmp/cert1.pem
下載檔案如下
> ls -l
總用量 20
-rw-r--r-- 1 sakana users 1830 4月 30 23:27 cert1.pem
-rw-r--r-- 1 sakana users 3749 4月 30 23:27 chain1.pem
-rw-r--r-- 1 sakana users 5579 4月 30 23:28 fullchain1.pem
-rw------- 1 sakana users 1704 4月 30 23:29 privkey1.pem
下載完成後就可以關閉 / 刪除 GCE 了
接下來就可以後續放在 GCP Load Balancer 上使用了
又前進一步了 :)
Reference:
https://sakananote2.blogspot.com/2020/09/certbot-ssl-with-opensuse-in-azure.html
http://sakananote2.blogspot.com/2020/02/nginx-with-opensuse-leap-151-in-azure.html
http://sakananote2.blogspot.com/2020/03/nginx-ssl-with-opensuse-leap-151-in.html
Paying technical debt in our accessibility infrastructure
This is somewhat of an extended abstract for the talk I want to give at GUADEC.
Curently, very few people work on GNOME's accessibility infrastructure, which is basically what the free desktop ecosystem uses regardless of GUI toolkit. After Oracle acquired Sun Microsystems in 2010, paid work on accessibility virtually disappeared. There is little volunteer work on it, and the accessibility stack has been accumulating technical debt since then.
What is legacy code? What sort of technical debt is there in our accessibility stack?
-
It has few or no tests.
-
It does not have a reproducible environment for building and testing.
-
It has not kept up with the rest of the system's evolution.
-
Few people know how it works.
It's a vicious circle, and I'd like to help break the loop.
Quick reminder: What does the accessibility infrastructure do?
An able-bodied person with good eyesight uses a desktop computer by looking at the screen, and interacting with things via the keyboard and mouse. GUI toolkits rely very heavily on this assumption, and hardware does, too — think of all the work expended in real-time flicker-free graphics, GPUs, frame-by-frame profilers, etc.
People who can't see well, or at all, or who can't use a regular keyboard in the way applications require them to (only got one hand? try pressing a modifier and a key at the opposite ends of the keyboard!), or who can't use a mouse effectively (shaky hands? arthritis pain? can't double-click? can't do fine motor control to left-click vs. right-click?), they need different technologies.
Or an adapter that translates the assumptions of "regular" applications into an interaction model they can use.
The accessibility stack for each platform, including GNOME, is that kind of adapter.
In subsequent blog posts I'll describe our accessibility infrastructure in more detail.
Times change
I've been re-familiarizing myself with the accessibility code. The last time I looked at it was in the early 2000s, when Sun contracted with Ximian to fix "easy" things like adding missing accessible roles to widgets, or associating labels with their target widgets. Back then everything assumed X11, and gross hacks were used to snoop events from GTK and forward them to the accessibility infrastructure. The accessibility code still used CORBA for inter-process communication!
Nowadays, things are different. When GNOME dropped CORBA, the accessibility code was ported in emergency mode to DBus. GTK3 and then GTK4 happened, and Wayland too. The accessibility infrastructure didn't quite keep up, and now we have a particularly noticeable missing link between the toolkit and the accessibility stack: GTK removed the event snooping code that the accessibility code used to forward all events to itself, and so for example not all features of Orca (the screen reader) fully work with GTK4 apps.
Also, in Wayland application windows don't know their absolute position in the screen. The compositor may place them anywhere or transform their textures in arbitrary ways. In addition, Wayland wants to move away from the insecure X11 model where any rogue application can set itself up as an accessibility technology (AT) and sniff all the events in all applications.
Both our toolkit infrastructure and the world's security needs have changed.
What I have been doing
I've been re-familiarizing myself with how the accessibility stack works, and I hope to detail it in subsequent blog posts.
For now, I've done the following:
-
Add continuous integration to at-spi2-core. Three of the basic modules in the accessibility infrastructure — at-spi2-core, at-spi2-atk, pyatspi2 — didn't have any CI configured for them. Atk has CI, Orca doesn't, but I haven't explored the Orca code yet.
-
I intend to merge at-spi2-core/atk/at-spi2-atk/pyatspi2 into a single repository, since they are very tightly coupled with each other and it will be easier to do end-to-end tests if they are in the same repository. Currently those tests are spread out between at-spi2-atk and pyatspi2.
-
Made the README in at-spi2-core friendlier; turned it into Markdown and updated it for the current state of things.
-
Did a bit of refactoring in at-spi2-core after setting up static analysis in its CI.
-
Did a bit of exploratory refactoring there, but found out that I have no easy way to test it. Hence the desire to make it possible to test all the accessibility code together.
-
Fixed a crash in GTK when one uses gnome-text-editor with the screen reader on. (merge request awaiting review)
-
Currently trying to debug this missing annotation in gnome-shell.
A little call for help
Is anyone familiar with testing things in Gitlab that need to be launched by dbus-broker? I think this may require either running systemd in the CI container (a cumbersome proposition), or using a virtual machine with systemd instead of a container. Anyway — if you care about Fedora or dbus-broker, please help.
#openSUSE Tumbleweed revisión de la semana 17 de 2022
Tumbleweed es una distribución «Rolling Release» de actualización contínua. Aquí puedes estar al tanto de las últimas novedades.

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 esta semana.
El anuncio original lo puedes leer en el blog de Dominique Leuenberger, publicado bajo licencia CC-by-sa, en este este enlace:
Esta semana 17 se han publicado 7 nuevas snapshots.
Y los cambios más importantes que han llegado a los repositorios son:
- TeXLive 2022
- Postfix 3.6.6
- Linux kernel 5.17.4
- jdk-11.0.15+10
- systemd
- Mesa 22.0.2
- KDE Gear 22.04.0
Y los proyectos que próximamente llegarán a los repositorios son:
- ffmpeg 5
- GNOME 42.1
- cURL 7.83.0
- Linux kernel 5.17.5
- GCC 12 como compilador predeterminado de todos los paquetes.
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
-
-
- ¿Por qué deberías utilizar openSUSE Tumbleweed?
- zypper dup en Tumbleweed hace todo el trabajo al actualizar
- ¿Cual es el mejor comando para actualizar Tumbleweed?
- Comprueba la valoración de las «snapshots» de Tumbleweed
- ¿Qué es el test openQA?
- http://download.opensuse.org/tumbleweed/iso/
- https://es.opensuse.org/Portal:Tumbleweed
-

——————————–


