Posts

Installing https and using OpenSSL to apache

First nee to install the openssl and mod ssl and then generating the certificate to be used. To install OpenSSL and mod ssl Open a terminal prompt and issue the following command   [root@bacula conf.d]# yum install mod_ssl Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile  * base: mirror.nbrc.ac.in  * epel: kartolo.sby.datautama.net.id  * extras: mirror.nbrc.ac.in Resolving Dependencies --> Running transaction check ---> Package mod_ssl.x86_64 1:2.4.6-67.el7.centos.5 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================  Package                     Arch                       Version                                     Repository                   Size ================================================================================== Installing:  mod_ssl                     x86_64                     1:2.4.6-67.el7.centos.5                 

How to Install iostat Using yum

  iostat command is used to check disk input/output statistics in real time [root@Clients7]#   yum install iostat Loaded plugins: fastestmirror Determining fastest mirrors epel/x86_64/metalink                                                                      | 8.6 kB   00:00:00   * base: centos.excellmedia.net   * epel: ftp.jaist.ac.jp   * extras: centos.excellmedia.net   * updates: centos.excellmedia.net base                                                                                      | 3.6 kB   00:00:00 docker-ce-edge                                                                            | 3.5 kB   00:00:00 epel                                                                                       | 4.7 kB   00:00:00 extras                                                                                    | 3.4 kB   00:00:00 updates                                                                                    | 3.4 kB   00:00:00 (1

How to install wireshark in Ubuntu 18.04

Dowanlod the latest reposotory from : https://launchpad.net/~wireshark-dev/+archive/ubuntu/stable Open terminal and type the commands: sudo apt-get install wireshark sudo dpkg-reconfigure wireshark-common sudo adduser $USER wireshark wireshark if you getting wireshark running error, so close it and then just do the following Go to usr/share/wireshark Open init.lua with a text editor Change disable_lua = false to disable_lua = true https://osqa-ask.wireshark.org/questions/16343/install-wireshark-on-ubuntu

CentOS 7 PHP version7.2 official repository

CentOS 7 PHP version7.2 official repository Command to install the EPEL repository configuration package: yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm Command to install the Remi repository configuration package: yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm Command to install the yum-utils package (for the yum-config-manager command): yum install yum-utils If you want a single version which means replacing base packages from the distribution Packages have the same name than the base repository, ie php-* Some common dependencies are available in remi-safe repository, which is enabled by default PHP version 7.2 packages are available for CentOS 7 in remi-php72 repository If the priorities plugin is enabled, ensure remi-php72 have higher priority (a lower value) than base and updates Command to enable the repository: yum-config-manager --enable remi-php72 Command to upgrade (the reposito

bash script to install java on Linux

Install JDK 7 or JDK 8 by Shell Script on Linux Create a file on root directory with name of jdk-install.sh and give execute permission. # touch /root/jdk-install.sh # chmod +x jdk-install.sh #sh jdk-install.sh  jdk-archive-file.tar.gz ###################### #!/bin/bash ORACLE_DOWNLOAD_LINK=http://www.oracle.com/technetwork/java/javase/downloads/index.html ########## if [ "$#" = 0 ] then echo "Usage:$0 [options] jdk-archive-file.tar.gz" exit 1 fi JDK_ARCHIVE=$1 #Check if the script is running with root permissions if [ `id -u` -ne 0 ]; then    echo "The script must be run as root! (you can use sudo)"    exit 1 fi #   Is the file a valid archive? echo -n "Validating the archive file... " gunzip -t $JDK_ARCHIVE 2>> /dev/null if [ $? -ne 0  ]; then    echo "FAILED"    echo    echo "Provided file is not a valid .tar.gz archive: $JDK_ARCHIVE"    echo    echo "Be sure to download Linux .ta

Install SSL Certificate on Webmin

Download and Extract SSL certificates After getting an SSL certificate in a zip file via your email, download and extract certificate files (primary and intermediate certificate) to a local directory. Replace old minserv.pem file: Locate miniserv.Pem file (usually in /etc/webmin/). Now it is time to replace mineserv.Pem file with a combination of a private key and primary certificate. Basically, you can create a new miniserv.Pem file in two ways. Run the command : cat private.key yourcommonname.crt > new_miniserv.pem Note: the private.key used in the above command is the file of your private key and

How To Reset Your Forgotten Root Password On CentOS/Ubuntu Servers

Image
CentOS 6 Click [View Console] to access the console and click the send CTRL+ALT+DEL button on the top right. Alternatively, you can also click [RESTART] to restart the server. You will see a GRUB boot prompt telling you to press any key - you have only a few seconds to press a key to stop the automated booting process. (If you miss this prompt you will need to restart the VM again) At the GRUB prompt, type "a" to append to the boot command. Add the text "single" and press enter. System will boot and you will see the root prompt. Type "passwd" to change the root-password and then reboot again. CentOS 7 Click [View Console] to access the console and click the send CTRL+ALT+DEL button on the top right. Alternatively, you can also click [RESTART] to restart the server. As soon as the boot process starts, press ESC to bring up the GRUB boot prompt. You may need to turn the system off from the control panel and then back on to reach the GRUB bo