1.Configure the host name<switch>system-view [switch]sysname H3C 2.Create VLAN<switch>system-view[switch]vlan 1003.Delete VLAN <switch>system-view[switch]undo vlan 1004.Add IP to VLAN Interface for management<switch>system-view[switch]interface Vlan-interface 100[switch-Vlan-interface100]ip address 192.168.0.100 255.255.255.0[switch-Vlan-interface100]display...
Friday, January 5, 2024
Wednesday, November 29, 2023
Prometheus and Grafana : Monitor BIND DNS server
1.Pre-requisites- BIND need to have been build with libxml2 support# named -V | grep libxml22.Installed Bind Prometheus Exporter- Download the latest release of bind_exporter binary:# curl -s https://api.github.com/repos/prometheus-community/bind_exporter/releases/latest | grep browser_download_url | grep linux-amd64 | cut -d '"' -f 4 | wget -qi -# tar xvf bind_exporter*.tar.gz# sudo mv...
Monday, November 6, 2023
Virtualmin : CLI Backup and Restore
Backup#virtualmin backup-domain --source /home/xxx.tar.gz --all-domains --all-features Restore#virtualmin restore-domain --source /home/xxx.tar.gz --all-domains --all-featuresTransfer/Replication#virtualmin transfer-domain --domain xxx.com --host hostname --pass 1234 --replication --output --overwrite*Issue GPG Failed#sudo sh -c "$(curl -fsSL https://software.virtualmin.com/gpl/scripts/virtualmin-install.sh)"...
Friday, October 20, 2023
Ubuntu : Static IP Ubuntu 22.04
Disable Cloud #sudo vi /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg network: {config: disabled} Config static IP #sudo vi /etc/netplan/xxxx.yaml network: ethernets: ens160: addresses: [192.168.0.7/24] routes: - to: default ...
Monday, October 9, 2023
Webmin : GPG error: the public key is not available: NO_PUBKEY
Issue : GPG error: the public key is not available: NO_PUBKEYSolution :#cd /usr/share/webmin/
#./setup-repos.sh...
Friday, May 12, 2023
Ubuntu : Extending LVM Volume
1. Check for free space by running. #cfdisksee if there is free space listed, can proceed to step 2if don’t see free space listed, initiate a rescan of
/dev/sda#echo 1>/sys/class/block/sda/device/rescanonce done, re-run
#cfdisk 2. Select which partition to extending. Example - /dev/sda3 partition from the list and then select “Resize”3. ENTER and it will prompt to confirm the new size. Now...
Friday, April 7, 2023
Microsoft : Change Remote Desktop port
The stepStart the registry editor. (Type regedit in the Search box.)Navigate to the following registry subkey:
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Terminal Server\WinStations\RDP-TcpFind PortNumberClick Edit > Modify, and then click Decimal.Type the new port number, and then click OK.Close the registry editor, and restart your computer. Check the current port by running...
Tuesday, March 28, 2023
Note : The list required to install and configure
Checklist to activate hosting server (php, laravel and sql server)Install VirtualminUpgrade PHP8.1 or latestTo connect with Oracle DB - install OCI8To connect with MSSQL - install ODBC, sqlsrv, pdo_sqlsrvInstall Laravel - install composer, npm, node # Previous OS Centos 7 and below - install with latest OpenSSL 1.0.2k-fips# Latest OS Rocky9.1 and above - install with latest OpenSSL 3.0...
Monday, March 27, 2023
OpenSSL : Install and Upgrade version
1.Verify the current OpenSSL version# openssl version 2. Download the latest version OR previous version of OpenSSL# cd /usr/local/src# wget https://www.openssl.org/source/openssl-X.X.X.tar.gz# tar -xvzf openssl-X.X.X.tar.gz3.Manually compile and install OpenSSL# cd openssl-1.0.2l#./config# make depend# make# make test# make install4.Move the newly installed OpenSSL binary to the PATH# mv...
Friday, March 24, 2023
Rocky 9 : Install PHP8.3 & PHP-FPM
Install PHP 1.Add the EPEL (Extra Packages for Enterprise Linux) repository #dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm2.Add the REMI repository for Rocky Linux 9#dnf install https://rpms.remirepo.net/enterprise/remi-release-9.2.rpm 3. Install yum utilities. #dnf -y install yum-utils4.Verify the list of an available repositories on the Rocky Linux system#dnf...
Subscribe to:
Posts (Atom)