How to Install PM2 to Run Node.js Apps on Production Server

PM2 is a free open source, advanced, efficient and cross-platform production-level process manager for Node.jswith a built-in load balancer. It works on Linux, MacOS as well as Windows. It supports app monitoring, efficient management of micro-services/processes, running apps in cluster mode, graceful start and shutdown of apps.

It keeps your apps “alive forever” with auto restarts and can be enabled to start at system boot, thus allowing for High Availability (HA) configurations or architectures.

Notably, PM2 allows you to run your apps in cluster mode without making any changes in your code (this also depends on the number of CPU cores on your server). It also allows you to easily manage app logs, and so much more.

In addition, it also has incredible support for major Node.js frameworks such as ExpressAdonis JsSailsHapiand more, without need for any code changes. PM2 is being used by companies such IBMMicrosoftPayPal, and more.

In this article, we will explain how to install and use PM2 to run Nodejs apps in Linux production server. We will create an app for demonstrating some of PM2’s fundamental features for you to get started with it.

Step 1: Install Nodejs and NPM in Linux

1. To install most recent version of Node.js and NPM, first you need to enable official NodeSource repository under your Linux distribution and then install Node.js and NPM packages as shown.

On Debian/Ubuntu

---------- Install Node.js v11.x ---------- 
$ curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
$ sudo apt-get install -y nodejs

---------- Install Node.js v10.x ----------
$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt-get install -y nodejs

On CentOS/RHEL and Fedora

---------- Install Node.js v11.x ---------- 
$ curl -sL https://rpm.nodesource.com/setup_11.x | bash -

---------- Install Node.js v10.x ----------
$ curl -sL https://rpm.nodesource.com/setup_10.x | bash -

Step 2: Create a Nodejs Application

2. Now, let’s create a testing application (we will assume it has a client and admin side which share the same database), the microservices will run on ports 3000, and 3001 respectively.

$ sudo mkdir -p /var/www/html/app
$ sudo mkdir -p /var/www/html/adminside
$ sudo vim /var/www/html/app/server.js
$ sudo vim /var/www/html/adminside/server.js

Next, copy and paste the following pieces of code in the server.js files (replace 192.168.43.31 with your server IP).

##mainapp code
const http = require('http');

const hostname = '192.168.43.31';
const port = 3000;

const server = http.createServer((req, res) => {
	res.statusCode = 200;
  	res.setHeader('Content-Type', 'text/plain');
  	res.end('This is the Main App!\n');
});

server.listen(port, hostname, () => {
  	console.log(`Server running at http://${hostname}:${port}/`);
});
##adminside code
const http = require('http');

const hostname = '192.168.43.31';
const port = 3001;

const server = http.createServer((req, res) => {
	res.statusCode = 200;
  	res.setHeader('Content-Type', 'text/plain');
  	res.end('This is the Admin Side!\n');
});

server.listen(port, hostname, () => {
  	console.log(`Server running at http://${hostname}:${port}/`);
});

Save the file and exit.

Step 3: Install PM2 Product Process Manager in Linux

3. The latest stable version of PM2 is available to install via NPM as shown.

$ sudo npm i -g pm2 

4. Once PM2 installed, you can start your node applications using following commands.

$ sudo node /var/www/html/app/server.js
$ sudo node /var/www/html/adminside/server.js

Note that, in a production environment, you should start them using PM2, as shown (you may not need sudo command if your app is stored in a location where a normal user has read and write permissions).

$ sudo pm2 start /var/www/html/app/server.js
$ sudo pm2 start /var/www/html/adminside/server.js

Start Nodejs App Using PM2

Start Nodejs App Using PM2

Step 4: How to Use and Manage PM2 in Linux

5. To start an application in cluster mode using the -i flag to specify the number of instances, for example.

$ sudo pm2 start /var/www/html/app/server.js -i 4 
$ sudo pm2 scale 0 8			#scale cluster app to 8 processes

6. To list all your node application (process/microservices), run the following command.

$ sudo pm2 list

List All PM2 Managed Node Apps

List All PM2 Managed Node Apps

7. To monitor logs, custom metrics, process information from all processes by running the following command.

$ sudo pm2 monit

Monitor All Node Processes

Monitor All Node Processes

8. To view details of a single Node process as shown, using the process ID or name.

$ sudo pm2 show 0

View Details of Single App

View Details of Single App

Step 5: How to Manage Node Apps Using PM2 in Linux

9. The following is a list of some common process (single or all) management commands you should take note of.

$ sudo pm2 stop all                  		#stop all apps
$ sudo pm2 stop 0                    		#stop process with ID 0
$ sudo pm2 restart all               		#restart all apps
$ sudo pm2 reset 0		         	#reset all counters
$ sudo pm2 delete all                		#kill and remove all apps
$ sudo pm2 delete 1                 		#kill and delete app with ID 1

10. To manage application logs, use the following commands.

$ sudo pm2 logs                      	#view logs for all processes 
$ sudo pm2 logs 1	         	#view logs for app 1
$ sudo pm2 logs --json               	#view logs for all processes in JSON format
$ sudo pm2 flush			#flush all logs

11. To manage the PM2 process, use the following commands.

$ sudo pm2 startup            #enable PM2 to start at system boot
$ sudo pm2 startup systemd    #or explicitly specify systemd as startup system 
$ sudo pm2 save               #save current process list on reboot
$ sudo pm2 unstartup          #disable PM2 from starting at system boot
$ sudo pm2 update	      #update PM2 package

Step 6: Access Node Apps From Web Browser

12. To access all your node application from a remote web browser, first you need to open following ports on your system firewall, to allow client connections to the apps as shown.

-------- Debian and Ubuntu -------- 
$ sudo ufw allow 3000/tcp
$ sudo ufw allow 3001/tcp
$ sudo ufw reload

-------- RHEL and CentOS --------
# firewall-cmd --permanent --add-port=3000/tcp
# firewall-cmd --permanent --add-port=3001/tcp
# firewall-cmd --reload 

13. Then access your apps from a web browser with these URLs:

http://198.168.43.31:3000
http://198.168.43.31:3001 

Access Node Apps from Browser

Access Node Apps from Browser

Last but not least, PM2 is a simple, in-built module system to extend its core capabilities, some of the modules include pm2-logrotate, pm2-webshell, pm2-server-monit, and more – you can also create and use your own modules.

For more information, go to the PM2 GitHub repository: https://github.com/Unitech/PM2/.

That’s all! PM2 is an advanced, and efficient production-level process manager for Node.js with a built-in load balancer. In this article, we showed how to install and use PM2 to manage Nodejs apps in Linux. If you have any queries, send them to use via the comment form below.

Source

How to Rescue, Repair and Reinstall GRUB Boot Loader in Ubuntu

This tutorial will guide you on how to rescue, repair or reinstall a damaged Ubuntu machine which cannot be booted due to the fact that the Grub2 boot loader has been compromised and cannot load the boot loader which transfers the control further to the Linux kernel. In all modern Linux operating systems GRUB is the default boot loader.

This procedure has been successfully tested on an Ubuntu 16.04 server edition with the Grub boot loader damaged. However, this tutorial will only cover Ubuntu server GRUB rescue procedure, although the same procedure can be successfully applied on any Ubuntu system or on the majority of Debian-based distributions.

Requirements

    1. Download Ubuntu Server Edition DVS ISO Image

You try to boot your Ubuntu server machine and you see that the operating systems no longer starts-up and you discover that the boot loader program no longer works?

Typically, the GNU GRUB minimal console appears on your screen, as illustrated on the below screenshot. How can you restore the Grub in Ubuntu?

Ubuntu Grub Console

Ubuntu Grub Console

There are a lot of methods in Linux that can be used to re-install a broken grub, some can involve the ability to work and restore the boot loader by using the Linux command line and others are fairly simple and implies booting the hardware with a Linux live CD and using the GUI indications to repair the damaged boot loader.

Among the simplest methods, that can be used in Debian based distributions, especially on Ubuntu systems, is the method presented in this tutorial, which involves only booting the machine into the Ubuntu live DVD ISO image.

The ISO image can be downloaded from the following link: http://releases.ubuntu.com/

Reinstall Ubuntu GRUB Boot Loader

1. After you’ve downloaded and burned the Ubuntu ISO image, or created a bootable USB stick, place the bootable media into your appropriate machine drive, reboot the machine and instruct the BIOS to boot into Ubuntu live image.

Machine Boot Menu

Machine Boot Menu

2. On the first screen, choose the language and press [Enter] key to continue.

Choose Language

Choose Language

3. On the next screen, press F6 function key in order to open the other options menu and select Expert mode option. Then, hit Escape key to return to Boot Options line in editing mode, as illustrated in the below screenshots.

Ubuntu Expert Mode

Ubuntu Expert Mode

Ubuntu Boot Options

Ubuntu Boot Options

4. Next, edit Ubuntu live image boot options by using the keyboard arrows to move the cursor just before the quiet string and write the following sequence as illustrated in the below screenshot.

rescue/enable=true 

Enable Ubuntu Rescue Boot Option

Enable Ubuntu Rescue Boot Option

5. After you’ve wrote the above statement, press [Enter] key to instruct the live ISO image to boot into rescue mode in order to Rescue a broken system.

Ubuntu Rescue Mode

Ubuntu Rescue Mode

6. On the next screen select the language you want to perform the system rescue and press [enter] key to continue.

Choose Language in Rescue Mode

Choose Language in Rescue Mode

7. Next, select your appropriate location from the presented list and press [enter] key to move further.

Select Your Location

Select Your Location

8. On the next series of screens, select your keyboard layout as illustrated in the below screenshots

Configure Keyboard

Configure Keyboard

Select Keyboard Country Layout

Select Keyboard Country Layout

Select Keyboard Layout

Select Keyboard Layout

9. After detecting your machine hardware, loading some additional components and configuring the network you will be asked to setup your machine hostname. Because you’re not installing the system, just leave the system hostname as default and press [enter] to continue.

Detecting System Hardware

Detecting System Hardware

Keep System Hostname

Keep System Hostname

10. Next, based on the supplied physical location the installer image will detect your time zone. This setup will accurately work only if your machine is connected to internet.

However, it’s unimportant if your time zone is not correctly detected, because you are not performing a system installation. Just press Yes to continue further.

Keep Timezone

Keep Timezone

11. On the next screen you’ll be directly transferred into rescue mode. Here, you should choose your machine root file system from the provided list. In case your installed system uses a logical volume manager to delimit partitions, it should be easy to detect your root partition from the list by reviewing volume group names as illustrated in the below screenshot.

Otherwise, in case you’re not sure which partition is used for the /(root) file system, you should try to probe each partition until you detect the root file system. After selecting the root partition press [Enter] key to continue.

Choose Root Partition

Choose Root Partition

12. In case your system has been installed with a separate /boot partition, the installer will ask you whether you want to mount the separate /boot partition. Select Yes and press [Enter] key to continue.

Mount Boot Partition

Mount Boot Partition

13. Next, you will be provided with Rescue operations menu. Here, select the option to Reinstall the GRUB boot loader and press [enter] key to continue.

Reinstall Ubuntu Grub Loader

Reinstall Ubuntu Grub Loader

14. On the next screen, type your machine disk device where the GRUB will be installed and press [Enter] to continue, as shown in the below image.

Usually, you should install the boot loader on your first machine hard disk MBR, which is /dev/sda in most cases. The installation process of GRUB will start as soon as you hit the Enter key.

Select Disk to Install Grub Loader

Select Disk to Install Grub Loader

15. After the live system installs the GRUB boot loader you will be directed back to main rescue mode menu. The only thing left now, after you’ve successfully repaired your GRUB, is to reboot the machine as shown in the below images.

Installing Ubuntu Grub Boot Loader

Installing Ubuntu Grub Boot Loader

Reboot Ubuntu System

Reboot Ubuntu System

Finally, eject the live bootable media from the appropriate drive, reboot the machine and you should be able to boot into the installed operating system. The first screen to appear should be installed operating system GRUB menu, as illustrated in the below screenshot.

Ubuntu Boot Menu

Ubuntu Boot Menu

Manually Reinstall Ubuntu Grub Boot Loader

14. However, if you like to manually reinstall the GRUB boot loader from Rescue operations menu, follow all the steps presented in this tutorial until you reach point 13, where you make the following changes: instead of choosing the option to reinstall GRUB boot loader, select the option which says Execute a shell in /dev/(your_chosen_root_partition and press [Enter] key to continue.

Select Execute a Shell in Root Partition

Select Execute a Shell in Root Partition

15. On the next screen hit Continue by pressing [enter] key in order to open a shell in your root file system partition.

Open Shell Mode

Open Shell Mode

16. After the shell has been opened in the root file system, execute ls command as presented below in order to identify your machine hard disk devices.

# ls /dev/sd* 

After you’ve identified the correct hard disk device (usually the first disk should be /dev/sda), issue the following command to install the GRUB boot loader on the identified hard disk MBR.

# grub-install /dev/sda

After GRUB has been successfully installed leave the shell prompt by typing exit.

# exit

Install Ubuntu Grub Boot Loader

Install Ubuntu Grub Boot Loader

17. After you’ve exited the shell prompt, you will be returned to main rescue mode menu. Here, choose the option to reboot the system, eject the live bootable ISO image and your installed operating system should be booted without any issue.

Reboot System

Reboot System

That’s all! With a minimal effort you’ve successfully rendered your Ubuntu machine the ability to boot the installed operating system.

Source

zzUpdate – Fully Upgrade Ubuntu PC/Server to Newer Version

zzUpdate is a free, open source, simple, fully configurable, and easy to use command line utility to fully upgrade an Ubuntu system via apt package management system. It is a completely configfile-driven shell script that allows you to upgrade your Ubuntu PC or server hands-off and unwatched for almost the entire process.

It will upgrade your Ubuntu system to the next available release in case of a normal release. For Ubuntu LTS(Long Term Support) releases, it tries to search for the next LTS version only and not the latest Ubuntu version available.

In this article, we will explain how to install and run zzupdate tool to upgrade an Ubuntu system to latest available version from the command line.

How to Install zzUpdate Tool in Ubuntu

First make sure that your system has curl program installed, otherwise install it using the following command.

$ sudo apt install curl

Now install zzupdate on your Ubuntu system by running the following command. The below setup shell script will install git, which is required for cloning the zzupdate source tree and sets up the package on your system.

$ curl -s https://raw.githubusercontent.com/TurboLabIt/zzupdate/master/setup.sh | sudo sh

Install zzUpdate in Ubuntu

Install zzUpdate in Ubuntu

After you have successfully installed it, create your configuration file from the provided sample configuration file using the following command.

$ sudo cp /usr/local/turbolab.it/zzupdate/zzupdate.default.conf /etc/turbolab.it/zzupdate.conf

Next, set your preferences in the configuration file.

$ sudo nano /etc/turbolab.it/zzupdate.conf

The following are the default configuration variables (a value of 1 means yes and 0 means no) you will find in this file.

REBOOT=1
REBOOT_TIMEOUT=15
VERSION_UPGRADE=1
VERSION_UPGRADE_SILENT=0
COMPOSER_UPGRADE=1
SWITCH_PROMPT_TO_NORMAL=0

zzUpdate Configuration

zzUpdate Configuration

Before upgrading your Ubuntu system, you can check your current Ubuntu release using following command.

$ cat /etc/os-release

Check Ubuntu Release Version

Check Ubuntu Release Version

When you have configured zzupdate to work the way you wish, simply run it to fully upgrade your Ubuntu system with root user privileges. It will inform you of any actions performed.

$ sudo zzupdate 

Once you have launched it, zzupdate will self-update via git, updates available packages informations (asks you to disable third-party repositories), upgrades any packages where necessary, and checks for a new Ubuntu release.

If there is a new release, it will download the upgrade packages and install them, when the system upgrade is complete, it will prompt you to restart your system.

zzupdate Upgrade Ubuntu

zzupdate Upgrade Ubuntu

zzUpdate Github repositoryhttps://github.com/TurboLabIt/zzupdate

That’s all! zzUpdate is a simple and fully configurable command line utility to fully update an Ubuntu system via apt package manager. In this guide, we have explained how to install and use zzupdate to upgrade an Ubuntu system from the command line. You can ask any questions via the feedback form below.

Source

Clementine 1.3 Released – A Modern Music Player for Linux

Clementine is a freely available cross-platform open source Qt based music player inspired by Amarok 1.4. The latest stable version 1.3 was released (On April 15th, 2016) after a year of development and comes with Vk.com and Seafile support along with numerous other enhancements and bug fixes.

Clementine Music Player for Linux

Clementine Music Player for Linux

Using Clementine, you can listen to different online music services such as Soundcloud, Spotify, Icecast, Jamendo, Magnatune and even play your favorite music from Google Drive, Dropbox and OneDrive. Other online features include lyrics, artist biographies and view photos.

Read Also: 21 Best Music Players for Linux

Clementine Features

  1. Search and play local music library
  2. Listen online Radio from Spotify, Grooveshark, SomaFM, Magnatune, Jamendo, SKY.fm, Soundcloud, Icecast, etc.
  3. Play songs from Dropbox, Google Drive, OneDrive, etc.
  4. Sidebar information pane with songs, lyrics, artist biographies and pictures.
  5. Create smart playlists and dynamic playlists.
  6. Transfer music in iPod, iPhone or storage etc.
  7. Search and download podcast.

If you want to know more about Clementine features and its Change log you can visit Clementine Website.

Install Clementine 1.3.0 in Linux

To install latest Clementine 1.3 version on Ubuntu 16.04, 15.10, 15.04, 14.10, 14.04 and Linux Mint 17.x and its derivatives, you can use official stable PPA (Personal Package Archives). To add PPA, press keys CTRL+ALT+Tto get command prompt and follow the instructions.

$ sudo add-apt-repository ppa:me-davidsansome/clementine
$ sudo apt-get update
$ sudo apt-get install clementine

New recent versions of Clementine require GStreamer 1.0 which wasn’t added in Ubuntu 12.04. If you get any errors during installation, you should add the GStreamer PPA as well:

$ sudo add-apt-repository ppa:gstreamer-developers/ppa

On Fedora 21-23, you can use official RPM packages to get Clementine 1.3 as shown:

On 32-bit Systems

----------- On Fedora 21 ----------- 
# dnf install https://github.com/clementine-player/Clementine/releases/download/1.3/clementine-1.3.0-1.fc21.i686.rpm

----------- On Fedora 22 ----------- 
# dnf install https://github.com/clementine-player/Clementine/releases/download/1.3/clementine-1.3.0-1.fc22.i686.rpm

----------- On Fedora 23 ----------- 
# dnf install https://github.com/clementine-player/Clementine/releases/download/1.3/clementine-1.3.0-1.fc23.i686.rpm

On 64-bit Systems

----------- On Fedora 21 ----------- 
# dnf install https://github.com/clementine-player/Clementine/releases/download/1.3/clementine-1.3.0-1.fc21.x86_64.rpm

----------- On Fedora 22 ----------- 
# dnf install https://github.com/clementine-player/Clementine/releases/download/1.3/clementine-1.3.0-1.fc22.x86_64.rpm

----------- On Fedora 23 ----------- 
# dnf install https://github.com/clementine-player/Clementine/releases/download/1.3/clementine-1.3.0-1.fc23.x86_64.rpm

For other distributions, Clementine binary and source code downloads are available from HERE.

Source

How to Install VLC 3.0 in Debian, Ubuntu and Linux Mint

VLC (VideoLAN Client) is an open source highly portable Media Player that designed to run various video and audio media files, including mpegmpeg-2mpeg-4wmvmp3dvdsvcdspodcastsogg/vorbismovdivxquicktime and streaming of multimedia files from various online networks like Youtube and other network sources.

Recently, VideoLan team announced the major release of VLC 3.0 with some new features, number of improvements and bug fixes.

VLC 3.0 Features

  • VLC 3.0 “Vetinari” is a new major update of VLC
  • Activates hardware decoding by default, to get 4K and 8K playback!
  • It supports 10bits and HDR
  • Supports 360 video and 3D audio, up to Ambisonics 3rd order
  • Allows audio passthrough for HD audio codecs
  • Stream to Chromecast devices, even in formats not supported natively
  • Supports browsing of local network drives and NAS

Find out all the changes in VLC 3.0 in the release announcement page.

Suggested Read: Install VLC Media Player in RHEL/CentOS 7/6 and Fedora 27-22

Installing VLC Media Player in Debian, Ubuntu and Linux Mint

The recommended way of installing latest VLC 3.0 version on DebianUbuntu and Linux Mint using official VLC PPA repository.

Launch terminal by doing “Ctrl+Alt+T” from the desktop and add a VLC PPA to your system, by running following command.

$ sudo add-apt-repository ppa:videolan/stable-daily

Next, do an update of system local repository index.

$ sudo apt-get update

Once, you’ve done index update, let’s install VLC package.

$ sudo apt-get install vlc

Important: User’s who are using older versions of DebianUbuntu and Linux Mint, can also use above PPA to install/upgrade to latest VLC version, but the PPA only installs or upgrades to whichever latest VLC version available (latest VLC version offered by this PPA is 2.2.7).

So, if you’re looking for more latest version, then consider upgrading your distribution to latest version or use Snap package of VLC, which provides VLC 3.0 stable in snap packaging system as shown.

$ sudo apt install snapd
$ sudo snap install vlc

Suggested Read: 10 Best Open Source Video Players For Linux in 2015

VLC Screenshots

VLC Player Running on Ubuntu 16.04

VLC Player Running on Ubuntu 16.04

VLC Player Running on Ubuntu 16.04

VLC Player Running on Ubuntu 16.04

VLC also offers packages for RPM based and other Linux distributions, including source tarballs, that you can download and install them from THIS PAGE.

Source

How to Install VLC 3.0 in RHEL/CentOS 7/6 and Fedora 27-22

VLC (VideoLAN Client) is an open source and free simple fast and much powerful cross-platform player and framework for playing most of multimedia files like CDDVDVCDAudio CD and other various supported streaming media protocols.

It was written by the VideoLAN project and can be available for all operating platforms such as WindowsLinuxSolarisOS XAndroidiOS and other supported operating systems.

Recently, VideoLan team announced the major release of VLC 3.0 with some new features, number of improvements and bug fixes.

VLC 3.0 Features

  • VLC 3.0 “Vetinari” is a new major update of VLC
  • Activates hardware decoding by default, to get 4K and 8K playback!
  • It supports 10bits and HDR
  • Supports 360 video and 3D audio, up to Ambisonics 3rd order
  • Allows audio passthrough for HD audio codecs
  • Stream to Chromecast devices, even in formats not supported natively
  • Supports browsing of local network drives and NAS

Find out all the changes in VLC 3.0 in the release announcement page.

This is our ongoing Best Linux Players series, in this article, we will show you how to install latest version of VLC 3.0 Media Player in RHEL 7/6CentOS 7/6 and Fedora 27-22 systems using third party repositories with Yum automated package installer.

Suggested Read: 10 Best Open Source Video Players For Linux in 2015

Install VLC 3.0 Media Player in RHEL/CentOS and Fedora

VLC program doesn’t included in the RHEL/CentOS based operating systems, we need to install it using third party repositories like RPM Fusion and EPEL. With the help of these repositories we can install list of all updated packages automatically using YUM package manager tool.

Suggested Read: Install Latest VLC Media Player in Debian, Ubuntu and Linux Mint

Install RPM Fusion and EPEL Repositories on RHEL/CentOS

First, install Epel and RPM Fusion repository for your RHEL/CentOS based distribution using following commands. Please select and install it according to your Linux supported system versions.

For RHEL/CentOS 7
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm
For RHEL/CentOS 6
# yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-6.noarch.rpm
# yum install https://download1.rpmfusion.org/free/el/rpmfusion-free-release-6.noarch.rpm

Installing RPMFusion Repository on Fedora

Under Fedora distributions, the RPMFusion repository comes as pre-installed, if not you can follow below commands install and enable it as shown:

For Fedora 27-22
# dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

Check the Availability of VLC in RHEL/CentOS/Fedora

Once you’ve all the repositories installed on your system, do the following command to check the availability of VLC player.

# yum info vlc
# dnf info vlc         [On Fedora 26+ releases]
Sample Output :
Last metadata expiration check: 0:32:38 ago on Friday 11 August 2017 12:32:02 PM IST.
Available Packages
Name         : vlc
Version      : 3.0.0
Release      : 0.29.git20170622.fc26
Arch         : i686
Size         : 2.0 M
Source       : vlc-3.0.0-0.29.git20170622.fc26.src.rpm
Repo         : rpmfusion-free
Summary      : The cross-platform open-source multimedia framework, player and server
URL          : http://www.videolan.org
License      : GPLv2+
Description  : VLC media player is a highly portable multimedia player and multimedia framework
             : capable of reading most audio and video formats as well as DVDs, Audio CDs VCDs,
             : and various streaming protocols.
             : It can also be used as a media converter or a server to stream in uni-cast or
             : multi-cast in IPv4 or IPv6 on networks.

Installing VLC Player in RHEL/CentOS/Fedora

As you see the VLC player is available, so install it by running the following command on the terminal.

# yum install vlc
# dnf install vlc       [On Fedora 26+ releases]

Starting VLC Player in RHEL/CentOS/Fedora

Run the following command from the Desktop terminal as normal user to Launch the VLC player. (Note : VLC is not supposed to be run as root user). if you wish, follow this article to run VLC as root user.

$ vlc
VLC Player Preview

See the preview of VLC Player under my CentOS 7 system.

VLC Player in CentOS 7

VLC Preview in CentOS 7

Install VLC in CentOS 7

VLC Preview in CentOS 7

Updating VLC Player in RHEL/CentOS/Fedora

If you would like to Update or Upgrade VLC player to latest stable version, use the following command.

# yum update vlc
# dnf update vlc      [On Fedora 26+ releases]

Source

4 Best Linux Apps for Downloading Movie Subtitles

Are you facing difficulties in getting subtitles of your favorite movies, especially on major Linux desktop distributions? If so, then you are on then right track to discover some solutions to your problem.

In this post, we shall run through some excellent and cross platform applications for downloading movie subtitles. Note that the list below is not prepared in any definitive order but you can try out the different applications and find out which one works best for you.

Suggested Read: 10 Best Open Source Video Players For Linux in 2015

That said, let us move to the actual list.

1. VLC Media Player

VLC is a free, popular, open source and importantly cross-platform multimedia player, it can run on Linux, Windows and Mac OS X. It practically plays everything from files, discs, webcams devices and streams, and VLC is also feature rich and highly extensible through addons and to download movie subtitles, users can install addons such as VLSub and Subtitle finder.

Suggested Read: Install VLC Player in Linux Debian, Ubuntu and Linux Mint

Suggested Read: Install VLC Media Player in RHEL/CentOS 7/6 and Fedora 24-20

2. Subliminal

Subliminal is a powerful, fast terminal based tool and Python library used for searching and downloading movie subtitles. You can install it as a typical python module on your system or isolate it from the system by using a dedicated virtualenv. Importantly, it can also be integrated with the Nautilus/Nemo file managers.

Visit Homepagehttps://github.com/Diaoul/subliminal

3. SubDownloader

SubDownloader is also an excellent and cross-platform application for downloading movie subtitles on Linux as well as Windows.

It ships in with the following remarkable features:

  1. No spyware
  2. Searches folders recursively
  3. Enables downloading a whole folder of movies with a single click
  4. Supports multiple international languages coupled with many other minor features

Visit Homepagehttp://subdownloader.net

4. SMPlayer

SMPlayer is another free, cross-platform GUI fork of popular Mplayer media player, that works on Linux and Windows operating systems. It comes with built-in codes for nearly every video and audio formats you can imagine. One of its notable features is support for subtitle download, it searches and downloads movie subtitles from www.opensubtitles.org.

Suggested Read: Install Latest SMPlayer in Linux Systems

At this point, you surely must be aware of good Linux applications for downloading movie subtitles. Nonetheless, if you know of any other superb applications for the same purpose that have not been mentioned here, do not hesitate to get back to us through the feedback form below. We shall be pleased to include your suggestions in this editorial.

Source

9 Best Tools to Access Remote Linux Desktop

Accessing a remote desktop computer is made possible by the remote desktop protocol (RDP), a proprietary protocol developed by Microsoft. It gives a user a graphical interface to connect to another/remote computer over a network connection. FreeRDP is a free implementation of the RDP.

RDP works in a client/server model, where the remote computer must have RDP server software installed and running, and a user employs RDP client software to connect to it, to manage the remote desktop computer.

In this article, we will share a list software for accessing a remote Linux desktop: the list starts off with VNC applications.

VNC (Virtual Network Computing) is a server-client protocol which allows user accounts to remotely connect and control a distant system by using the resources provided by the Graphical User Interface (GUI).

Zoho Assist

Zoho Assist is a free, fast, cross-platform remote support software that allows you to access and support Linux desktops or servers without remote connection protocols like RDP, VNC, or SSH. Remote connections can be established from your favorite browser or a desktop plugin, regardless of the remote computer’s network.

With a whole host of features like remote file transfer, multi-monitor navigation, and clipboard sharing to aid MSPs, IT support technicians, and helpdesk technicians, debugging a Linux remote desktop is easy sailing with Zoho Assist.

Zoho Assist is extremely secure with two-factor authentication, action log viewer, and antivirus compatability. SSL and 256-bit AES encryption ensures all session-related information is passed through an encrypted tunnel.

A clutter-free user interface makes working easy for first-timers. You can customize email templates, and rebrand the Linux remote desktop application to use your company’s name, logo, favicon, and portal URL.

With Zoho Assist, you can configure all major variations of Linux computers and servers like Ubuntu, Redhat, Cent, Debian Linux Mint, and Fedora for unattended access, and seamlessly access them anytime.

Zoho Assist Remote Desktop Sharing

Zoho Assist Remote Desktop Sharing

1. TigerVNC

TigerVNC is a free, open source, high-performance, platform-neutral VNC implementation. It is a client/server application that allows users to launch and interact with graphical applications on remote machines.

Unlike other VNC servers such as VNC X or Vino that connect directly to the runtime desktop, tigervnc-vncserver uses a different mechanism that configures a standalone virtual desktop for each user.

It is capable of running 3D and video applications, and it attempts to maintain consistent user interface and re-use components, where possible, across the various platforms that it supports. In addition, it offers security through a number of extensions that implement advanced authentication methods and TLS encryption.

Learn How to Install and Configure VNC Server in CentOS 7

2. RealVNC

RealVNC offers cross-platform, simple and secure remote access software. It develops VNC screen sharing technologies with products such as VNC Connect and VNC Viewer. VNC connect gives you the ability to access remote computers, provide remote support, administer unattended systems, share access to centralized resources and much more.

You can get VNC connect for free for home use, which is limited to five remote computers and three users. However, for any professional and enterprise use, requires a subscription fee.

3. TeamViewer

Teamviewer is a popular, powerful, secure and cross-platform remote access and control software that can connect to multiple devices simultaneously. It is free for personal use and there is a premium version for businesses users.

It is an all-in-one application for remote support used for remote desktop sharing, online meetings and file transfer between devices connected over the Internet. It supports more than 30 languages around the world.

4. Remmina

Remmina is a free and open-source, fully featured and powerful remote desktop client for Linux and other Unix-like systems. It is written in GTK+3 and intended for system administrators and travelers, who need to remotely access and work with many computers.

It is efficient, reliable and supports multiple network protocols such as RDP, VNC, NX, XDMCP and SSH. It also offers an integrated and consistent look and feel.

Remmina allows users to maintain a list of connection profiles, organized by groups, supports quick connections by users directly putting in the server address and it provides a tabbed interface, optionally managed by groups plus many more features.

5. NoMachine

NoMachine is a free, cross platform and high quality remote desktop software. It offers you a secure personal server. Nomachine allows you to access all your files, watch videos, play audio, edit documents, play games and move them around.

It has an interface that lets you concentrate on your work and is designed to work in a fast manner as if you are seated right in front of your remote computer. In addition, it has remarkable network transparency.

6. Apache Guacamole

Apache Guacamole is a free and open source client-less remote desktop gateway. It supports standard protocols like VNC, RDP, and SSH. It requires no plugins or client software; simply use an HTML5 web application such as a web browser.

This means that, use of your computers is not tied to any one device or location. Furthermore, if you want to employ it for business use, you can get dedicated commercial support via third-party companies.

7. XRDP

XRDP is a free and open source, simple remote desktop protocol server based on FreeRDP and rdesktop. It uses the remote desktop protocol to present a GUI to the user. It can be used to access Linux desktops in conjunction with x11vnc.

It greatly, integrates with LikwiseOPEN thus enabling you to login to a Ubuntu server via RDP using active directory username/password. Although, XRDP is good project, it needs a number of fixes such as taking over an existing desktop session, running on Red Hat-based Linux distributions and more. The developers also need to improve its documentation.

8. FreeNX

FreeNX is an open source, fast and versatile remote access system. It is a secure (SSH based) client /server system, and it’s core libraries are provided by NoMachine.

Unfortunately, at the time of this writing, the link to the FreeNX website did not work, but we have provided links to the distro-specific web pages:

  1. Debian: https://wiki.debian.org/freenx
  2. CentOS: https://wiki.centos.org/HowTos/FreeNX
  3. Ubuntu: https://help.ubuntu.com/community/FreeNX
  4. Arch Linux: https://wiki.archlinux.org/index.php/FreeNX

That’s all! In this article, we reviewed eight best tools to access remote Linux desktops. Feel free to share your thoughts with us via the comment form below.

Source

PlayOnLinux – Run Windows Applications and Games on Linux

In our earlier articles on this blog, we used Wine program to install and run windows based applications on Ubuntu and other Red Hat based Linux distributions. There is another open source software available called PlayOnLinux that uses Wine as its base and gives a feature rich functions and a user friendly interface to install and run windows application on Linux. The purpose of this software is to simplify and automates the process of installing and running windows applications on Linux platforms. It has a list of applications where you can automates each installation process as much as you can.

Install PlayOnLinux In Linux

Install PlayOnLinux In Linux

What is PlayOnLinux?

PlayOnLinux (POL) is an open source gaming framework (software) based on Wine, that allows you to easily install any Windows based applications and games on Linux operating systems, via the use of Wine as front-end interface.

What are PlayOnLinux’s features?

The following are the list of some interesting features to know.

  1. PlayOnLinux is license free, no need of Windows License.
  2. PlayOnLinux uses base as Wine
  3. PlayOnLinux is a open source and free software.
  4. PlayOnLinux is written in Bash and Python.

In this article, I will guide you on how to install, setup and use PlayonLinux on RHEL/CentOS/Fedora and Ubuntu/Debian distributions. You can also use these instructions for Xubuntu and Linux Mint.

How to Install PlayOnLinux in Linux Distributions

PlayOnLinux is in Fedora’s software repositories, so you can add the repository and install the PlayonLinux software using the following commands.

For RHEL/CentOS/Fedora

vi /etc/yum.repos.d/playonlinux.repo
[playonlinux]
name=PlayOnLinux Official repository
baseurl=http://rpm.playonlinux.com/fedora/yum/base
enable=1
gpgcheck=0
gpgkey=http://rpm.playonlinux.com/public.gpg
yum install playonlinux

For Debian

With the Squeeze repository

wget -q "http://deb.playonlinux.com/public.gpg" -O- | apt-key add -
wget http://deb.playonlinux.com/playonlinux_squeeze.list -O /etc/apt/sources.list.d/playonlinux.list
apt-get update
apt-get install playonlinux

With the Lenny repository

wget -q "http://deb.playonlinux.com/public.gpg" -O- | apt-key add -
wget http://deb.playonlinux.com/playonlinux_lenny.list -O /etc/apt/sources.list.d/playonlinux.list
apt-get update
apt-get install playonlinux

With the Etch repository

wget -q "http://deb.playonlinux.com/public.gpg" -O- | apt-key add -
wget http://deb.playonlinux.com/playonlinux_etch.list -O /etc/apt/sources.list.d/playonlinux.list
apt-get update
apt-get install playonlinux

For Ubuntu

For the Precise 12.04 version

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_precise.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

For the Oneiric 11.10 version

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_oneiric.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

For the Natty 11.04 version

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_natty.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

For the Maverick 10.10 version

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_maverick.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

For the Lucid 10.04 version

wget -q "http://deb.playonlinux.com/public.gpg" -O- | sudo apt-key add -
sudo wget http://deb.playonlinux.com/playonlinux_lucid.list -O /etc/apt/sources.list.d/playonlinux.list
sudo apt-get update
sudo apt-get install playonlinux

How do I Start PlayOnLinux

Once it’s installed, you can start the PlayOnLinux as normal user from the application menu or use the following command to start it.

# playonlinux
$ playonlinux

Once you start PlayOnLinux, it starts with wizard that automatically download and install required software’s such as Microsoft fonts. Go through the wizard as shown below.

PlayOnLinux Setup Wizard

PlayOnLinux Setup Wizard

PlayOnLinux Setup Wizard 2

PlayOnLinux Setup Wizard 2

PlayOnLinux Installing Microsoft Fonts

PlayOnLinux Installing Microsoft Fonts

PlayOnLinux License Agreement

PlayOnLinux License Agreement

PlayOnLinux Installing Fonts

PlayOnLinux Installing Fonts

How do I Install Applications?

Once it’s done, click on ‘Install‘ button to explore available software’s or search for software’s. PlayonLinuxprovides some supported games, you can search them using ‘Search’ tab as shown below.

PlayOnLinux Search Applications

PlayOnLinux Search Applications

PlayOnLinux Installing Games

PlayOnLinux Installing Games

This way, you can search and install as many as Windows supported applications and games in your Linux.

Source

How to Install NetBeans IDE 8.2 in Debian, Ubuntu and Linux Mint

The NetBeans is an open source and award-winning IDE (integrated development environment) application for WindowsLinuxSolaris and Mac. The NetBeans IDE provides a much powerful Java application framework platform that allows programmers to easily develop Java based web applications, mobile applications and desktops. It is one of the best IDEs for C/C++ programming, and also it provides vital tools for PHP programmers.

The IDE is the only first editor, that provides support for many languages like PHPC/C++XMLHTMLGroovyGrailsAjaxJavadocJavaFX, and JSPRuby and Ruby on Rails.

The editor is feature-rich and provides an extensive range of tools, templates and samples; and it’s highly extensible using community developed plugins, thus making it well suited for software development.

This article guides you on how to install the latest version of NetBeans IDE 8.2 in DebianUbuntu and Linux Mintdistributions.

Requirements:

  1. A Desktop machine with minimum 2GB of RAM.
  2. The Java SE Development Kit (JDK) 8 is required to install NetBeans IDE (NetBeans 8.2 does not run on JDK9).

Read AlsoHow to Install NetBeans IDE in CentOS, RHEL and Fedora

Install Java JDK 8 in Debian, Ubuntu and Linux Mint

1. To install Java 8 JDK version, first add following webupd8team/java PPA to your system and update the repository package database as shown.

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update

2. Once PPA has been added and updated, now search for the packages with name oracle-java8 and install it as shown.

$ apt-cache search oracle-java8
$ sudo apt-get install oracle-java8-installer

If you have more than one Java installed on your system, you can install oracle-java8-set-default package to set Java 8 as default as shown.

$ sudo apt-get install oracle-java8-set-default

Please note that the same webupd8team/java PPA also offers older and newer versions of Java packages like Java 7 and Java 9.

Install NetBeans IDE in Debian, Ubuntu and Linux Mint

3. Now oen a browser, navigate to NetBeans IDE download page and download the latest NetBeans IDE installer script for your installed Linux distribution.

Alternatively, you can also download NetBeans IDE installer script in your system via wget utility, by issuing the below command.

$ wget -c http://download.netbeans.org/netbeans/8.2/final/bundles/netbeans-8.2-linux.sh

4. After the download completes, navigate to the directory where the NetBeans IDE installer has been downloaded and issue the below command to make the installer script executable and start installing it.

$ chmod +x netbeans-8.2-linux.sh 
$ ./netbeans-8.2-linux.sh

5. After running the installer script above, the installer “Welcome page” will show up as follows, click Next to continue (or customize your installation by clicking on Customize) to follow the installation wizard.

Netbeans Installer

Netbeans Installer

6. Then read and accept the terms in the license agreement, and click on Next to continue.

License NetBeans IDE

License NetBeans IDE

7. Next, select the NetBeans IDE 8.2 installation folder from the following interface, then click Next to continue.

NetBeans IDE Installation Folder

NetBeans IDE Installation Folder

8. Also select the GlassFish server installation folder from the following interface, then click Next to proceed.

GlassFish Installation Folder

GlassFish Installation Folder

9. Next enable auto updates updates for installed plugins via the check box in the following screen which shows the installation summary, and click Install to install the NetBeans IDE and runtimes.

Enable NetBeans IDE Updates

Enable NetBeans IDE Updates

10. When the installation is complete, click on Finish and restart machine to enjoy NetBeans IDE.

NetBeans IDE Installation Completes

NetBeans IDE Installation Completes

NetBeans IDE in Ubuntu

NetBeans IDE in Ubuntu

Congratulations! You’ve successfully installed the latest version of NetBeans IDE 8.2 in your Debian/UbuntuLinux based system. If you have queries use the comment form below to ask any questions or share your thoughts with us.

Source

WP2Social Auto Publish Powered By : XYZScripts.com