Knowledge made simple

Welcome to Edustorage.net, the storage of tutorials, educational articles for those, who are afraid to read official documentation. 

Pages

Image: icewm-themes/1585599420_img-0874.jpg

How to install IceWM theme in openSUSE

IceWM is very lightweight windows manager for Linux. It's popular not only among owners of old PCs. One of the things, that makes IceWm attractive is huge amount of various themes, which can …

Read more
Image: logos/fedora-logo.png

How to compile .c program in Fedora Linux

Before you compile a .c program in Fedora, you need ensure, you have installed compiler. First of all, let's update YUM database: $ sudo yum makecache Then we need install a …

Read more
Image: logos/1024px-firefox-logo-2019.svg.png

How to remove Firefox web browser in Lubuntu

Removing Firefox in terminal To remove just Firefox web browser package itself from Lubuntu from command line, we have to type this command in lubuntu-terminal: $ sudo apt-get purge …

Read more

Latest Entries

How to start bluetooth.service in Linux Lite [with screenshots]

Sometimes while making an attempt to connect a device through Bluetooth on your Linux Lite system, you can face a problem with connection:

Connection to BlueZ failed

Bluez daemon is not running, blueman-manager cannot continue. This is probably means that there were no Bluetooth adapters detected or Bluetooth daemon was not started.

Read more

Written by Administrator on Saturday June 6, 2020

How to remove (uninstall) MinerGate in openSUSE Linux

MinerGate is one of many programs for mining cryptocurrency. There're a lot of minings, if it's scam program or not, but in case you have openSUSE and want to get rid of this piece of ... less effective way to use your CPU or GPU , you can find command to get this program away of your system. In case you use openSUSE Linux as me, just run:

Read more

Written by Administrator on Tuesday May 19, 2020

How to find the smallest file in a directory in Python

Sometime while creating a program or writing a script in Python we need to find the largest file in a current directory. This is very simple task and can done by running a following script:

import os

files = os.listdir(".")

smallest_file_size = 10000
smallest_file = ""

for file in files:
    if os.path.isfile(file):
        size = os.path.getsize(file)
        if size <  smallest_file_size:
            smallest_file_size = size
            smallest_file = file

print("the smallest file in current directory has filename "+smallest_file+ " and size: "+str(smallest_file_size)+" bytes.")

What does that code?

First, we are making a list of files in a current directory using os module. In order to understand, what does further code, we have to check, what kind of object we get by running os.listdir() command.

Read more

Written by Administrator on Sunday May 17, 2020