Pages

Thursday, February 2, 2023

Fedora 38 : LibreOffice with new features.

LibreOffice is a free and powerful office suite, and a successor to OpenOffice.org (commonly known as OpenOffice). Its clean interface and feature-rich tools help you unleash your creativity and enhance your productivity... see the official website.
I install easy with DNF tool on Fedora 38:
[root@fedora mythcat]# dnf install libreoffice.x86_64
Last metadata expiration check: 1:13:09 ago on Thu 02 Feb 2023 05:03:42 PM EET.
Dependencies resolved.
================================================================================
 Package                         Arch     Version               Repo       Size
================================================================================
Installing:
 libreoffice                     x86_64   1:7.5.0.2-2.fc38      rawhide    15 k
Installing dependencies:
 apache-commons-collections      noarch   3.2.2-29.fc38         rawhide   531 k
 apache-commons-lang3            noarch   3.12.0-7.fc38         rawhide   559 k
 firebird                        x86_64   4.0.2.2816-4.fc38     rawhide   5.1 M
 firebird-utils                  x86_64   4.0.2.2816-4.fc38     rawhide   2.1 M
 flute                           noarch   1.3.0-31.OOo31.fc38   rawhide    64 k
 javapackages-tools              noarch   6.1.0-7.fc38          rawhide    37 k
 libbase                         noarch   1.1.3-36.fc38         rawhide   130 k
 libfbclient2                    x86_64   4.0.2.2816-4.fc38     rawhide   860 k
 libfonts                        noarch   1.1.3-40.fc38         rawhide   177 k
 libformula                      noarch   1.1.3-37.fc38         rawhide   340 k
 libib-util                      x86_64   4.0.2.2816-4.fc38     rawhide    12 k
 liblayout                       noarch   0.2.10-30.fc38        rawhide   654 k
 libloader                       noarch   1.1.3-38.fc38         rawhide   130 k
 libreoffice-base                x86_64   1:7.5.0.2-2.fc38      rawhide   2.3 M
 libreoffice-draw                x86_64   1:7.5.0.2-2.fc38      rawhide    23 k
 libreoffice-math                x86_64   1:7.5.0.2-2.fc38      rawhide    20 k
 librepository                   noarch   1.1.3-37.fc38         rawhide    68 k
 libserializer                   noarch   1.1.2-36.fc38         rawhide    36 k
 ongres-scram                    noarch   2.1-8.fc38            rawhide    65 k
 ongres-scram-client             noarch   2.1-8.fc38            rawhide    24 k
 ongres-stringprep               noarch   1.1-6.fc38            rawhide    74 k
 pentaho-libxml                  noarch   1.1.3-36.fc38         rawhide   101 k
 pentaho-reporting-flow-engine   noarch   1:0.9.4-29.fc38       rawhide   285 k
 postgresql-jdbc                 noarch   42.5.1-2.fc38         rawhide   836 k
 sac                             noarch   1.3-41.fc38           rawhide    19 k
 velocity                        noarch   1.7-40.fc38           rawhide   386 k

Transaction Summary
================================================================================
Install  27 Packages

Total download size: 15 M
Installed size: 46 M
Is this ok [y/N]: y  
...
This software works good on my old laptop:
You can see a video from the official youtube channel with the new features:

Tuesday, January 31, 2023

Fedora 37 : Lite editor.

lite is a lightweight text editor written mostly in Lua — it aims to provide something practical, pretty, small and fast, implemented as simply as possible; easy to modify and extend, or to use without doing either.
I install with DNF tool:
# dnf install lite-xl.x86_64
...
Installed:
  lite-xl-2.1.1-2.fc38.x86_64                                                   

Complete!
... and works very well:

Monday, December 26, 2022

Fedora 37 : SeLinux alert detection from Trend Micro HouseCall.

If you use the tool from Trend Micro HouseCall for Home Networks, then it is possible that the SELinux tool from Fedora Linux will warn you with an alert.
It can be easily fixed with the following commands.
[root@fedora mythcat]# ausearch -c 'journal-offline' --raw | audit2allow -M my-journaloffline
******************** IMPORTANT ***********************
To make this policy package active, execute:

semodule -i my-journaloffline.pp

[root@fedora mythcat]# semodule -X 300 -i my-journaloffline.pp
libsemanage.semanage_get_lock: Could not get direct transaction lock at /var/lib/selinux/targeted/semanage.trans.LOCK. (Resource temporarily unavailable).
Because I got an access error to the resource, I used some Linux commands that checked the status of my selinux, I searched and stopped the process that doesn't let me access the resource and restarted the command:
[root@fedora mythcat]# cat /etc/selinux/config


SELINUX=enforcing
# SELINUXTYPE= can take one of these three values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted




[root@fedora mythcat]# ps aux | grep semodule
root        3974  4.2  5.2 211904 209952 pts/0   T    13:29   0:17 semodule -X 300 -i my-journaloffline.pp
root        4032  0.0  0.0 222424  2288 pts/0    S+   13:36   0:00 grep --color=auto semodule
[root@fedora mythcat]# kill -9 3974
[root@fedora mythcat]# semodule -X 300 -i my-journaloffline.pp
[1]+  Killed                  semodule -X 300 -i my-journaloffline.pp
[root@fedora mythcat]# semodule -X 300 -i my-journaloffline.pp
This is how the Selinux alert appears in the environment of the Fedora 37 Linux distribution.

Saturday, November 19, 2022

Fedora 37 : Vala development in Fedora 37.

Yesterday I tested the Vala programming language on the Fedora 37 linux distribution. The basic idea was that most linux distribution environments use the GTK+ toolkit that Gnome developed. Development with GTK+ can be done with various programming languages: c, python, rust... The main reason why I tested the implementation of the Vala programming language was that Gnome developed it.
For the installation, I used the DNF utility with the following commands to install the packages necessary for the operation of the development in Vala
$sudo dnf groupinstall "Development Tools" "Development Libraries"
$ sudo dnf install vala
The first command installs the tools that are essential to perform tasks such as installing packages from source code.
The second command only installs the Vala package.
To test the written program we will need to use the Valac compiler and then run it as a simple executable in Linux.
$valac --pkg gtk+-3.0 test.vala 
$ ./test

(test:6198): GLib-GObject-CRITICAL **: 14:34:11.454: g_value_set_boxed: assertion 'G_VALUE_HOLDS_BOXED (value)' failed 
The error is about the implementation of Vala in Fedora, I don't have an answer of this but in other Linux distributions this is not show.
If you want to use WebKit2GTK+ Extensions then you need to compile it.
valac test.vala  --pkg gtk+-3.0 --pkg webkit2gtk-4.0
Is a more easy way to developm application but you need to know well how to deal with GTK and GObject structure.

Tuesday, September 20, 2022

News: Fedora 37 Beta Available.

The Fedora development team announced the beta for version 37 of the open-source operating system has been released on time on September 13, 2022.
This was announced on Fedora Hyperkitty
If you want to test the new beta of Fedora 37, the default x86_64 version can be downloaded from the official Fedora download server.
You will see this comes with many of changes.

Fedora 37 : Use radiotray-ng to simple radio player.

Radiotray-NG is a simple radio player for Ubuntu that runs from the system tray.
You can use this command to install the package.
dnf install radiotray-ng
After installation, you will see an icon on the tray area.
Use this to select the radio and this will play it.
The project can be found on GitHub.
.

Saturday, September 10, 2022

Fedora 37 : Starting with the conda tool.

In this tutorial, I will show the first steps for working with conda tool on Fedora 37.
Conda is an open-source package management system and environment management system that runs on Windows, macOS, Linux, and z/OS. Conda quickly installs, runs, and updates packages and their dependencies. Conda easily creates, saves, loads, and switches between environments on your local computer. It was created for Python programs, but it can package and distribute software for any language., see the official webpage.
I used the DNF tool to install this tool.
[root@fedora mythcat]# dnf install conda
By default, Conda is configured to activate the base environment when I open a fresh terminal session and you can set it to false.

[mythcat@fedora ~]$ conda config --set auto_activate_base false
For the changes to be applied, run the source command with the .bashrc file as an argument.

[mythcat@fedora ~]$ source ~/.bashrc
After installation, the conda can be activated with the base environment.

[mythcat@fedora ~]$ conda activate
(base) [mythcat@fedora ~]$ conda deactivate
[mythcat@fedora ~]$
Let's start a new project environment named test001 with this command:

[mythcat@fedora ~]$ conda create -n test001 python=3.9
...
  zlib               pkgs/main/linux-64::zlib-1.2.12-h5eee18b_3
Proceed ([y]/n)? y
Downloading and Extracting Packages
libffi-3.3           | 50 KB     | ##################################### | 100%
...
setuptools-63.4.1    | 1.1 MB    | ##################################### | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
#     $ conda activate test001
#
# To deactivate an active environment, use
#
#     $ conda deactivate
The next step is to activate this with the next command and list installed packages in a conda environment.

[mythcat@fedora ~]$ conda activate test001
(test001) [mythcat@fedora ~]$ conda list
If you want to see all environments then use the next command:

(test001) [mythcat@fedora ~]$ conda env list
# conda environments:
#
test001               *  /home/mythcat/.conda/envs/test001
base                     /usr
The basic usage of conda is to install packages, you can see how to install the scipy package with the next command:

(test001) [mythcat@fedora ~]$ conda install scipy
Using the conda tool.
Also, you can update a package like the pip tool, see the next command:

(test001) [mythcat@fedora ~]$ conda update
CondaValueError: no package names supplied
# Example: conda update -n myenv scipy 
You can deactivate/deactivate the environment with these commands:

(test001) [mythcat@fedora ~]$ conda deactivate
[mythcat@fedora ~]$ conda activate test001
(test001) [mythcat@fedora ~]$ 
You can export the conda environment into YML file type:

(test001) [mythcat@fedora ~]$ conda env export > test001.yml
(test001) [mythcat@fedora ~]$ ls test001.yml
test001.yml 
With this file, you can create a new environment in another area, and see the next commands for deactivating and creating the new environment.

(test001) [mythcat@fedora ~]$ conda deactivate
[mythcat@fedora ~]$ ls
Desktop    Downloads     Music     Public     test001.yml
Documents  kernel-tests  Pictures  Templates  Videos
[mythcat@fedora ~]$ conda env create -f test001.yml
CondaValueError: prefix already exists: /home/mythcat/.conda/envs/test001
Because I try to create in the same place as the old environment I got this error.
You need to use the YML file in another place.
Another option is to clone one environment.

[mythcat@fedora ~]$ conda create --name test001_new_clone --clone test001
Source:      /home/mythcat/.conda/envs/test001
Destination: /home/mythcat/.conda/envs/test001_new_clone
Packages: 34
...
You can see all environments with this command:

[mythcat@fedora ~]$ conda info --env
# conda environments:
#
test001                  /home/mythcat/.conda/envs/test001
test001_new_clone        /home/mythcat/.conda/envs/test001_new_clone
base                  *  /usr
These commands shown are just the beginning of working with the conda utility. It has many more development options.