tutorials, tips, tricks, commands, programming, linux, windows, database, sql, python, programming language, Fedora, drawing, painting, tutorial, tutorials
Showing posts with label 2025. Show all posts
Showing posts with label 2025. 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
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinfFpkofPTGEwHZwgkdt-OpNyI9TkWZyZvtQ2OgXok0BApn1n6syqV34FBXWcj0tKeIO9AfrJ3X8uqctyNHZ1doSVFLmVcFJvYUfYYUkSaOA8VjMj0hX-7lPZlfLcCYs3mki2lrqxdXMNKIFSXyqCi7vBVr1BivqX7H7z0D9cZwSHz_pxywOulyBVfndZI/s1600/pref-linux-fedora_41.png)
Posted by
Cătălin George Feștilă
Labels:
2025,
Fedora,
Fedora 41,
linux,
linux tools,
pref,
tutorial,
tutorials
![](https://resources.blogblog.com/img/icon18_edit_allbkg.gif)
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
![](https://resources.blogblog.com/img/icon18_edit_allbkg.gif)
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.
Subscribe to:
Posts (Atom)