Like Us Like Us Facebook Subscribe Subscribe us YouTube Whatsapp Share us Whatsapp Query Send your queries

Detecting Ubuntu and its version using NodeJS in Linux

Detecting Ubuntu and its version using NodeJS in Linux

In Linux we can detect ubuntu and its version like Ubuntu 18.04.4 LTS using Linux command “lsb_release -a | grep Description”, using nodejs child_process we can easily run Linux command and detect Linux version.

Code to detect Ubuntu and its version using Nodejs in Linux

The blow code is tested on Node JS Version : 12.4.0

/* by Sanjay Prasad */
const { exec } = require('child_process');
exec('lsb_release -a | grep Description', (err, stdout, stderr) => {
if (err) {
console.error(err)
} else {
console.log("stdout" +stdout.slice(12));
console.log(`stderr: ${stderr}`);
}
});

Ubuntu 19.04 released with the Linux 5.0 kernel and Python 3.7.3

Ubuntu 19.04 released with the Linux 5.0 kernel and Python 3.7.3

World most famous linux distro Ubuntu released Ubuntu 19.04 codename “Disco Dingo” with the Linux 5.0 kernel and Python 3.7.3 on 18th April 2019. Ubuntu 19.04 is not a LTS release so Disco Dingo comes with nine months support, until January 2020, of security and maintenance updates.

As per Ubuntu.com “Ubuntu 19.04 is based on the Linux release series 5.0. It includes support for AMD Radeon RX Vega M graphics processor, complete support for the Raspberry Pi 3B and the 3B+, Qualcomm Snapdragon 845, many USB 3.2 and Type-C improvements, Intel Cannonlake graphics, significant power-savings improvements, P-State driver support for Skylake X servers, POWER memory protection keys support, KVM support for AMD Secure Encrypted Virtualization, enablement of Shared Memory Communications remote and direct (SMC-R/D), Open for Business (OFB), and zcrypt on IBM Z among with many other improvements since the v4.15 kernel shipped in 18.04 LTS.”

Ubuntu 19.04 “Disco Dingo” Feature Details in Short

Distro Name Ubuntu
Based On Debian based
Distro Version Ubuntu 19.04 “Disco Dingo”
Desktop Environment GNOME 3.32
Website https://www.ubuntu.com
Download Download Ubuntu 19.04 64bit or
visit https://www.ubuntu.com/download/desktop
Karnel 5.0
Grub 2.02
Systemd 240
Samba 4.10.0
Shell Bash 5.0
GCC 9
QT NA
Python 3.7.3
VIM 8.1
File Manager Nautilus (3.32.0)
Java OpenJDK 11
Browser Firefox 66
Email Client Thunderbird 60.6.1
Video Player NA
Office Libra Office 6.2.2

How to install media codecs in Ubuntu, Kubuntu, Xubuntu and Lubutntu

How to install media codecs in Ubuntu, Kubuntu, Xubuntu and Lubutntu

By default Ubuntu and its flavour like Kubuntu, Xubuntu and Lubuntu don’t come with all default media codecs due to legal issue. But we can easily install it via terminal . This post is all about how to install default multimedia codecs. After installing these codecs we will able to play populer format like .mp3, .mp4, .mkv and so on ….

Installing Media Codecs in Ubuntu

Open Terminal / Knosole and run

sudo apt-get update
sudo apt-get install ubuntu-restricted-extras

Or

sudo apt-get update && sudo apt-get install ubuntu-restricted-extras

After running commands above it will ask for your root password, provide your root password and hit enter, it will automatically download and install all codecs. Once install you will able to play almost all format and if something missing then try installing universal player VLC by running command below

sudo apt-get install vlc

Do you have any Query / Suggestion