Pages

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

Sunday, March 17, 2024

News : Flutter on Fedora 40.

Flutter transforms the development process. Build, test, and deploy beautiful mobile, web, desktop, and embedded experiences from a single codebase.
Read more on the official webpage.
Theoretically, Flutter can be used much easier in the Fedora 40 Linux distribution than in a Windows operating system.
The Windows installation method requires more complicated steps with the use of S.D.K. and settings of Android Studio I.D.E. .
Here are the steps you need to follow for a default installation.
[mythcat@fedora ~]$ mkdir ~/FlutterProjects
[mythcat@fedora ~]$ cd FlutterProjects/
[mythcat@fedora ~]$ wget https://storage.googleapis.com/flutter_infra_release/releases
/stable/linux/flutter_linux_3.3.10-stable.tar.xz
[mythcat@fedora ~]$ tar xf flutter_linux_3.3.10-stable.tar.xz
[mythcat@fedora ~]$
...

[mythcat@fedora FlutterProjects]$ ./flutter/bin/flutter doctor

┌─────────────────────────────────────────────────────────┐
│ A new version of Flutter is available!                  │
│                                                         │
│ To update to the latest version, run "flutter upgrade". │
└─────────────────────────────────────────────────────────┘
...

      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.

[✗] Chrome - develop for the web (Cannot find Chrome executable at
    google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] VS Code (version 1.87.2)
[✓] Connected device (1 available)
[✓] HTTP Host Availability

! Doctor found issues in 3 categories.
[mythcat@fedora FlutterProjects]$ ./flutter/bin/flutter upgrade

...

    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] VS Code (version 1.87.2)
[✓] Connected device (1 available)
[✓] Network resources

! Doctor found issues in 4 categories.

[mythcat@fedora FlutterProjects]$ ./flutter/bin/flutter config --enable-linux-desktop
Setting "enable-linux-desktop" value to "true".

You may need to restart any open editors for them to read new settings.

[mythcat@fedora FlutterProjects]$ mkdir examples
[mythcat@fedora FlutterProjects]$ cd examples/

[mythcat@fedora examples]$ ../flutter/bin/flutter create .
Creating project ....
Resolving dependencies... (5.1s)
Got dependencies.
Wrote 129 files.

All done!
You can find general documentation for Flutter at: https://docs.flutter.dev/
Detailed API documentation is available at: https://api.flutter.dev/
If you prefer video documentation, consider:
https://www.youtube.com/c/flutterdev

In order to run your application, type:

  $ cd .
  $ flutter run

Your application code is in ./lib/main.dart.

[mythcat@fedora examples]$ cd .
[mythcat@fedora examples]$ ls
analysis_options.yaml  ios    macos         README.md  windows
android                lib    pubspec.lock  test
examples.iml           linux  pubspec.yaml  web
[mythcat@fedora examples]$ ../flutter/bin/flutter run
The result is this simple default example:

Wednesday, February 21, 2024

News : SELinux wizzard tool !

I found today in Fedora linux this tool for SELinux with a GUI that allows creating linux security policies.
I will write a little about this system because it is a very good solution.
When I started studying selinux, it was not very well implemented and it seems that the interest of users to be protected is higher.
As you well know, the starting points are network security and data protection and kernel-level intrusions into software.
For those who don't know, SELinux is a system that allows limiting defined resources and allowing other actions or not.
I tested the tool and I can say that it solves only the standard file creation part without the possibility of selecting the SELinux bools variables.
If the one who created this tool will continue to be a very good tool.
It's currently a wizzard interface, I'd call it a Node Editor to allow the assembly of different processing blocks (nodes) into combinations that feed data to each other along connections you specify to produce complex effects.
After completing the steps in the wizard, you will have some default files.
I used the name firefox because the security of the browser is very low at the moment.
Here are some images of this tool:

Saturday, February 3, 2024

News : VirtualBox 7.0.14 released! from Oracle.

Oracle today released a 7.0 maintenance release which improves stability and fixes regressions. See the Changelog
I also use a version of Fedora running on VirtualBox for tests and rapid development.
Most use Linux on older hardware as a backup OS...
You can use Linux with specific non-default settings for good security of the operating system, but it does not make it invincible.
I don't know if VirtualBox solved the resize of the virtual partition - this was the last issue I encountered with this tool, but it is useful if you want to test something quickly.

Wednesday, January 31, 2024

Fedora 40 : Find version and GlibC flaw !

Because today I saw a video about the GlibC flaw that lets attackers get root on major distros, I will show an easy way to find the version of this lib with dnf and dnf5 tools:
[root@fedora var]# dnf in glibc
Last metadata expiration check: 0:04:06 ago on Wed 31 Jan 2024 10:25:13 PM EET.
Package glibc-2.38.9000-35.fc40.x86_64 is already installed.
Package glibc-2.38.9000-35.fc40.i686 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@fedora var]# dnf5 in glibc
Updating and loading repositories:
Repositories loaded.
Package "glibc-2.38.9000-35.fc40.x86_64" is already installed.
Package "glibc-2.38.9000-35.fc40.i686" is already installed.
You can see in the name is add the version: 2.38.9000-35.fc40.x86_64.
This is the video about GlibC from Bits inside by René Rebe.

Wednesday, December 27, 2023

Fedora 39 : Fixing common upgrade issues.

The most common issue is that the Linux system hangs due to disk space and upgrades.
Here's what you need to do:
Ensure you have root access by editing the boot sequence from the boot menu with the word single and entering the root password.
... start the network in the maintenance environment with the command:
# systemctl restart NetworkManager
Check if you can update with the DNF5 tool or DNF , see this webpage:
# dnf5 upgrade --refresh
If the update tool tells you that you have no space available, then you can clean up with:
# journalctl --disk-usage
# journalctl --vacuum-size=16M
The size of 16M is a relative size related to how the resource is allocated!
Another possibility would be to reallocate the space.
NOTE: If you are using a virtual disk with .vdi extension on Windows OS, then I don't have a solution.
Although virtualbox has an interface that would allow resizing the virtual disk, it didn't work for me.

Thursday, December 14, 2023

Fedora 39 : Foot - the sway terminal.

Today, I will show how to use a fast, lightweight, and minimalistic Wayland terminal emulator named Foot.
You can install it easily with the DNF5 tool :
The project can be found on this codeberg repo.
On the sawy desktop environment, you can use Win+D keys just to type a command to start an application.
You can start easily by typing foot or you can type on an open terminal, see:
[mythcat@fedora ~]$ foot
warn: wayland.c:1509: fractional scaling not available
warn: wayland.c:1512: no server-side cursors available, falling back to client-side cursors
warn: fcft.c:583: failed to get full font name
warn: fcft.c:583: failed to get full font name
I used updatedb and locate commands to find the foot.ini file and change some settings like font size, and more :

Monday, December 11, 2023

Fedora 39 : ImHex editor.

ImHex is a Hex Editor, a tool to display, decode and analyze binary data to reverse engineer their format, extract informations or patch values in them.
Read more on the official webpage.
Let's install with dnf5 tool:
# dnf5 install imhex.x86_64
Updating and loading repositories:
Repositories loaded.
Package         Arch       Version         Repository                   Size
Upgrading:                
 cpp            x86_64     13.2.1-6.fc40   updates-testing          30.9 MiB
  replacing cpp                          x86_64     13.2.1-5.fc40   updates-testing          30.9 MiB
 gcc            x86_64     13.2.1-6.fc40   updates-testing          94.7 MiB
  replacing gcc                          x86_64     13.2.1-5.fc40   updates-testing          94.7 MiB
 gcc-c++        i686       13.2.1-6.fc40   updates-testing          34.7 MiB
  replacing gcc-c++                      i686       13.2.1-5.fc40   updates-testing          34.7 MiB
 gcc-c++        x86_64     13.2.1-6.fc40   updates-testing          33.9 MiB
  replacing gcc-c++                      x86_64     13.2.1-5.fc40   updates-testing          33.9 MiB
 gcc-plugin-annobin                      x86_64     13.2.1-6.fc40   updates-testing          57.0 KiB
  replacing gcc-plugin-annobin           x86_64     13.2.1-5.fc40   updates-testing          57.0 KiB
 glib2          x86_64     2.78.3-1.fc40   updates-testing          13.5 MiB
  replacing glib2                        x86_64     2.78.1-1.fc40   rawhide                  13.5 MiB
 glib2-devel    x86_64     2.78.3-1.fc40   updates-testing           3.7 MiB
  replacing glib2-devel                  x86_64     2.78.1-1.fc40   rawhide                   3.7 MiB
 libcurl        x86_64     8.5.0-1.fc40    updates-testing         784.6 KiB
  replacing libcurl                      x86_64     8.4.0-1.fc40    rawhide                 776.5 KiB
 libcurl-devel                           x86_64     8.5.0-1.fc40    updates-testing           1.4 MiB
  replacing libcurl-devel                x86_64     8.4.0-1.fc40    rawhide                   1.4 MiB
 libgcc         i686       13.2.1-6.fc40   updates-testing         253.4 KiB
  replacing libgcc                       i686       13.2.1-5.fc40   updates-testing         253.4 KiB
 libgcc         x86_64     13.2.1-6.fc40   updates-testing         230.3 KiB
  replacing libgcc                       x86_64     13.2.1-5.fc40   updates-testing         230.3 KiB
 libgomp        x86_64     13.2.1-6.fc40   updates-testing         485.7 KiB
  replacing libgomp                      x86_64     13.2.1-5.fc40   updates-testing         485.7 KiB
 libquadmath    x86_64     13.2.1-6.fc40   updates-testing         325.9 KiB
  replacing libquadmath                  x86_64     13.2.1-5.fc40   updates-testing         325.9 KiB
 libquadmath-devel                       x86_64     13.2.1-6.fc40   updates-testing          21.4 KiB
  replacing libquadmath-devel            x86_64     13.2.1-5.fc40   updates-testing          21.4 KiB
 libstdc++      x86_64     13.2.1-6.fc40   updates-testing           2.7 MiB
  replacing libstdc++                    x86_64     13.2.1-5.fc40   updates-testing           2.7 MiB
 libstdc++-devel                         x86_64     13.2.1-6.fc40   updates-testing          14.2 MiB
   replacing libstdc++-devel             x86_64     13.2.1-5.fc40   updates-testing          14.1 MiB
Installing:               
 imhex          x86_64     1.31.0-1.fc40   updates-testing          25.6 MiB
Installing dependencies:                           
 glfw           x86_64     1:3.3.8-4.fc39                           updates-testing         290.0 KiB
 nativefiledialog-extended               x86_64     1.1.1-1.fc40    updates-testing          40.8 KiB
 yara           x86_64     4.4.0-1.fc40    updates-testing         612.0 KiB
Installing weak dependencies:                      
 imhex-patterns                          x86_64     1.31.0-1.fc40   updates-testing           9.4 MiB

Transaction Summary:
 Installing:        5 packages
 Upgrading:        16 packages
 Replacing:        16 packages

Total size of inbound packages is 93 MiB. Need to download 93 MiB.
After this operation 36 MiB will be used (install 268 MiB, remove 232 MiB).
Is this ok [y/N]: y ...
I try on run on HP Compaq 6710b but not working:
[mythcat@fedora ~]$ imhex
[15:50:08] [INFO]  [main]       Welcome to ImHex 1.31.0!
[15:50:08] [INFO]  [main]       Compiled using commit Unknown@Unknown
[15:50:08] [INFO]  [main]       Running on Linux 6.7.0-0.rc3.20231129git18d46e76d7c2.30.fc40.x86_64 
#1 SMP PREEMPT_DYNAMIC Wed Nov 29 15:20:20 UTC 2023 (x86_64)
[15:50:09] [ERROR] [main]       GLFW Error [65543] : GLX: Failed to create context: GLXBadFBConfig
[15:50:09] [FATAL] [main]       Failed to create GLFW window: [65543] GLX: Failed to create context: GLXBadFBConfig.
You may not have a renderer available.
The most common cause of this is using a virtual machine
You may want to try a release artifact ending with 'NoGPU'

Sunday, December 10, 2023

Fedora 39 : About Penpot online tool.

Designers and developers can finally work in unison to build beautifully designed software experiences that truly scale up.
Penpot is the Open-Source Design & Prototyping Tool for Product Teams.
If you have worked with Adobe XD or similar software, then it performs the same functions.
I haven't tested it very thoroughly, but I can tell you that it works very well and is open-source and free.
I haven't seen anything about Bootstrap in the library of bookstores and templates, but there are quite a few in other areas with a pretty good design.
You can test it on the official webpage.
See these videos from the official youtube channel:

News : Elections for Fedora team.

The Fedora Project is a community- driven project. It has a number of steering committees whose responsibilities are to drive the project forward.
These committees are elected among volunteers of the community and by the community members. The present application is meant to hold these elections.
You can start voting from Friday, 8 December and closes promptly at 23:59:59 UTC on Thursday, 21 December.
You can vote on this webpage.

Monday, September 4, 2023

News : Fedora 39 i18n test week starting 5th September.

We will be having the Fedora 39 i18n test week starting 5th September.
Check details about this test week event at https://fedoraproject.org/wiki/Test_Day:2023-09-05_I18N_Test_Day wiki page. You can submit your results on page https://testdays.fedoraproject.org/events/161

Sunday, September 3, 2023

Fedora 39 : Issues in Fedora with PyGobject and sway-tests.

Today I wanted to test this repo named sway-tests.
I followed the steps there and received an error from gi.repository.
This error is related to another issue related to PyGobject.
In Fedora Linux distro, installing PyGobject is done with pip like this:
$ pip install PyGobject
In order to have no errors, the dnf or dnf5 tool should be used like this ...
I tested the functionality of this installation with a simple example:
import gi

gi.require_version("Gtk", "3.0")
from gi.repository import Gtk

win = Gtk.Window()
win.connect("destroy", Gtk.main_quit)
win.show_all()
Gtk.main()
It worked very well.
After solving this issue, I returned to the initial one and tested the sway-tests.
$ whereis sway
$ env/bin/pytest --sway=/usr/bin/sway
$ sudo env/bin/pytest --sway=/usr/bin/sway
I used the command both with and without sudo.
Both generated the same errors.
For the following command I had to install ... xorg-x11-server-Xephyr:
Xephyr is an X server which has been implemented as an ordinary X application. It runs in a window just like other X applications, but it is an X server ...
... the fixed centered black window specific to the xorg runtime appeared and somewhere on the side the terminal showed me a bunch of errors.
... obviously, I don't know how well sway-tests is implemented, now it's an archived repo, but I solved the use of PyGobject in python on the Fedora linux distribution.

Saturday, August 26, 2023

Fedora 39 : testing Godot on Laptop and VirtualBox.

Today I watched a bit of the video series on the YouTube channel Fedora.
It's a whole team that maintains the Fedora packages and their development. I thought to check if I have the possibility to effectively use it in the development of software on Linux that has multiple functionalities. And because I currently work on Windows with Godot version 4.1.1 and C#, I took the first steps for installation and testing.
Let's install the Godot game engine tool on Fedora Distro Linux.
$ sudo su 
# dnf5 search godot
# dnf5 install godot.x86_64
# exit
Let's open and test with this command:
$ godot
The Godot interface comes with version 4.0.3 and is functional on my laptop with Fedora. Obviously, I have not tested all the implemented functionalities, but they seem to be good and ready to work.
On the other hand, testing on Virtualbox, it seems that it can't start the Godot interface.
It seems that Godot depends on OpenGL and needs some minimum requirements to work properly starting with OpenGL version 3.3.

Fedora 39 : How to start using cockpit tool in firefox.

Use lie any default installation like any Fedora Linux Distro package for cockpit tool with DNF or DNF5 tool.
$ sudo su
# dnf5 install cockpit
# systemctl enable --now cockpit.socket
# firewall-cmd --add-service=cockpit
# firewall-cmd --add-service=cockpit --permanent
# exit
The next step is to test if this runs well.
Get your ip address with netstat:
$ netstat nr
Because I used an virtual box for testing Fedora I get this ip 10.0.2.0
Use with firefox in the terminal:
$ firefox http://10.0.2.0:9090
The result will be the online cockpit tool.

Wednesday, August 23, 2023

News : An old change double equals is deprecated.

... although the change is old, for me it is new !
[root@fedora mythcat]# dnf install -y "kernel-devel-uname-r == $(uname -r)"
Last metadata expiration check: 1:12:11 ago on Wed 23 Aug 2023 05:17:13 PM EEST.
Using '==' operator in reldeps can result in an undefined behavior. It is deprecated and the support 
will be dropped in future versions. Use '=' operator instead.
Package kernel-devel-6.5.0-0.rc6.20230818git0e8860d2125f.47.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
[root@fedora mythcat]# dnf install -y "kernel-devel-uname-r = $(uname -r)"
Last metadata expiration check: 1:12:50 ago on Wed 23 Aug 2023 05:17:13 PM EEST.
Package kernel-devel-6.5.0-0.rc6.20230818git0e8860d2125f.47.fc40.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!

Sunday, August 20, 2023

Fedora 39 : GitHub tickets.

You can get a free virtual ticket for a price of 0.
Datatime and Location: NOVEMBER 8—9 LIVE & VIRTUAL YERBA BUENA CENTER FOR THE ARTS, SAN FRANCISCO.

Friday, August 18, 2023

Fedora 39 : micro - terminal .

micro - a modern and intuitive terminal-based text editor, see more on this official website.
Let's see how works n Fedora 39 Linux Distro ...

Wednesday, August 16, 2023

Wednesday, August 9, 2023

Fedora 38 : Sway on VirtualBox.

Sway is a tiling Wayland compositor and a drop-in replacement for the i3 window manager for X11. It works with your existing i3 configuration and supports most of i3's features, plus a few extras.
You can find this desktop at this GitHub project.
The official webpage comes with a video tutorial on how to use it.
Installation is simple with these commands using the dnf tool:
# dnf group install sway-desktop-environment
# dnf install sway-config-fedora
It is possible to ask you for additional arguments for installation like this: --allowerasing or --skip-broken.
After installation, reboot and select sway from the desktop switcher
NOTE: The display for virtual video card from VirtualBox need to be set to Enable 3D Acceleration.
Let's see the result of this desktop environment ...

Fedora 38 : Openbox from GitHub.

I tried to use the OpenBox desktop environment in Fedora 38 and it seems to be incomplete, see also this thread.
I try to build the Openbox desktop from the source code, see the GitHub project.
$ git clone https://github.com/danakj/openbox.git
$ cd openbox
I need to install these: gettext-devel, glib2-devel, libtool, and pango-devel.X86_64 all devel libraries with dnf tool ...
Use the next commands, you will see some errors about some deprecated libraries and source code when you use the make command.
$ ./bootstrap
$ ./configure
$ make 
The go-to openbox folder to see the result:
$ cd openbox
$ ls -lFGC
The last step is to run the Openbox after you solve these:
Failed to open the display from the DISPLAY environment variable.
Openbox-Message: A window manager is already running on screen 0.
Because you are into environment area you need to close it.
After several attempts, I managed to pass these issues and ran the command:
$ ./xinit
This is the result is this:
I don't really have skills in this field of changes in Linux distributions and I wouldn't want to give wrong indications.

Saturday, August 5, 2023

Fedora 38 : Deepin on VirtualBox.

Today, I tested the Deepin environment on Virtual Box where I installed Fedora 38.
I do not recommend using this desktop environment on Virtual Box because it requires graphics resources.
Installation is simple as with any desktop environment installation, see this official webpage.
Here is the final result: