Pages

Showing posts with label Fedora 35. Show all posts
Showing posts with label Fedora 35. Show all posts

Thursday, July 21, 2022

Fedora 36 : first steps with the Hy.

Hy is a dialect of the Lisp programming language designed to interact with Python by translating s-expressions into Python's abstract syntax tree (AST). Hy was introduced at Python Conference (PyCon) 2013 by Paul Tagliamonte.
This is quite similar to the old GIMP Script Fu that I've worked with in the past. The syntax assumes a join like tabs in HTML, only we'll use parentheses. I haven't studied in detail the implications it has with the python language, but it certainly wasn't invented for nothing.
First, you need to install it with the pip tool.
[mythcat@fedora ~]$ pip3 install hy --user
Collecting hy
...
Successfully built hy
Installing collected packages: funcparserlib, colorama, hy
Successfully installed colorama-0.4.5 funcparserlib-1.0.0 hy-0.24.0
The I test some examples:
[mythcat@fedora ~]$ hy
Hy 0.24.0 using CPython(main) 3.10.5 on Linux
=> (setv a 1)
=> "hello world"
"hello world"
=> (setv mylist [1 2 3])

=> (get mylist 0)
1
=> (defn greet [name]
...  "Hello "
...  (print "Hello " name))
=> (greet "mythcat")
Hello  mythcat
You can test it online with this online tool:

Saturday, January 22, 2022

Fedora 35 : Kdenlive tool.

Note:
The new title of this blog is:About Fedora Linux distro
This was my first blog since blogspot.com and now blogger.com and I wrote my first articles and tutorials using the Linux operating system, especially Fedora distro.
Because I used it so much and it had an impact on my free time. Initially the title was generic "About me and my life" and I later kept it for S.E.O. and because it worked just as well as me.
The new title will not change the content at all and I hope it will come with new and good content.

Let's go back to today's tutorial article: installing kdenlive software.
Kdenlive is a powerful free and open source cross-platform video editing program made by the KDE community.
The last release was on Jan 7, 2022.
I use the DNF utility as follows:
[root@fedora mythcat]# dnf search kdenlive
Last metadata expiration check: 1:20:50 ago on Sat 22 Jan 2022 06:05:54 PM EET.
======================== Name Exactly Matched: kdenlive ========================
kdenlive.x86_64 : Non-linear video editor
[root@fedora mythcat]# dnf install kdenlive
Last metadata expiration check: 1:21:05 ago on Sat 22 Jan 2022 06:05:54 PM EET.
Dependencies resolved.
...
Complete!
After install I run well with this software:
[mythcat@fedora ~]$ kdenlive
QSocketNotifier: Can only be used with threads started with QThread
Invalid metadata for  "audiochannels"
Failed to parse "audiochannels"
Invalid metadata for  "audioconvert"
Failed to parse "audioconvert"
Invalid metadata for  "data_feed"
Failed to parse "data_feed"
Invalid metadata for  "imageconvert"
Failed to parse "imageconvert"
Invalid metadata for  "jack"
Failed to parse "jack"
Empty metadata for  "crop_detect"
Invalid metadata for  "glsl.manager"
Failed to parse "glsl.manager"
Invalid metadata for  "movit.convert"
...
This is a screenshot of the running program:

Saturday, January 8, 2022

Fedora 35 : Testing the new Django web framework version 4.0.1 with channels.

Today I tested in Fedora 35 the new version 4.0.1 of the Django framework and the channels package.
Channels augments Django to bring WebSocket, long-poll HTTP, task offloading, and other async support to your code, using familiar Django design patterns and a flexible underlying framework that lets you not only customize behaviors but also write support for your own protocols and needs. see the GitHub website.
The entire tutorial can be viewed on my blog about python programming language.
The result shows that it works with the admin webpage:

Sunday, January 2, 2022

Fedora 35 : OBS Studio tool.

This is a free and open-source software for video recording and live streaming for Linux, Mac, and Windows.
You can download it from the official webpage.
This software can be install with the DNF tool:
[mythcat@fedora ~]$ sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
[sudo] password for mythcat:
Last metadata expiration check: 0:06:53 ago on Sun 02 Jan 2022 10:26:02 PM EET.
rpmfusion-free-release-35.noarch.rpm                26 kB/s |  11 kB     00:00    
rpmfusion-nonfree-release-35.noarch.rpm             35 kB/s |  11 kB     00:00    
Package rpmfusion-free-release-35-1.noarch is already installed.
Package rpmfusion-nonfree-release-35-1.noarch is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[mythcat@fedora ~]$ sudo dnf install obs-studio
Last metadata expiration check: 0:07:23 ago on Sun 02 Jan 2022 10:26:02 PM EET.
Dependencies resolved.
...
Install  37 Packages

Total download size: 31 M
Installed size: 101 M
...
Complete!
If you have an old laptop with an old graphic card then this software will not work.

Thursday, December 30, 2021

Fedora 35 : New Krita version 5.0.0 released.

Today I tested the new released version 5.0.0 for Krita software.
I download the AppImage from the official website.
After download you need to use these commands:
[mythcat@fedora ~]$ chmod +x krita-5.0.0-x86_64.appimage
[mythcat@fedora ~]$ ./krita-5.0.0-x86_64.appimage
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Old schema: "0.0.10" New schema: 0.0.15
The Krita software runs well on the old HP Compaq 6710b, but I recommend better hardware because it is a software for graphic activities.
Don't worry about the message is a database change warning message.

Sunday, December 26, 2021

Fedora 35 : Python and Flask-Mailing on Fedora.

First of all, a Merry Christmas to the users and the Fedora team. Python version 3.10.1 works very well on Fedore 35 and today I tested a packet called: Flask_Mailing.
Flask-Mailing adds SMTP mail sending to your Flask applications., see the Github repo.
Let's start with the installation of this packet with the pip utility.
[mythcat@fedora ~]$ pip install -U flask-mailing
Defaulting to user installation because normal site-packages is not writeable
Collecting flask-mailing
  Downloading Flask_Mailing-0.0.5-py3-none-any.whl (15 kB)
...
Installing collected packages: rfc3986, anyio, typing-extensions, httpcore, dnspython, async-timeout, pydantic, httpx, 
email-validator, blinker, asgiref, aiosmtplib, aioredis, flask-mailing
    Running setup.py install for blinker ... done
Successfully installed aioredis-2.0.0 aiosmtplib-1.1.6 anyio-3.4.0 asgiref-3.4.1 async-timeout-4.0.2 blinker-1.4 dnspython-2.1.0
email-validator-1.1.3 flask-mailing-0.0.5 httpcore-0.14.3 httpx-0.21.1 pydantic-1.8.2 rfc3986-1.5.0 typing-extensions-4.0.1
I create a folder named ExempleFlask001:
[mythcat@fedora ~]$ mkdir ExempleFlask001
[mythcat@fedora ~]$ cd ExempleFlask001/
[mythcat@fedora ExempleFlask001]$ vi flask001.py
I created the simplest example to test through the import procedure and then read with the dir function, here is the source code:
from flask import Flask
from flask_mailing import Mail, Message

app = Flask(__name__)
@app.route("/")
def index():
    test = str(dir(Mail))
    return test
if __name__ == "__main__":
    app.run(debug=True)
The result of running the script on the command line:
[mythcat@fedora ExempleFlask001]$ python flask001.py
 * Serving Flask app 'flask001' (lazy loading)
 * Environment: production
   WARNING: This is a development server. Do not use it in a production deployment.
   Use a production WSGI server instead.
 * Debug mode: on
 * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
 * Restarting with stat
 * Debugger is active!
 * Debugger PIN: 319-368-265
 ...
The browser's response to the script is this:

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: