Pages

Saturday, December 11, 2021

Fedora 35 : Share your commands online with asciinema tool on blogger.com .

The asciinema.org is now running the latest server and web player code and thus it fully supports this new format.
In the last tutorial about this online tool we briefly presented how it can be used.
In this tutorial, I will present some other features and how you can integrate the result in blogger.com.
Let's see a short example with some simple commands in Linux and how we used this tool:
[mythcat@fedora ~]$ asciinema auth
[mythcat@fedora ~]$ asciinema rec linux_commands_default.cast
asciinema: recording asciicast to linux_commands_default.cast
asciinema: press <ctrl-d> or type "exit" when you're done
[mythcat@fedora ~]$ ls
...
[mythcat@fedora ~]$ dir
...
[mythcat@fedora ~]$ pwd
...
[mythcat@fedora ~]$
exit
asciinema: recording finished
asciinema: asciicast saved to linux_commands_default.cast
[mythcat@fedora ~]$ asciinema upload linux_commands_default.cast
I used the local recording and uploaded it later to avoid additional fixes in case of errors and inconsistencies with what we want to display online.
The asciinema online tool supports sharing an asciicast on Twitter, Slack, Facebook, Google+, or any other site which supports one of these APIs: oEmbed, Open Graph, and Twitter Card APIs, see also this webpage.
To use this online tool with your blog, you will need to use the three lines of source code to change according to the number of asciinema uploaded from the URL.
In my example case is this number 455414 from this URL: https://asciinema.org/a/455414/ and the source code for this blog post is shown below:
<script src="https://github.com/asciinema/asciinema-player/releases/download/v2.6.1/asciinema-player.css"/></script>
<script src="https://github.com/asciinema/asciinema-player/releases/download/v2.6.1/asciinema-player.js"/></script>
<script id="asciicast-455414" src="https://asciinema.org/a/455414.js" async></script>
Here is the result of the source code above, it did not work now because I don't add javascript libraries on the script area.

Friday, December 3, 2021

Fedora 35 : You can test Fedora online.

You can test any Linux on this website.
I tested with Fedora 35 Linux distro and works well.
Just open the website select your Linux distro and press the Start button.
See the nest message on the webpage"
If no window has opened yet please click here: Open VNC-Viewer (allow POP-UPs !)
I used this option and I get the Linux distro for the first install.
I start it without install on the hard disk and this is the result:

Wednesday, November 24, 2021

Fedora 35 : PlaneShift online game.

On November 13, 2021, the PlaneShift team announces:
We are happy to share a new server is available thanks to Proact, our sponsor! Proact is a data management specialist company focusing on protecting and maintaining companies data.
As you well know:
PlaneShift is a Free Massive Multiplayer Online Role Playing Game, completely made and maintained by volunteers.
Today I tested this game on a laptop model HP Compaq 6710b installed with Fedora 35 Linux distro.
Here is the result:

Saturday, November 6, 2021

Fedora 35 : PyQt6 and Python 3.

I tested the new python version 10 and pyqt version 6 on the fedora version 35 distribution.
[mythcat@fedora ~]$ python
Python 3.10.0 (default, Oct  4 2021, 00:00:00) [GCC 11.2.1 20210728 (Red Hat 11.2.1-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
...
[mythcat@fedora ~]$ uname -a
Linux fedora 5.14.15-300.fc35.x86_64 #1 SMP Wed Oct 27 15:53:39 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
I install PyQt6 easy with pip tool:

[mythcat@fedora ~]$ pip install PyQt6 --user
Collecting PyQt6
  Downloading PyQt6-6.2.1-cp36-abi3-manylinux1_x86_64.whl (7.7 MB)
  ...
  Downloading PyQt6_Qt6-6.2.1-py3-none-manylinux_2_28_x86_64.whl (50.0 MB)
  ...
  Downloading PyQt6_sip-13.1.0-cp310-cp310-manylinux1_x86_64.whl (309 kB)
Installing collected packages: PyQt6-sip, PyQt6-Qt6, PyQt6
Successfully installed PyQt6-6.2.1 PyQt6-Qt6-6.2.1 PyQt6-sip-13.1.0
I tested with this python source code and it works fine.
import sys
from PyQt6.QtWidgets import QApplication, QWidget

def main():

    app = QApplication(sys.argv)

    w = QWidget()
    w.resize(250, 200)
    w.move(300, 300)

    w.setWindowTitle('Simple')
    w.show()

    sys.exit(app.exec())

if __name__ == '__main__':
    main()

Sunday, October 17, 2021

Fedora 35 : The yubikey tool.

Today I tested my old yubikey tool on Fedora 35 and working well.
You can see more info in the documentation area.
[root@fedora mythcat]# dnf install yubikey-manager.noarch
Last metadata expiration check: 0:41:43 ago on Sat 16 Oct 2021 10:46:03 PM EEST.
Dependencies resolved.
================================================================================
 Package                 Arch   Version                            Repo    Size
================================================================================
Installing:
 yubikey-manager         noarch 4.0.7-1.20210908gitbf45dad.fc35    fedora 9.4 k
Installing dependencies:
 libyubikey              x86_64 1.13-16.fc35                       fedora  34 k
 python3-fido2           noarch 0.9.1-4.fc35                       fedora 237 k
 python3-pyscard         x86_64 1.9.7-13.fc35                      fedora 180 k
 python3-yubikey-manager noarch 4.0.7-1.20210908gitbf45dad.fc35    fedora 223 k
 ykpers                  x86_64 1.20.0-8.fc35                      fedora 106 k
Downgrading:
 python3-cryptography    x86_64 3.4.7-5.fc35                       fedora 695 k
 
Transaction Summary
================================================================================
Install    6 Packages
Downgrade  1 Package
 
Total download size: 1.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): python3-fido2-0.9.1-4.fc35.noarch.rpm    401 kB/s | 237 kB     00:00     
(2/7): libyubikey-1.13-16.fc35.x86_64.rpm        52 kB/s |  34 kB     00:00     
(3/7): python3-pyscard-1.9.7-13.fc35.x86_64.rpm 808 kB/s | 180 kB     00:00     
(4/7): python3-yubikey-manager-4.0.7-1.20210908 526 kB/s | 223 kB     00:00     
(5/7): yubikey-manager-4.0.7-1.20210908gitbf45d  81 kB/s | 9.4 kB     00:00     
(6/7): ykpers-1.20.0-8.fc35.x86_64.rpm          225 kB/s | 106 kB     00:00     
(7/7): python3-cryptography-3.4.7-5.fc35.x86_64  68 kB/s | 695 kB     00:10     
--------------------------------------------------------------------------------
Total                                           130 kB/s | 1.4 MB     00:11      
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                        1/1  
  Downgrading      : python3-cryptography-3.4.7-5.fc35.x86_64               1/8  
  Installing       : python3-fido2-0.9.1-4.fc35.noarch                      2/8  
  Installing       : python3-pyscard-1.9.7-13.fc35.x86_64                   3/8  
  Installing       : libyubikey-1.13-16.fc35.x86_64                         4/8  
  Installing       : ykpers-1.20.0-8.fc35.x86_64                            5/8  
  Installing       : python3-yubikey-manager-4.0.7-1.20210908gitbf45dad.f   6/8  
  Installing       : yubikey-manager-4.0.7-1.20210908gitbf45dad.fc35.noar   7/8  
  Cleanup          : python3-cryptography-35.0.0-2.fc35.x86_64              8/8  
  Running scriptlet: python3-cryptography-35.0.0-2.fc35.x86_64              8/8  
  Verifying        : python3-cryptography-3.4.7-5.fc35.x86_64               1/8  
  Verifying        : python3-cryptography-35.0.0-2.fc35.x86_64              2/8  
  Verifying        : libyubikey-1.13-16.fc35.x86_64                         3/8  
  Verifying        : python3-fido2-0.9.1-4.fc35.noarch                      4/8  
  Verifying        : python3-pyscard-1.9.7-13.fc35.x86_64                   5/8  
  Verifying        : python3-yubikey-manager-4.0.7-1.20210908gitbf45dad.f   6/8  
  Verifying        : ykpers-1.20.0-8.fc35.x86_64                            7/8  
  Verifying        : yubikey-manager-4.0.7-1.20210908gitbf45dad.fc35.noar   8/8  
 
Downgraded:
  python3-cryptography-3.4.7-5.fc35.x86_64                                       
Installed:
  libyubikey-1.13-16.fc35.x86_64                                                 
  python3-fido2-0.9.1-4.fc35.noarch                                              
  python3-pyscard-1.9.7-13.fc35.x86_64                                           
  python3-yubikey-manager-4.0.7-1.20210908gitbf45dad.fc35.noarch                 
  ykpers-1.20.0-8.fc35.x86_64                                                    
  yubikey-manager-4.0.7-1.20210908gitbf45dad.fc35.noarch                         
 
Complete!

[mythcat@fedora ~]$ ykman  
Usage: ykman [OPTIONS] COMMAND [ARGS]...
 
  Configure your YubiKey via the command line.
 
  Examples:
 
    List connected YubiKeys, only output serial number:
    $ ykman list --serials
 
    Show information about YubiKey with serial number 0123456:
    $ ykman --device 0123456 info
 
Options:
  -d, --device SERIAL             Specify which YubiKey to interact with by
                                  serial number.
  -r, --reader NAME               Use an external smart card reader. Conflicts
                                  with --device and list.
  -l, --log-level [DEBUG|INFO|WARNING|ERROR|CRITICAL]
                                  Enable logging at given verbosity level.
  --log-file FILE                 Write logs to the given FILE instead of
                                  standard error; ignored unless --log-level
                                  is also set.
  --diagnose                      Show diagnostics information useful for
                                  troubleshooting.
  -v, --version                   Show version information about the app
  --full-help                     Show --help, including hidden commands, and
                                  exit.
  -h, --help                      Show this message and exit.
 
Commands:
  info     Show general information.
  list     List connected YubiKeys.
  config   Enable or disable applications.
  fido     Manage the FIDO applications.
  oath     Manage the OATH application.
  openpgp  Manage the OpenPGP application.
  otp      Manage the YubiOTP application.
  piv      Manage the PIV application.

[mythcat@fedora ~]$ ykman info
Device type: YubiKey 4
Serial number:
Firmware version: 4.3.4
Enabled USB interfaces: OTP, FIDO, CCID
 
Applications
FIDO2           Not available    
OTP             Enabled          
FIDO U2F        Enabled          
OATH            Enabled          
YubiHSM Auth    Not available    
OpenPGP         Enabled          
PIV             Enabled  

[mythcat@fedora ~]$ ykman fido list
WARNING: The use of this command is deprecated and will be removed!
Replace with: ykman fido credentials list
 
Error: Credential Management is not supported on this YubiKey.

Friday, October 1, 2021

Fedora 35 : Upgrade from Fedora 34 to Fedora 35 Beta.

Fedora Workstation 35 brings several features worth noting, and testing, for the beta release.
Fedora 35 Workstation Beta includes the newest release of the GNOME desktop environment version 41.
Let's upgrade with these Linux commands:
$ sudo dnf upgrade --refresh
$ sudo dnf autoremove
$ sudo dnf install dnf-plugin-system-upgrade
$ sudo dnf system-upgrade download --releasever=35
$ sudo dnf system-upgrade reboot
$ sudo dnf system-upgrade clean
This is the result:

Sunday, September 5, 2021

Fedora 34 : GitKraken tool.

GitKraken is a freemium, cross-platform Git client. Users must pay to use this product commercially, and with large teams. It isn’t open source. That said, it has a free version that anyone can use (for personal, and hobby reasons).
This tool can be found on this website.
I'm trying to install the rpm package, but I got an error about: does not verify: no digest.
I used this mode:
wget https://release.gitkraken.com/linux/gitkraken-amd64.tar.gz
sudo tar -xvzf gitkraken-amd64.tar.gz
This tool work well, see the next picture: