Sunday, June 18, 2023

Step-by-Step Guide - Installing XRDP on CentOS 7

Step-by-Step Guide - Installing XRDP on CentOS 7

Introduction:
XRDP is a remote desktop protocol that allows you to connect to your CentOS 7 server using a graphical interface. In this blog post, we will walk you through the process of installing XRDP on CentOS 7, enabling you to establish remote desktop connections effortlessly.

Step 1: Enabling EPEL Repository

Open your terminal and execute the following command to install the EPEL repository:

sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

Press Enter to start the installation process.

Step 2: Installing XRDP and TigerVNC Server

With the EPEL repository enabled, run the following command to install XRDP and the TigerVNC server:
 

sudo yum -y install xrdp tigervnc-server
 

Press Enter to begin the installation. Confirm any prompts if necessary.

Step 3: Starting and Enabling XRDP Service

Start the XRDP service by executing the following command:
 

sudo systemctl start xrdp

Verify that XRDP is running properly by checking its status:

sudo netstat -antup | grep xrdp

Enable XRDP to start automatically on system boot:


sudo systemctl enable xrdp

Step 4: Configuring Firewall Settings

Add a firewall rule to allow incoming connections on the XRDP default port (3389/tcp):

sudo firewall-cmd --permanent --add-port=3389/tcp

Reload the firewall to apply the changes:

sudo firewall-cmd --reload

Step 5: Adjusting SELinux Context

Set the SELinux context for the XRDP binaries:

sudo chcon --type=bin_t /usr/sbin/xrdp
sudo chcon --type=bin_t /usr/sbin/xrdp-sesman


Step 6: Modifying XRDP Configuration

Open the XRDP configuration file for editing:

cd /etc/xrdp
sudo nano xrdp.ini


Locate the line that starts with "ssl_protocols=" and replace it with the following:

ssl_protocols=TLSv1, TLSv1.1

Save the changes and exit the editor.

Step 7: Restarting XRDP Service

Restart the XRDP service to apply the configuration changes:

Save the changes and exit the editor.

Step 7: Restarting XRDP Service

Restart the XRDP service to apply the configuration changes:

sudo service xrdp restart

Conclusion:

By following this step-by-step guide, you have successfully installed and configured XRDP on CentOS 7. You can now connect to your CentOS server remotely using a remote desktop client.

Remember to ensure that appropriate security measures are in place, such as strong passwords and firewall configurations, to protect your remote desktop connections.

Enjoy the convenience of managing your CentOS 7 server with XRDP and the intuitive graphical interface it provides.

Happy remote desktop connections!

Ensuring a Valid WHM License: A Step-by-Step Guide / WHM License validation

Ensuring a Valid WHM License: A Step-by-Step Guide / WHM License validation

Introduction: -
 
A valid WHM (Web Host Manager) license is essential for managing your web hosting environment effectively. However, there may be instances where you encounter license validation issues. In this blog post, we will provide a detailed guide on how to validate your WHM license using the "/usr/local/cpanel/cpkeyclt --force" command.

Step 1: Accessing the Server via SSH

Launch your preferred SSH client (e.g., PuTTY) and establish a secure connection to your server.

Step 2: Executing the WHM License Validation Command

Once connected to the server via SSH, execute the following command:

/usr/local/cpanel/cpkeyclt --force

This command forces WHM to re-validate the license.

Press Enter to execute the command.

Step 3: License Validation Process

The license validation process may take a few moments. During this time, the system will communicate with the WHM licensing servers to verify the license.

Once the validation process is complete, you will receive a confirmation message indicating a successful license validation.

If any issues are encountered during the validation process, error messages or warnings will be displayed. In such cases, it is recommended to review the error messages and consult with your hosting provider or the WHM support team for further assistance.

Conclusion:
Validating your WHM license is crucial for uninterrupted web hosting management. By following the steps outlined in this blog post and executing the "/usr/local/cpanel/cpkeyclt --force" command, you can ensure that your WHM license is validated successfully.

Remember to regularly check the status of your WHM license to ensure its validity and compliance with the terms of service. In case of any license-related issues or persistent errors, it is advisable to reach out to your hosting provider or the WHM support team for prompt resolution.

Managing your web hosting environment with a valid WHM license provides you with the peace of mind and confidence needed to deliver reliable hosting services to your clients.

Happy hosting!

Fixing Windows Update Error 8050800C - A Step-by-Step Guide

Fixing Windows Update Error 8050800C - A Step-by-Step Guide

Introduction: -
Windows Update is an essential component of the Windows operating system, ensuring that your computer stays up to date with the latest security patches, bug fixes, and feature enhancements. However, sometimes errors can occur during the update process, such as the Windows Update error 8050800C. In this blog post, we will provide a detailed guide on how to resolve this error and get your system back on track.

Step 1: Creating and Running the Script

Open a text editor, such as Notepad, and copy the following script into the editor:

net stop bits
net stop wuauserv
net stop appidsvc
net stop cryptsvc

Del "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Downloader\qmgr*.dat"
Ren %systemroot%\SoftwareDistribution SoftwareDistribution.bak
Ren %systemroot%\system32\catroot2 catroot2.bak
sc.exe sdset bits D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
sc.exe sdset wuauserv D:(A;;CCLCSWRPWPDTLOCRRC;;;SY)(A;;CCDCLCSWRPWPDTLOCRSDRCWDWO;;;BA)(A;;CCLCSWLOCRRC;;;AU)(A;;CCLCSWRPWPDTLOCRRC;;;PU)
cd /d %windir%\system32
regsvr32.exe atl.dll /s
regsvr32.exe urlmon.dll /s
regsvr32.exe mshtml.dll /s
regsvr32.exe shdocvw.dll /s
regsvr32.exe browseui.dll /s
regsvr32.exe jscript.dll /s
regsvr32.exe vbscript.dll /s
regsvr32.exe scrrun.dll /s
regsvr32.exe msxml.dll /s
regsvr32.exe msxml3.dll /s
regsvr32.exe msxml6.dll /s
regsvr32.exe actxprxy.dll /s
regsvr32.exe softpub.dll /s
regsvr32.exe wintrust.dll /s
regsvr32.exe dssenh.dll /s
regsvr32.exe rsaenh.dll /s
regsvr32.exe gpkcsp.dll /s
regsvr32.exe sccbase.dll /s
regsvr32.exe slbcsp.dll /s
regsvr32.exe cryptdlg.dll /s
regsvr32.exe oleaut32.dll /s
regsvr32.exe ole32.dll /s
regsvr32.exe shell32.dll /s
regsvr32.exe initpki.dll /s
regsvr32.exe wuapi.dll /s
regsvr32.exe wuaueng.dll /s
regsvr32.exe wuaueng1.dll /s
regsvr32.exe wucltui.dll /s
regsvr32.exe wups.dll /s
regsvr32.exe wups2.dll /s
regsvr32.exe wuweb.dll /s
regsvr32.exe qmgr.dll /s
regsvr32.exe qmgrprxy.dll /s
regsvr32.exe wucltux.dll /s
regsvr32.exe muweb.dll /s
regsvr32.exe wuwebv.dll /s

netsh winsock reset

netsh winhttp reset proxy

net start bits
net start wuauserv
net start appidsvc
net start cryptsvc

wuauclt /Updatenow


Save the file with a .bat extension (e.g., fix_windows_update.bat) on your computer.

Step 2: Running the Script as Administrator

Locate the saved .bat file on your computer.
Right-click on the file and select "Run as administrator." 
This will ensure that the script has the necessary permissions to make changes to your system.

Step 3: Rebooting the System

Once the script execution is complete, restart your computer.
 
Note that it may take some time, possibly an hour or longer, for the Windows update to complete during the reboot process. This is especially true if you are using older hardware. Be patient and let the update process finish.

Conclusion:
By following the steps outlined in this blog post, you can effectively address the Windows Update error 8050800C. Running the provided script as an administrator and rebooting the system allows the necessary changes to be made, ensuring a smooth update process. It is important to stay up to date with Windows updates to keep your system secure and functioning optimally.

Please note that if you encounter any issues or if the error persists after following these steps, it is recommended to seek further assistance from technical support or Windows forums.

Remember, keeping your system updated is essential for maintaining its performance, security, and compatibility with the latest software and features.

Happy updating!

Wednesday, June 14, 2023

UniFi - How to Reset the UniFi Access Point to Factory Defaults

To reset a UniFi Access Point (UAP) to factory defaults, follow these detailed steps:

1. Access the UAP via SSH: -
 
Use an SSH client to establish a connection to the UniFi Access Point. You will need to enter the IP address or hostname of the UAP and provide your SSH credentials.
 
2.  Issue the reset command: -
 
Once connected via SSH, enter the following command:
 
set-default
 
Alternatively, you can use the command:
 
syswrapper.sh restore-default
 
Both commands achieve the same result.
 
3. Initiate the reset: -
 
Press the Enter key to execute the reset command. The UAP will now begin the process of resetting to its factory default settings.
 
4. Wait for the reboot: -
 
The UAP will quickly reboot to complete the reset process. During this time, it will revert to its default configuration settings.

Upon completion, the UniFi Access Point will be restored to its original factory default settings. 
 
** It's important to note that any configuration changes or customizations made to the device will be erased, and the UAP will need to be reconfigured.

MAC Ox Enable intl in Xampp / Installing "intl" extension on OSX

To enable the "intl" extension in XAMPP on macOS (Mac OS X), specifically for PHP, you can follow these detailed steps: -

1. Confirm PHP Path: -
 
Open a terminal window and enter the following command to check the PHP path:
 
which php
 
It should display the path as:
/Applications/XAMPP/xamppfiles/bin/php
 
**If it shows a different path such as /usr/bin/php, you need to update the path.

2. Update PHP Path: -
 
Set the PHP path to XAMPP by running the following command:
 
PATH="/Applications/XAMPP/xamppfiles/bin:${PATH}"

3. Install icu4c: -
 
Install the icu4c package by executing the following command using Homebrew:
 
brew install icu4c
 
This installation might take a few moments, and once completed, it will provide you with the path to icu4c, typically located at /usr/local/Cellar/icu4c/x.x.x.

4. Install intl Extension: -
 
Use the following commands to update channels and install the intl extension using pecl:

sudo pecl update-channels
sudo pecl install intl

During the installation, you will be prompted to provide the icu4c path obtained in the previous step.

5. Update php.ini: -
 
Open the php.ini file (located at /Applications/XAMPP/xamppfiles/etc/php.ini) using a text editor, and add the following statement:

extension=intl.so

Restart Apache:
Restart the Apache server in XAMPP to apply the changes.

6. Verify Installation: -
 
To verify that the intl extension is installed correctly, run the following command:
php -m | grep intl

It should return 'intl' if the installation was successful.

By following these detailed steps, you should be able to enable the "intl" extension in XAMPP on macOS and verify its installation.

Delete files / directory under client folder ISPConfig 3

To delete files or directories under the client folder in ISPConfig 3, follow the detailed steps below:-

 

1. Remove protection: -

Use the following command to remove the file attribute that provides protection:

chattr -i /var/www/clients/client6/web14/
 

2. Delete the folder: - 

Execute the following command to delete the folder named "05-03-2020.zip":

sudo rm -rf 05-03-2020.zip
 

Please exercise caution when using the rm command, as it permanently deletes files and directories.

3. Protect again: - 

After deleting the desired files or directories, reapply protection to the folder using the following command:

chattr +i /var/www/clients/client6/web14/
 

This command sets the file attribute to make it immutable, providing protection against accidental deletion or modification.

By following these steps, you can effectively delete files or directories under the client folder in ISPConfig 3 while ensuring appropriate protection is in place.

Tuesday, June 13, 2023

Back up and restore settings and configurations in IIS 6

 

To Backing up and restoring settings and configurations in IIS 6, please follow these steps:

  1. Open the IIS Manager.
  2. Right-click on the machine labeled as Local Computer.
  3. From the context menu, select All Tasks, then choose Backup/Restore Configuration, and click on Create Backup.
  4. Provide a name for the backed-up configuration, and click OK.
  5. Once the backup process is complete, click Close.
  6. Navigate to the %windir%\system32\inetsrv\MetaBack directory and copy the created backup to a local folder on your computer.
  7. If needed, proceed with reinstalling IIS.
  8. Open the local folder where you stored the backup file and copy it to the %windir%\system32\inetsrv\MetaBack directory.
  9. Open the IIS Manager once again.
  10. Right-click on the machine labeled as Local Computer.
  11. Select All Tasks, then Backup/Restore Configuration.
  12. Choose the backup name you wish to restore and click on Restore, followed by Yes and OK to confirm.
  13. Finally, click Close to complete the process.
Thank you

Back up and restore settings and configurations in IIS 7 / 8

To Backing up and restoring settings and configurations in IIS 7/8, please follow these steps:

  1. Open the command prompt (cmd.exe) with administrative privileges.
  2. Navigate to the directory %windir%\system32\inetsrv.
  3. Execute the following command to create a backup of the configuration: appcmd.exe add backup <backupname>.
  4. Locate the %windir%\system32\inetsrv\backup directory and copy the backup folder to a local folder on your computer.
  5. If necessary, reinstall IIS.
  6. Open the local folder where you stored the backup and copy the backup folder back to the %windir%\system32\inetsrv\backup directory.
  7. Execute the following command to restore the configuration from the backup: appcmd.exe restore backup <backupname>.

 

Thank you

Change Windows Network Location in Windows 10

Adjust the network location in PowerShell, please follow these steps:
  1. Open PowerShell as an administrator.
  2. Enter the command: Get-NetConnectionProfile Take note of the value displayed in the Name field.
  3. Next, execute the command: Set-NetConnectionProfile -Name "NetworkName" -NetworkCategory Private Replace "NetworkName" with the value you obtained from the previous command.
  4. To verify that the network location has been changed, run the command: Get-NetConnectionProfile Review the results to confirm the update.

 

Thanks

Intune - How to Capture the Hardware ID

 To capture the hardware ID using Intune, you can follow these steps:

  1. Sign in to the Microsoft Endpoint Manager admin center (https://endpoint.microsoft.com) with your Intune administrator account.

  2. Navigate to "Devices" in the left-hand menu.

  3. Select "All devices" or choose a specific device group from the list.

  4. Locate the device for which you want to capture the hardware ID and click on its name to open the device details page.

  5. In the device details page, scroll down to the "Properties" section.

  6. Look for the "Hardware ID" field. The hardware ID is a unique identifier assigned to the device by the hardware manufacturer.

Note: The availability and location of the hardware ID field may vary depending on the device platform (Windows, macOS, iOS, Android) and the specific version of Intune you are using. Ensure you have the necessary permissions and access rights to view device details and capture hardware IDs in your Intune environment.

Capturing hardware IDs can be useful for various device management tasks, such as device enrollment, configuration, and policy enforcement in Intune.

 ---------------------------------------------------

an alternative method for capturing the hardware ID using Windows PowerShell. Please follow the steps below in a considerate manner:

  1. Open Windows PowerShell.

  2. Enter the following commands sequentially:

    • md c:\HWID

    • Set-Location c:\HWID

    • Set-ExecutionPolicy -Scope Process -ExecutionPolicy Unrestricted -Force

    • Install-Script -Name Get-WindowsAutopilotInfo -Force

    • $env:Path += ";C:\Program Files\WindowsPowerShell\Scripts"

    • Get-WindowsAutopilotInfo.ps1 -OutputFile AutopilotHWID.csv

By executing these commands, an AutopilotHWID.csv file will be generated in the c:\HWID folder.

Thanks