Wednesday, October 18, 2023

HOW TO SSH TO RPI

 In Windows 10:

Press Win+R
Enter ssh pi@ your piaware local IP


FlightAware / PiAware running log

 To follow a file while it is being updated, you can use:

tail -f /var/log/piaware.log


Tuesday, October 17, 2023

Disable MLAT (Multilateration) on Flightradar24 (FR24) feed on your Raspberry Pi

 Important! If you are sharing to other networks alongside Flightradar24, please disable MLAT.

When the installation is complete, please make the change in either the Raspberry Pi’s Web UI or edit the fr24feed.ini config file.

MLAT=“no”
MLAT-without-gps=“no”

Apabila mendapat mesej ini semasa selesai combine feed flightaware dan fr24. apa yang perlu di lakukan ialah :

sudo nano /etc/fr24feed.ini

cari line yang berkaitan MLAT dan akan kelihatan seperti di bawah...

MLAT="yes"
MLAT-without-gps="yes"

dan ubah menjadi seperti dibawah....

MLAT="no"
MLAT-without-gps="no"

kemudian save dan restart Flightradar24 

sudo systemctl restart fr24feed

jumpa lagi 73 de 9m2zak.

Saturday, September 16, 2023

How to get grant execute permissions

The "Permission denied" error you're encountering indicates that you don't have 
execute permissions for the build.sh script. To fix this, you'll need to grant execute 
permissions to the script before running it. Here's how you can do that:

Check Current Permissions:
Run the following command to view the current permissions for the build.sh script:


                                        ls -l build.sh

This will show you the permissions in the format -rwxr-xr-x where the 'x' indicates 
execute permissions.

Grant Execute Permissions:
If the script doesn't have execute permissions (lacking 'x'), you can grant them using 
the chmod command:


                                      chmod +x build.sh

This command adds execute permissions to the script.

Verify Permissions:
Run ls -l build.sh again to confirm that execute permissions have been granted.

Run the Script:
Now you should be able to run the script:


                                    ./build.sh

If successful, this will execute the script.

Friday, August 18, 2023

How to Install 3.5 inch TFT LCD Display on Raspberry Pi Zero

 ikut step ini.

sudo rm -rf LCD-show 

git clone https://github.com/goodtft/LCD-show.git 

chmod -R 755 LCD-show 

cd LCD-show/

sudo ./LCD35-show

sudo mkdir -p /etc/X11/xorg.conf.d

sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/

sudo cp ./usr/tft35a-overlay.dtb /boot/overlays/tft35a.dtbo

sudo cp -rf ./usr/99-calibration.conf-35  /etc/X11/xorg.conf.d/99-calibration.conf

sudo cp -rf ./usr/99-fbturbo.conf  /usr/share/X11/xorg.conf.d/

sudo cp ./usr/cmdline.txt /boot/

sudo cp ./usr/inittab /etc/

sudo cp ./boot/config-35.txt /boot/config.txt

sudo reboot


jika nak patah balik ke hdmi....


chmod -R 755 LCD-show 

cd LCD-show/ 

sudo ./LCD-hdmi

ini hasilnya



Sunday, August 13, 2023

Update weathex : versi ada serial number

 bagi yg mengikuti post, di bawah ini. 

https://9m2zak.blogspot.com/2023/07/how-to-decode-radiosonde-weathex-wxr.html

https://9m2zak.blogspot.com/2023/07/how-to-decode-radiosonde-weathex-wxr_28.html

https://9m2zak.blogspot.com/2023/08/run-automatik-weathex-on-startup.html 

kalian semua jangan risau pasal update ini. apa yang perlu dilakukan ialah :

  $  mv RS RS.old

  $  git clone -b test https://github.com/rs1729/RS

  $  cd RS/weathex/

  $  gcc weathex301d.c -lm -o weathex

dan nanti akan keluar seperti ini. Kali ini siap dengan serial number.



terima kasih diucapkan kepada Wak Mit 9M2TPT di atas info berkenaan update ini dan juga resepi command line yang diberikan. Ianya berjalan umpama juara. Jumpa lagi pada post-post mendatang. 73




Thursday, August 10, 2023

add a new symbolic link (symlink) to the wordlists directory

 Symbolic links are used to create references to files or directories in other locations

1. Navigate to wordlists directory 

cd/usr/share/wordlists/


2. Create the Symlink

ln -s /path/to/original /path/to/symlink

contoh, 

ln -s ~/wordlist_aku.txt /usr/share/wordlists/wordlist_baru_aku.txt


3. Verify the Symlink

ls -1

output example:

lrwxrwxrwx 1 user user   10 Aug 23 15:00 newlist.txt -> /home/user/my_wordlist.txt

Sunday, August 6, 2023

Raspberry pi NO_PUBKEY 0E98404D386FA1D9 NO_PUBKEY 6ED0E7B82643E131

If you're encountering the "NO_PUBKEY" error while working with a Raspberry Pi, you can still follow a similar process to resolve the issue. Here's how you can import the missing GPG keys on your Raspberry Pi:

1. Open a terminal on your Raspberry Pi.

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9

2. Use the following commands to import the missing GPG keys:

    For the first key (0E98404D386FA1D9):

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 0E98404D386FA1D9

    For the second key (6ED0E7B82643E131):

    sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6ED0E7B82643E131

3. Once you've imported the keys, you can try running your package manager command again to install or update packages on your Raspberry Pi.



Saturday, August 5, 2023

Run automatik weathex on Startup Raspberry Pi

Buat bash script untuk KLIA dahulu. namakan klia.sh

#!/bin/bash

# Change to the desired directory

cd ~/RS/weathex

# Run your command

rtl_fm -M fm -s 64k -f 401.1M | sox -t raw -r 64k -e s -b 16 -c 1 - -r 48000 -t wav - lowpass 4000 2>/dev/null | ./weathex -b

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

make the script executable

chmod +x klia.sh

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

Create a Desktop Entry

sudo apt update

sudo apt install lxterminal

mkdir -p ~/.config/autostart

nano ~/.config/autostart/myscript.desktop

[Desktop Entry]

Type=Application

Exec=lxterminal --command="/home/pi/klia.sh"

Hidden=false

NoDisplay=false

X-GNOME-Autostart-enabled=true

Name[en_US]=My Script

Name=My Script

Comment[en_US]=Run myscript.sh on startup

Comment=Run myscript.sh on startup

__________________________________________________________

save dan exit. Kemudian restart. jika gagal... double check pada path dan ejaan adakah  betul klia.sh ada disitu. bagi Kuantan, KB dan Bayan Lepas tu hanya perlu ganti freq sahaja.





video di atas adalah hasilnya. semoga bermanfaat. 73


Friday, August 4, 2023

stop and delete the x11vnc service

To stop and delete the x11vnc service that you previously set up, follow these steps:

1. Stop the x11vnc Service:
   Use the following command to stop the x11vnc service:

  
   sudo systemctl stop x11vnc.service
  

   This command will immediately stop the x11vnc service if it's currently running.

2. Disable the x11vnc Service
   Disable the x11vnc service to prevent it from starting automatically on boot:

   
   sudo systemctl disable x11vnc.service
  

3. Delete the Service Unit File
   Delete the systemd service unit file that you created earlier to remove the x11vnc service definition:

   
   sudo rm /etc/systemd/system/x11vnc.service
   

4. Reload systemd and Clean Up
   After deleting the service unit file, reload the systemd manager and clean up any remnants:

   
   sudo systemctl daemon-reload
   

5. Stop x11vnc Process (if running)
   Verify that the x11vnc process is not running. You can use the `ps` command to check for running processes:

   
   ps aux | grep x11vnc
   

   If you see any x11vnc processes still running, you can terminate them using the `kill` command:

   
   sudo pkill x11vnc
  


Connect a GPS module to a Raspberry Pi 4

  To connect a GPS module with four wires (RST, TX, VCC, and GND) to a Raspberry Pi 4, follow these steps:  Materials Needed: 1. GPS module ...