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
  


how to fix login loop issue

 Check User Ownership

 Make sure ur home directory and its contents are owned by ur user. incorrect ownership can cause login  issue.

sudo chown -R username:username /home/username

Replace 'username' with ur actual username.

How to rolling back upgrade lightdm

 1. kenalpasti version lama

apt-cache showpkg lightdm

2. uninstall versi terkini

sudo apt-get remove --purge lightdm

3. Install versi lepas

sudo apt-get install lightdm=previous_version

4. Block package yang baru install tadi supaya tidak update

sudo apt-mark hold lightdm

5. Configure dan restart lightdm

sudo dpkg-reconfigure lightdm

sudo systemctl restart lightdm



Chromebook OS tukar ke Linux/Window OS

Sebelum kita mulakan, pastikan chromebook anda ada tersenarai dalam list ni, jika tiada... sila beli yang ada dalam list tersebut. klik sin...