tutorials, tips, tricks, commands, programming, linux, windows, database, sql, python, programming language, Fedora, drawing, painting, tutorial, tutorials
Showing posts with label Fedora. Show all posts
Showing posts with label Fedora. Show all posts
Saturday, February 1, 2025
Wednesday, January 15, 2025
Fedora 41 : evtest basic tool for linux devices.
The evtest is c - Input device event monitor and query tool.
root@fedora:/home/mythcat# dnf5 install evtest
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
evtest x86_64 1.35-8.fc41 fedora 63.0 KiB
Transaction Summary:
Installing: 1 package
Total size of inbound packages is 30 KiB. Need to download 30 KiB.
After this operation, 63 KiB extra will be used (install 63 KiB, remove 0 B).
...
root@fedora:/home/mythcat# evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Sleep Button
/dev/input/event1: Lid Switch
/dev/input/event10: HDA Intel Line
/dev/input/event11: HDA Intel Headphone
/dev/input/event12: PixArt USB Optical Mouse
/dev/input/event2: Power Button
/dev/input/event3: AT Translated Set 2 keyboard
/dev/input/event4: SynPS/2 Synaptics TouchPad
/dev/input/event5: Video Bus
/dev/input/event6: ST LIS3LV02DL Accelerometer
/dev/input/event7: Quickstart Button 1
/dev/input/event8: HP WMI hotkeys
/dev/input/event9: HDA Intel Mic
Select the device event number [0-12]:
Sunday, January 5, 2025
Fedora 41 : the pref tool under Fedora.
Today I tested the perf tool in Fedora 41 and it is a bit difficult to use. I documented myself and found some information on the web and in the online linux community. Here is what I thought was worth remembering and what I tested.
The pref tool can't run anyway:
mythcat@fedora:~/PythonProjects$ perf record -e cache-misses,page-faults,minor-faults,major-faults,cpu-migrations,L1-dcache-load-misses,L1-dcache-store-misses,L1-icache-load-misses,LLC-load-misses,LLC-store-misses,dTLB-load-misses,dTLB-store-misses,iTLB-load-misses
Error:
Access to performance monitoring and observability operations is limited.
Enforced MAC policy settings (SELinux) can limit access to performance
monitoring and observability operations. Inspect system audit records for
more perf_event access control information and adjusting the policy.
Consider adjusting /proc/sys/kernel/perf_event_paranoid setting to open
access to performance monitoring and observability operations for processes
without CAP_PERFMON, CAP_SYS_PTRACE or CAP_SYS_ADMIN Linux capability.
More information can be found at 'Perf events and tool security' document:
https://www.kernel.org/doc/html/latest/admin-guide/perf-security.html
perf_event_paranoid setting is 2:
-1: Allow use of (almost) all events by all users
Ignore mlock limit after perf_event_mlock_kb without CAP_IPC_LOCK
>= 0: Disallow raw and ftrace function tracepoint access
>= 1: Disallow CPU event access
>= 2: Disallow kernel profiling
To make the adjusted perf_event_paranoid setting permanent preserve ...
I used with sudo , wait and Ctrl + C to stop:
mythcat@fedora:~/PythonProjects$ sudo perf record -e cache-misses,page-faults,minor-faults,major-faults,cpu-migrations,L1-dcache-load-misses,L1-dcache-store-misses,L1-icache-load-misses,LLC-load-misses,LLC-store-misses,dTLB-load-misses,dTLB-store-misses,iTLB-load-misses ...
To get the accurate number of events count then number of results:
mythcat@fedora:~/PythonProjects$ perf report -D -i perf.data | grep RECORD_SAMPLE | wc -l
22461
I get my pref data and I saw all my system data with:
mythcat@fedora:~/PythonProjects$ sudo perf report -f -i perf.data

Posted by
Cătălin George Feștilă
Labels:
2025,
Fedora,
Fedora 41,
linux,
linux tools,
pref,
tutorial,
tutorials

Friday, January 3, 2025
Fedora 41 : NVim from sources or packages !
Today I tried the nvim and saw this big issue:
root@fedora:/home/mythcat# dnf5 install neovim
...
Package Arch Version Repository Size
Installing:
neovim x86_64 0.10.2-1.fc41 fedora 29.1 MiB
...
Installing weak dependencies:
nodejs x86_64 1:22.11.0-3.fc41 updates 148.5 KiB
nodejs-docs noarch 1:22.11.0-3.fc41 updates 91.9 MiB
nodejs-full-i18n x86_64 1:22.11.0-3.fc41 updates 29.3 MiB
nodejs-npm x86_64 1:10.9.0-1.22.11.0.3.fc41 updates 9.4 MiB
ripgrep x86_64 14.1.1-1.fc41 updates 4.7 MiB
tree-sitter-cli x86_64 0.23.2-1.fc41 updates 12.4 MiB
wl-clipboard x86_64 2.2.1-3.fc41 fedora 140.9 KiB
xsel x86_64 1.2.1-2.fc41 fedora 47.9 KiB
You can see comes with nodejs. I remove the nodejs and I tested nvim and works.
Using the source code works also well:
root@fedora:/home/mythcat# curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux64.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 11.4M 100 11.4M 0 0 5739k 0 0:00:02 0:00:02 --:--:-- 14.1M
root@fedora:/home/mythcat# sudo rm -rf /opt/nvim
root@fedora:/home/mythcat# sudo tar -C /opt -xzf nvim-linux64.tar.gz
root@fedora:/home/mythcat# export PATH="$PATH:/opt/nvim-linux64/bin"
root@fedora:/home/mythcat# nvim
Posted by
Cătălin George Feștilă
Labels:
2025,
Fedora,
Fedora 41,
linux tools,
nvim,
tutorial,
tutorials

Wednesday, January 1, 2025
Fedora 41 : Fix size of logical volume ... happy new year 2025!
Happy New Year 2025!
Today I come with this issue, is very old one ...
mythcat@fedora:~$ sudo vgs
[sudo] password for mythcat:
VG #PV #LV #SN Attr VSize VFree
fedora 1 1 0 wz--n- 73.51g 58.51g
mythcat@fedora:~$ sudo lvresize -l +100%FREE --resizefs /dev/mapper/fedora-root
Size of logical volume fedora/root changed from 15.00 GiB (3840 extents) to 73.51 GiB (18819 extents).
File system xfs found on fedora/root mounted at /.
Extending file system xfs to 73.51 GiB (78932606976 bytes) on fedora/root...
xfs_growfs /dev/fedora/root
meta-data=/dev/mapper/fedora-root isize=512 agcount=4, agsize=983040 blks
= sectsz=512 attr=2, projid32bit=1
= crc=1 finobt=1, sparse=1, rmapbt=1
= reflink=1 bigtime=1 inobtcount=1 nrext64=1
data = bsize=4096 blocks=3932160, imaxpct=25
= sunit=0 swidth=0 blks
naming =version 2 bsize=4096 ascii-ci=0, ftype=1
log =internal log bsize=4096 blocks=16384, version=2
= sectsz=512 sunit=0 blks, lazy-count=1
realtime =none extsz=4096 blocks=0, rtextents=0
data blocks changed from 3932160 to 19270656
xfs_growfs done
Extended file system xfs on fedora/root.
Logical volume fedora/root successfully resized.
Saturday, December 28, 2024
Fedora 41 : Flutter first steps ...
Today, I tested flutter starting steps on Fedora 41.
You can find a good tutorial on the Fedora Magazine.
$ uname -a
Linux fedora 6.12.5-200.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Sun Dec 15 16:48:23 UTC 2024 x86_64 GNU/Linux
mythcat@fedora:~$ sudo su
[sudo] password for mythcat:
root@fedora:/home/mythcat# dnf5 clean all
Removed 53 files, 35 directories. 0 errors occurred.
root@fedora:/home/mythcat# dnf5 update
...
root@fedora:/home/mythcat# dnf5 install bash curl file git unzip which xz zip mesa-libGLU clang cmake ninja-build pkg-config
...
root@fedora:/home/mythcat# exit
exit
mythcat@fedora:~$ mkdir ~/FlutterProjects
mythcat@fedora:~$ cd FlutterProjects/
mythcat@fedora:~/FlutterProjects$ wget https://storage.googleapis.com/flutter_infra_release/releases/stable/linux/flutter_linux_3.16.9-stable.tar.xz
Saving 'flutter_linux_3.16.9-stable.tar.xz'
HTTP response 200 [https://storage.googleapis.com/flutter_infra_release/releaseflutter_linux_3.16.9 100% [=============================>] 627.00M 10.42MB/s
[Files: 1 Bytes: 627.00M [9.41]
...
mythcat@fedora:~/FlutterProjects$ tar xf flutter_linux_3.16.9-stable.tar.xz
mythcat@fedora:~/FlutterProjects$ ll
total 642064
drwxr-xr-x. 11 mythcat mythcat 4096 Jan 25 2024 flutter
-rw-r--r--. 1 mythcat mythcat 657467644 Jan 25 2024 flutter_linux_3.16.9-stable.tar.xz
mythcat@fedora:~/FlutterProjects$ export PATH="$PATH:`pwd`/flutter/bin"
mythcat@fedora:~/FlutterProjects$ cd flutter/bin/
mythcat@fedora:~/FlutterProjects/flutter/bin$ pwd
/home/mythcat/FlutterProjects/flutter/bin
mythcat@fedora:~/FlutterProjects$ flutter doctor
mythcat@fedora:~/FlutterProjects$ flutter upgrade
...
Posted by
Cătălin George Feștilă
Labels:
development,
Fedora,
Fedora 41,
Flutter,
linux,
tool,
tools

Monday, November 25, 2024
Fedora 41 : assembly fasm with cat command and qemu test.
I tested the basic direct binary concatenation where the second file is appended to the end of the first file, preserving all bytes exactly as they are without any linking metadata or relocations with the cat command.
Let's see how can do this.
You need to create two files: kernel.fasm and kernel2.fasm.
First will like this:
org 7C00h
; First stage bootloader
start:
mov [bootdrive], dl
mov ax, 0x2000 ; Load kernel at 0x2000:0
mov es, ax
xor bx, bx ; ES:BX = buffer
mov ah, 02h ; Read sectors
mov al, 6 ; Number of sectors to read
mov ch, 0 ; Cylinder 0
mov cl, 2 ; Start from sector 2
mov dh, 0 ; Head 0
mov dl, [bootdrive]
int 13h
jmp 0x2000:0 ; Jump to second stage
bootdrive db 0
times 510-($-$$) db 0
dw 0xAA55
The second one named kernel2.fasm will come with new features:
org 0
COLS equ 80
ROWS equ 25
VIDEO_MEM equ 0xB800
; Box drawing characters
BOX_DR equ 201 ; ╔
BOX_HL equ 205 ; ═
BOX_DL equ 187 ; ╗
BOX_VL equ 186 ; ║
BOX_UR equ 200 ; ╚
BOX_UL equ 188 ; ╝
BOX_BLOCK equ 219 ; █
...
Use fasm and cat commands to create the bin files and the result file for qemu:
mythcat@localhost:~/fasm$ ./fasm.x64 kernel.fasm kernel.bin
flat assembler version 1.73.32 (16384 kilobytes memory, x64)
2 passes, 512 bytes.
mythcat@localhost:~/fasm$ ./fasm.x64 kernel2.fasm kernel2.bin
flat assembler version 1.73.32 (16384 kilobytes memory, x64)
2 passes, 132 bytes.
mythcat@localhost:~/fasm$ cat kernel.bin kernel2.bin > os.img
The last step is to run qemu-system-i386 to test the result
mythcat@localhost:~/fasm$ qemu-system-i386 -fda os.img
The result is this:

Sunday, November 24, 2024
Fedora 41 : Error gio default application for image.
I run today an old python script in my Fedora 41 to create an image and the result after running was:
mythcat@localhost:~$ python test_001.py
gio: file:///tmp/tmpwy1k4wyo.PNG: Failed to find default application for content type ‘image/png’
This can be fixed with an default application for images like feh:
$ sudo dnf5 install feh
Fedora 41 : remove package lead to unexpected results.
Today I saw the mutter package from Fedora distro come with a new update.
I don't use this package, ... is a mess in my oppinion.
But I found this output when I tried to remove
root@localhost:/home/mythcat# dnf5 remove mutter
Package Arch Version Reposit Size
Removing:
mutter x86_64 47.1-3.fc41 updates 12.5 MiB
Removing dependent packages:
gdm x86_64 1:47.0-8.fc41 updates 5.3 MiB
gnome-shell x86_64 47.1-1.fc41 updates 13.8 MiB
Removing unused dependencies:
accountsservice x86_64 23.13.9-5.fc41 fedora 379.5 KiB
accountsservice-libs x86_64 23.13.9-5.fc41 fedora 212.3 KiB
bluez-obexd x86_64 5.79-1.fc41 updates 345.1 KiB
bolt x86_64 0.9.8-3.fc41 fedora 503.3 KiB
boost-thread x86_64 1.83.0-8.fc41 fedora 136.8 KiB
color-filesystem noarch 1-34.fc41 fedora 151.0 B
colord x86_64 1.4.7-5.fc41 fedora 1.7 MiB
colord-gtk4 x86_64 0.3.1-2.fc41 fedora 35.6 KiB
composefs-libs x86_64 1.0.6-1.fc41 fedora 166.3 KiB
cups-pk-helper x86_64 0.2.7-8.fc41 fedora 379.0 KiB
dbus-daemon x86_64 1:1.14.10-4.fc41 fedora 553.2 KiB
evolution-data-server x86_64 3.54.1-1.fc41 updates 8.8 MiB
evolution-data-server-langpacks noarch 3.54.1-1.fc41 updates 8.8 MiB
flatpak-libs x86_64 1.15.10-1.fc41 fedora 1.0 MiB
...
Is this ok [y/N]: N
...
If I used this command the gdm and gnome-shell is gone:
root@localhost:/home/mythcat# dnf5 remove --noautoremove mutter
Package Arch Version Repository Size
Removing:
mutter x86_64 47.1-3.fc41 updates 12.5 MiB
Removing dependent packages:
gdm x86_64 1:47.0-8.fc41 updates 5.3 MiB
gnome-session-wayland-session x86_64 47.0.1-1.fc41 fedora 15.9 KiB
gnome-shell x86_64 47.1-1.fc41 updates 13.8 MiB
Transaction Summary:
Removing: 4 packages
Is this ok [y/N]: N
...
I tried with the --noautoremove, and --exclude args and not result:
root@localhost:/home/mythcat# dnf5 remove --noautoremove --exclude=gnome-shell,gdm mutter
Failed to resolve the transaction:
Problem: installed package gnome-shell-47.1-1.fc41.x86_64 requires libmutter-15.so.0()(64bit), but none of the providers can be installed
- installed package gnome-shell-47.1-1.fc41.x86_64 requires libmutter-clutter-15.so.0()(64bit), but none of the providers can be installed
- installed package gnome-shell-47.1-1.fc41.x86_64 requires libmutter-cogl-15.so.0()(64bit), but none of the providers can be installed
- installed package gnome-shell-47.1-1.fc41.x86_64 requires libmutter-mtk-15.so.0()(64bit), but none of the providers can be installed
- installed package gnome-shell-47.1-1.fc41.x86_64 requires mutter(x86-64) >= 47.0, but none of the providers can be installed
- conflicting requests
- problem with installed package
The solution is old rpm tool:
root@localhost:/home/mythcat# rpm -e --nodeps mutter
root@localhost:/home/mythcat# dnf5 remove mutter
No packages to remove for argument: mutter
Nothing to do.
Saturday, November 16, 2024
Fedora 41 : Bookworm - open-source eBook reader !
Bookworm is an open-source eBook reader with an easy and simple layout supporting different file formats like epub, pdf, mobi, cbr and cbz. See the official webpage.
root@localhost:/home/mythcat# dnf5 search bookworm
Updating and loading repositories:
Repositories loaded.
Matched fields: name (exact)
bookworm.x86_64: Simple, focused eBook reader
root@localhost:/home/mythcat# dnf5 install bookworm.x86_64
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
bookworm x86_64 1.1.3-0.13.20200414git.c7c36 fedora 3.6 MiB
Installing dependencies:
granite x86_64 6.2.0-9.fc41 fedora 949.2 KiB
javascriptcoregtk4.0 x86_64 2.46.3-1.fc41 updates 28.3 MiB
webkit2gtk4.0 x86_64 2.46.3-1.fc41 updates 75.4 MiB
Transaction Summary:
Installing: 4 packages
...
[6/6] Installing bookworm-0:1.1.3-0.13. 100% | 430.8 KiB/s | 3.7 MiB | 00m09s
Complete!ng trigger-install scriptlet: hicolor-icon-theme-0:0.17-19.fc41.noarch
The last step, search this on gnome environmet and you will find this application.
Posted by
Cătălin George Feștilă
Labels:
2024,
2024 news,
Bookworm,
epub,
Fedora,
Fedora 41,
linux,
linux tools,
news

Wednesday, November 13, 2024
Fedora 41 : use pagure tool with ssh key ...
Pagure is a light-weight git-centered forge based on pygit2.
The basic tool can be found on this fedora package, the pagure has more features.
Because I used only like a repo I install with DNF5 tool the basic cli:
# dnf5 install pagure-cli.x86_64
I created a folder then I used easy like git tool for each project I have under basic fedora account:
mythcat@localhost:~/pagure_fedora$ git clone https://pagure.io/mythcat
Cloning into 'mythcat'...
remote: Enumerating objects: 1567, done.
remote: Counting objects: 100% (1567/1567), done.
remote: Compressing objects: 100% (1467/1467), done.
remote: Total 1567 (delta 76), reused 1496 (delta 63), pack-reused 0
Receiving objects: 100% (1567/1567), 5.82 MiB | 2.26 MiB/s, done.
Resolving deltas: 100% (76/76), done.
mythcat@localhost:~/pagure_fedora$ git clone https://pagure.io/radio-online-catafest
Cloning into 'radio-online-catafest'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 8 (delta 1), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (8/8), 6.01 KiB | 267.00 KiB/s, done.
These are git repos for folders: mythcat and radio-online-catafest, any git command can be run on these folders.
mythcat@localhost:~/pagure_fedora$ cd mythcat
mythcat@localhost:~/pagure_fedora/mythcat$ nano test.txt
mythcat@localhost:~/pagure_fedora/mythcat$ git status
On branch main
Your branch is up to date with 'origin/main'.
Untracked files:
(use "git add <file> ..." to include in what will be committed)
test.txt
nothing added to commit but untracked files present (use "git add" to track)
mythcat@localhost:~/pagure_fedora/mythcat$ git add .
mythcat@localhost:~/pagure_fedora/mythcat$ git commit -am "test with a file"
[main 2c9fa14] test with a file
Committer: Catalin George Festila <mythcat localhost.localdomain="">
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly. Run the
following command and follow the instructions in your editor to edit
your configuration file:
git config --global --edit
After doing this, you may fix the identity used for this commit with:
git commit --amend --reset-author
1 file changed, 1 insertion(+)
create mode 100644 test.txt
mythcat@localhost:~/pagure_fedora/mythcat$ git config --global --edit
mythcat@localhost:~/pagure_fedora/mythcat$ git commit --amend --reset-author
[main 308a2c9] test with a file
1 file changed, 1 insertion(+)
create mode 100644 test.txt
mythcat@localhost:~/pagure_fedora/mythcat$ git remote set-url origin git@pagure.io:mythcat.git
mythcat@localhost:~/pagure_fedora/mythcat$ git remote -v
origin git@pagure.io:mythcat.git (fetch)
origin git@pagure.io:mythcat.git (push)
You need to use ssh-keygen to have a ssh key for pagure on Fedora linux then remove the old key and, add the ssh key to Fedora pagure account, then I push the file:
mythcat@localhost:~/pagure_fedora/mythcat$ ssh-add ~/.ssh/mypagure
mythcat@localhost:~/pagure_fedora/mythcat$ ssh-keygen -y -f ~/.ssh/mypagure
mythcat@localhost:~/pagure_fedora/mythcat$ systemctl restart sshd.service mythcat@localhost:~/pagure_fedora/mythcat$ git push
For my repo radio-online-catafest the git remote command is this:
mythcat@localhost:~/pagure_fedora/radio-online-catafest$ git remote set-url origin git@pagure.io:radio-online-catafest.git
mythcat@localhost:~/pagure_fedora/radio-online-catafest$ git push
Everything up-to-date
Saturday, November 9, 2024
Fedora 41 : timeshift tool for backup.
... one old tool for backup was rsync ...
Now you have a tool named timeshift with this tool named timeshift and more features ...
You can install with:
root@localhost:/home/mythcat# dnf5 install timeshift.x86_64
I run this tool with :
mythcat@localhost:~$ sudo timeshift-gtk
The result is this G.U.I. ...

... because the backup is not easy, I search on web and I found a video tutorial from the official youtube channel - DrewHowdenTech
...
Fedora 41 : Minimal gnome install and nemo additionals packages.
I reinstall the Fedora, somehow was crashed with a bad systemd error:
uname -a
Linux localhost.localdomain 6.11.5-300.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Oct 22 20:11:15 UTC 2024 x86_64 GNU/Linux
If you install nemo with minimal gnome features then you need to install fedora packages, like this one:
root@localhost:/home/mythcat# dnf5 install nemo-image-converter
Sunday, October 27, 2024
Fedora 42 : Can be better? part 020.
I wrote in some posts about this blog about the possibility of improving the distribution of Linux Fedora.
Today I discovered that choosing GNOME is a better option with lighting modes and options for the Nemo file manager actions.
I would have wanted to have a better network system similar to portmanager with S.P.N. for fedora users and team on web.
SPN (Secure Peer Name) is a technology related to secure communication protocols, particularly in the context of peer-to-peer
networks and distributed systems.
I want to have more tools and applications on tty with GUI, like ncurses... I created an radio online application with ncurses and you can find it on my pagure.
The main goal of these type of graphic user interface is simplicity, no need hardware resources - this HP Compaq 6710b has only 4Gb RAM, and cand be used with Single Board Computer.
I think Fedora don't have a Fedora Spin for Single Board Computer hardware.
Let's start with python 3 action on nemo file manager.
Go to the action folder and create an action file named: python3.nemo_action.
[root@fedora mythcat]# cd /usr/share/nemo/actions
[root@fedora actions]# nano python3.nemo_action
Add this source code :
[Nemo Action]
Name=Execute Python Script
Icon-Name=python
Exec=env /usr/bin/python3 %F
Selection=S
Name[tr]=Python script
Extensions=py;
Reopen the Nemo file manager and you see an an Execute Python Script, only on the python script on right click menu.
Let's see some screenshots:



Posted by
Cătălin George Feștilă
Labels:
2024,
Fedora,
Fedora 42,
module,
python 3,
python modules,
tutorial,
tutorials

Thursday, October 17, 2024
Fedora 42 : Testing isoimagewriter.
Today I tested the isoimagewriter tool on Fedora 42 and works well:
[mythcat@fedora ~]$ sudo fdisk -l /dev/sdb
Disk /dev/sdb: 984 MiB, 1031798784 bytes, 2015232 sectors
Disk model: USB FLASH DRIVE
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00000000
[mythcat@fedora ~]$ isoimagewriter
[mythcat@fedora ~]$ sudo file -s /dev/sdb
/dev/sdb: ISO 9660 CD-ROM filesystem data 'CorePure64' (bootable)
[mythcat@fedora ~]$ sudo qemu-system-x86_64 -cdrom /dev/sdb
I used an linux iso image from CorePure64
Posted by
Cătălin George Feștilă
Labels:
2024,
2024 news,
Fedora,
Fedora 42,
isoimagewriter,
linux,
linux tools

Wednesday, October 16, 2024
Fedora 42 : Using dosbox to run old games in Fedora Linux distro.
You can run DOS games with the DOSBOX emulator ...
This can be install with DNF5 tool:
[root@fedora mythcat]# dnf5 install dosbox-staging.x86_64
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
dosbox-staging x86_64 0.81.2-3.fc42 updates-testing 14.6 MiB
The next step is to run the game ...
[mythcat@fedora ~]$ ls /usr/share/dunelegacy/
ATRE.PAK DUNE.PAK locale SETUPENG.DIP
CREDITS.ENG ENGLISH.PAK maps Setup.EXE
Dune2.BAT FINALE.PAK MENTAT.PAK SOUND.PAK
Dune2.EXE GFXHD.PAK MERC.PAK VOC.PAK
Dune2.ICO HARK.PAK OneTime.DAT Waveset.DAT
Dune2-Versions.txt HERC.PAK OPENSD2.PAK XTRE.PAK
Dune.CFG INTRO.PAK Options.CFG
'Dune II Icons.icl' INTROVOC.PAK ORDOS.PAK
'Dune II Unit Guide.txt' LEGACY.PAK SCENARIO.PAK
[mythcat@fedora ~]$ dosbox /usr/share/dunelegacy/Dune2.EXE
date time |
2024-10-16 11:39:03.508 | arguments: dosbox /usr/share/dunelegacy/Dune2.EXE
2024-10-16 11:39:03.509 | Current dir: /home/mythcat
2024-10-16 11:39:03.509 | stderr verbosity: 0
2024-10-16 11:39:03.509 | -----------------------------------
Monday, October 14, 2024
Fedora 42 : Dune Legacy game .
Dune Legacy is an effort by a handful of developers to revitalize the first-ever real-time strategy game.
It tries to be as similar as possible to the original gameplay but to integrate user interface features most modern realtime-strategy games have like selecting multiple units
I download this game from the official website, and I install with DNF5 tool:
[root@fedora Downloads]# dnf5 install dunelegacy-0.96.4.x86_64.rpm
Updating and loading repositories:
Repositories loaded.
Package Arch Version Repository Size
Installing:
dunelegacy x86_64 0.96.4-0.1 @commandline 5.8 MiB
Installing dependencies:
SDL2_mixer x86_64 2.8.0-2.fc41 updates-testing 345.3 KiB
...
Warning: skipped PGP checks for 1 package from repository: @commandline
Complete!
Find the orifinal Dune II on web, or try this website.
The game can be start after I unarchive the DuneII archive into DuneII then copy to /usr/share/dunelegacy ...
[mythcat@fedora DuneII]$ sudo su
[sudo] parola pentru mythcat:
[root@fedora DuneII]# cp *.* /usr/share/dunelegacy
[root@fedora DuneII]# exit
exit
[mythcat@fedora DuneII]$ dunelegacy
.. and works well :

Sunday, October 13, 2024
Fedora 42 : The cvxpy python module ... part 001.
We are building a CVXPY community on Discord. Join the conversation!
CVXPY is an open source Python-embedded modeling language for convex optimization problems. It lets you express your problem in a natural way that follows the math, rather than in the restrictive standard form required by solvers.
Today I install the cvxpy python module ...
You can see on the official website - www.cvxpy.org .
NOTE: I don't understand why the blogger don't have a a code tag , I used a div - pre - code into txt file to wrote my posts ...
[mythcat@fedora ~]$ nano tutoriale.txt
Let's see ...
[mythcat@fedora home]# dnf5 upgrade
[mythcat@fedora home]# dnf5 install openblas-devel
[mythcat@fedora home]# dnf5 install blas-devel
...
$ ldconfig -p | grep openblas
$ ldconfig -p | grep blas
...
[mythcat@fedora home]$ pip install cvxpy
...
Successfully built cvxpy ecos scs qdldl
Installing collected packages: scipy, scs, qdldl, ecos, clarabel, osqp, cvxpy
Successfully installed clarabel-0.9.0 cvxpy-1.5.2 ecos-2.0.14 osqp-0.6.7.post3 qdldl-0.1.7.post4 scipy-1.14.1 scs-3.2.7
Thursday, October 10, 2024
Fedora 42 : First test with red language - part 001.
Red is a next-generation programming language strongly inspired by Rebol, but with a broader field of usage thanks to its native-code compiler, from system programming to high-level scripting and cross-platform reactive GUI, while providing modern support for concurrency, all in a zero-install, zero-config, single ~1MB file!
I download and change to be executable:
[mythcat@fedora ~]$ cd red-lang/
[mythcat@fedora red-lang]$ ls
red-03oct24-920dd0452 red-toolchain-03oct24-920dd0452 red-view-03oct24-920dd0452
[mythcat@fedora red-lang]$ ls -l
total 4444
-rw-r--r--. 1 mythcat mythcat 1347348 Oct 4 23:56 red-03oct24-920dd0452
-rw-r--r--. 1 mythcat mythcat 1611781 Oct 4 23:55 red-toolchain-03oct24-920dd0452
-rw-r--r--. 1 mythcat mythcat 1589092 Oct 4 23:55 red-view-03oct24-920dd0452
[mythcat@fedora red-lang]$ chmod 760 red*
[mythcat@fedora red-lang]$ ls -l
total 4444
-rwxrw----. 1 mythcat mythcat 1347348 Oct 4 23:56 red-03oct24-920dd0452
-rwxrw----. 1 mythcat mythcat 1611781 Oct 4 23:55 red-toolchain-03oct24-920dd0452
-rwxrw----. 1 mythcat mythcat 1589092 Oct 4 23:55 red-view-03oct24-920dd0452
I check and install these supporting libraries:
sudo yum install glibc.i686
sudo yum install libcurl.i686
sudo yum install gtk3.i686
I start with the basic intro example from the official website.
Then I need to check the missing files with the DNF tool and install Fedora packages for each error on runtime with executable result
dnf provides \*/libgtk-3.so.0
The result is this:

Posted by
Cătălin George Feștilă
Labels:
2024,
development,
dnf,
dnf5,
Fedora,
Fedora 42,
red,
tutorial,
tutorials

Fedora 42 : Gnome intro ...
Today I tested the new GNOME environment and these are the screeenshot I get:
Look's good ..., see the tour idea ...



Subscribe to:
Posts (Atom)