today's howtos
-
How to Install NVIDIA Drivers on Ubuntu 22.10 Kinetic Kudu
The Nouveau driver is an open-source graphics device driver for Nvidia video cards. The driver is pre-installed in most Linux Desktop systems. The only reason you may need to install the official proprietary Nvidia Linux driver is if you wish to squeeze as much power as possible from the Nvidia VGA card. The installation procedure is simple and only takes a few minutes. Once the driver is installed, you will need to restart your computer. After your computer has restarted, you can use all of the features of your Nvidia VGA card.
In the following tutorial, you will learn how to install NVIDIA Graphic Drivers on Ubuntu 22.10 Kinetic Kudu short-term release using three methods that should suit most user requirements.
-
How to Use Conditional Statements (if-else) in Bash Script
In this guide, we will cover how to use conditional statements in the bash script.
Linux users often write scripts to automate repetitive tasks. We can use the conditional statements within the scripts to make them more robust. The conditional statement executes the block of code when certain condition evaluates to true.
There are different forms of conditional statements such as – if, if-else, if-elif-else, and, nested if-else. In this beginner friendly guide, we will understand their usage with practical examples.
-
hosts.deny format and example on Linux
The hosts.deny file can be used on a Linux system to deny connection attempts from one or more IP addresses, hostnames, or domains. It can work with any TCP wrapped service on your system. The hosts.deny file is used in conjunction with hosts.allow to determine whether a connection attempt gets accepted or denied.
The hosts.deny file is just a plain text configuration file with a rather simple syntax. In this tutorial, you will see an example of the hosts.deny file, as we show you how to format the file for different possible scenarios.
-
hosts.allow format and example on Linux
A Linux system can utilize the hosts.allow file to specify which IP addresses, hostnames, or domains are permitted to connect to it. This works specifically for TCP wrapped services. The hosts.allow file is used in conjunction with hosts.deny to determine whether a connection attempt gets accepted or denied.
The hosts.allow file is just a plain text configuration file with a rather simple syntax. In this tutorial, you will see an example of the hosts.allow file, as we show you how to format the file for different possible scenarios.
-
Alias example accepting arguments and parameters on Linux
Creating an alias is a good way to make commands easier to remember and quicker to type. In case you want to extend the functionality of your aliases even further, it is possible to have them accept arguments and parameters. This gives users the ability to execute complex and lengthy commands in only a few keystrokes on the command line.
In this tutorial, we will show you how to create an alias that can accept arguments or parameters on the command line. We will give you a simple example, which you can copy and paste onto your own system, and adapt it to your own scenarios as needed.
-
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.
In this tutorial we learn how to write Nautilus extensions using Python and the bindings provided by the nautilus-python package.