Debian 8.0 “Jessie” has been released on April 25th, 2015. After a long wait of 2 years finally Debian Team has announced his new release 8 code name “Jessie”. If you are a user of Debian 7, this article will help your for upgrading your system to Debian 8 with simple steps. In this command all commands are running with root account. So before starting work login to your system as root account or use sudo with all commands. 1. Backup Your Data The first and very important thing is data. So we strongly recommend you to take backup any…
Author: Rahul
Ubuntu is a most popular Linux-based operating system. Recently Ubuntu releases its newest version 15.04 (Vivid Vervet). VirtualBox is also a popular software for creating virtual machine available for Windows and Linux environment. Download Ubuntu ISO: Visit following urls to dowload latest version of Ubuntu ISO. Ubuntu Desktop: http://www.ubuntu.com/download/desktop Ubuntu Server: http://www.ubuntu.com/download/server Download and Install VirtualBox We are assuming you have pre-installed VirtualBox on your system. If you don’t have already installed it, Visit below link and install latest version of VirtualBox on your system. https://www.virtualbox.org/wiki/Downloads Steps to Install Ubuntu On VirtualBox 1. Start VirtualBox and click New button to…
Postfix is fast and popular SMTP server widely used. The main job of Postfix is to relay mail locally or to an intended destination outside the network. Some of the most popular SMTP servers are Sendmail, Postfix, and Qmail. This article will help you to install Postfix on Ubuntu 18.10, 18.04 LTS, 16.04 LTS, and 14.04 LTS systems. For this tutorial, we are using the FQDN as mail.tecadmin.net for configuring this host. Step 1 – Install Postfix Postfix packages are available under default repositories of Ubuntu operating systems. Simply use the following command to install Postfix SMTP server on your…
Ubuntu Desktop and Servers users have a new version available to install and upgrade with various changes and upgrades. So I recommend desktop users to upgrade to this release But If you are running with Ubuntu LTS releases on your server, I don’t recommend you to upgrade to non-LTS release. Upgrade to Ubuntu 18.10 For CLI lover users or working with Ubuntu server having CLI access only can follow below instruction to upgrade Ubuntu. Update current packages sudo apt-get update sudo apt-get upgrade Install the update-manager-core package sudo apt-get install update-manager-core Edit /etc/update-manager/release-upgrades and set Prompt value to normal sudo…
USB formatting is the process of erasing all data from the disk and prepare it for use. Sometimes we are required to change the filesystem on our USB drive, In that case, we have to format the USB drive with the new filesystem type. Formatting a USB drive in Ubuntu using Terminal commands is much easier than formatting it in Windows systems. This tutorial will help Ubuntu (Linux) users with the simple steps for format a USB flash drive using the command line. Step 1 – Attach USB to System Insert a USB drive into your system and identify your…
PHP is a popular server-side scripting language that is used to create dynamic web pages and web applications. It is open-source and is widely used for developing web applications, content management systems, and e-commerce websites. In this article, we will discuss how to install PHP 8.2, 7.4, and 5.6 on Ubuntu 18.04. Ubuntu 18.04 comes with PHP 7.2 installed by default. However, if you need to use an older or a newer version of PHP, you can follow the instructions below. Read: How to Install PHP 7.0 & PHP 5.6 on Debian 8/7 via PPA Note: Before installing a new…
When you are creating an application and want to display the user’s image on their profile picture. This can be a better option for you to take users image from there Gravatar account, from where we can simply get the image using their email address.
1 2 3 4 5 6 7 8 9 10 11 | <?php $email_id = "hello@example.com"; $default = ""; $size = 200; $gravatar_url = "http://www.gravatar.com/avatar/" . md5(strtolower(trim($email))) . "?d=" . urlencode($default) . "&s=" . $size; header("content-type: image/jpeg"); echo file_get_contents($gravatar_url); ?> |
Copy the above PHP script and use in your php code to show users gravatar in their profiles.
This is good to test a file has enough permission to do read, write or execute operations. For a good programmer, you should use these functions before doing any operations on the file. 1. Test read permission: Below script will check if the given file has read permission for currently logged in user. This will be useful to test before start reading any file inside a shell script.
1 2 3 4 5 6 7 8 | #!/bin/bash if [ -r /tmp/myfile.txt ] then echo "File has read permission" else echo "You don't have read permission" fi |
2. Test write permission: Below script will check if a given file has to write permission for currently logged in user. This will be useful to test before writing content to…
WHM & cPanel is the web-based system management control panel widely used for the Linux hosting environment. To use WHM/cPanel on the AWS environment, we will face the problem with normal instances. So we prefer to use VPC ( Virtual Private Cloud) in aws for installing WHM & cPanel server. This article will help you step by step in brief details for the configuration of the WHM & cPanel hosting environment on AWS instances. Follow below step by step details for configuring WHM & cPanel on AWS:- 1. Setup VPC (Virtual Private Cloud) First login to your AWS web console…
FTP (File Transfer Protocol) is widely recognized as a premier method for efficiently transferring files between different systems. Utilized extensively across various platforms, FTP allows for the rapid upload and download of files. It is supported by multiple applications, such as vsFTPd and proFTPd on Linux, and FileZilla Server on Windows. You can connect to an FTP server using several methods, with plenty of free tools available online for this purpose. However, system administrators often prefer the command line for its efficiency and control. This guide will walk you through the process of connecting to an FTP server using command…

