Overview for solus

How to create a file of a certain size in Linux using terminal (bash)

Sometimes we need to create files (actually generate them) for testing purposes or for checking our scripts or programs, working with file size limits. In linux you don't have program any script; bash is good enough to meet your requirements to achieve your goal. I will show you, how to generate files of any size you need in my Solus system (don't be afraid, all examples are working on every GNU/Linux based systems and distributions);

Creating a file of an approximate size

This is the fastest way to generate a file using truncate command:

$ truncate -s 2M edustorage.txt

We aimed to 2M big filesize, but let's see, what is precize filesize of this generated one:

dima@edustorage ~/test/yobany $ ls -l
total 0
-rw-rw-r-- 1 dima dima 2097152 Apr 28 11:55 edustorage.txt

Read more

Written by Administrator on Tuesday April 28, 2020

How to update fresh installed Solus?

Right after you've installed Solus on your computer it's good to check the "freshness" of all packages installed in your system. Sometimes in very specific cases it's not good to install the most freshest versions of drivers, libraries and programs, but our case is different. In fresh system you surely want to have current stable versions of packages, so let's check, how fresh our system is.

First, let's upgrade repositories:

$ sudo eopkg upgrade

Then let's upgrade packages:

$ sudo eopkg up

In my case system has found a big amount of packages to update:

Total size of package(s): 710.39 MB
There are extra packages due to dependencies.
Do you want to continue? (yes/no)y

Read more

Written by Administrator on Monday April 27, 2020

How to install pipx and pip in Solus

pipx is a tool is a great tool for installing and running end-user applications written in Python. pipx is using pip, but focused on installing and managing Python packages that can be run from the command line directly as applications.

Installation of pipx in Solus system is very easy. just run following command in terminal:

$ python3 -m pip install --user -U pipx

Output:

Read more

Written by Administrator on Monday April 27, 2020

How to list image files with size in pixels in Solus?

If you have a folder and want to list all files with their size in pixels, you can use identify tool, which is part of ImageMagick set of tools (read: How to install ImageMagick in Solus).

$ identify *.png

output:

infiniteuniverse.jpg JPEG 225x225 225x225+0+0 8-bit sRGB 6417B 0.000u 0:00.000
maxresdefault.jpg JPEG 1280x720 1280x720+0+0 8-bit sRGB 296187B 0.000u 0:00.000
Universe-Expansion.jpg JPEG 2000x1333 2000x1333+0+0 8-bit sRGB 260684B 0.000u 0:00.000
univ_hubble.jpg JPEG 275x183 275x183+0+0 8-bit Gray 256c 10106B 0.000u 0:00.000

Read more

Written by Administrator on Sunday April 26, 2020

How to bulk convert .jpg to .png (and vice versa) in Solus Linux?

Conversion between different image formats in Solus is very simple and fast, when you have ImageMagick tools installed. One of these tools is mogrify. It has a vast set of functionality, but now we need only image conversion.

To convert image in one format to another you need to use flag -format and then provide the name of the orginial file and the name of the converted one:

$ magick mogrify -format image1.jpg image1.png

But this example of convertng only one file. In case we need to convert all images in folder of certain format, (bulk conversion) we can use a mask:

Read more

Written by Administrator on Sunday April 26, 2020