Skip to main content

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

EasyTAG: Organisiere deine Musik unter openSUSE

Audiodateien in Formaten wie MP3, AAC und Ogg Vorbis haben Musik allgegenwärtig und tragbar gemacht. Mit dem explosionsartigen Wachstum der Speicherkapazität kannst du riesige Musikbibliotheken speichern. Aber wie hältst du all diese Musik organisiert? Tagge einfach deine Musik. Dann kannst du einfach lokal und in der Cloud darauf zugreifen. EasyTAG ist eine gute Wahl für die Kennzeichnung von Musik und ist unter openSUSE verfügbar.

Viele Audiodateitypen unterstützen das Tagging, einschließlich:

  • MP4, MP3, MP3, MP2
  • Ogg Speex, Ogg Vorbis, Ogg Opus
  • FLAC
  • MusePack
  • Monkey Audio

Installation von EasyTAG

EasyTAG ist einfach aus openSUSE-Repositories zu installieren:

Oder benutze Zypper in einem Terminal als Root:

# zypper install easytag

Dann startest du das Programm über das Anwendungsmenü auf deinem Desktop. Die unkomplizierte Benutzeroberfläche von EasyTAG eignet sich für die meisten Desktop-Umgebungen.

Musik taggen

Wähle einen Ordner aus, in dem du Musik hast, die du markieren möchtest. Standardmäßig lädt EasyTAG auch Unterordner. Du kannst jede Datei auswählen und Tag-Informationen wie Künstler, Titel, Jahr usw. hinzufügen. Du kannst auch Bilder im JPG- oder PNG-Format zu einer Datei hinzufügen, was die meisten Player auch verstehen.

Von dir geänderte Dateien werden in der Dateiliste fett gedruckt. Um alle zu speichern, drückst du Strg+S. Du kannst auch die gesamte Liste auswählen und mit Strg+Shift+S alle Dateien auf einmal speichern.

Eine der leistungsfähigsten Funktionen von EasyTAG ist der Dateiscanner. Der Scanner erkennt Muster auf der Grundlage einer von dir bereitgestellten Vorlage. Sobald du die richtigen Vorlagen und Scan-Dateien zur Verfügung gestellt hast, markiert EasyTAG automatisch alle für dich. Dann kannst du sie in großen Mengen speichern. Das spart viel Zeit und Frustration im Umgang mit großen Bibliotheken.

Wenn du deine getaggten Dateien zu einem Cloud-Service hochlädst, ermöglichen dir deine Tags, die gewünschte Musik jederzeit schnell zu finden und abzuspielen.

Dieser Artikel ist eine Adaption & Übersetzung von EasyTAG: Organize your music on Fedora unter der Creative Commons Lizenz.

the avatar of Chun-Hung sakana Huang

使用容器化方式, 建立Ansible 與三大雲端平台工具 azure-cli , awscli 與 gcloud with openSUSE Leap 小記

使用容器化方式, 建立Ansible 與三大雲端平台工具 azure-cli , awscli 與 gcloud with openSUSE Leap 小記

OS: openSUSE Leap 15

上次整理了 ansible 與 azure-cli with openSUSE Leap 15 in container.
因為後面又有開始實驗 awscli 以及 gcloud (Google Cloud SDK) 工具

就想要把這三個雲端平台的工具整進容器內.

接下來整理三個雲端平台工具設定檔相關位置與資訊

Microsoft Azure:

Amazon AWS:

Google Cloud Platform

已經製作好 container image 在 docker hub 上

使用方式 ( 須先具備容器環境, 例如 docker 或是 podman, 以下範例使用 docker )

如果之前完全沒有使用過三大平台工具, 只是想要快速有 ansible 與相關工具( azure-cli, awscli, gcloud )
>  docker  run  -it  sakana/ansible_opensuse15   /bin/bash
  • 進到容器之後就可以開始使用, 接下來就是進行各平台的登入驗證, 將取得相關驗證並開始作業

如果已經有在平台進行驗證, 可以在 docker  run 的時候配合 -v 的選項, 將本機的設定檔掛載

> docker  run  -v  ~/.aws:/root/.aws  -v  ~/.azure:/root/.azure  -v  ~/.config/gcloud:/root/.config/gcloud  -it  sakana/ansible_opensuse15:2019050402  /bin/bash
  • 各個設定檔請參考上面的資訊
  • 我個人是還有 -v 掛載 playbook 目錄 :)

這樣以後使用各個平台的工具就方便多了 :)

~ enjoy it

Reference:

the avatar of Martin de Boer

Leap 15.1, the release that nobody talks about

openSUSE Leap 15.1 is almost ready for release! (1) This is always a high point of the year for me. I started researching what was new in this release. However, there is not much buzz around this release. I found only a few articles on Softpedia (2), Phoronix (3) and the announcement by Ludwig Nussel (4).

When I tried to establish what was new (5) in Leap 15.1, I started to understand why. Leap 15.1 mostly features minor updates. Still there are updates that are noteworthy. In the table below I highlighted in green the updated packages that are really new. In blue, I highlighted new packages that are also present in updated Leap 15 installations.

Package name Leap 15 Leap 15 Leap 15.1 Tumbleweed
with updates
Amarok 2.9.0 2.9.0 2.9.0 2.9.0
Audacity 2.2.2 2.2.2 2.2.2 2.3.1
Calibre 3.23.0 3.27.1 3.40.1 3.40.1
Calligra suite 3.1.0 3.1.0 3.1.0 3.1.0
Chromium browser 66 73 73 73
Darktable 2.4.3 2.4.3 2.6.2 2.6.2
Digikam 5.9.0 5.9.0 6.0.0 6.1.0
Flatpack 0.10.4 0.10.4 1.2.3 1.2.4
GIMP 2.8.22 2.8.22 2.8.22 2.6.12
Gnome Applications 3.26 3.26 3.26 3.30
GNU Cash 3.0 3.0 3.0 3.4
Hugin 2018.0.0 2018.0.0 2018.0.0 2018.0.0
Inkscape 0.92.2 0.92.2 0.92.2 0.92.4
KDE Applications 17.12 17.12.3 18.12.3 19.04.0
KDE Plasma 5 desktop 5.12.5 5.12.8 5.12.8 5.15.4
Krita 4.0.3 4.0.3 4.1.8 4.1.8
LibreOffice 6.0.4 6.1.3 6.1.3 6.2.3
Linux kernel 4.12.14 4.12.14 4.12.14* 5.0.9
Mozilla Firefox 60.0 60.6.1 60.6.1 66.0.3
Mozilla Thunderbird 52.7 60.6.1 60.6.1 60.6.1
Pidgin 2.13 2.13 2.13 2.13
Rapid Photo Downloader 0.9.9 0.9.9 0.9.14 0.9.14
Scribus 1.4.7 1.4.7 1.4.7 1.4.7
Shotwell 0.28.3 0.28.3 0.28.3 0.30.2
VLC 3.0.2 3.0.2 3.0.6 3.0.6
YaST 4.0.74 4.0.87 4.1.68 4.2.0

Software package updates

Calibre is updated to 3.40 and includes some improvements to Kobo drivers, support for the Kindle Whitepaper 2018, a bunch of improvement for the Edit book functionality, the Content station has a new “Copy to library” function and some usability improvements of the Tag browser.

Darktable is updated to 2.6, including a new retouch module, a new filmic module, a new module to handle duplicates in the darkroom, you can now change the cropped area in the perspective correction module, the mask blur feature has been extended with a guided-filter to fine tune it and the color balance module has two new modes based on ProPhotoRGB and HSL.

Digikam is updated to 6.0. This means that you can now manage video files in the same way as you would manage photos. In the album management, you can now use virtual folders (RAW/JPG/PNG) to sort items in a list. Digikam 6.0 uses libraw 0.19, which enables support for over 200 new RAW files. This includes support for iPhone 8, 8+ and X and support for Samsung S7, S7 Edge and S8. There are also many improvements for connecting with external web services. Finally, Digikam now uses a separate database for fussy and duplicate search, improving performance and reliability.

Flatpack is updated to 1.2.3, which includes many security improvements.

KDE applications got a big update to 18.12. Dolphin (file manager) received many improvements, including the ability to hide the Places panel and dock the Terminal panel. The folder view and settings dialog have been updated. Ocular (PDF and document viewer) has a new typewriter annotation feature that enables you to type everywhere on a page. Konsole (terminal application) now has full support for emoji. The Gwenview (image viewer) has seen many improvements, including the crop tool, the reduce red eye tool, improved zooming and better drag and drop functionality. Spectacle (screenshot tool) gained the ability to sequentially number screenshot files and now remembers the lastest save settings. With the rectangular region selection mode, you can select a part of the screen . Ark (unzip tool) now supports the tar.zst archive file standard.

Krita is updated to 4.1.8 and introduces the new reference images tool that lets you place and edit a reference image to help you with drawing. Another help with drawing is provided by the improved vanishing point assistant. Krita 4.1 features many animation improvements and a better color picker tool.

LibreOffice 6.1 offers 2 new icon themes ‘Colibre’ and ‘Karasa Jaga’, it loads documents with many images faster, the gradient tool has been improved and new fill gradients are available, you can now add page numbers and page counts in the header and footer sections of Writer, you can insert a Signature line in Writer, you can now sort images anchored to cells in Calc, the merge cells dialog box has become much clearer in Calc, you can now use CSVs as data sources in Calc and a new page menu has been added in Impress.

Linux kernel has received some back-ports of Graphics hardware from the Linux kernel 4.19, including better support for AMD Vega cards.

Rapid Photo Downloader (from the Graphics repository) is updated to 0.9.14. Canon’s latest RAW file format CR3 is supported on systems that have ExifTool 10.87 or newer.

YaST has received several improvements and is updated to 4.1.68. YaST has improved the default partitioning proposal for systems with less than 12 GB, YaST received some UI improvements including better support for 4K monitors, the YaST Firewall module has been adapted to work with Firewalld, the Partitioner can now directly format full disks and create MD RAIDs on top of disks without partitions.

Installation options

Besides the standard installation options (full ISO, KDE live ISO, Gnome live ISO, network installer) there is now full support for Raspberry Pi installations. The server installation now features an option for a transactionally updated system. Furthermore there are the more traditional server installations for X86_64 and JeOS (the minimal server installation for the Cloud). You can find the Beta versions of Leap 15.1 here.

Published on: 4 May 2019

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

In Defense of Tumblweed: Why @BryanLunduke is wrong

What is OpenSUSE Tumbleweed?

OpenSUSE Tumbleweed is a cutting-edge Linux distribution from the OpenSUSE team. It uses the latest versions of software applications and the Linux kernel for those who want to see what will be coming up in other Linux distributions in 6-months to a year or more from the time that they appear in Tumbleweed. This means that there are bugs; lots of them. Things break, This is the price that you pay for having the very cutting edge or software technology.

What did Bryan Lunduke actually say?

Let’s break down his complaints. There are only two.

  • SUSE Studio
  • YaST (ugly, cumbersome, hard to use, stupid, bloated)

The first complaint is an application stack that doesn’t actually have anything directly to do with Tumbleweed. I never used it. It was going by the wayside when I started using OpenSUSE as my daily OS of choice. The source code is still out there and maybe it should be forked and brought back to life. I don’t know. I can’t argue with this point because it is a red herring and has nothing to do the OpenSUSE Tumbleweed distribution.

The second list of complaints is pretty vague, but his complaint is basically that YaST has issues that are causing it to bring does the entire distribution as a whole.

What is YaST?

YaST (Yet Another Setup Tool) is a set of system management tools that are grouped together in a single management application called YaST though they can be installed and run separately as needed.

The modules allow the user to easily control most administrative functions that might be needed. Not all of the modules are the same though. Some such as the printer and scanner modules suck. Other modules like the Software Management module are great. I consider this to be on par with Debian’s Synaptic package management tool which is freaking amazing. If unevenness in the quality of the modules is the reason why he dislikes it so much, then it’s not a completely wrong reason but it’s not a really good one either.

I say that it’s a given that some of the modules are out of date or need a fresh new rewrite, but that’s not specifically what he is saying. He keeps his complaints vague and oddly personal. I’m not privy to much of the inner-workings of the OpenSUSE distribution but I’ve seen from social media that there is some bad blood there between him and folks in OpenSUSE and I really hope this isn’t just a rant against them instead of really against the distribution.

With that aside, let’s talk about the real issue with YaST and any GUI based configuration tool. It is yet another level of abstraction away from actually working with the operating system. For example, YaST has an module called HTTP Server. If you run it, it will set up Apache and any modules like PHP for you and will give you some basic options for tuning it without actually needing to work with the command line or configuration files directly. If someone told me that they had been a system administrator for 5 years but they had only ever used YaST, I wouldn’t hire them because many times things break and they can’t be fixed with YaST. Tools like YaST should mainly be a time saver not a replacement for good configuration and I think that’s what it is currently.

Even with my own genuine complaints above, they don’t really co-inside with Bryan Lunduke’s complains (it’s ugly, cumbersome, hard to use, stupid, and bloated) because I can’t see all of that. It’s no more ugly than any other tool (besides real nerds care about function over form). Granted, some of the modules are cumbersome and hard to use, but not all of them. It’s “stupid, stupid and it’s stupid” what the heck is that supposed to mean? Use your words Lunduke! Don’t just emote. “It’s bloated.” There are currently 183 total YaST modules. Many will never be used by an end user because they are only used during installation. However if you were to install them all, it would take up 176MiB which would average out to .96MiB per module. There are some required Ruby libraries that I’m not taking into account here, but this really isn’t what I would call bloat. You can even uninstall the modules that you don’t want without causing a huge fuss.

Let’s Wrap Up

Bryan Lunduke is wrong when he says that OpenSUSE Tumbleweed is one of the worst distros out right now. He is wrong when he says that YaST is dragging down the entire distro. YaST has problems, but they aren’t what he says they are.

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

21 dias para el lanzamiento de openSUSE Leap 15.1



 




El lanzamiento de openSUSE Leap 15.1 está a unas tres semanas. Para ayudar a correr la voz sobre el lanzamiento, tenemos contadores disponibles en counter.opensuse.org y más ilustraciones en https://github.com/openSUSE/artwork/. ¡Puedes poner estos artículos en tus redes sociales o en las páginas de tu blog para asegurarte de que todos sepan que el lanzamiento está por venir!
 
Para tu blog y cuentas de redes sociales.


Contador de lanzamientos

Puedes agregar el contador de lanzamiento de openSUSE 15.1 a tu sitio web en varios tamaños incluyendo el siguiente código html en su blog:

<a href="http://en.opensuse.org/Portal:15.1"> <img src = "http://counter.opensuse.org/medium.png" border = "0" /> </a> <br/>

"Medio" es el tamaño del contador; también puede ser "pequeño" o "grande" y también tenemos "ancho" para un banner.

¡Ve a la página de cuenta regresiva en la wiki de openSUSE para obtener más información, código y consejos de cuenta regresiva!

the avatar of Sébastien sogal Poher

Tumbleweed: nouvelles de la semaine 17

Quatre instantanés openSUSE Tumbleweed ont été publiés cette semaine. Ils fournissent un noyau Linux, des versions du framework KDE ainsi que python-setuptools pour offrir aux développeurs un grand nombre de nouveaux paquets upstream.

L'instantané Tumbleweed 20190423, le plus récent, fournissait un nouveau cups-filters 1.22.5 qui modifiait un appel Ghostscript afin de corriger le nombre de pages pour qu'il fonctionne avec Ghostscript 9.27 et les versions ultérieures. Le package de décodeur AV1 dav1d 0.2.2 apporte une augmentation de vitesse de 4 à 6% pour le décodage MSAC (Multi Slot Amplitude Coding) avec SSE. Le progiciel du noyau a été mis à jour en 20190409 et a mis à jour le fichier du micrologiciel pour les firmwares Intel Bluetooth et Marvell. Des traductions indonésiennes ont été faites dans le paquet libstorage-ng 4.1.112. Ruby 2.6.3 a mis à jour la version Unicode vers la version 12.1 bêta pour ajouter la prise en charge de New Japanese Era “令 和” (Reiwa). Les autres packages mis à jour dans l'instantané étaient perl-DateTime 1.51, perl-DateTime-TimeZone 2.35, python-parso 0.4.0, python-qt5 5.12.1 et rdma-core 23.0. Selon l'outil d'évaluation de Tumbleweed, cet instantané a actuellement une cote de 89.

Mesa 19.0.2 présentait quelques correctifs pour radeon, radv et v3d dans l'instantané 20190420. Quelques autres paquets ont été mis à jour dans cet instantané, tels que kipi-plugins 5.9.1, qui était la première version autonome en dehors de digikam. Selon l'évaluateur Tumbleweed, cet instantané affiche actuellement une côte de 97.

Les contributeurs de KDE ont proposé de nombreuses corrections et bibliothèques d'addons à Qt avec la mise à jour de Frameworks 5.57.0 dans l'instantané 20190419. Le framework d'interface utilisateur légère de KDE pour les applications mobiles et convergentes, appelée Kirigami, comportait la plupart des mises à jour, ainsi que KIO et les fonctions de gestion de fichiers qu'elle fournit aux utilisateurs de Konqi. Python-setuptools 41.0.0 est un autre package destiné aux développeurs qui est arrivé dans l'instantané. Le package supprime la prise en charge de la spécification d’un codage à l’aide d’une directive «coding:» dans l’en-tête du fichier. Lors de l'analyse des fichiers setup.cfg, setuptools exige désormais que les fichiers soient encodés en UTF-8. Java-11-openjdk mis à jour en 11.0.3.0 a ajouté des scénarios de test pour une analyse syntaxique japonaise et a implémenté plusieurs correctifs de sécurité. Cet instantané affichait une note stable de 97.

L'instantané qui a commencé la semaine, 20190418, affichait une note stable de 94. L'instantané a mis à jour ImageMagick vers la version 7.0.8.40 et résolvait plusieurs problèmes suivis sur github. Le paquet emacs 26.2 est maintenant compatible avec la dernière version 11.0 du standard Unicode et des modifications ont été apportées aux modes et paquets spécialisés dans Emacs 26.2 Dired: la commande ‘Z’ d’un nom de répertoire compresse désormais l’ensemble de ses fichiers. Le noyau Linux 5.0.8 comportait des correctifs pour les plate-formes arm et autres. Une des mises à jour du noyau a corrigé les régulateurs du codec audio du processeur AM335x Evaluation Module. Les autres packages mis à jour dans l'instantané étaient hwdata 0.322, sshfs 3.5.2 et yast2 4.2.0, nécessaires pour charger des frameworks de tests d'intégration.

Tags: opensuse

the avatar of Klaas Freitag

Noisy Workshop

Usually, in my workshop I am listening to the great radio station Bayern 2 (Yeah for public law media). But sometimes you just need to listen to nice classic english punk music, speed folk or (the one and only) Lemmy and friends.

For that I was looking for a so called boom box to stream to from my mobile, simple, dirty and loud. Good that I was a proud awardee at the HiFiBerry Maker Contest 2017 with my TeakEar build, where I won a nice set of a RaspberryPi Zero with a little HiFiBerry MiniAmp, coming with all what is needed to make that working. inletThat should be enough to get proper punk sound in the workshop - and escape the boring normal commercial boom boxes all around.

At a flee market I found a great case for that - exactly one of these that were in the classrooms of my school giving the unbanning gong at the end of each lesson. Nicely with the original non-color textile hiding the speaker and nicely done bended and veneered wood for the elegance.

case

A great fit for my usecase.

Two 3.3 inch Visaton fullrange speaker are mounted in simple closed chassis. The Raspi with the Amp is mounted between them. All is mounted on a back plate that fits the school speaker chassis. Boombox ready.

From a software perspective, it is there is just a Raspbian running that is configured to act as a bluetooth audio device for my mobile.

I think it is a nice addition to my workshop, with a great ease of use since it auto-connects to my mobile. Does it sound great? Oh no, not ..really. Is it loud? Well, yes, loud enough to not get in trouble with the neighbors. Given it’s size, it is actually impresse.

Surely Lemmy would be fine to play Rock’n Roll through it :)

The only downsize of the whole thing is that it disturbs the radio reception quite a bit, so it is really either or. Any hints how to reduce that?

the avatar of Chun-Hung sakana Huang

使用 gsutil 工具建立 Google Cloud Storage in openSUSE Leap 15 小記

使用 gsutil 工具建立 Google Cloud Storage in openSUSE Leap 15 小記

OS: openSUSE Leap 15



首先在 GCP 平台上面已經建立專案然後啟動計費
接下來是安裝 Google Cloud SDK, 參考

使用一般使用者開啟終端機
檢查 python 版本
> python  --version
Python 2.7.14

將目錄切換到使用者家目錄
>cd

  • 這邊會切換到家目錄的原因是, 之前練習安裝 Cloud SDK 的時候, 位置在 ~/下載 目錄
    • 遇到安裝時出現 “UnicodeDecodeError: 'ascii' codec can't decode byte 0xe4” 這樣的錯誤訊息, 查了一下網路上的文章是編碼的問題, 將SDK 放在沒有中文的目錄路徑下就沒有問題了

下載 Cloud SDK


進行 SHA256 check SUM, 跟官方比對, 確認檔案無誤
> sha256sum   google-cloud-sdk-240.0.0-linux-x86_64.tar.gz

5b7ad4e2632c77d5643162af6e1a586d22c5da82fe4e2ec18c411c831c6f5a44  google-cloud-sdk-240.0.0-linux-x86_64.tar.gz

進行解壓縮
> tar  zxvf  google-cloud-sdk-240.0.0-linux-x86_64.tar.gz

安裝 google cloud SDK
> ./google-cloud-sdk/install.sh

Welcome to the Google Cloud SDK!

To help improve the quality of this product, we collect anonymized usage data
and anonymized stacktraces when crashes are encountered; additional information
is available at <https://cloud.google.com/sdk/usage-statistics>. You may choose
to opt out of this collection now (by choosing 'N' at the below prompt), or at
any time in the future by running the following command:

   gcloud config set disable_usage_reporting true

Do you want to help improve the Google Cloud SDK (Y/n)?

Your current Cloud SDK version is: 240.0.0
The latest available version is: 243.0.0

┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                                   Components         │
├──────────────────┬──────────────────────────────────────────────────────┬──────────────────────────┬───────────┤
│      Status     │              Name   │ ID │   Size │
├──────────────────┼──────────────────────────────────────────────────────┼──────────────────────────┼───────────┤
│ Update Available │ BigQuery Command Line Tool                           │ bq │ < 1 MiB │
│ Update Available │ Cloud SDK Core Libraries                             │ core │ 10.2 MiB │
│ Update Available │ Cloud Storage Command Line Tool                      │ gsutil                   │   3.8 MiB │
│ Not Installed    │ App Engine Go Extensions                             │ app-engine-go │ 56.6 MiB │
│ Not Installed    │ Cloud Bigtable Command Line Tool                     │ cbt │ 6.4 MiB │
│ Not Installed    │ Cloud Bigtable Emulator                              │ bigtable │ 5.6 MiB │
│ Not Installed    │ Cloud Datalab Command Line Tool                      │ datalab │ < 1 MiB │
│ Not Installed    │ Cloud Datastore Emulator                             │ cloud-datastore-emulator │ 18.4 MiB │
│ Not Installed    │ Cloud Datastore Emulator (Legacy)                    │ gcd-emulator │ 38.1 MiB │
│ Not Installed    │ Cloud Firestore Emulator                             │ cloud-firestore-emulator │ 40.5 MiB │
│ Not Installed    │ Cloud Pub/Sub Emulator                               │ pubsub-emulator │ 33.4 MiB │
│ Not Installed    │ Cloud SQL Proxy                                    │ cloud_sql_proxy │ 3.8 MiB │
│ Not Installed    │ Emulator Reverse Proxy                               │ emulator-reverse-proxy │ 14.5 MiB │
│ Not Installed    │ Google Cloud Build Local Builder                     │ cloud-build-local │ 6.0 MiB │
│ Not Installed    │ Google Container Registry's Docker credential helper │ docker-credential-gcr    │ 1.8 MiB │
│ Not Installed    │ gcloud Alpha Commands                                │ alpha │ < 1 MiB │
│ Not Installed    │ gcloud Beta Commands                                 │ beta │ < 1 MiB │
│ Not Installed    │ gcloud app Java Extensions                           │ app-engine-java │ 104.8 MiB │
│ Not Installed    │ gcloud app PHP Extensions                            │ app-engine-php │ │
│ Not Installed    │ gcloud app Python Extensions                         │ app-engine-python │ 6.0 MiB │
│ Not Installed    │ gcloud app Python Extensions (Extra Libraries)       │ app-engine-python-extras │ 28.5 MiB │
│ Not Installed    │ kubectl                                    │ kubectl │ < 1 MiB │
└──────────────────┴──────────────────────────────────────────────────────┴──────────────────────────┴───────────┘
To install or remove components at your current SDK version [240.0.0], run:
 $ gcloud components install COMPONENT_ID
 $ gcloud components remove COMPONENT_ID

To update your SDK installation to the latest version [243.0.0], run:
 $ gcloud components update


Modify profile to update your $PATH and enable shell command
completion?

Do you want to continue (Y/n)?  Y

The Google Cloud SDK installer will now prompt you to update an rc
file to bring the Google Cloud CLIs into your environment.

Enter a path to an rc file to update, or leave blank to use
[/home/sakana/.bashrc]:

Backing up [/home/sakana/.bashrc] to [/home/sakana/.bashrc.backup].
[/home/sakana/.bashrc] has been updated.

==> Start a new shell for the changes to take effect.


For more information on how to get started, please visit:
 https://cloud.google.com/sdk/docs/quickstarts

因為Google Cloud SDK 有針對 ~/.bashrc 進行改動, 所以要開一個新的終端機才算完整

開啟新的終端機
進行比對 ( 主要是加入命令路徑以及命令補齊功能 )

> diff  ~/.bashrc  ~/.bashrc.backup
29,34d28
<
< # The next line updates PATH for the Google Cloud SDK.
< if [ -f '/home/sakana/google-cloud-sdk/path.bash.inc' ]; then . '/home/sakana/google-cloud-sdk/path.bash.inc'; fi
<
< # The next line enables shell command completion for gcloud.
< if [ -f '/home/sakana/google-cloud-sdk/completion.bash.inc' ]; then . '/home/sakana/google-cloud-sdk/completion.bash.inc'; fi


執行 gcloud init 初始化 SDK
> ./google-cloud-sdk/bin/gcloud  init

Welcome! This command will take you through the configuration of gcloud.

Your current configuration has been set to: [default]

You can skip diagnostics next time by using the following flag:
 gcloud init --skip-diagnostics

Network diagnostic detects and fixes local network connection issues.
Checking network connection...done.                                                                                               
Reachability Check passed.
Network diagnostic passed (1/1 checks passed).

You must log in to continue. Would you like to log in (Y/n)?  Y

會要求登入或是選擇 google 帳號, 詢問是否允許 google Cloud SDK 存取




Updates are available for some Cloud SDK components.  To install them,
please run:
 $ gcloud components update

You are logged in as: [YOUR_ACCOUNT@gmail.com].

Pick cloud project to use:
[1] steadfast-task-xxxyyy
[2] Create a new project
Please enter numeric choice or text value (must exactly match list
item):  輸入目前專案或是建立一個專案

Your current project has been set to: [steadfast-task-xxxyyy].

Do you want to configure a default Compute Region and Zone? (Y/n)?  Y

Which Google Compute Engine zone would you like to use as project
default?
[26] asia-east1-b
[27] asia-east1-a
[28] asia-east1-c

Please enter numeric choice or text value (must exactly match list
item):  27 這邊我輸入 27  是在台灣的機房

Your project default Compute Engine zone has been set to [asia-east1-a].
You can change it by running [gcloud config set compute/zone NAME].

Your project default Compute Engine region has been set to [asia-east1].
You can change it by running [gcloud config set compute/region NAME].

Created a default .boto configuration file at [/home/sakana/.boto]. See this file and
[https://cloud.google.com/storage/docs/gsutil/commands/config] for more
information about configuring Google Cloud Storage.
Your Google Cloud SDK is configured and ready to use!

Run `gcloud help config` to learn how to change individual settings

This gcloud configuration is called [default]. You can create additional configurations if you work with multiple accounts and/or projects.
Run `gcloud topic configurations` to learn more.

Some things to try next:

* Run `gcloud --help` to see the Cloud Platform services you can interact with. And run `gcloud help COMMAND` to get help on any gcloud command.
* Run `gcloud topic --help` to learn about advanced features of the SDK like arg files and output formatting

到這邊 Cloud SDK 設定完成

觀察一下剛剛提到的  ~/.boto
> egrep  -v  '^#|^$'  ~/.boto
[Credentials]
[Boto]
https_validate_certificates = True
[GoogleCompute]
[GSUtil]
content_language = en
default_api_version = 2
[OAuth2]

接下來開始使用 gsutil 指令建立  google cloud storage

> gsutil  mb  -l  asia-east1  gs://test20190427

Creating gs://test20190427/...

  • mb 是建立 bucket
  • 預設是 Region 等級, 所以 -l 後面加上 asia-east1 就好, 不需要指定 zone (asia-east1-a) , 不然會有錯誤

到 GCP console 觀察


接下來嘗試把圖片丟到剛剛建立的 Bucket

> gsutil  cp  kitten.png  gs://test20190427

Copying file://kitten.png [Content-Type=image/png]...
- [1 files][164.3 KiB/164.3 KiB]                                                
Operation completed over 1 objects/164.3 KiB.

可以到 GCP console 觀察

測試下載 Bucket 中的檔案到本機
> gsutil  cp  gs://test20190427/kitten.png  kitten2.png

Copying gs://test20190427/kitten.png...
/ [1 files][164.3 KiB/164.3 KiB]                                                
Operation completed over 1 objects/164.3 KiB.

嘗試將檔案複製到 Bucket 中的資料夾
> gsutil  cp  gs://test20190427/kitten.png  gs://test20190427/just-a-folder/kitten3.png

Copying gs://test20190427/kitten.png [Content-Type=image/png]...
/ [1 files][164.3 KiB/164.3 KiB]                                                
Operation completed over 1 objects/164.3 KiB.

列出 Bucket 的內容
> gsutil  ls  gs://test20190427/

gs://test20190427/kitten.png
gs://test20190427/just-a-folder/

嘗試設定物件的權限
設定公開存取
> gsutil  acl  ch  -u  AllUsers:R  gs://test20190427/kitten.png

Updated ACL on gs://test20190427/kitten.png

刪除權限
> gsutil  acl  ch  -d  AllUsers gs://test20190427/kitten.png

Updated ACL on gs://test20190427/kitten.png

刪除物件
> gsutil   rm  gs://test20190427/kitten.png

Removing gs://test20190427/kitten.png...
/ [1 objects]                                                                   
Operation completed over 1 objects.

刪除 Bucket
> gsutil  rm  -r  gs://test20190427

Removing gs://test20190427/just-a-folder/kitten3.png#1556341698915616...
/ [1 objects]                                                                   
Operation completed over 1 objects.                                              
Removing gs://test20190427/...

額外練習 gsutil  rync 指令
如果覺得一個一個指令下太麻煩, 也可以嘗試 gsutil rsync 指令

建立一個實驗資料夾 images, 裡面有圖片兩張

> gsutil  rsync  images/  gs://test20190427/

WARNING: gsutil rsync uses hashes when modification time is not available at
both the source and destination. Your crcmod installation isn't using the
module's C extension, so checksumming will run very slowly. If this is your
first rsync since updating gsutil, this rsync can take significantly longer than
usual. For help installing the extension, please see "gsutil help crcmod".

Building synchronization state...
Starting synchronization...
Copying file://images/kitten2.png [Content-Type=image/png]...
Copying file://images/opensuse.jpg [Content-Type=image/jpeg]...                 
- [2 files][182.0 KiB/182.0 KiB]                                                
Operation completed over 2 objects/182.0 KiB.
上面的作法會把 images 目錄下的兩張圖片直接複製到 test20190427 bucket 底下
可是這樣以後管理並不方便, 所以嘗試另外一種方式
在目的地加上目錄名稱 images

> gsutil  rsync images/  gs://test20190427/images

Building synchronization state...
Starting synchronization...
Copying file://images/kitten2.png [Content-Type=image/png]...
Copying file://images/opensuse.jpg [Content-Type=image/jpeg]...                 
- [2 files][182.0 KiB/182.0 KiB]                                                
Operation completed over 2 objects/182.0 KiB.     

接下來將 本機 images 目錄內的其中一張圖片刪除, 再次執行一樣的指令

> gsutil rsync images/  gs://test20190427/images

Building synchronization state...
Starting synchronization...

這邊會發現沒有影響

慎重其實我們來實驗兩個 options  -n 以及 -d
> gsutil rsync -dn images/ gs://test20190427/images

Building synchronization state...
Starting synchronization...
Would remove gs://test20190427/images/kitten2.png

  • -d  delete, 如果來源端不存在, 目的地端也會刪除
  • -n  dry run, 不實際執行, 先看執行的輸出

另外也有一個重要的 option -r recursive
  • 如果沒有加上 -r , 只會針對當下目錄的物件, 不會包含子目錄還有子目錄的物件

> gsutil  rsync -dr  images/  gs://test20190427/images

Building synchronization state...
Starting synchronization...
Copying file://images/test2/kitten2.png [Content-Type=image/png]...
- [1 files][164.3 KiB/164.3 KiB]                                                
Operation completed over 1 objects/164.3 KiB.   


如果要加速同步, 可以使用 -m 選項
  • -m muti-threaded

這樣又前進 GCP 一小步
~ enjoy it

Reference:


the avatar of Michal Čihař

Weblate 3.6.1

Weblate 3.6.1 has been released today. It is a bugfix release fixing several issues reported after the 3.6 release.

Full list of changes:

  • Improved handling of monolingual Xliff files.
  • Fixed digest notifications in some corner cases.
  • Fixed addon script error alert.
  • Fixed generating MO file for monolingual PO files.
  • Fixed display of uninstalled checks.
  • Indicate administered projects on project listing.
  • Allow update to recover from missing VCS repository.

If you are upgrading from older version, please follow our upgrading instructions.

You can find more information about Weblate on https://weblate.org, the code is hosted on Github. If you are curious how it looks, you can try it out on demo server. Weblate is also being used on https://hosted.weblate.org/ as official translating service for phpMyAdmin, OsmAnd, Turris, FreedomBox, Weblate itself and many other projects.

Should you be looking for hosting of translations for your project, I'm happy to host them for you or help with setting it up on your infrastructure.

Further development of Weblate would not be possible without people providing donations, thanks to everybody who have helped so far! The roadmap for next release is just being prepared, you can influence this by expressing support for individual issues either by comments or by providing bounty for them.

Filed under: Debian English SUSE Weblate

the avatar of Chun-Hung sakana Huang

openSUSE Leap 15 in Google Cloud Platform 小記

openSUSE Leap 15 in Google Cloud Platform 小記

最近開始接觸 GCP, 簡單來說之後三個公有雲平台應該都會碰
這個星期去申請了 GCP 的免費帳號

開始使用 GCP 的服務, 當然是從建立 VM 開始

點選左上角的選單 -- > Compute Engine -- > VM 執行個體

右方會出現 建立 按鈕 -- > 點選 建立


在建立的頁面, 除了輸入 VM 名稱, 選取可以在台灣機房以外
OS 的選擇是在開機磁碟的映像檔 -- > 點選 變更 按鈕 ( 預設是 Debian GNU/Linux 9 )


這個時候發現預設的映像檔, 還有到 Marketplace 搜尋
都沒有 openSUSE !!

Google 了一下關鍵字 openSUSE Leap GCP
找到甘漢文寫的 Blog

參考他的文章

開啟 Google Cloud Shell

查詢 openSUSE 的 image
$gcloud  compute  images list --project  opensuse-cloud --no-standard-images

NAME                          PROJECT FAMILY DEPRECATED  STATUS
opensuse-leap-15-v20181106    opensuse-cloud opensuse-leap             READY
opensuse-leap-42-3-v20180116  opensuse-cloud opensuse-leap             READY

使用 gcloud compute instances create 指令建立 VM instance
$gcloud  compute  instances create  test20190425  --image-project  opensuse-cloud --image opensuse-leap-15-v20181106 --zone  asia-east1-a


接下來回到 VM執行個體觀察
點選 SSH 右方的下拉式方塊 -- >

接下來就可以在瀏覽器中操作 openSUSE Leap 15



這樣也算是前進一小步 with GCP
~ enjoy it
:)

Reference: