Found 1436 Articles for Linux

Reset the root user password on rhel7 xcentos7 x

Lakshmi Srinivas
Updated on 18-Oct-2019 12:31:07

382 Views

This article will be helpful if we forget the root password on Centos 7.x or RHEL 7.x. In the previous version of RHEL, we can easily break the root password, as by default SE-Linux is enabled. Also note that, RHEL has brought many special new features.Resting the Root PasswordReboot/Restart the system.Press ‘e‘ at the grub boot menu to edit the default boot menu.This screen looks like this for RHEL 7.x –Press us thr down arrow key to find the line which contains similar to the ‘linux16 …… rhgb quit …..” and replace the ‘rhgb quiet’ words with ‘init=/bin/bash’. Once we ... Read More

How to setup hostname in centos 7 x or rhel 7 x linux versions

Lakshmi Srinivas
Updated on 18-Oct-2019 12:23:33

1K+ Views

In this article, we will learn how to change the host name on CentOS 7.x / RHEL 7.0, by default after installation on CentOS 7 or RHEL the default hostname will be localhost.localdomain. This hostname will be used for various services, unlike the older versions we will try to change the host name by changing /etc/sysconfig/networks or using the host name command to change the hostname and after multiple reboot of server the hostname remains as localhost.localdomain. The procedure for changing the host name in CentOS 7 or RHEL is totally different from the previous versions. we have 3 tools ... Read More

Openssh security best practices

Lakshmi Srinivas
Updated on 18-Oct-2019 12:21:18

201 Views

Secure Shell or SSH is a cryptographic (encrypted) network protocol operating at layer 7 of the OSI Model to allow remote login and other network services to operate securely over an unsecured network.OpenSSH is a premier connectivity tool for remote login with the SSH protocol. It encrypts all traffic to eliminate eavesdropping, connection hijacking, and other attacks. In addition, OpenSSH provides a large suite of secure tunneling capabilities, several authentication methods, and sophisticated configuration options. This article explains about important tasks to secure your SSH server setup.Use a Strong PasswordA password is a string of characters that people can use ... Read More

How to find a list of block devices information

Lakshmi Srinivas
Updated on 18-Oct-2019 12:18:06

759 Views

lsblk command is used to display a list of information about all available block devices. However, it does not give a list of information about RAM disks. Examples of block devices are hard disk, flash drives, CD-ROM. This article explains about how to find a list of block devices in Linux Machine.To install lsblk for Fedora and CentOS ,use the following command –$ sudo yum install util-linux-ngTo install lsblk for Ubuntu and Linux Mint ,use the following command –$ sudo apt-get install util-linux -yTo find the default list of all blocks, use the following command –$ lsblkThe sample output should be like ... Read More

Linux nslookup commands to troubleshoot dns domain name server

Lakshmi Srinivas
Updated on 18-Oct-2019 11:46:39

278 Views

nslookup is a network administration command-line tool available for many computer operating systems for querying Domain Name System (DNS) to obtain domain name or IP address mapping or for any other specific DNS record. This article explains about nslookup command in detail. Nslookup can be run in two modes, Interactive and Non-Interactive. The Interactive mode is used to query DNS-Server about various domains and hosts. Non-Interactive mode is used to query about information of a domain or host.To find out Find out “A” record (IP address) of Domain, use the following command –$ sudo nslookup tutorialspoint.comThe sample output should be ... Read More

How to use date command in day to day practical usage

Lakshmi Srinivas
Updated on 18-Oct-2019 11:37:34

223 Views

In this article, we will learn about the ‘date’ command in Linux and how to practically use the ‘date’ command in day-to-day usage with some practical examples. The ‘date’ command is used to print or to change the system date and time.General Syntax[root@localhost ~]# date [OPTION]... [+FORMAT] [root@localhost ~]# date [-u|--utc|--universal] [MMDDhhmm[[CC]YY][.ss]]The Date Command has the following UsagesWe can print date and time on the systemWe can display the date and time in the given format.We can read the date from the fileWe can display the Universal time.We can set the system date and time.Displaying the Date and Time from ... Read More

How to install guake drop down terminal terminal on ubuntu

Lakshmi Srinivas
Updated on 18-Oct-2019 11:30:02

471 Views

Guake is a drop-down terminal for GNOME and any other desktop. It aims to provide a quick-access terminal, that show/hide on screen with a simple key pressing. Its style of window is based on an fps games, and one of its goals is being easy to reach. Guake is written mostly in python and has a little piece in C. This article explains about how to install Guake terminal on Ubuntu.FeaturesIt is a Lightweight terminalSimple Easy and ElegantSmooth integration of terminal into GUIIt Appears when you call and disappears once you are done by pressing a predefined hotkey (F12 by ... Read More

How to install and configuration ftp server in centos 7

Lakshmi Srinivas
Updated on 18-Oct-2019 11:19:58

1K+ Views

In this article, we will learn how to configure FTP server on CentOs 7 using ‘vsftpd’. ‘vsftpd’ (Very Secure File Transport Protocol Daemon) is a secure and very fast FTP server on Linux systems.Installing ‘vsftpd’Below is the command to install the ‘vsftpd’, we needed a root user to run the following command# yum install vsftp ftp –y Loaded plugins: fastestmirror, refresh-packagekit, security Loading mirror speeds from cached hostfile * base: ftp.iitm.ac.in * extras: ftp.iitm.ac.in * updates: ftp.iitm.ac.in Setting up Install Process No package vsftp available. Resolving Dependencies --> Running transaction check ---> Package ftp.x86_64 0:0.17-54.el6 will be installed --> Finished ... Read More

How to configure and secure the server setup on centos 7

Lakshmi Srinivas
Updated on 18-Oct-2019 11:15:36

398 Views

In this article, we will learn some configuration steps that should be taken care for security purpose and usability, just after a new server is installed. This will help us in building a solid foundation.Avoiding the ‘root’ user LoginThe root is the administrator or the super user in the Linux environment, who has all the privileges on the system. Generally, it is highly recommended to use the root user directly, as it may cause many issues or any accidental loss of data or due to any changes which may be done accidentally.In the next step, we will be setting up ... Read More

How to install and configure own wordpress instance on linux centos 7

Lakshmi Srinivas
Updated on 18-Oct-2019 11:10:28

185 Views

In this article, we will learn about how to install WordPress in an open source website and blogging tools which works with PHP and MySQL. WordPress is the most popular Content management system (CRM) used on the Internet and it has more plugins to extend the functionality of the WordPress.PrerequisitesBefore we set up, the we need to have the below –We need a non-root user with Sudo privilegesWe need to setup LAMP (Linux, Apache, MySQL and PHP) which needs to be installed on the Centos 7 Server.Creating MySQL Database and User for the WordPressAssuming that we have already had LAMP ... Read More

Advertisements