FOSS News

Linux and Unix host Command Examples

LNX tutorial - сб, 14/05/2022 - 14:00
{Updated} The host command is an easy to use command-line utility for performing DNS lookups under Linux, macOS, BSD and Unix-like systems. We can use it to find or convert DNS names to IP addresses and vice versa. Let us see the host command examples on Linux and Unix-like systems with daily use cases for developers and sysadmins to troubleshoot DNS and networking issues.The post Linux and Unix host Command Examples appeared first on nixCraft. 2022-05-13T20:02:00Z 2022-05-13T20:02:00Z Vivek Gite
Категории: FOSS News

How to check if Ansible collection is installed or not

LNX tutorial - сб, 14/05/2022 - 14:00
Sometimes I need a specific Ansible module from ansible-galaxy to carry out a particular type of automation. But I don't know if it is already installed or not or bundled with Ansible when I installed the latest version on Ubuntu Linux. So here is a quick command-line tip for finding out if the Ansible module is installed or not on your development workstations powered by Linux, Unix or macOS. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to check if Ansible collection is installed or not appeared first on nixCraft. 2022-05-13T19:27:08Z 2022-05-13T19:27:08Z Vivek Gite
Категории: FOSS News

How to install MySQL server on Ubuntu 22.04 LTS Linux

LNX tutorial - сб, 14/05/2022 - 14:00
{nixCraft Patreon supporters content}MySQL version 8.0 is a free and open-source database system used by most web applications and sites on the Internet. Typically MySQL is part of the LAMP (Linux, Apache, MySQL, Perl/Python/PHP) stack. MySQL heavily uses popular open-source software such as WordPress, MediaWiki, and others as a database storage engine. Let us see how to install MySQL server version 8.x on Ubuntu 22.04 LTS Linux server, including settings up a new database, users and fine tuning server config.The post How to install MySQL server on Ubuntu 22.04 LTS Linux appeared first on Opensource Flare✨. 2022-05-10T07:21:16Z 2022-05-10T07:21:16Z Vivek Gite
Категории: FOSS News

FreeBSD Applying Security Updates Using pkg/freebsd-update

LNX tutorial - сб, 14/05/2022 - 14:00
{Updated} I am a new FreeBSD developer and user. I have root access to my VM running in AWS cloud. How do I update packages and apply security upgrades on FreeBSD? What is the procedure for applying security updates on FreeBSD?The post FreeBSD Applying Security Updates Using pkg/freebsd-update appeared first on nixCraft. 2022-01-20T05:41:00Z 2022-01-20T05:41:00Z Vivek Gite
Категории: FOSS News

How to install FFmpeg with NVIDIA GPU acceleration on Linux

LNX tutorial - сб, 14/05/2022 - 14:00
The ffmpeg is free and open-source video converter software for Linux and Unix-like systems. However, on Ubuntu/Debian Linux and other distros, NVIDIA hardware-based encoding is disabled at compile time. So, naturally, you need supporting NVIDIA GPU. Apart from that, it would be best if you had CUDA support installed with GNU compilers. Let us see how to install everything one by one on a server or desktop powered by Ubuntu or Debian Linux. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to install FFmpeg with NVIDIA GPU acceleration on Linux appeared first on nixCraft. 2021-09-27T10:11:45Z 2021-09-27T10:11:45Z Vivek Gite
Категории: FOSS News

How to generate WireGuard QR code on Linux for mobile

LNX tutorial - сб, 14/05/2022 - 14:00
I have written about setting up the WireGuard server on Linux. I have written about setting up the WireGuard server on Linux. Today, I will share a tip that allows creating QR codes for WireGuard VPN mobile clients running on Apple iOS or Android phones using Linux command-line options. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to generate WireGuard QR code on Linux for mobile appeared first on nixCraft. 2021-09-27T07:23:40Z 2021-09-27T07:23:40Z Vivek Gite
Категории: FOSS News

How to fix “bash: add-apt-repository: command not found” error on Ubuntu/Debian Linux

LNX tutorial - сб, 07/05/2022 - 13:54
Let us see how to fix the "bash: add-apt-repository: command not found" error on an Ubuntu/Debian Linux system when you run the add-apt-repository command. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to fix “bash: add-apt-repository: command not found” error on Ubuntu/Debian Linux appeared first on nixCraft. 2022-05-06T12:05:54Z 2022-05-06T12:05:54Z Vivek Gite
Категории: FOSS News

How to create temporary random file name in bash scripting

LNX tutorial - пт, 06/05/2022 - 13:53
{Updated} Sometimes you need to create a temporary file in your shell script. There are various methods exist to create a random temporary file name. If your application/shell scripting needs temporary unique, and random file names, it is helpful.The post How to create temporary random file name in bash scripting appeared first on nixCraft. 2022-05-05T20:56:00Z 2022-05-05T20:56:00Z Vivek Gite
Категории: FOSS News

Ubuntu 22.04 LTS Set Up OpenVPN Server In 5 Minutes

LNX tutorial - пт, 06/05/2022 - 13:53
I am a new Ubuntu Linux 22.04 LTS server user. How do I set up an OpenVPN Server on Ubuntu Linux version 22.04 server to shield my browsing activity from bad guys on public Wi-Fi, set protective parameter vpn for developers and more? Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post Ubuntu 22.04 LTS Set Up OpenVPN Server In 5 Minutes appeared first on nixCraft. 2022-05-05T20:23:11Z 2022-05-05T20:23:11Z Vivek Gite
Категории: FOSS News

Understanding the /etc/shells file

LNX tutorial - чт, 05/05/2022 - 13:52
{Updated} Did you know? Many Linux system services and login under Linux or Unix OS consult /etc/shells file. It contains a list of login shells on the system. Applications use this file to determine whether a shell is valid. Setting the wrong shell path will deny login.The post Understanding the /etc/shells file appeared first on nixCraft. 2022-05-04T20:31:00Z 2022-05-04T20:31:00Z Vivek Gite
Категории: FOSS News

How to make disk image with dd on Linux or Unix

LNX tutorial - чт, 05/05/2022 - 13:52
{Updated} How to make disk image with dd on a Linux or Unix for backup and restore purposesThe post How to make disk image with dd on Linux or Unix appeared first on nixCraft. 2022-05-04T20:26:00Z 2022-05-04T20:26:00Z Vivek Gite
Категории: FOSS News

A cautionary tale about locking Linux & FreeBSD user accounts

LNX tutorial - чт, 05/05/2022 - 13:52
Like every other solo developer and sysadmin, I do stuff using ssh. Some stuff is automated using scripts, and others require ssh login. For example, one of my scripts logs into my Linux and FreeBSD server using public ssh keys and does a particular type of work for me. I have a dedicated user account for that purpose called autovivek on Raspberry PI 4 for Ansible and custom script automation. Here is how it works: {rpi4:~}$ ssh autovivek@192.168.2.17 /path/to/taks1 In other cases, it sends scripts and then executes them on the remote server named 192.168.2.17. Sounds good, right? So, when I need to make backups and other tasks, I lock down the autovivek user account on the server so that it will not modify data on disks. For example, here is how to lock down a user account: {linux-server:~}$ sudo usermod -L -e 1 autovivek ## OR ## {freebsd-server:~}$ sudo pw lock -n autovivek A cautionary tale about locking Linux and FreeBSD user accounts However, I soon discovered that a user named autovivek can still log into the server and make changes despite being locked down on both Linux and FreeBSD servers. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post A cautionary tale about locking Linux & FreeBSD user accounts appeared first on nixCraft. 2022-05-04T19:52:27Z 2022-05-04T19:52:27Z Vivek Gite
Категории: FOSS News

How to migrate from CentOS 8 to AlmaLinux (conversion)

LNX tutorial - чт, 05/05/2022 - 13:52
I already wrote about migrating from CentOS 8 to CentOS Stream. I also have a guide about migrating from CentOS 8 to Rocky Linux. Today, I am working on another side project with my partner, and I wanted to try out AlmaLinux. Hence, this quick post will list steps to convert existing VM or bare metal server from CentOS 8 to AlmaLinux 8. The server currently acts as API for mobile apps, including PostgreSQL, Redis, Python+Django, Apache web server, and SELinux and firewalld. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to migrate from CentOS 8 to AlmaLinux (conversion) appeared first on nixCraft. 2022-01-03T20:45:57Z 2022-01-03T20:45:57Z Vivek Gite
Категории: FOSS News

How to install memcached on OpenSUSE / SUSE Linux

LNX tutorial - чт, 05/05/2022 - 13:52
While working with the client's system, I noticed that the database would come under load due to increased demand. After reviewing the code, the developer and I conclude that something like memcached will improve performance by caching queries. This page explains how to install a memcached server on OpenSUSE or SUSE enterprise Linux server using the ssh command. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to install memcached on OpenSUSE / SUSE Linux appeared first on nixCraft. 2021-12-29T19:16:20Z 2021-12-29T19:16:20Z Vivek Gite
Категории: FOSS News

How do I list lxc snapshots for LXD on Linux?

LNX tutorial - чт, 05/05/2022 - 13:52
I explained a long time ago how to take LXD instance snapshots using the lxc command. Today I will talk about how to list lxc snapshots and automatically purge those snapshots from LXD to free up disk space on Linux operating systems. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How do I list lxc snapshots for LXD on Linux? appeared first on nixCraft. 2021-09-14T09:43:06Z 2021-09-14T09:43:06Z Vivek Gite
Категории: FOSS News

A podman tutorial for beginners – part I

LNX tutorial - чт, 05/05/2022 - 13:52
{nixCraft Patreon supporters content}This guide explains how to build and deploy applications quickly with Podman to the cloud server of your choice. All examples in this tutorial are tested on Fedora Linux 34, but they should work on any Linux distros as long as you install the correct packages. I prefer to use Fedora when my clients use RHEL 7/8. Experimental podman packages are also available for Windows and macOS, but I have not tested those. Running containers without Docker is possible with Podman. This page is the first part of building containers with Podman, which explains installing Podman and working with images, including basic concepts of containers. This guide will cover the following topics: The post A podman tutorial for beginners – part I appeared first on Opensource Flare✨. 2021-09-13T15:27:02Z 2021-09-13T15:27:02Z Vivek Gite
Категории: FOSS News

How to upgrade OpenSUSE 15.2 to 15.3 using the CLI

LNX tutorial - чт, 05/05/2022 - 13:52
The most advanced OpenSUSE version is 15.3 and is an opportunity for both desktop and server users on the previous 15.2 release to update OpenSUSE Linux to get the newest software stack. It is easy to follow the procedure to upgrade OpenSUSE 15.2 to 15.3. In this tutorial, we will explain how to upgrade OpenSUSE 15.2 to 15.3. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to upgrade OpenSUSE 15.2 to 15.3 using the CLI appeared first on nixCraft. 2021-09-09T09:19:43Z 2021-09-09T09:19:43Z Vivek Gite
Категории: FOSS News

How to list all installed packages on OpenSUSE/SUSE Linux

LNX tutorial - чт, 05/05/2022 - 13:52
So you want to see a list of all packages installed on your SUSE Linux or OpenSUSE Linux system? Try these simple tips for listing all packages. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to list all installed packages on OpenSUSE/SUSE Linux appeared first on nixCraft. 2021-09-08T21:38:00Z 2021-09-08T21:38:00Z Vivek Gite
Категории: FOSS News

How To Find OpenSuse / SUSE Linux Version Using CLI

LNX tutorial - чт, 05/05/2022 - 13:52
{Updated} How do I find out my Suse Linux / OpenSuse Linux / Suse Enterprise Linux server/desktop version using the command line options? What is the command to find out OpenSUSE Linux version?The post How To Find OpenSuse / SUSE Linux Version Using CLI appeared first on nixCraft. 2021-09-08T21:14:00Z 2021-09-08T21:14:00Z Vivek Gite
Категории: FOSS News

How to use htmlq to extract content from HTML files on Linux, macOS or FreeBSD

LNX tutorial - чт, 05/05/2022 - 13:52
Most of us use love and use the jq command. It works on Linux or Unix-like systems to extract data from JSON documents. Recently I found htmlq, which is like jq and written in Rust lang. Imagine being able to sed or grep for HTML data. We can search, slice, and filter HTML data with htmlq. Let us see how to install and use this handy tool on Linux or Unix and play with HTML data. Love this? sudo share_on: Twitter - Facebook - LinkedIn - Whatsapp - Reddit The post How to use htmlq to extract content from HTML files on Linux, macOS or FreeBSD appeared first on nixCraft. 2021-09-08T10:52:19Z 2021-09-08T10:52:19Z Vivek Gite
Категории: FOSS News

Страницы