Pages

Tuesday, December 12, 2017

Fedora 27 : About Cockpit linux tool.

About the Cockpit the official website tell us:
Cockpit makes Linux discoverable, allowing sysadmins to easily perform tasks such as starting containers, storage administration, network configuration, inspecting logs and so on.
If you use Fedora 27 the this tool can be used very easy.
If your Fedora Spin don't come with this tool then you can install it with this command:
#dnf -y install cockpit
First you need to follow this steps:
- starting Cockpit requires only a single command:
#systemctl start cockpit
- we’ll configure it to start on boot with:
#systemctl enable cockpit.socket
- you can check the status of Cockpit with:
#systemctl status cockpit
- the Cockpit tool runs on port 9090, so you’ll need to allow it through the firewall with this command:
#firewall-cmd --add-service=cockpit
- or simply add with the open port with:
#firewall-cmd --permanent --add-port=9090/tcp
- you now should reload the firewall for the rule to take effect:
#firewall-cmd --reload
Testing is the next step by log into Cockpit from your localhost (your server’s IP address) with your server’s root credentials.
Once you logged in you’ll see the Dashboard web page containing information about the server itself and graphs showing CPU and Memory Usage as well as Disk I/O and Network Traffic.
Let's see the Dashboard:
  • System come with infos about your system;
  • Logs displays the server’s system and service logs. That allows you to click on any entry for more detailed information, such as the process ID. 
  • Storage gives you a graphical look at disk reads and writes, and also allows you to view relevant logs. Also, you can set up and manage RAID devices and volume groups, and format, partition, and mount/unmount drives. 
  • Networking contains an overview of inbound and outbound traffic, logs and network interface information. You also can configure the network interface from this page. 
  • Containers allows you to manage your Docker containers. You can search for new containers, add or remove containers, start and stop them, and set runtime variables on this page. 
  • Accounts lets you to : add and manage users, set up and change passwords, and add and manage public SSH keys for each user. 
  • Services lists all services, and clicking on any entry takes you to a detail page showing the service log and allowing you to start/stop, enable/disable, reload/isolate, or mask/unmask each service.
  • Terminal let you a fully functional terminal, with tab completion, allowing you to perform any task you could perform through its web interface.This come with the same privileges your login credentials would allow via SSH.
You can take a look at documentation for Cockpit to learn more about this tool.

Friday, December 8, 2017

Fedora 27 : Firefox and selinux intro .

Today I made a summary of selinux.
This is a protection and security utility in linux operating systems.
It is quite complex and requires a little guidance in learning.
The basic thing is to secure a grid that matches the security gaps.
The tutorial today simply exemplifies how you can change these rules.
First, check with these commands for the status of selinux:
#getenforce
#sestatus
#sestatus -b
#cat /etc/selinux/config
#ls -lZ /usr/bin/firefox
#chcon -v -t user_home_t /user/bin/firefox
This will change the selinux target type to user_home_t . That will allow firefox to run with this label (like that users) are allowed to read/write and manage. This is the default label for all content in a users home directory. This last command try to prevent confined applications from being able to read and write this content just from users home.

Thursday, December 7, 2017

Fedora 27 : Testing Swift with Fedora linux .

I tested today a simple instalation of this package: dnf install swift.
This install come with all additional packets required for running .
This is an application ...
First, I thought in the first phase that they implemented a programming language from Apple .
Take a look at this screenshot:

Saturday, December 2, 2017

Fedora 27 : Test install with dotnet from microsoft.

Today I test how to install dotnet from Microsoft team development with Fedora 27.
The Microsoft team come with RedHat packages version - 7.3 and is an old type of packages.
They show us this old way how to deal with this issue , see this link.
I used this command lines into sudo user:
#rpm --import https://packages.microsoft.com/keys/microsoft.asc
#sh -c 'echo -e "[packages-microsoft-com-prod]\nname=packages-microsoft-com-prod 
\nbaseurl=https://packages.microsoft.com/yumrepos/microsoft-rhel7.3-prod\nenabled=1
\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > 
/etc/yum.repos.d/dotnetdev.repo'
#dnf update
#dnf install libunwind libicu compat-openssl10
#dnf install dotnet-sdk-2.0.2
#dotnet new console -o myApp
#cd myApp
#dotnet run
As you can see the dotnet working well with Fedora 27.
I would have preferred a classic dnf installation for reasons of later incompatibility.
This fact only indicates a tangential interest and a clear reason in microsoft capabilities to cover dotnet's area of interest versus linux distributions.

Saturday, November 25, 2017

Fedora 27 : Nettacker tool .

This tool for internet of things is a network of physical objects such as household devices.
This goal let Nettacker tool to automated for information gathering, vulnerability scanning and eventually generating report for networks, including services, bugs, vulnerabilities, misconfigurations and information. Is able to use SYN, ACK, TCP, ICMP and many other protocols to detect and bypass the Firewalls/IDS/IPS and devices.
The project is at the moment in research and development phase and most of results/codes are not published yet.
  • is a IoT Scanner - Internet of Things Scanner;
  • Python Multi Thread and Multi Process Network Information Gathering Vulnerability Scanner;
  • Service and Device Detection ( SCADA, Restricted Areas, Routers, HTTP Servers, Logins and Authentications, None-Indexed HTTP, Paradox System, Cameras, Firewalls, UTM, WebMails, VPN, RDP, SSH, FTP, TELNET Services, Proxy Servers and Many Devices like Juniper, Cisco, Switches and more);
  • Network Service Analysis;
  • Services Vulnerability Testing;
  • Services Brute Force Testing;
  • HTTP/HTTPS Crawling, Fuzzing, Information Gathering and more;
  • Python and Nmap Module Version [ .nse  Lua language ];
  • HTML and text outputs;
How to install into fedora 27.
git clone https://github.com/Nettacker/Nettacker.git
cd Nettacker
pip install -r requirements.txt
python nettacker.py -h
If you run it you will see the help of this tool:

Let's test it:
python nettacker.py --graph d3_tree_v1_graph' -i 127.0.0.1 -m all
The result of this is show in the next image:

Wednesday, November 22, 2017

Fedora 27 : the Docker platform .

The Docker team company tell us:

Docker is the company driving the container movement and the only container platform provider to address every application across the hybrid cloud. Today’s businesses are under pressure to digitally transform but are constrained by existing applications and infrastructure while rationalizing an increasingly diverse portfolio of clouds, datacenters and application architectures. Docker enables true independence between applications and infrastructure and developers and IT ops to unlock their potential and creates a model for better collaboration and innovation.

The Docker platform come many features, so let's see them:
  • use containers; 
  • containers are lightweight;
  • containers are standalone packages;
  • each containers contain everything needed to run an application (code, libraries, runtime, system settings, and dependencies);
  • the biggest difference between a container and a virtual machine: containers is not a full-blown operating system platform;
  • applications are isolated in containers;
  • docker come with: Pricing Plans;
Let's start with the installation and testing of the docker (you need a sudo account):
#sudo dnf install docker
#newgrp docker
#sudo groupadd docker && sudo gpasswd -a ${USER} docker && sudo systemctl restart docker
#sudo usermod -a -G docker $USER
#sudo systemctl start docker
#sudo systemctl enable docker
#sudo systemctl stop docker
#sudo systemctl restart docker

This commands will install docker with dnf tool and will add your user to group docker.
The command with systemctl is used to test the docker services.
You can test the docker by searching and start applications:
#sudo docker search hello-world
#sudo docker run hello-world

The result of the run hello-world is this:

Tuesday, November 21, 2017

Fedora 27 : load81 simple lua game engine .

Today I tested something simple with Fedora 27 and scheduling in.
This is a SDL based Lua programming environment for children called load81.

The author teel us:

The name Load81 originates from the fact that in popular Commodore home computers the command LOAD "*",8,1 would load the first program on the disk starting from the file-specified memory location.

Load81 is written in ANSI C and uses SDL and SDL_gfx and SDL_image libraries.
I installed all these libraries and everything worked very well.
Once taken from github with clones I tested the examples in the examples folder and worked well from the first time.
The examples folder come with simple examples and some simple games.
Create your lua script and use this command to run it:
./load81 example.lua
All running scripts require a graphical display account.
They worked very well on my normal account and I got a run-time error on my root account.
From examples, I took the triangles.lua script to illustrate how this game engine looks and works.

function setup()
    background(0,0,0);
end

function draw()
    fill(math.random(255),math.random(255),math.random(255),math.random())
    triangle(math.random(WIDTH),math.random(HEIGHT),
             math.random(WIDTH),math.random(HEIGHT),
             math.random(WIDTH),math.random(HEIGHT))
end

This is screenshot of triangles.lua script:

Monday, November 20, 2017

Fedora 27 : lua programming with torch and love 2d.

The Lua programming language is a good programming tool to start and test your programming skills.
Lately, the capabilities of computers and computer networks have increased exponentially.
The programming language allows the user simple programming possibilities with essential advantages.
I will illustrate some programs and frameworks that may be of special interest to you:
  • Wireshark has an embedded Lua interpreter and you can be used to write dissectors (to decode packet data), post-dissectors and taps;
  • Torch is a scientific computing framework with wide support for machine learning algorithms;
  • Love 2D is a framework for making 2D games for windows, linux and android;
Today I start with install lua , torch and love 2D.
This work very well. If you use root accont then love command will work only with display SDL. This means you have to use a normal user, not a root user.
I used dnf install tool for lua and love 2d and github for torch.
The result can be seen in the following screenshots:

Thursday, November 16, 2017

News: About the new Fedora 27 .

Today I tried to make a simple installation of Fedora 26 which I did without problems.
After that, the software update come with the option to upgrade all of your Fedora system software to the new Fedora 27.
The work of the Fedora team is appreciated for the work being done to create this new version.
For those who have been following the evolution of the design team over the course of Fedora's development, they will see evolution and quality in the new Fedora design.
Most software used by me was implemented without errors and everything seems to work very well.
Here are some screenshots made during the installation process:

Saturday, November 4, 2017

News: Tor Browser - version 7.5a7 .

The famous browser named Tor come with the new version 7.5a7 and is now available for our macOS and Linux users.
This browser can be used with Microsoft Windows, Apple MacOS, or GNU/Linux and come for both 32/64-bit OS.
The Tor project has now announced a significant set of changes to their anonymity network which involves next-generation crypto algorithms, improved authentication schemes, and redesigned directory.
The list with changes can be seen here and the news can be read on the blog of Tor project.

Sunday, October 29, 2017

News: The new released Fresh IDE .

The reputable IDE for FASM named Fresh comes on 29.10.2017 06:47:22 with new news.
As you know, this can be used with the Linux and Windows operating system.
You can download it from here.
The development team comes with this new content:
Quick bugfix release. The description for v2.6.0 is still valid. Read below. 
The download links are updated. Download again and update your installation, if you downloaded v2.6.0.

Monday, September 25, 2017

Fedora 26 - test kernel .

You can test the kernel with your Fedora distro and get a funny badge of science:
Science (Kernel Tester I).
$ git clone https://git.fedorahosted.org/git/kernel-tests.git
$ cd kernel-tests
$ sh runtests.sh

This is my tests of Fedora 26 logs :
  • 4.14.0-0.rc1.git2.1.fc28.x86_64  FAIL logs
  • 4.13.0-0.rc7.git0.1.fc28.i686+PAE PASS logs
  • 4.14.0-0.rc1.git3.1.fc28.i686 PASS logs
  • 4.13.3-300.fc27.x86_64 FAIL logs
  • 4.13.3-300.fc27.i686+PAE PASS logs
  • 4.12.14-300.fc26.x86_64 PASS logs
  • 4.12.14-300.fc26.i686+PAE PASS logs
  • 4.12.14-200.fc25.x86_64 PASS logs
  • 4.12.14-200.fc25.i686+PAE PASS logs

Friday, September 22, 2017

News: The new Krita 3.3.0 .

The new Krita come for Linux users with 64 bits Linux: krita-3.3.0-rc1-x86_64.appimage.
As you know: the AppImage is a format for distributing portable software on Linux without needing superuser permissions to install the application. About this new release then this new Krita comes with some improvements and features:
  • support for the Windows 8 event API;
  • hardware-accelerated display functionality to optionally use Angle on Windows instead of native OpenGL;
  • some visual glitches when using hi-dpi screens are fixed
  • several new command line options;
  • the performance improvements and selections are fixed;
  • the system information dialog for bug reports is improved
You can read more about this release here.