Getting started with Tkinter for Python tutorial

Tkinter stands for “Tk interface”: the package with the same name on many Linux distributions provides the Python bindings for the Tcl/Tk GUI toolkit. Although other graphical toolkit can be used from Python, like Qt or GTK, Tkinter is the standard (the Python IDLE editor and development environment is written using this toolkit, for example) and probably the easiest to work with.

Read more

Removing a password from a PDF document in Linux

How to remove protection password from pdf document

If you have a PDF document (or even a bunch of PDF documents) that are password protected, there’s a simple way to remove the password from the file in Linux. In this guide, we’ll show you how to install the qpdf tool on any Linux distro, which is a handy command line utility that can do a bunch of things to PDF documents.

The feature we’ll be covering is password removal. Keep reading to see how to remove a password from one or more PDF documents with a short and easy command.

This article isn’t about hacking PDF documents. We are assuming you already know the password to a PDF document and simply wish to remove it. You can always add a new password to the document with the same tool. We’ll show you how.

In this tutorial you will learn:

  • How to install qpdf on major Linux distros
  • How to remove encryption from a PDF document with qpdf
  • How to password protect a PDF document

Read more

Using CurlFtpFS to mount remote FTP directories on Linux

Mount remote ftp directory host locally into linux filesystem

Do you often access your ftp site to make some simple changes or to share some documents that you wish to be accessible from anywhere?

You can make access to your ftp resource easier with the CurlFtpFS Linux utility. This fantastic utility allows you to mount your ftp site to any directory within your Linux filesystem.

In this guide, we’ll go over the installation of CurlFtpFS on major Linux distros, then cover the step by step instructions to configure it.

In this tutorial you will learn:

  • How to install CurlFtpFS on major Linux distros
  • How to mount remote FTP directory using CurlFtpFS
  • How to mount an FTP directory automatically with /etc/fstab

Read more

Configuring Gmail as a Sendmail relay on Linux

Configuring Gmail as a Sendmail email relay

Sendmail is email routing software that can allow Linux systems to send an email from the command line. This allows you to send email from your bash scripts, hosted website, or from command line using the mail command. Another example where you can utilize this setting is for notification purposes such as failed backups, etc.

In this guide, we’ll go over the step by step instructions to configure Gmail as a relay for the sendmail client on Linux. Note that Sendmail is just one of many utilities which can be configured to rely on a Gmail account. Others that are capable of this include postfix, exim, ssmpt, etc. The instructions here should work for any mainstream Linux distribution.

In this tutorial you will learn:

  • Gmail configuration prerequisites
  • How to install Sendmail and mail utilities on Linux
  • How to configure Gmail as a relay for Sendmail
  • How to test the config by sending an email from command line

Read more


How to take screenshots using maim on Linux

On Linux there are many utilities we can use to take screenshots. Every complete desktop environment, such as GNOME, KDE or XFCE has its integrated application specifically designed for this task, but many other small
desktop-independent programs exist. In this tutorial we talk about a very lightweight and versatile command-line application, maim (make image), and we see what are the many options we can use to modify its behavior.

In this tutorial you will learn:

  • How to install maim on the most used Linux distributions
  • How to take a screenshot of all the screen
  • How to save the screenshot in a specific format (png/jpg)
  • How to select a region of the screen interactively
  • How to take a screenshot of a window by passing its id to maim
  • How to take screenshots with a delay
  • How to use maim in a pipeline

Read more

Developing and running an Android app on a Linux system

Get Started with Android application development using Linux and Android SDK

Developers interested in the Android mobile operating system are able to use the Android SDK and various IDE software to code applications. These apps can then be made available and marketed to Android users around the world.

There are a lot of choices when it comes to programming Android applications. Your coding environment can involve a Linux system and a variety of different IDE programs to facilitate all of the software development. The trouble here is that each Linux distribution will often have a different set of requirements to run the sofware, and a separate list of steps that need to be followed.

In this guide, we’ll go through the step by step instructions to install Android Studio – which is one of the most popular Android IDEs – on a Linux system. This will work on any distribution because we’ll be using Snap package manager to manage the installation. Love it or hate it, the Snap package manager gets your system ready for Android development very quickly, by handling all the dependencies and working identically on any distribution you’re running, whether it be Ubuntu, Debian, Red Hat, CentOS, AlmaLinux, openSUSE, or any other type of Linux system.

Follow along with us below as we setup Snap package manager, install Android Studio, and then program a Hello World Android application to verify that everything is working properly.

In this tutorial you will learn:

  • How to setup Snap package manager
  • How to install Android Studio and SDK packages
  • How to create a Hello World test application
  • How to run an Android application on an emulated device

Read more