三大雲平台工具容器升級小記 with openSUSE Leap 15 container
- azure 以及 aws 工具又有版本升級
- 加上 aws 指令補齊以及修正 vim 針對中文顯示問題
- docker run -v ~/.aws:/root/.aws -v ~/.azure:/root/.azure -v ~/.config/gcloud:/root/.config/gcloud -it sakana/ansible_opensuse15 /bin/bash
- # pip install awscli --upgrade
- # zypper refresh
- # zypper update -y azure-cli
- 在 linux 內的處理方式跟 Mac 不一樣, 要用 source 的方式不是使用 complete
- 9b870 為剛剛修改好的 container ID
- 我這邊建立一個 container image 然後 tag name 為 20190707
OpenMandriva | Review from an openSUSE User
Removing rsvg-view
I am preparing the 2.46.0 librsvg release. This will no longer have the rsvg-view-3 program.
History of rsvg-view
Rsvg-view started
out
as a 71-line C program to aid development of librsvg. It would just
render an SVG file to a pixbuf, stick that pixbuf in a GtkImage
widget, and show a window with that.
Over time, it slowly acquired most of the command-line options that
rsvg-convert supports. And I suppose, as a way of testing the
Cairo-ification of librsvg, it also got the ability to print SVG files
to a GtkPrintContext. At last count, it was a 784-line C program
that is not really the best code in the world.
What makes rsvg-view awkward?
Rsvg-view requires GTK. But GTK requires librsvg, indirectly, through gdk-pixbuf! There is not a hard circular dependency because GTK goes, "gdk-pixbuf, load me this SVG file" without knowing how it will be loaded. In turn, gdk-pixbuf initializes the SVG loader provided by librsvg, and that loader reads/renders the SVG file.
Ideally librsvg would only depend on gdk-pixbuf, so it would be able to provide the SVG loader.
The rsvg-view source code still has a few calls to GTK functions which are now deprecated. The program emits GTK warnings during normal use.
Rsvg-view is... not a very good SVG viewer. It doesn't even start up
with the window scaled properly to the SVG's dimensions! If used for
quick testing during development, it cannot even aid in viewing the
transparent background regions which the SVG does not cover. It just
sticks a lousy custom widget inside a GtkScrolledWindow, and does
not have the conventional niceties to view images like zooming with
the scroll wheel.
EOG is a much better SVG viewer than rsvg-view, and people actually invest effort in making it pleasant to use.
Removal of rsvg-view
So, the next version of librsvg will not provide the rsvg-view-3
binary. Please update your packages accordingly. Distros may be able to
move the compilation of librsvg to a more sensible place in the
platform stack, now that it doesn't depend on GTK being available.
What can you use instead? Any other image viewer. EOG works fine; there are dozens of other good viewers, too.
Πως να εγκαταστήσετε το viber-unofficial στο openSUSE
Η εγκατάσταση του Viber στο openSUSE έχει αναφερθεί και στο παρελθόν και είναι προβληματική.
Μια πολύ καλή λύση για την εγκατάστασή του είναι το appimage ή το snap. Τα πακέτα Snaps είναι εφαρμογές που είναι συσκευασμένες με όλες τις εξαρτήσεις τους για να τρέχουν σε όλες τις δημοφιλέστερες διανομές Linux από μια ενιαία έκδοση. Ενημερώνονται αυτόματα.
Πριν προχωρήσετε να διαβάζετε και να εφαρμόζετε τις οδηγίες, το πακέτο προσφέρεται από μη επίσημη πηγή, οπότε είστε υπεύθυνοι για την εγκατάστασή του.
1. Ενεργοποίηση snapd
Το Snap μπορεί να εγκατασταθεί από τη γραμμή εντολών στο openSUSE Leap 15 και Tumbleweed.
Πρέπει πρώτα να προσθέσετε το εύχρηστο αποθετήριο από το τερματικό. Οι άλλοι 15 χρήστες, για παράδειγμα, μπορούν να το κάνουν με την ακόλουθη εντολή:
sudo zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_15.1 snappy
Για openSUSE Tumbleweed (μια γραμμή)
sudo zypper addrepo --refresh https://download.opensuse.org/repositories/system:/snappy/openSUSE_Tumbleweed/ snappy
Με το αποθετήριο, εισαγάγετε το κλειδί GPG:
Τέλος, αναβαθμίστε την προσωρινή μνήμη του πακέτου για να συμπεριλάβετε το νέο αποθετήριο snappy:
Το Snap μπορεί τώρα να εγκατασταθεί με τα εξής:
Στη συνέχεια, χρειάζεται είτε να κάνετε επανεκκίνηση, αποσύνδεση/σύνδεση ή source /etc/profile για να προσθέσετε /snap/bin στο PATH. Επιπλέον, ενεργοποιήστε και ξεκινήστε τις υπηρεσίες snapd και snapd.apparmor με τις ακόλουθες εντολές:
sudo systemctl start snapd
Οι χρήστες Tumbleweed πρέπει επίσης να εκτελέσουν τα εξής:
sudo systemctl start snapd.apparmor
2. Εγκατάσταση viber-unofficial
Για να εγκαταστήσετε το viber-unofficial, απλά χρησιμοποιήστε την ακόλουθη εντολή:
Πηγή:
https://snapcraft.io/install/viber-unofficial/opensuse
三大雲平台工具升級 + awscli 指令補齊小記
Bzip2 1.0.7 is released
Bzip2 1.0.7 has been released by Mark Wielaard. We have a slight change of plans since my last post:
-
The 1.0.x series is in strict maintenance mode and will not change build systems. This is targeted towards embedded use, as in projects which already embed the bzip2-1.0.6 sources and undoubtedly patch the build system. Right now this series, and the tagged 1.0.7 release, live in the sourceware repository for bzip2.
-
The 1.1.x series has Meson and CMake build systems, and a couple of extra changes to modernize the C code but which were not fit for the 1.0.7 release. This is targeted towards operating system distributions. This lives in the master branch of the gitlab repository for bzip2.
Distros and embedded users should start using bzip2-1.0.7 immediately. The patches they already have for the bzip2's traditional build system should still apply. The release includes bug fixes and security fixes that have accumulated over the years, including the new CVE-2019-12900.
Once 1.1.0 is released, distributions should be able to remove their patches to the build system and just start using Meson or CMake. You may want to monitor the 1.1.0 milestone — help is appreciated fixing the issues there so we can make the first release with the new build systems!
Blathering | Raspberry Pi to Monitor Air Quality with an Arduino based Thermostat
Puppy Linux | Review from an openSUSE User
Snapshot Control | More openSUSE Tumbleweed Awesomeness
Εγκατάσταση του Unity 3D στο openSUSE (ισχύει και σε άλλες διανομές)
Το Unity 3D είναι ίσως η δημοφιλέστερη μηχανή κατασκευής παιχνιδιών. Για "προσωπική χρήση" και ειδικότερα για το ξεκίνημά σας παρέχεται δωρεάν, αρκεί τα ετήσια κέρδη να μην υπερβαίνουν τα $100 χιλ. Το παραπάνω έχει μια λογική διότι η εταιρία επιτρέπει τον κάθε χρήστη να χρησιμοποιήσει την πλατφόρμα της, να δημιουργήσει ένα παιχνίδι με βάση το πρόγραμμα Unity 3D και εάν αυτό είναι είναι επιτυχημένο, τότε προτρέπει στην αγορά της άδειας χρήσης. Εάν ο δημιουργός έχει έσοδα 100.000$, τότε δεν θα έχει πρόβλημα να πληρώνει 125$ το μήνα (ήτοι 1500$ το χρόνο).
Στην αρχική σελίδα, επιλέγοντας Personal, θα σας βγάλει στην ιστοσελίδα των λήψεων. Εδώ μπορεί να βρείτε εκδόσεις μόνο για windows και macosx. Οπότε καλύτερα επισκεφθείτε το forum και από εκεί κατεβάστε το Unity Hub για Linux.
Το Unity Hub είναι μια αυτόνομη εφαρμογή που συγκεντρώνει όλα τα απαραίτητα για να δημιουργήσετε το δικό σας παιχνίδι. Πάμε να δούμε πως γίνεται η εγκατάσταση.
1. Αφού κατεβάσατε το Unity Hub για Linux, πρέπει να το κάνετε εκτελέσιμο. Πατήστε δεξί πλήκτρο>Ιδιότητες και στην καρτέλα δικαιώματα, επιλέξτε το Να επιτρέπεται η εκτέλεση του αρχείου ως πρόγραμμα.
2. Διπλό κλικ πάνω στο αρχείο. Θα ερωτηθείτε εάν συμφωνείτε με την άδεια χρήσης:
Ενώ στη συνέχεια θα ερωτηθείτε εάν θέλετε να προστεθεί στο μενού.
Η αλήθεια είναι ότι όταν το εγκατέστησα δεν μου το πρόσθεσε. Κάθε φορά το άνοιγα με διπλό κλικ στο αρχείο. Εναλλακτικά μπορείτε να το εισάγετε με το menulibre ή με τερματικό:
Δημιουργήστε ένα αρχείο unity3d.desktop στο /usr/share/applications (ή ~/.local/share/applications ή κατευθείαν στο ~/Desktop) με τον παρακάτω κώδικα:
Encoding=UTF-8
Name=Unity 3D
Exec=/path/to/unity/executable
Icon=/path/to/unity/icon
Type=Application
Categories=Development;
Θα αλλάξετε μόνο τα:
Exec=/path/to/unity/executable (εκεί που βρίσκεται το appimage)
Icon=/path/to/unity/icon (εκεί που βρίσκεται το εικονίδιο της εφαρμογής)
3. Μόλις ανοίξει, θα σας ζητήσει άδεια χρήσης. Προφανώς έχετε την προσωπική χρήση, οπότε απλά δεν σας ενδιαφέρει για τώρα.
Πατήστε επάνω δεξιά για να εισέλθετε (εάν έχετε λογαριασμό) ή να δημιουργήσετε νέο λογαριασμό.
Εάν δεν έχετε, πατήστε Create one. Αλλιώς εισάγετε τα όνομα χρήστη και συνθηματικό.
Αφού εισέλθετε θα δείτε τα στοιχεία σας επάνω δεξιά.
4. Μετακινούμαστε στην οθόνη των Projects.
Εδώ θεωρητικά πατάμε το Add και ξεκινάμε νέο έργο για κατασκευή παιχνιδιού. Όμως δεν είναι ακόμα εγκατεστημένο το Unity 3D. Οπότε πρέπει να πατήσουμε στο Installs.
5. Στο Installs, πατάμε το Add.
Τώρα θα μας ρωτήσει ποια έκδοση Unity θέλουμε να εγκαταστήσουμε.
Αφού επιλέξουμε την έκδοση, θα πρέπει να επιλέξουμε και κάποια πρόσθετα. Ανάλογα για ποια πλατφόρμα θέλετε να έχετε διαθέσιμο το παιχνίδι, εγκαθιστάτε τα ανάλογα πρόσθετα.
Όταν τελειώστε, πρέπει να περιμένετε, ανάλογα με την ταχύτητα του δικτύου σας.
Παρόμοια διαδικασία ακολουθείται και στις άλλες διανομές.
Εσείς έχετε φτιάξει κάποιο παιχνίδι; Αν ναι, αφήστε σχόλιο να το δοκιμάσουμε.












