Generate Random Password in Linux and Solaris CLI (pwgen)

According to pwgen man page, “the pwgen program generates passwords which are designed to be easily memorized by humans, while being as secure as possible.” It returns multiple password options that meet the criteria you provide so that you can select the one that you prefer. ### Install pwgen On RHEL/CentOS Linux, you can install … Read more

Is it safe to set net.ifnames=0 in RHEL7, RHEL8 and RHEL9?

Issue: Is it safe to disable Consistent Device Naming by setting net.ifnames=0 on the kernel command line in RHEL7, RHEL8 and RHEL9? Why can I no longer use the 70-persistent-net.rules file to force persistent ethX names like I could in earlier versions of Red Hat Enterprise Linux? Resolution: No. Red Hat strongly recommend that the … Read more

HP Smart Storage Admin CLI (ssacli) installation on Linux

Why use HP Smart Storage Admin CLI? You can use ssacli (smart storage administrator command line interface) tool to manage any of supported HP Smart Array Controllers in your host without need to reboot your server to access Smart Storage Administrator in BIOS. That means no host downtime when managing your storage. CLI is not as convenient as GUI … Read more

Splunk Enterprise 9.x license activation for test cases on Linux

Splunk Enterprise is a data platform designed to help businesses manage big data and analyze machine data. It can be deployed on-premises or in the cloud via the Splunk Cloud Platform and enables you to search, analyze and visualize your data to quickly act on insights from across your technology landscape. An Enterprise Splunk License … Read more

Install Splunk Enterprise 9.0 on RHEL/CentOS 8

Splunk Enterprise is a data platform designed to help businesses manage big data and analyze machine data. It can be deployed on-premises or in the cloud via the Splunk Cloud Platform and enables you to search, analyze and visualize your data to quickly act on insights from across your technology landscape. Installing/Starting Splunk Enterprise 9.0.4 … Read more

vsftpd terminated after buffer overflow detected in Linux

Issue : When run the “ftp open” command, vsftpd terminated after buffer overflow detected printed. [root@unixonline ~]# ftp localhost Connected to localhost.localdomain. *** buffer overflow detected ***: /usr/sbin/vsftpd terminated ======= Backtrace: ========= /lib64/libc.so.6(__chk_fail+0x2f)[0x2b43730d0c5f] KERBEROS_V4 rejected as an authentication type Or “lftp” command “ls” is returned “Delaying before reconnect”. [root@unixonline ~]# lftp test@192.168.10.10:~> ls `ls’ at … Read more

How to Recover Removed File in Linux

In this scenario, we are going to recover removed file in Linux OS.for example: /data/mongodb/audit/sh0-prm-audit.log is removed. Find the deleted file by lsof command: [root@unixonline]# lsof | grep -i delete init 1 root 9r REG 253,7 10406312 528590 /var/lib/sss/mc/initgroups (deleted) hald 2706 haldaemon 19r REG 253,7 10406312 528593 /var/lib/sss/mc/initgroups (deleted) ntpd 2874 ntp 4r REG … Read more

How to Copy Directory Structure Without Files in Unix and Linux

In some scenarios, you might want to mimic a certain directory structure that already exists maybe for your personal projects or for a files storage system just because that directory structure makes perfect sense and might require a lot of time to completely recreate it from scratch. Following is the cool way of copying a … Read more

Veritas NetBackup License Activation Keys

Veritas NetBackup is a backup and recovery software suite designed for enterprise users. NetBackup backs up and restores files, directories and raw partitions on a server. A server protected by NetBackup is known as a NetBackup client. NetBackup software installs on a server known as a media server. During backups, the client sends data across … Read more

Install NVIDIA Graphic Driver on Linux

If your Server/Computer has NVIDIA Graphic cards, Install NVIDIA Graphic Driver to improve Graphics related performance like gaming and mining. [root@unixonline ~]# lsmod | grep nouveau nouveau 2187264 1 video 45056 1 nouveau mxm_wmi 16384 1 nouveau wmi 32768 2 mxm_wmi,nouveau i2c_algo_bit 16384 1 nouveau drm_kms_helper 200704 1 nouveau ttm 131072 1 nouveau drm 520192 … Read more