Entries

How to list only files (not directories/folders) in current directory in Julia [with screenshots]

To list files in current directory and exclude counting directories (sub-directories) in current folder we just use readdir() function and then we count only files.

Let's see, what we have in a directory (files and directories):

$ ls

output:

dima@linux-zsrx:~/julia> ls
bookings        hello-world.jl
books.txt       libs
count_files.jl  list_only_files.jl

You see, that we have two directories ("libs" and "bookings") and the rest are files. Our goal is to list only files and exclude directories (folders). Let's create a file with the name list_only_files.jl in order to use it in every directory we want, and put following code into it:

Read more

Written by Administrator on Saturday May 9, 2020

How to install GNU GCC compiler (C++) in Devuan linux?

In case you are planning to install GNU gcc compiler, you will surely need other tools (make app, man pages, etc), that's why it's reasonable to install those additional tools first:

$ sudo apt-get install build-essentail

and then:

$ sudo apt-get install g++-multilib g++-6-multilib gcc-6-doc libstdc++6-6-dbg

(those libraries require approximately 119 MB of free disk space in your system)

Read more

Written by Administrator on Saturday May 9, 2020

How to remove (uninstall) Moria game in Devuan Linux?

In case you're not the biggest fan of Moria game, you can easily get rig of it in your Devuan Linux installatio by running a following command in terminal:

$ sudo apt purge moria

output:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  moria*
0 upgraded, 0 newly installed, 1 to remove and 26 not upgraded.
After this operation, 626 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database ... 110562 files and directories currently installed.)
Removing moria (5.6.debian.1-2+b2) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
(Reading database ... 110528 files and directories currently installed.)
Purging configuration files for moria (5.6.debian.1-2+b2) ...

Read more

Written by Administrator on Friday May 8, 2020

How to install CMAKE app in Devuan Linux

Building an application in Devuan Linux is very fast and easy with CMAKE application. CMAKE is a open-source and a cross-platform tool for managing the build process of every software using compiler-independent method.

To install CMAKE in Devuan linux you can run following command in your Devuan Linux terminal:

$ sudo apt-get install cmake

Read more

Written by Administrator on Friday May 8, 2020

How to install make app for building applications from source in Devuan Linux?

CMake is a tool to help you to manage the build process of software using a compilter. cmake is a platform independet and at the same time - an open-source . Installation of cmake app in Devuan Linux is very easy and fast:

$ sudo apt-get install make

output:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Suggested packages:
  make-doc
The following NEW packages will be installed:
  make
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
Need to get 302 kB of archives.
After this operation, 1,240 kB of additional disk space will be used.
Get:1 http://deb.devuan.org//merged ascii/main amd64 make amd64 4.1-9.1 [302 kB]
Fetched 302 kB in 5s (53.7 kB/s)     
Selecting previously unselected package make.
(Reading database ... 107754 files and directories currently installed.)
Preparing to unpack .../make_4.1-9.1_amd64.deb ...
Unpacking make (4.1-9.1) ...
Setting up make (4.1-9.1) ...
Processing triggers for man-db (2.7.6.1-2) ...

Read more

Written by Administrator on Friday May 8, 2020

How to remove (uninstall) Freesweep game in Devuan Linux [with screenshots]

Freesweep is a game designed especially to play in terminal and is an implemenetation of popular minesweeper game; originally was written in C programming language for Unix-liste systems. Freesweep is installed by default in Devuan Linux and if you are not a fan of this game and don't need it, just remove it from your system by running following command in terminal:

$ sudo apt purge freesweep

output:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages will be REMOVED:
  freesweep*
0 upgraded, 0 newly installed, 1 to remove and 26 not upgraded.
After this operation, 141 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 107763 files and directories currently installed.)
Removing freesweep (0.90-3+b1) ...
Processing triggers for mime-support (3.60) ...
Processing triggers for desktop-file-utils (0.23-1) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for hicolor-icon-theme (0.15-1) ...
(Reading database ... 107753 files and directories currently installed.)
Purging configuration files for freesweep (0.90-3+b1) ...

Read more

Written by Administrator on Friday May 8, 2020

How to install lshw app in Kali linux? [with screenshots]

lshw utility is very useful in monitoring and listing all you hardware on your machine. If you are not experienced user and you're trying to use Kali linux, you will surely need it to configure you wifi adapter and lshw will help you a lot.

Installation is very easy and fast:

$ sudo apt-get install lshw

Output:

xxx@xxx:~$ sudo apt-get install lshw
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  cryptsetup cryptsetup-initramfs gcc-10-base libgcc-s1
The following NEW packages will be installed:
  gcc-10-base libgcc-s1 lshw
The following packages will be upgraded:
  cryptsetup cryptsetup-initramfs
2 upgraded, 3 newly installed, 0 to remove and 1128 not upgraded.
Need to get 796 kB of archives.
After this operation, 1,251 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://kali.download/kali kali-rolling/main amd64 gcc-10-base amd64 10-20200418-1 [196 kB]
Get:2 http://kali.download/kali kali-rolling/main amd64 cryptsetup-initramfs all 2:2.3.1-1kali1 [71.6 kB]
Get:3 http://kali.download/kali kali-rolling/main amd64 cryptsetup amd64 2:2.3.1-1kali1 [214 kB]
Get:4 http://kali.download/kali kali-rolling/main amd64 libgcc-s1 amd64 10-20200418-1 [41.3 kB]                                              
Get:5 http://kali.download/kali kali-rolling/main amd64 lshw amd64 02.18.85-0.5 [273 kB]                                                     
Fetched 796 kB in 13s (61.5 kB/s)                                                                                                            
Reading changelogs... Done
Preconfiguring packages ...
Selecting previously unselected package gcc-10-base:amd64.
(Reading database ... 288625 files and directories currently installed.)
Preparing to unpack .../gcc-10-base_10-20200418-1_amd64.deb ...
Unpacking gcc-10-base:amd64 (10-20200418-1) ...
Preparing to unpack .../cryptsetup-initramfs_2%3a2.3.1-1kali1_all.deb ...
Unpacking cryptsetup-initramfs (2:2.3.1-1kali1) over (2:2.2.2-1kali1) ...
Preparing to unpack .../cryptsetup_2%3a2.3.1-1kali1_amd64.deb ...
Unpacking cryptsetup (2:2.3.1-1kali1) over (2:2.2.2-1kali1) ...
Selecting previously unselected package libgcc-s1:amd64.
Preparing to unpack .../libgcc-s1_10-20200418-1_amd64.deb ...
Unpacking libgcc-s1:amd64 (10-20200418-1) ...
Replacing files in old package libgcc1:amd64 (1:9.2.1-22) ...
Selecting previously unselected package lshw.
Preparing to unpack .../lshw_02.18.85-0.5_amd64.deb ...
Unpacking lshw (02.18.85-0.5) ...
Setting up cryptsetup (2:2.3.1-1kali1) ...
Setting up gcc-10-base:amd64 (10-20200418-1) ...
Setting up cryptsetup-initramfs (2:2.3.1-1kali1) ...
update-initramfs: deferring update (trigger activated)
update-initramfs: deferring update (trigger activated)
Setting up libgcc-s1:amd64 (10-20200418-1) ...
Setting up lshw (02.18.85-0.5) ...
Processing triggers for kali-menu (2020.1.7) ...
Processing triggers for libc-bin (2.29-3) ...
Processing triggers for systemd (244-3) ...
Processing triggers for man-db (2.9.0-2) ...
Processing triggers for initramfs-tools (0.135+kali1) ...
update-initramfs: Generating /boot/initrd.img-5.4.0-kali2-amd64

Read more

Written by Administrator on Friday May 8, 2020

How to install GIT in Devuan linux

Git installation is very simple and easy using Debian/Ubuntu repositories, which are used by Devuan linux by default:

$ sudo apt-get install git

output:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  git-man liberror-perl patch
Suggested packages:
  git-daemon-run | git-daemon-sysvinit git-doc git-el git-email
  git-gui gitk gitweb git-arch git-cvs git-mediawiki git-svn
  diffutils-doc
The following NEW packages will be installed:
  git git-man liberror-perl patch
0 upgraded, 4 newly installed, 0 to remove and 26 not upgraded.
Need to get 4,282 kB/5,745 kB of archives.
After this operation, 31.4 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://deb.devuan.org//merged ascii-security/main amd64 git amd64 1:2.11.0-3+deb9u7 [4,170 kB]
Get:2 http://deb.devuan.org//merged ascii/main amd64 patch amd64 2.7.5-1+deb9u2 [112 kB]
Fetched 4,211 kB in 39s (107 kB/s)                                 
Selecting previously unselected package liberror-perl.
(Reading database ... 106762 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17024-1_all.deb ...
Unpacking liberror-perl (0.17024-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.11.0-3+deb9u7_all.deb ...
Unpacking git-man (1:2.11.0-3+deb9u7) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.11.0-3+deb9u7_amd64.deb ...
Unpacking git (1:2.11.0-3+deb9u7) ...
Selecting previously unselected package patch.
Preparing to unpack .../patch_2.7.5-1+deb9u2_amd64.deb ...
Unpacking patch (2.7.5-1+deb9u2) ...
Setting up git-man (1:2.11.0-3+deb9u7) ...
Setting up liberror-perl (0.17024-1) ...
Setting up patch (2.7.5-1+deb9u2) ...
Processing triggers for man-db (2.7.6.1-2) ...
Setting up git (1:2.11.0-3+deb9u7) ...

Read more

Written by Administrator on Friday May 8, 2020

How to install and run clinfo app in Devuan linux?

Installation of clinfo app is very simple, just run:

$ sudo apt-get install clinfo

output:

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  clinfo
0 upgraded, 1 newly installed, 0 to remove and 26 not upgraded.
Need to get 33.5 kB of archives.
After this operation, 105 kB of additional disk space will be used.
Get:1 http://deb.devuan.org//merged ascii/main amd64 clinfo amd64 2.1.16.01.12-1+b1 [33.5 kB]
Fetched 33.5 kB in 2s (15.7 kB/s)
Selecting previously unselected package clinfo.
(Reading database ... 107931 files and directories currently installed.)
Preparing to unpack .../clinfo_2.1.16.01.12-1+b1_amd64.deb ...
Unpacking clinfo (2.1.16.01.12-1+b1) ...
Setting up clinfo (2.1.16.01.12-1+b1) ...
Processing triggers for man-db (2.7.6.1-2) ...

Read more

Written by Administrator on Thursday May 7, 2020

Is it possible to crack a password hashed with sha256 with hashcat? [with screenshots]

SHA256 algorithm was invented to generate 256-bit (or 32-byte) hash. They write it will take you several years to crack it. It's true, but there're cases you can brute-force it (for example, with hashcat tool). At least you can try. In this article I'm using openSUSE Linux distro and openCL framework drivers for my NVIDIA GeForce GTX 1060 Mobile graphic card.

Here's an example, how to crack SHA256-hashed password in several minutes using haschat tool.

Let's take a hash of a password, stored in pass.hash file:

$ cat pass.hash

SHA256 password hash

Read more

Written by Administrator on Wednesday May 6, 2020