Sep 8, 2022

Adobe Reader : Incorrect Printer Selection

 Recently encountered a weird problems with Adobe Reader, any opened PDF file when wanted to print...

Either the list of available printer is not available or some list of printer is listed but not the one you wanted select...

Also when checking Control Panel --> Devices and Printers, the said printer is correctly installed but was not able to make it as default printer, error message displayed "Adobe Error 0x00000709, Cannot set default printer....."

1) Open regedit.exe --> HKEY_CURRENT_USER\Software\Microsoft\WindowsNT\CurrentVersion\Windows

2) Right-Click --> Windows --> Select --> Permissions --> Select --> Full Control.

3) Right-Click --> Device --> Select --> Modify --> [Printer's Name].

4) Restart Computer.


!!! HAPPY COMPUTING !!!


Aug 27, 2022

Zabbix Server : Installation (Part 1)

 Zabbix Monitoring Server is an Open Source software suitable for Personal and Commercial use. This installation guide is based on Ubuntu Server v.22.04 LTS 64-bit thus I will not be going thru the OS installation steps but will highlight some important steps prior to installing Zabbix.

As of writing the current Zabbix Server v.6.2, more information is available at (https://www.zabbix.com/)

After completed installing Ubuntu Server, you will need to do the following :-

1. sudo timedatectl set-timezone Asia/Kuala_Lumpur

2. sudo apt update && sudo apt upgrade -y

3. sudo apt install nano net-tools wget git -y

4. sudo apt install mysql-server php apache2 -y

5. sudo reboot

6. sudo apt install php-gd php-bcmath php-ctype php-xml php-xmlreader php-xmlwriter php-net-socket php-mbstring php-ldap -y

7. sudo apt install php-session -y

8. sudo apt install php-gettext -y

9. sudo reboot

10. sudo apt update

11. sudo wget https://repo.zabbix.com/zabbix/6.2/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.2+ubuntu22.04_all.deb

12. sudo dpkg -i zabbix-release_6.2+ubuntu22.04_all.deb

13. sudo apt update

14. sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

15. sudo reboot

16. sudo mysql -uroot -p    (key-in 'password' when prompted)

17. Under MYSQL prompt :-

  • create database zabbix character set utf8mb4 collate utf8mb4_bin;
  • create user zabbix@localhost identified by 'password';
  • grant all privileges on zabbix.* to zabbix@localhost;
  • set global log_bin_trust_function_creators = 1;
  • quit;
18. sudo zcat /usr/share/doc/zabbix-sql-scripts/mysql/server.sql.gz | mysql -uzabbix -p zabbix        (key-in 'password' when prompted)

19. sudo mysql -uroot -p        (key-in 'password' when prompted)

20. Under MYSQL prompt :-

  • set global log_bin_trust_function_creators = 0;
  • quit;
21. sudo nano /etc/zabbix/zabbix_server.conf
  • DBPassword=password
22. sudo systemctl restart zabbix-server zabbix-agent apache2

23. sudo systemctl enable zabbix-server zabbix-agent apache2

24. sudo reboot

25. At another computer, open browser --> http://[Zabbix's IP Address]/zabbix
  • DB Type = MySQL
  • DB Name = zabbix
  • DB User = zabbix
  • DB Password = password
  • Zabbix Server Name = [Any Name]
  • Time Zone = (UTF+08:00) Asia/Kuala_Lumpur
26. Default Zabbix Login :-
  • Username = Admin          (case sensitive)
  • Password = zabbix          (case sensitive)

!!! HAPPY COMPUTING !!!

Aug 17, 2022

LUBUNTU : Command Line

 LUBUNTU v.20.04.1 64-bit : Command Line

1. sudo apt update

2. sudo apt upgrade -y

3. sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

4. sudo dpkg -i ~/downloads/google-chrome-stable_current_amd64.deb

5. sudo apt install fonts-liberation


Jun 30, 2022

Acer TravelMate P214-53 : Unable to detect NVMe Drive.

 Acer TravelMate P214-53 : Unable to detect NVMe Drive.

  1. Press --> F2 key to enter into BIOS.
  2. Goto --> Security tab --> Supervisor Password --> Enter a temporary password (eg. 1234)
  3. Disabled Secure Boot.
  4. Then --> Save & Exit.
  5. After restart, enter back into BIOS again and CLEAR the Supervisor Password but leave the Secure Boot option Disabled.
  6. Save & Exit.
  7. Download --> Intel RST for VMD Drivers --> Intel Download Center.
  8. Unzip drivers into USB Flash Drive.
  9. Boot Windows 10 installer as usual, you will not able to see any HDD/SSD detected.
  10. Click --> Load --> Browse --> Select --> Intel RST VMD folder.
  11. After load completed, you can now see the NVMe drive is detected.
  12. Proceed to format and install Windows 10 accordingly.
Special Note :
Sometimes the Intel RST Drivers although was loaded and able to detect the NVMe drive successfully, but Windows installer will prompt error message "0x80300001", just proceed to restart the computer again and boot into Windows install as usual and re-load the drivers again.

Apr 29, 2022

Zabbix : Install Zabbix-Agent in CentOS

 1. sudo rpm -Uvh https://repo.zabbix.com/zabbix/6.0/rhel/7/x86_64/zabbix-agent-6.0.3-1.el17.x86_64.rpm

* Check for latest version in https://repo.zabbix.com/zabbix.

2. sudo yum update

3. sudo yum install zabbix-agent -y

4. sudo nano /etc/zabbix/zabbix-agentd.conf

        --> Server = [Zabbix Server IP Address]

        --> Hostname = [CentOS hostname]

5. sudo iptables -A INPUT -p tcp -s [Zabbix server IP address] --dport 10050 -m state --state NEW,ESTABLISEHD -j ACCEPT

* If "firewalld" was install, add port 10050 into exception list.

6. sudo systemctl restart zabbix-agent

7. sudo systemctl enable zabbix-agent

8. sudo systemctl status zabbix-agent

9. Continue to add client host into Zabbix server via browser, select --> CentOS with Zabbix Agent


Zabbix : Install Zabbix-Agent in Ubuntu

 1. sudo wget https://repo.zabbix.com/zabbix/6.0/ubuntu/pool/main/z/zabbix-release/zabbix-release_6.0-1+ubuntu20.04_all.deb

* Visit https://repo.zabbix.com/zabbix for latest version.


2. sudo dpkg -i zabbix-release_6.0-1+ubuntu20.04_all.deb

3. sudo apt-get update

4. sudo apt-get install zabbix-agent -y

5. sudo nano /etc/zabbix/zabbix-agentd.conf

        --> Server = [Zabbix Server IP Address]

        --> ServerActive = [Zabbix Server IP Address]

        --> Hostname = [Ubuntu Client Hostname]


6. sudo systemctl restart zabbix-agent

7. sudo systemctl enable zabbix-agent

8. sudo systemctl status zabbix-agent

9. sudo ufw allow 10050/tcp          * check status --> sudo ufw status

OR --> sudo iptables -A INPUT -p tcp -s [Zabbix server IP address] --dport 10050 -m state --state NEW,ESTABLISEHD -j ACCEPT

* Some firewall may block or NAT the address, thus instead of using the Zabbix server IP address, use the firewall IP address.


10. Use another PC to browse the zabbix server (eg. http://[Zabbix Server IP Address]/zabbix) and login using your admin's credentials.

11. Continue to add the client into the monitoring --> Configuration --> Hosts --> Create Host

        --> Add --> Agent --> Linux with Zabbix Agent


Apr 27, 2022

Batch - IF Calculation

 Batch File Command "IF"

  • EQU = Equal to...
  • NEQ = Not Equal to...
  • LSS = Less than...
  • LEQ = Less than or Equal to...
  • GTR = Greater than...
  • GEQ = Greater than or Equal to...
Example :-

IF %INPUT% EQU 100 ECHO "EQUAL VALUE"
IF %INPUT% GEQ 100 ECHO "VALUE IS GREATER THAN OR EQUAL TO 100"