Slack is a cloud-based popular team collaboration tool. This is a new kind of messaging for teams, bringing all your communication at one place. This tutorial will help you to install Slack on Ubuntu 18.04 (Bionic) Desktop system. Step 1 – Download Slack Debian Package Download the Slack Debian package from its official download page. Currently, Debian packages are in beta version only. Alternativly you can also use the following command to download Slack Debian package. wget https://downloads.slack-edge.com/linux_releases/slack-desktop-4.11.3-amd64.deb Step 2 – Install Slack on Ubuntu 18.04 After that, install Slack on Ubuntu using dpkg package installer utility. sudo dpkg -i…
Author: Rahul
Cloning a specific branch from a Git repository can be a useful way to work with the code, without having to clone the entire repository. Cloning a specific branch allows you to access the code, make changes, and push those changes back to the original repository. In this article, we will walk through the steps of cloning a specific branch from a Git repository. Clone Specific Git Branch You can clone any remote repository with git clone command. The default clones the master (main) branch from remote. You can also specify the branch name with -b option to clone a…
Laravel is one of the best open-source, MVC PHP framework, designed for the faster development of web applications. You can simply install and use on your development system. This article will help you to install the Laravel PHP Framework on Debian 10 (Buster) Linux system. Laravel requirements Apache MySQL/MariaDB PHP >= 7.1.3 OpenSSL PHP Extension PDO PHP Extension Mbstring PHP Extension Tokenizer PHP Extension XML PHP Extension Step 1 – Prerequsiteis You need to install the recommended PHP version with the required modules before starting the Laravel installation. The system has already running LAMP stack skip this step else use…
Java is an popular programing language used by billons of application. As we are aware that Oracle JDK requires a commercial license under Oracle Binary Code License Agreement. We will install OpenJDK on your Debian system. OpenJDK is completely free, open source Java with a GNU General Public License. This tutorial will help you to install Java on Debian 10 Buster Linux system. Step 1 – Search OpenJDK Packages OpenJDK packages are available under native apt repositories. You can simply use apt-cache search command to search available java version for your Ubuntu system. sudo apt update sudo apt search openjdk…
Sending emails is an essential task in today’s digital age, and as a system administrator, you may need to send emails from the command line to automate this task. In this article, we’ll show you how to send emails from the Windows command line with PowerShell, streamlining your email communication and improving your productivity. Prerequisites Before we begin, make sure that you have the following: A Windows computer with PowerShell installed Access to an SMTP server with your login credentials The SMTP server address and port number Step 1: Open PowerShell First, open PowerShell by searching for “PowerShell” in the…
Apache Hadoop 3.1 have noticeable improvements any many bug fixes over the previous stable 3.0 releases. This version has many improvements in HDFS and MapReduce. This tutorial will help you to install and configure Hadoop 3.1.2 Single-Node Cluster on Ubuntu 18.04, 16.04 LTS and LinuxMint Systems. This article has been tested with Ubuntu 18.04 LTS. Step 1 – Prerequsities Java is the primary requirement for running Hadoop on any system, So make sure you have Java installed on your system using the following command. If you don’t have Java installed on your system, use one of the following links to…
Python is a high-level, general-purpose programming language created by Guido van Rossum. It was first released in 1991. Generally, Linux based distros have pre-installed Python version. This tutorial will help you to find Python version details inside a script. Also, you can ensure a Python script to run only the minimum version found.
1 2 | import sys print(sys.version) |
Output: 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] You can also find the details version info by using sys.version_info like below:
1 2 3 | >>> sys.version_info sys.version_info(major=3, minor=5, micro=2, releaselevel='final', serial=0) |
Show the Python hex version details. This value increases with every release of python.
1 2 3 | >>> sys.hexversion 50660080 |
Using Assert in Python You can ensure…
Python is a high-level, general-purpose programming language created by Guido van Rossum. It was first released in 1991. Generally, Linux based distros have pre-installed Python version. This tutorial will help you to find the current version of Python installed on your Linux system using the command line. python -V Output: Python 2.7.12 The systems have multiple version of Python installed can find like this.
This tutorial describes How To Block IP using .htaccess in Apache. The Apache users can easily block website access from specific IP addresses or any IP ranges using the .htaccess file. Make sure your Apache server is enabled to use a .htaccess file. Block IP using .htaccess Now, create a file named .htaccess in your website document root directory and add these example lines:
1 2 3 4 5 6 7 8 | <Files *> <RequireAll> Require all granted #First allow all Require not ip 192.168.1.10 #Block single IP Require not ip 192.168.1.0/24 #Block IP range Require not ip 192.168.1.11 10.10.0.1/32 #Block mutile IPs and range </RequireAll> </Files> |
You are required to change the IP address to be blocked in the above configuration. Here you can block a single IP or IP ranges. You can also write one or more IPs in a…
Generating random strings in PHP has never been easier! With just a few lines of code, you can create a random string of characters that can be used in a variety of ways. Whether you need a unique identifier for a user’s profile or a secure password for a website, random strings can help. PHP’s random string function is incredibly straightforward to use. All you need to do is specify the length of the string and the character set you want to use. You can generate strings that include numbers, special characters, and even emoji. The possibilities are endless! With…