Today I make a tutorial about how to use node.js and Electron packager to create cross-platform applications.
The tutorial show you how to create Windows, Linux and Mac OS cross-platform applications and can be found here.
This is result of running the linux application with Fedora 28:
tutorials, tips, tricks, commands, programming, linux, windows, database, sql, python, programming language, Fedora, drawing, painting, tutorial, tutorials
Thursday, August 9, 2018
Thursday, August 2, 2018
Fedora 28 : Godot example with linux .
Today I tested a simple example with the game engine named Godot version 3.0.6.
It was created on a Windows 8.1 operating system and exported as a linux application.
I moved the two files to the Fedora 28 operating system.
It was created on a Windows 8.1 operating system and exported as a linux application.
I moved the two files to the Fedora 28 operating system.
[mythcat@desk Godot_test_001]$ ll
total 41752
-rw-rw-r--. 1 mythcat mythcat 41092 Aug 2 18:34 Godot_test_001.pck
-rwxrwxr-x. 1 mythcat mythcat 42707653 Aug 2 18:34 Godot_test_001.x86_64
[mythcat@desk Godot_test_001]$ ./Godot_test_001.x86_64
OpenGL ES 3.0 Renderer: Mesa DRI Intel(R) Ivybridge Desktop
Mono: Initializing module...
The assembly mscorlib.dll was not found or could not be loaded.
It should have been installed in the `/usr/lib/mono/4.5/mscorlib.dll' directory.
The error occurred from the mono package and I fixed it with the installation using the dnf tool.
[root@desk mythcat]# dnf install mono-core.x86_64
Last metadata expiration check: 1:22:05 ago on Thu 02 Aug 2018 05:30:05 PM EEST.
Dependencies resolved.
...
Installed:
mono-core.x86_64 4.8.0-14.fc28 libgdiplus.x86_64 5.6-1.fc28
mono-data.x86_64 4.8.0-14.fc28 mono-data-sqlite.x86_64 4.8.0-14.fc28
mono-extras.x86_64 4.8.0-14.fc28 mono-mvc.x86_64 4.8.0-14.fc28
mono-wcf.x86_64 4.8.0-14.fc28 mono-web.x86_64 4.8.0-14.fc28
mono-winforms.x86_64 4.8.0-14.fc28
Complete!
Here's the final result:
[mythcat@desk Godot_test_001]$ ./Godot_test_001.x86_64
OpenGL ES 3.0 Renderer: Mesa DRI Intel(R) Ivybridge Desktop
Mono: Initializing module...
Mono: Runtime initialized
Mono: INITIALIZED
Posted by
Cătălin George Feștilă
Labels:
2018,
Fedora,
Fedora 28,
game development,
game engine,
Godot,
linux,
linux tools,
tutorial,
tutorials
Wednesday, August 1, 2018
Fedora 28 : Unusual arguments for the dnf command.
Today I will introduce you in this tutorial some more unusual arguments for the dnf command.
get detailed information of a package can be viewed with the ‘info’ argument;
allows us to see what has happened to our Linux system over time, and even undo, redo, or roll back a transaction;
take actions will be quicker with the ‘makecache’ argument
list all packages that are currently installed on your Linux system;
- first is check which package provides that file;
[root@desk mythcat]# dnf provides /etc/httpd/conf/httpd.conf
Last metadata expiration check: 0:23:46 ago on Wed 01 Aug 2018 09:31:44 AM EEST.
httpd-2.4.34-3.fc28.x86_64 : Apache HTTP Server
Repo : @System
Matched from:
Filename : /etc/httpd/conf/httpd.conf
httpd-2.4.34-3.fc28.x86_64 : Apache HTTP Server
Repo : updates
Matched from:
Filename : /etc/httpd/conf/httpd.conf
httpd-2.4.33-2.fc28.x86_64 : Apache HTTP Server
Repo : fedora
Matched from:
Filename : /etc/httpd/conf/httpd.conf
[root@desk mythcat]# dnf info httpd
Last metadata expiration check: 0:29:01 ago on Wed 01 Aug 2018 09:31:44 AM EEST.
Installed Packages
Name : httpd
Version : 2.4.34
Release : 3.fc28
Arch : x86_64
Size : 4.2 M
Source : httpd-2.4.34-3.fc28.src.rpm
Repo : @System
From repo : updates
Summary : Apache HTTP Server
URL : https://httpd.apache.org/
License : ASL 2.0
Description : The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
[root@desk mythcat]# dnf history
ID | Command line | Date and time | Action(s) | Altered
-------------------------------------------------------------------------------
178 | upgrade | 2018-08-01 09:33 | Update | 27
177 | upgrade | 2018-07-31 12:54 | Update | 11
176 | upgrade | 2018-07-30 20:43 | Update | 1
[root@desk mythcat]# time dnf makecache
Last metadata expiration check: 0:34:10 ago on Wed 01 Aug 2018 09:31:44 AM EEST.
Metadata cache created.
real 0m4.529s
user 0m1.420s
sys 0m0.229s
[root@desk mythcat]# dnf list installed
Installed Packages
CharLS.x86_64 1.0-16.fc28 @System
Field3D.x86_64 1.7.2-10.fc28 @System
GConf2.x86_64 3.2.6-20.fc28 @updates-testing
GeoIP.x86_64 1.6.12-3.fc28 @fedora
GeoIP-GeoLite-data.noarch 2018.06-1.fc28 @updates
ImageMagick.x86_64 1:6.9.9.38-1.fc28 @updates-testing
ImageMagick-c++.x86_64 1:6.9.9.38-1.fc28 @updates-testing
ImageMagick-libs.x86_64 1:6.9.9.38-1.fc28 @updates-testing
LibRaw.x86_64 0.18.13-1.fc28 @updates
ModemManager.x86_64 1.6.12-3.fc28 @fedora
Monday, June 25, 2018
Fedora 28 : Using the python module sh .
Today I test another python module named sh with python version 3.6.5 and Fedora 28.
This python module named sh is a full-fledged subprocess replacement for Python 2.6 - 3.5, PyPy and PyPy3 that allows you to call any program as if it were a function.
You can read bout this python module here.
I used dnf tool to search and install the pip tool :
This python module named sh is a full-fledged subprocess replacement for Python 2.6 - 3.5, PyPy and PyPy3 that allows you to call any program as if it were a function.
You can read bout this python module here.
I used dnf tool to search and install the pip tool :
[root@desk mythcat]# dnf search python3
Last metadata expiration check: 1:06:29 ago on Mon 25 Jun 2018 09:35:04 AM EEST.
======================== Name Exactly Matched: python3 =========================
...
python3.x86_64 : Interpreter of the Python programming language
Next step is the install of python programming language:
[root@desk mythcat]# dnf install python3.x86_64
Last metadata expiration check: 1:09:12 ago on Mon 25 Jun 2018 09:35:04 AM EEST.
Package python3-3.6.5-1.fc28.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
...
I search the pip tool and then I install it:
[root@desk mythcat]# dnf search python3-pip
Last metadata expiration check: 1:15:18 ago on Mon 25 Jun 2018 09:35:04 AM EEST.
====================== Name Exactly Matched: python3-pip ======================
python3-pip.noarch : A tool for installing and managing Python3 packages
...
[root@desk mythcat]# dnf install python3-pip.noarch
Last metadata expiration check: 1:16:31 ago on Mon 25 Jun 2018 09:35:04 AM EEST.
Package python3-pip-9.0.3-2.fc28.noarch is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
...
The install of this python module into user mode:
[root@desk mythcat]# exit
exit
...
[mythcat@desk ~]$ pip3.6 install --user sh
Requirement already satisfied: sh in /usr/lib/python3.6/site-packages
See next examples and tests I used :
[mythcat@desk ~]$ python3.6
Python 3.6.5 (default, Mar 29 2018, 18:20:46)
[GCC 8.0.1 20180317 (Red Hat 8.0.1-0.19)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sh
>>> from sh import *
Traceback (most recent call last):
File "", line 1, in
File "", line 1017, in _handle_fromlist
File "/usr/lib/python3.6/site-packages/sh.py", line 3349, in __getattr__
return self.__env[name]
File "/usr/lib/python3.6/site-packages/sh.py", line 3187, in __getitem__
Please import sh or import programs individually.")
RuntimeError: Cannot import * from sh. Please import sh or import programs individually.
...
>>> print(sh.ifconfig)
/usr/sbin/ifconfig
>>> print(sh.ifconfig())
...
>>> print(sh.ls())
...
>>> print(sh.ls("-l"))
...
>>> print(sh.uptime())
11:25:03 up 1:52, 1 user, load average: 1.10, 1.04, 1.40
...
Posted by
Cătălin George Feștilă
Labels:
2018,
Fedora,
Fedora 28,
python 3,
python modules,
sh,
tutorial,
tutorials
Saturday, June 23, 2018
Fedora 28 : Starting develop with Flutter .
Today I started with another programming language Dart and Flutter.
The development team tell us about Flutter:
Flutter is Google's mobile UI framework for crafting high-quality native interfaces on iOS and Android in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.
You can read more about this on official webpage:
About linux setup you can read here.
You need also to download the Android Studio I.D.E from official webpage.
You need to install some packages using dnf tool:
You need to install Dart and Flotter plugins, use search:
Download and unarchive the Flutter from official webpage.
Next steps is to set the path for the Flutter and make settings for android licenses:
Use flutter command to get more help :
You need to have all settings for your devices or emulated AVD devices to build and develop your android application.
The development team tell us about Flutter:
Flutter is Google's mobile UI framework for crafting high-quality native interfaces on iOS and Android in record time. Flutter works with existing code, is used by developers and organizations around the world, and is free and open source.
You can read more about this on official webpage:
About linux setup you can read here.
You need also to download the Android Studio I.D.E from official webpage.
You need to install some packages using dnf tool:
[mythcat@desk ~]# dnf install libstdc++.i686
[mythcat@desk ~]# dnf install curl
Unzip theAndroid Studio I.D.E.into android-studio folder and start it to make settings for android SDK and AVD emulated device:[mythcat@desk ~]$ cd android-studio/
[mythcat@desk android-studio]$ ls
bin gradle jre license NOTICE.txt
build.txt Install-Linux-tar.txt lib LICENSE.txt plugins
[mythcat@desk android-studio]$ cd bin/
[mythcat@desk bin]$ ls
appletviewer.policy idea.properties printenv.py studio.sh
format.sh inspect.sh restart.py studio.vmoptions
fsnotifier lldb studio64.vmoptions
fsnotifier64 log.xml studio.png
[mythcat@desk bin]$ ./studio.sh
Select Plugins to add Dart and Flotter plugins:
You need to install Dart and Flotter plugins, use search:
Download and unarchive the Flutter from official webpage.
Next steps is to set the path for the Flutter and make settings for android licenses:
[mythcat@desk ~]$ export PATH=`pwd`/flutter/bin:$PATH
[mythcat@desk ~]$ cd flutter/
[mythcat@desk flutter]$ ls
analysis_options_repo.yaml bin flutter_console.bat README.md
analysis_options.yaml CONTRIBUTING.md LICENSE version
appveyor.yml dev packages
AUTHORS examples PATENTS
[mythcat@desk flutter]$ cd bin/
[mythcat@desk bin]$ ls
cache flutter flutter.bat internal
[mythcat@desk bin]$ ./flutter doctor --android-licenses
Warning: File /home/mythcat/.android/repositories.cfg could not be loaded.
All SDK package licenses accepted.======] 100% Computing updates...
[mythcat@desk bin]$ ./flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel beta, v0.5.1, on Linux, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK 28.0.0)
[✓] Android Studio (version 3.1)
[!] Connected devices
! No devices available
! Doctor found issues in 1 category.
Use flutter command to get more help :
[mythcat@desk bin]$ ./flutter
Manage your Flutter app development.
Common commands:
flutter create output directory=""
Create a new Flutter project in the specified directory.
flutter run [options]
Run your Flutter application on an attached device or in an emulator.
Usage: flutter [arguments]
Global options:
-h, --help Print this usage information.
-v, --verbose Noisy logging, including all shell commands executed.
-d, --device-id Target device id or name (prefixes allowed).
--version Reports the version of this tool.
--bug-report Captures a bug report file to submit to the Flutter team (contains local paths, device
identifiers, and log snippets).
--flutter-root The root directory of the Flutter repository (uses $FLUTTER_ROOT if set).
Available commands:
analyze Analyze the project's Dart code.
build Flutter build commands.
channel List or switch flutter channels.
clean Delete the build/ directory.
config Configure Flutter settings.
create Create a new Flutter project.
devices List all connected devices.
doctor Show information about the installed tooling.
drive Runs Flutter Driver tests for the current project.
emulators List and launch available emulators.
format Format one or more dart files.
fuchsia_reload Hot reload on Fuchsia.
help Display help information for flutter.
install Install a Flutter app on an attached device.
logs Show log output for running Flutter apps.
packages Commands for managing Flutter packages.
precache Populates the Flutter tool's cache of binary artifacts.
run Run your Flutter app on an attached device.
screenshot Take a screenshot from a connected device.
stop Stop your Flutter app on an attached device.
test Run Flutter unit tests for the current project.
trace Start and stop tracing for a running Flutter app.
upgrade Upgrade your copy of Flutter.
Run "flutter help " for more information about a command.
Run "flutter help -v" for verbose help output, including less commonly used options.
Restart the Android Studio and create your first Flutter application.You need to have all settings for your devices or emulated AVD devices to build and develop your android application.
Posted by
Cătălin George Feștilă
Labels:
2018,
android,
dart,
Fedora,
Fedora 28,
Flutter,
IDE,
linux,
linux tools,
programming,
tutorial,
tutorials
Tuesday, June 19, 2018
Fedora 28 : The Powertop tool from Intel.
The Powertop is a tool provided by Intel to enable various powersaving modes in userspace, kernel and hardware.
Using this tool is possible to monitor processes and show which of them are utilizing the CPU and wake it from its Idle-States.
The tool allowing you to identify applications with particular high power demands.
The name of this tool powertop.x86_64 come from : Power consumption monitor.
Let's install and set this tool to Fedora 28 distro linux:
Using this tool is possible to monitor processes and show which of them are utilizing the CPU and wake it from its Idle-States.
The tool allowing you to identify applications with particular high power demands.
The name of this tool powertop.x86_64 come from : Power consumption monitor.
Let's install and set this tool to Fedora 28 distro linux:
[root@desk mythcat]# dnf install powertop.x86_64
Last metadata expiration check: 0:32:08 ago on Tue 19 Jun 2018 10:19:39 AM EEST.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
powertop x86_64 2.9-8.fc28 updates 239 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 239 k
Installed size: 650 k
Is this ok [y/N]: y
Downloading Packages:
powertop-2.9-8.fc28.x86_64.rpm 112 kB/s | 239 kB 00:02
--------------------------------------------------------------------------------
Total 71 kB/s | 239 kB 00:03
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : powertop-2.9-8.fc28.x86_64 1/1
Running scriptlet: powertop-2.9-8.fc28.x86_64 1/1
Verifying : powertop-2.9-8.fc28.x86_64 1/1
Installed:
powertop.x86_64 2.9-8.fc28
Complete!
You need root privileges to run this tool :[mythcat@desk ~]$ powertop --calibrate --debug
PowerTOP v2.9 must be run with root privileges.
exiting...
The help output of this tool :
[root@desk mythcat]# powertop --help
Usage: powertop [OPTIONS]
--auto-tune sets all tunable options to their GOOD setting
-c, --calibrate runs powertop in calibration mode
-C, --csv[=filename] generate a csv report
--debug run in "debug" mode
--extech[=devnode] uses an Extech Power Analyzer for measurements
-r, --html[=filename] generate a html report
-i, --iteration[=iterations] number of times to run each test
-q, --quiet suppress stderr output
-s, --sample[=seconds] interval for power consumption measurement
-t, --time[=seconds] generate a report for 'x' seconds
-w, --workload[=workload] file to execute for workload
-V, --version print version information
-h, --help print this help menu
For more help please refer to the 'man 8 powertop'
To run the program and enable its background services, use the commands below:
[root@desk mythcat]# systemctl start powertop.service
[root@desk mythcat]# systemctl enable powertop.service
Created symlink /etc/systemd/system/multi-user.target.wants/powertop.service → /usr/lib/systemd/system/powertop.service.
This is my output with powertop calibrate :[root@desk mythcat]# powertop --calibrate --debug
modprobe cpufreq_stats failedLoaded 0 prior measurements
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
Devfreq not enabled
glob returned GLOB_ABORTED
Starting PowerTOP power estimate calibration
Calibrating idle
System is not available
System is not available
Calibrating: disk usage
Calibrating backlight
Calibrating idle
System is not available
System is not available
Calibrating: CPU usage on 1 threads
Calibrating: CPU usage on 4 threads
Calibrating: CPU wakeup power consumption
Calibrating: CPU wakeup power consumption
Calibrating: CPU wakeup power consumption
Calibrating USB devices
.... device /sys/bus/usb/devices/2-1/power/control
.... device /sys/bus/usb/devices/usb1/power/control
.... device /sys/bus/usb/devices/1-1.3/power/control
.... device /sys/bus/usb/devices/1-1/power/control
.... device /sys/bus/usb/devices/usb2/power/control
Calibrating radio devices
Finishing PowerTOP power estimate calibration
Parameters after calibration:
Parameter state
----------------------------------
Value Name
0.50 alsa-codec-power (12)
0.00 backlight (4)
0.00 backlight-boost-100 (8)
0.00 backlight-boost-40 (6)
0.00 backlight-boost-80 (7)
0.00 backlight-power (5)
2.33 base power (70)
1.56 cpu-consumption (3)
39.50 cpu-wakeups (2)
0.00 disk-operations (73)
0.20 disk-operations-hard (72)
0.00 enp2s0-link-100 (21)
0.00 enp2s0-link-1000 (22)
0.00 enp2s0-link-high (23)
0.00 enp2s0-packets (24)
0.00 enp2s0-powerunsave (20)
0.00 enp2s0-up (19)
0.56 gpu-operations (71)
0.00 runtime-0000:00:00.0 (34)
0.00 runtime-0000:00:02.0 (37)
0.00 runtime-0000:00:16.0 (44)
0.00 runtime-0000:00:1a.0 (35)
0.00 runtime-0000:00:1b.0 (45)
0.00 runtime-0000:00:1c.0 (41)
0.00 runtime-0000:00:1c.2 (38)
0.00 runtime-0000:00:1c.3 (31)
0.00 runtime-0000:00:1d.0 (36)
0.00 runtime-0000:00:1e.0 (32)
0.00 runtime-0000:00:1f.0 (42)
0.00 runtime-0000:00:1f.2 (39)
0.00 runtime-0000:00:1f.3 (33)
0.00 runtime-0000:02:00.0 (43)
0.00 runtime-0000:03:00.0 (40)
0.00 runtime-Fixed MDIO bus.0 (57)
0.00 runtime-INT0800:00 (52)
0.00 runtime-PNP0103:00 (49)
0.00 runtime-PNP0800:00 (48)
0.00 runtime-PNP0C04:00 (51)
0.00 runtime-PNP0C0C:00 (58)
0.00 runtime-alarmtimer (54)
0.00 runtime-coretemp.0 (55)
0.00 runtime-gpio_ich.1.auto (47)
0.00 runtime-i2c-0 (67)
0.00 runtime-i2c-1 (63)
0.00 runtime-i2c-2 (66)
0.00 runtime-i2c-3 (62)
0.00 runtime-i2c-4 (65)
0.00 runtime-i2c-5 (69)
0.00 runtime-i2c-6 (64)
0.00 runtime-i2c-7 (68)
0.00 runtime-i8042 (60)
0.00 runtime-iTCO_wdt.0.auto (61)
0.00 runtime-microcode (53)
0.00 runtime-pcspkr (56)
0.00 runtime-platform-framebuffer.0 (50)
0.00 runtime-reg-dummy (46)
0.00 runtime-serial8250 (59)
0.10 usb-device-1d6b-0002 (10)
0.10 usb-device-248a-8366 (11)
0.10 usb-device-8087-0024 (9)
0.00 virbr0-link-100 (15)
0.00 virbr0-link-1000 (16)
0.00 virbr0-link-high (17)
0.00 virbr0-nic-link-100 (27)
0.00 virbr0-nic-link-1000 (28)
0.00 virbr0-nic-link-high (29)
0.00 virbr0-nic-packets (30)
0.00 virbr0-nic-powerunsave (26)
0.00 virbr0-nic-up (25)
0.00 virbr0-packets (18)
0.00 virbr0-powerunsave (14)
0.00 virbr0-up (13)
0.10 xwakes (74)
Score: 0.0 ( 0.0)
Guess: 2.3
Actual: 0.0
----------------------------------
Learning debugging enabled
Parameter state
----------------------------------
Value Name
0.50 alsa-codec-power (12)
0.00 backlight (4)
0.00 backlight-boost-100 (8)
0.00 backlight-boost-40 (6)
0.00 backlight-boost-80 (7)
0.00 backlight-power (5)
2.33 base power (70)
1.56 cpu-consumption (3)
39.50 cpu-wakeups (2)
0.00 disk-operations (73)
0.20 disk-operations-hard (72)
0.00 enp2s0-link-100 (21)
0.00 enp2s0-link-1000 (22)
0.00 enp2s0-link-high (23)
0.00 enp2s0-packets (24)
0.00 enp2s0-powerunsave (20)
0.00 enp2s0-up (19)
0.56 gpu-operations (71)
0.00 runtime-0000:00:00.0 (34)
0.00 runtime-0000:00:02.0 (37)
0.00 runtime-0000:00:16.0 (44)
0.00 runtime-0000:00:1a.0 (35)
0.00 runtime-0000:00:1b.0 (45)
0.00 runtime-0000:00:1c.0 (41)
0.00 runtime-0000:00:1c.2 (38)
0.00 runtime-0000:00:1c.3 (31)
0.00 runtime-0000:00:1d.0 (36)
0.00 runtime-0000:00:1e.0 (32)
0.00 runtime-0000:00:1f.0 (42)
0.00 runtime-0000:00:1f.2 (39)
0.00 runtime-0000:00:1f.3 (33)
0.00 runtime-0000:02:00.0 (43)
0.00 runtime-0000:03:00.0 (40)
0.00 runtime-Fixed MDIO bus.0 (57)
0.00 runtime-INT0800:00 (52)
0.00 runtime-PNP0103:00 (49)
0.00 runtime-PNP0800:00 (48)
0.00 runtime-PNP0C04:00 (51)
0.00 runtime-PNP0C0C:00 (58)
0.00 runtime-alarmtimer (54)
0.00 runtime-coretemp.0 (55)
0.00 runtime-gpio_ich.1.auto (47)
0.00 runtime-i2c-0 (67)
0.00 runtime-i2c-1 (63)
0.00 runtime-i2c-2 (66)
0.00 runtime-i2c-3 (62)
0.00 runtime-i2c-4 (65)
0.00 runtime-i2c-5 (69)
0.00 runtime-i2c-6 (64)
0.00 runtime-i2c-7 (68)
0.00 runtime-i8042 (60)
0.00 runtime-iTCO_wdt.0.auto (61)
0.00 runtime-microcode (53)
0.00 runtime-pcspkr (56)
0.00 runtime-platform-framebuffer.0 (50)
0.00 runtime-reg-dummy (46)
0.00 runtime-serial8250 (59)
0.10 usb-device-1d6b-0002 (10)
0.10 usb-device-248a-8366 (11)
0.10 usb-device-8087-0024 (9)
0.00 virbr0-link-100 (15)
0.00 virbr0-link-1000 (16)
0.00 virbr0-link-high (17)
0.00 virbr0-nic-link-100 (27)
0.00 virbr0-nic-link-1000 (28)
0.00 virbr0-nic-link-high (29)
0.00 virbr0-nic-packets (30)
0.00 virbr0-nic-powerunsave (26)
0.00 virbr0-nic-up (25)
0.00 virbr0-packets (18)
0.00 virbr0-powerunsave (14)
0.00 virbr0-up (13)
0.10 xwakes (74)
Score: 0.0 ( 0.0)
Guess: 2.3
Actual: 0.0
----------------------------------
Now we can sets all tunable options to their GOOD setting:
[root@desk mythcat]# powertop --auto-tune
modprobe cpufreq_stats failedLoaded 0 prior measurements
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
RAPL device for cpu 0
RAPL Using PowerCap Sysfs : Domain Mask d
Devfreq not enabled
glob returned GLOB_ABORTED
Leaving PowerTOP
Posted by
Cătălin George Feștilă
Labels:
2018,
Fedora,
Fedora 28,
linux,
linux tools,
Powertop,
tutorial,
tutorials
Monday, June 18, 2018
Fedora 28 : Godot game engine.
Today I tested the new version of Godot game engine - version 3.0.3 .
You can download it from official webpage.
I used the 64 bit version.
After download and unzip you can run the binary file in your user terminal.
The Godot game engine start with a GUI.
Into the right area of screen into Scene tab two objects: Spatial and Camera.
You need to select or add a WoldEnvironment node.
Take a look to the Inspector and use with New Environment .
Run this with the play icon.
If is all right you can see something like this:
Create e new folder into your project and name it Export.
Copy the mscorelib.dll into this folder.
Go to main menu and select Project - Export and you will see this GUI for export your game.
Press Add button to select Linux/X11 output:
Select Linux and press Export Project button.
Go to Export folder and run from your linux terminal your game.
This game engine working well with Fedora 28 and the export running without errors.
You can download it from official webpage.
I used the 64 bit version.
After download and unzip you can run the binary file in your user terminal.
The Godot game engine start with a GUI.
Into the right area of screen into Scene tab two objects: Spatial and Camera.
You need to select or add a WoldEnvironment node.
Take a look to the Inspector and use with New Environment .
Run this with the play icon.
If is all right you can see something like this:
Create e new folder into your project and name it Export.
Copy the mscorelib.dll into this folder.
Go to main menu and select Project - Export and you will see this GUI for export your game.
Press Add button to select Linux/X11 output:
Select Linux and press Export Project button.
Go to Export folder and run from your linux terminal your game.
This game engine working well with Fedora 28 and the export running without errors.
Friday, June 15, 2018
Fedora 28 : ARM programming and testing .
This is a simple tutorial about ARM programming and QEMU:
The test.c program is this :
Using volatile keyword is necessary to instruct the compiler that the memory pointed.
The unsigned int type enforces 32-bits read and write access.
The QEMU model like in a real system on chip the Transmit FIFO Full flag must be checked in the UARTFR register before writing on the UARTDR register.
Create the startup.s assembler file:
The test.c program is this :
volatile unsigned int * const UART0DR = (unsigned int *)0x101f1000;
void print_uart0(const char *s) {
while(*s != '\0') { /* Loop until end of string */
*UART0DR = (unsigned int)(*s); /* Transmit char */
s++; /* Next char */
}
}
void c_entry() {
print_uart0("Hello world!\n");
}
Using volatile keyword is necessary to instruct the compiler that the memory pointed.
The unsigned int type enforces 32-bits read and write access.
The QEMU model like in a real system on chip the Transmit FIFO Full flag must be checked in the UARTFR register before writing on the UARTDR register.
Create the startup.s assembler file:
.global _Reset
_Reset:
LDR sp, =stack_top
BL c_entry
B .
Create the script linker named test.ld:
ENTRY(_Reset)
SECTIONS
{
. = 0x10000;
.startup . : { startup.o(.text) }
.text : { *(.text) }
.data : { *(.data) }
.bss : { *(.bss COMMON) }
. = ALIGN(8);
. = . + 0x1000; /* 4kB of stack memory */
stack_top = .;
}
Next step is the install of arm-none-eabi x86_64 tools :[root@desk arm-source]# dnf install arm-none-eabi-gcc-cs-c++.x86_64
Last metadata expiration check: 1:54:04 ago on Fri 15 Jun 2018 06:55:54 PM EEST.
Package arm-none-eabi-gcc-cs-c++-1:7.1.0-5.fc27.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
[root@desk arm-source]# dnf install arm-none-eabi-gdb.x86_64
Last metadata expiration check: 1:54:48 ago on Fri 15 Jun 2018 06:55:54 PM EEST.
Package arm-none-eabi-gdb-7.6.2-4.fc24.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
[mythcat@desk arm-source]$ ll
total 12
-rw-rw-r--. 1 mythcat mythcat 60 Jun 15 20:28 startup.s
-rw-rw-r--. 1 mythcat mythcat 288 Jun 15 20:26 test.c
-rw-rw-r--. 1 mythcat mythcat 223 Jun 15 20:29 test.ld
Let's test this with qemu virtual tool ( use Ctr+A and X keys to stop qemu) :
[mythcat@desk arm-source]$ qemu-system-arm -M versatilepb -m 64M -nographic -kernel test.bin
pulseaudio: set_sink_input_volume() failed
pulseaudio: Reason: Invalid argument
pulseaudio: set_sink_input_mute() failed
pulseaudio: Reason: Invalid argument
Hello world!
QEMU: Terminated
Posted by
Cătălin George Feștilă
Labels:
2018,
assembly,
C,
Fedora,
Fedora 28,
linux,
linux tools,
qemu
Friday, June 1, 2018
Fedora 28 : Using python to create old GUI.
The asciimatics python module provides a widgets sub-package that allows you to create interactive text user interfaces.
This python module lets you create full-screen text UIs and interactive forms to ASCII animations. The python module was created to working with any platform and python version 2 and 3.
It is licensed under the Apache Software Foundation License 2.0, see this license here.
Let see the installation process using the Fedora 28 and python version 3.6:
Some samples require some extra python module and you will need to install them.
This python module lets you create full-screen text UIs and interactive forms to ASCII animations. The python module was created to working with any platform and python version 2 and 3.
It is licensed under the Apache Software Foundation License 2.0, see this license here.
Let see the installation process using the Fedora 28 and python version 3.6:
[root@desk mythcat]# dnf install python3
Last metadata expiration check: 2:39:44 ago on Fri 01 Jun 2018 12:51:55 PM EEST.
Package python3-3.6.5-1.fc28.x86_64 is already installed, skipping.
Dependencies resolved.
Nothing to do.
Complete!
You need also to install the asciimatics python module using the pip tool:[mythcat@desk ~]$ pip3.6 install --user asciimatics
Collecting asciimatics
Using cached https://files.pythonhosted.org/packages/.../asciimatics-1.9.0-py2.py3-none-any.whl
Requirement already satisfied: future in /usr/local/lib/python3.6/site-packages (from asciimatics)
Requirement already satisfied: wcwidth in /usr/local/lib/python3.6/site-packages (from asciimatics)
Requirement already satisfied: Pillow>=2.7.0 in /usr/lib64/python3.6/site-packages (from asciimatics)
Requirement already satisfied: pyfiglet>=0.7.2 in /usr/local/lib/python3.6/site-packages (from asciimatics)
Installing collected packages: asciimatics
Successfully installed asciimatics-1.9.0
I tested some sample from the author GitHub account and is working good.Some samples require some extra python module and you will need to install them.
Posted by
Cătălin George Feștilă
Labels:
2018,
Fedora,
Fedora 28,
python 3,
python modules,
tutorial,
tutorials
Wednesday, May 30, 2018
Fedora 28 : The Lynis and system security .
Lynis is a lightweight and easy open source auditing tool to evaluate current system security.
The official webpage can be found here.
I tested the version 263 and now the Fedora development team test the 264 version.
This tool will show you a detailed report of each and every aspect of system :
The official webpage can be found here.
I tested the version 263 and now the Fedora development team test the 264 version.
This tool will show you a detailed report of each and every aspect of system :
- Boot and services
- Kernel
- Memory and processes
- Users, groups, and authentication
- File systems
- Home directories
- File permissions
- Software: Malware
- Security frameworks
- Logging and files
- SSH support
# dnf install lynis
# lynis audit system >> lynix_out.txt
The result is a text file ( 27 Kb sized for my system ) with all infos about your current system security.
Posted by
Cătălin George Feștilă
Labels:
2018,
Fedora,
Fedora 28,
linux tools,
lynis,
security,
tool
Saturday, May 26, 2018
Fedora 28 : Can you fix your Fedora !?
Fedora Packages have a different installation and development process thanks to testing and development teams.
Note: The common user may have networking problems and these will still lead to further errors.
A common error that should be more documented and constrained is:
Error: Failed to synchronize cache for repo 'updates'.
If you did not have intruders in the computer or provider changes to modify this process, then here are some elements that help you understand how it works.
The process of cleanup of temporary files kept for repositories and update / upgrade is still a testing and development process.
This includes any such data left behind from disabled or removed repositories as well as for different distribution release versions.
Note: The common user may have networking problems and these will still lead to further errors.
A common error that should be more documented and constrained is:
Error: Failed to synchronize cache for repo 'updates'.
If you did not have intruders in the computer or provider changes to modify this process, then here are some elements that help you understand how it works.
The process of cleanup of temporary files kept for repositories and update / upgrade is still a testing and development process.
This includes any such data left behind from disabled or removed repositories as well as for different distribution release versions.
- dnf clean dbcache : this removes cache files generated from the repository metadata and forces DNF to regenerate the cache files the next time it is run.
- dnf clean expire-cache : this marks the repository metadata expired and will re-validate the cache for each repo the next time it is used.
- dnf clean metadata : just removes repository metadata files which is uses to determine the remote availability of packages and will make to download all the metadata the next time it is run.
- dnf clean packages : removes any cached packages from the system.
- dnf clean all : does all of the above.
dnf update --refresh
This will make a update but with this feature:
--refresh will set metadata as expired before running the command.
Posted by
Cătălin George Feștilă
Labels:
dnf,
Fedora,
Fedora 28,
linux,
linux tools,
tutorial,
tutorials
Friday, May 25, 2018
Fedora 28 : Video about development and fix packages.
The fedora 28 distribution is an advanced Linux distribution that includes tools and is supported by the fedora community.
The clear and essential reason for the right development is the learning area.
Here's a great video tutorial about developing fedora packets and that's very useful.
I do not know what it is with this group name the Factory 2.0 devel group , but they are very useful information.
The clear and essential reason for the right development is the learning area.
Here's a great video tutorial about developing fedora packets and that's very useful.
I do not know what it is with this group name the Factory 2.0 devel group , but they are very useful information.
Friday, May 11, 2018
Fedora 28 : The LibreCAD application.
LibreCAD - originally CADuntu is a free Open Source CAD application and today I tested with my Fedora 28.
The content for this application is available under Creative Commons Attribution Share Alike. LibreCAD is a free and open-source and can be downloaded from official webpage.
Let's see the install process of this tool:
You can used to test your skills into the area of
The official manual can be found here.
This is a screenshot from my Fedora 28 distro:
The content for this application is available under Creative Commons Attribution Share Alike. LibreCAD is a free and open-source and can be downloaded from official webpage.
Let's see the install process of this tool:
[root@desk mythcat]# dnf install librecad.x86_64
Last metadata expiration check: 3:00:39 ago on Fri 11 May 2018 07:51:19 PM EEST.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
librecad x86_64 2.1.0-7.fc28 fedora 2.3 M
Installing dependencies:
libdxfrw x86_64 0.6.3-8.fc28 fedora 438 k
librecad-fonts noarch 2.1.0-7.fc28 fedora 11 M
librecad-langs noarch 2.1.0-7.fc28 fedora 603 k
librecad-parts noarch 2.1.0-7.fc28 fedora 903 k
librecad-patterns noarch 2.1.0-7.fc28 fedora 217 k
shapelib x86_64 1.4.1-2.fc28 fedora 80 k
Transaction Summary
================================================================================
Install 7 Packages
Total download size: 15 M
Installed size: 109 M
Is this ok [y/N]: y
Downloading Packages:
(1/7): libdxfrw-0.6.3-8.fc28.x86_64.rpm 658 kB/s | 438 kB 00:00
(2/7): librecad-langs-2.1.0-7.fc28.noarch.rpm 1.4 MB/s | 603 kB 00:00
(3/7): librecad-2.1.0-7.fc28.x86_64.rpm 1.5 MB/s | 2.3 MB 00:01
(4/7): librecad-parts-2.1.0-7.fc28.noarch.rpm 1.6 MB/s | 903 kB 00:00
(5/7): shapelib-1.4.1-2.fc28.x86_64.rpm 1.3 MB/s | 80 kB 00:00
(6/7): librecad-patterns-2.1.0-7.fc28.noarch.rp 1.3 MB/s | 217 kB 00:00
(7/7): librecad-fonts-2.1.0-7.fc28.noarch.rpm 3.0 MB/s | 11 MB 00:03
--------------------------------------------------------------------------------
Total 3.5 MB/s | 15 MB 00:04
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : shapelib-1.4.1-2.fc28.x86_64 1/7
Running scriptlet: shapelib-1.4.1-2.fc28.x86_64 1/7
Installing : librecad-patterns-2.1.0-7.fc28.noarch 2/7
Installing : librecad-parts-2.1.0-7.fc28.noarch 3/7
Installing : librecad-langs-2.1.0-7.fc28.noarch 4/7
Installing : librecad-fonts-2.1.0-7.fc28.noarch 5/7
Installing : libdxfrw-0.6.3-8.fc28.x86_64 6/7
Running scriptlet: libdxfrw-0.6.3-8.fc28.x86_64 6/7
Installing : librecad-2.1.0-7.fc28.x86_64 7/7
Running scriptlet: librecad-2.1.0-7.fc28.x86_64 7/7
Verifying : librecad-2.1.0-7.fc28.x86_64 1/7
Verifying : libdxfrw-0.6.3-8.fc28.x86_64 2/7
Verifying : librecad-fonts-2.1.0-7.fc28.noarch 3/7
Verifying : librecad-langs-2.1.0-7.fc28.noarch 4/7
Verifying : librecad-parts-2.1.0-7.fc28.noarch 5/7
Verifying : librecad-patterns-2.1.0-7.fc28.noarch 6/7
Verifying : shapelib-1.4.1-2.fc28.x86_64 7/7
Installed:
librecad.x86_64 2.1.0-7.fc28 libdxfrw.x86_64 0.6.3-8.fc28
librecad-fonts.noarch 2.1.0-7.fc28 librecad-langs.noarch 2.1.0-7.fc28
librecad-parts.noarch 2.1.0-7.fc28 librecad-patterns.noarch 2.1.0-7.fc28
shapelib.x86_64 1.4.1-2.fc28
Complete!
I start the application from command shell and this is the output I got.
[mythcat@desk ~]$ librecad
RS_DEBUG::setLevel(3)
RS_DEBUG: Critical
RS_DEBUG: Errors
RS_DEBUG: Warnings
libpng warning: iCCP: known incorrect sRGB profile
The application works great I don't know from where come the errors.You can used to test your skills into the area of
The official manual can be found here.
This is a screenshot from my Fedora 28 distro:
Posted by
Cătălin George Feștilă
Labels:
2018,
2D,
CAD application,
Fedora,
Fedora 28,
linux tools,
tool,
tutorial,
tutorials
Subscribe to:
Posts (Atom)