How to write nautilus extensions with nautilus-python

How to write Nautilus extensions with nautilus-python

Nautilus, also known as “Files”, is the default file manager of the GNOME desktop environment. In a previous tutorial we saw how to create and call custom scripts from the Nautilus context-menu: this feature can be really useful but is somehow limited. By installing the nautilus-python package in our favorite Linux distribution, and writing just few lines of Python code, we can overcome such limitations and create proper Nautilus extensions.

Read more

How to change from default to alternative Python version on Debian Linux

How to change from default to alternative Python version on Debian Linux

Your Debian Linux installation may include multiple python versions and thus also include multiple python binary executables, and it’s possible to change python version that the system is using. In this tutorial, you will see how to install multiple versions of python, and change the python version on Debian using the update-alternatives python command. Check the sections below to learn how.

Read more

How to create desktop shortcuts in Linux

Desktop shortcuts creation in Linux

Many people find it useful to organize some of their most frequented applications as shortcuts on their desktop. This allows for quick launching of programs or custom shortcuts. Although most Linux systems rely on a sidebar app launcher or start menu, desktop shortcut launchers can allow you to open applications or websites super fast, since they live right on your desktop and make the targets only a click away.

Read more

article-main

Ansible Vault Tutorial

In previous tutorials we discussed Ansible, a great tool we can use for automation and provisioning. We talked about basic Ansible concepts, we saw some of the most used Ansible modules, how to manage variables and how to perform basic loops in playbooks; now it’s time to see how to protect sensitive information which sometimes may be needed to accomplish some tasks. In order to protect sensitive information when using Ansible, we encrypt them with Ansible Vault.

Read more

How to extract a number from a string using Bash example

How to extract a number from a string using Bash example

The purpose of this tutorial is to show how to extract a number from a string using Bash – that is, either in a Bash script or from the Linux command line. It is common to use Bash as a utility to process strings or other textual data, so it is well equipped for the task of separating numbers out of a string. There are numerous ways to achieve this; see some of the examples below to get started.

Read more

PyCharm 3D creation suite on Ubuntu 20.04 Focal Fossa

How to install PyCharm on Ubuntu 20.04 Linux Desktop

PyCharm is a graphical IDE (integrated development environment) that can be installed on Ubuntu Desktop. Many Python programmers enjoy using PyCharm because it can be used to analyze code, debug programs, and is integrated with Git and other version control systems, as well as web development applications. In this tutorial, you will see how to install PyCharm on Ubuntu 20.04 Focal Fossa Linux.

Read more

CUDA on Ubuntu 20.04 Focal Fossa Linux

How to install CUDA on Ubuntu 20.04 Focal Fossa Linux

The Nvidia CUDA toolkit is an extension of the GPU parallel computing platform and programming model. The Nvidia CUDA installation consists of inclusion of the official Nvidia CUDA repository followed by the installation of relevant meta package and configuring path the the executable CUDA binaries. In this tutorial, you will see how to install CUDA on Ubuntu 20.04 Focal Fossa Linux.

Read more

article-main

How to manage git repositories with Python

Neither Python nor Git need presentations: the former is one of the most used general-purpose programming language; the latter is probably the most used version control system in the world, created by Linus Torvalds himself. Normally, we interact with git repositories using the git binary; when we need to work with them using Python, instead, we can use the GitPython library.

Read more