Linux Resources
- Home
- Linux Resources
This article covers how to use Snap and how it updates. Snap packages are set to refresh (update) 4 times per day by default.
It should also be noted that automatic updating of snap packages cannot be completely disabled directly from the snapd settings, as there's no option for this (what's up with that?), so if you want to disable this altogether, you'll have to resort to workarounds like blocking the snap update URL, or setting your Internet connection to metered and them using the refresh.metered option to hold the snap refresh process when a metered connection is detected (sudo snap set system refresh.metered=hold).
If you want to check if a certain snap is available from the snap store, use the syntax:
$ snap find [ package name ]
To view the current snap refresh (update) schedule for your system, use:
# snap refresh --time
To change the snap refresh schedule, use:
# sudo snap set system refresh.timer=<frequency>
You'll need to replace <frequency> with the snap refresh frequency you want to set for the timer, as defined in the Snapcraft documentation.
This article covers how you can access Google drive on Ubuntu. Now you can easily access your Google Drive files directly from the File Manager.
The process involves adding your online Google account to your Gnome Online Accounts list. This configuration then lets you mount your Google Drive account to your Nautilus File Manager.
After mounting, you can access your online files, edit them, and add new files directly from your Ubuntu to your Google Drive.
To Install and Open Gnome Online Accounts:
1. Open the Ubuntu command line, the Terminal, either through the system Dash or the Ctrl+Alt+T shortcut.
2. Once the Terminal application opens, enter the following command as sudo:
$ sudo apt install gnome-online-accounts
Please remember that only an authorized user can add, remove and configure software on Ubuntu.
3. Once the utility is installed on your system, you can open it through one of the following methods:
By entering the following command in your Terminal:
$ gnome-control-center online-accounts
This article covers CouchDB installation on CentOS Linux System.
Apache CouchDB is an open-source database management system, developed by Apache Software Foundation. It is a NoSQL document-store database developed in ErLang.
CouchDB uses multiple formats and protocols to store, transfer, and process its data, it uses JSON (JavaScript Object Notation) to store data, JavaScript as its query language using MapReduce, and HTTP for an API.
Unlike a relational database, a CouchDB database does not store data and relationships in tables. Instead, each database is a collection of independent documents. Each document maintains its own data and self-contained schema.
CouchDB software includes a native web interface i.e. Fauxton for administration of CouchDB database server.
To Install CouchDB Yum Repository on CentOS 8:
1. Create a repo file by using vim editor.
# vi /etc/yum.repos.d/bintray-apache-couchdb-rpm.repo
2. And add following directives in this file.
[bintray--apache-couchdb-rpm]
name=bintray--apache-couchdb-rpm
baseurl=http://apache.bintray.com/couchdb-rpm/el$releasever/$basearch/
gpgcheck=0
repo_gpgcheck=0
enabled=1
3. Build cache for newly installed yum repositories.
# dnf makecache
4. Now we can install CouchDB software by using dnf command.
# dnf install -y couchdb
This article covers how to Install .Net Framework 5 on Ubuntu. The .NET Core is a free and open-source software framework designed with keeping Linux and macOS in mind. It is a cross-platform successor to .NET Framework available for Linux, macOS and Windows systems.
.NET Core framework already provides scaffolding tools for bootstrapping projects.
To install .NET SDK on Ubuntu:
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don't need to install the corresponding runtime. To install the .NET SDK, run the following commands:
# sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-5.0
To Install ASP.NET Core runtime on Ubuntu:
In your terminal, run the following commands:
$ sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y aspnetcore-runtime-5.0
Before you install .NET, run the following commands to add the Microsoft package signing key to your list of trusted keys and add the package repository.
Open a terminal and run the following commands:
$ wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
This article covers steps to install Blender on Ubuntu Systems. Blender 3D is a professional open-source 3D graphics and animation software. It has a rich feature set like animations, visual effects, 3D modeling, and motion graphics.
It produces great results and is used in professional film production.
To install Blender 3D on Ubuntu:
1. We need to update our Ubuntu 20.04 system before installing Blender 3D on it. This can be done with the following command:
$ sudo apt-get update
2. Now, we can install Blender 3D on our Ubuntu 20.04 system with the following command:
$ sudo apt install blender
During the installation of this software, you will be asked to provide confirmation for this action by typing in "y" and then pressing the Enter key.
This article covers how to install and configure Ansible on Ubuntu 20.04. Ansible is a widely used automation tool in DevOps and used by thousands of developers and sysadmins to configure and deploy applications on servers.
It saves time and minimizes the effort required to handle a multitude of servers in a complex IT infrastructure.
To install Ansible on Ubuntu:
1. First, refresh your system’s package index with:
# sudo apt update
2. Following this update, you can install the Ansible software with:
$ sudo apt install ansible
Press Y when prompted to confirm installation.
To check if Ansible is able to connect to these servers and run commands via SSH:
From your local machine or Ansible control node, run:
$ ansible all -m ping -u root
This command will use Ansible's built-in ping module to run a connectivity test on all nodes from your default inventory, connecting as root.
The ping module will test:
i. if hosts are accessible;
ii. if you have valid SSH credentials;
iii. if hosts are able to run Ansible modules using Python.