Showing posts with label Raspberry Pi3. Show all posts
Showing posts with label Raspberry Pi3. Show all posts

Saturday, September 25, 2021

docker: unknown server OS:

 Jika alami masalah berikut semasa ingin cuba run docker, di bawah ini adalah jalan penyelesaiannya. Saya sudah mencubanya dan ianya berkesan.

sudo chmod 666 /var/run/docker.sock

kemudian test dengan hello-world

docker run hello-world

dan akan keluar ini jika sukses.


semoga bermanfaat. 73.

Sodu apt-get update fails

 Jika alami masalah ini, maka mungkin masalah DNS, so selesaikan dengan cara ini, ini bagi kes sayalah.

edit    /etc/dhcpcd.conf   dan tambah atau edit 

line static_domain_name_servers =8.8.8.8

jumpa lagi.

Sunday, May 20, 2018

GENERAL COMMANDS

  • apt-get update: Synchronizes the list of packages on your system to the list in the repositories. Use it before installing new packages to make sure you are installing the latest version.
  • apt-get upgrade: Upgrades all of the software packages you have installed.
  • clear: Clears previously run commands and text from the terminal screen.
  • date: Prints the current date.
  • find / -name example.txt: Searches the whole system for the file example.txt and outputs a list of all directories that contain the file.
  • nano example.txt: Opens the file example.txt in the Linux text editor Nano.
  • poweroff: To shutdown immediately.
  • raspi-config: Opens the configuration settings menu.
  • reboot: To reboot immediately.
  • shutdown -h now: To shutdown immediately.
  • shutdown -h 01:22: To shutdown at 1:22 AM.
  • startx: Opens the GUI (Graphical User Interface).

FILE AND DIRECTORY COMMANDS

  • cat example.txt: Displays the contents of the file example.txt.
  • cd /abc/xyz: Changes the current directory to the /abc/xyz directory.
  • cp XXX: Copies the file or directory XXX and pastes it to a specified location; i.e. cp examplefile.txt /home/pi/office/ copies examplefile.txt in the current directory and pastes it into the /home/pi/ directory. If the file is not in the current directory, add the path of the file’s location (i.e. cp /home/pi/documents/examplefile.txt /home/pi/office/ copies the file from the documents directory to the office directory).
  • ls -l: Lists files in the current directory, along with file size, date modified, and permissions.
  • mkdir example_directory: Creates a new directory named example_directory inside the current directory.
  • mv XXX: Moves the file or directory named XXX to a specified location. For example, mv examplefile.txt /home/pi/office/ moves examplefile.txt in the current directory to the /home/pi/office directory. If the file is not in the current directory, add the path of the file’s location (i.e. cp /home/pi/documents/examplefile.txt /home/pi/office/ moves the file from the documents directory to the office directory). This command can also be used to rename files (but only within the same directory). For example, mv examplefile.txt newfile.txt renames examplefile.txt to newfile.txt, and keeps it in the same directory.
  • rm example.txt: Deletes the file example.txt.
  • rmdir example_directory: Deletes the directory example_directory (only if it is empty).
  • scp user@10.0.0.32:/some/path/file.txt: Copies a file over SSH. Can be used to download a file from a PC to the Raspberry Pi. user@10.0.0.32 is the username and local IP address of the PC, and /some/path/file.txt is the path and file name of the file on the PC.
  • touch example.txt: Creates a new, empty file named example.txt in the current directory.

NETWORKING AND INTERNET COMMANDS

  • ifconfig: To check the status of the wireless connection you are using  (to see if wlan0 has acquired an IP address).
  • iwconfig: To check which network the wireless adapter is using.
  • iwlist wlan0 scan: Prints a list of the currently available wireless networks.
  • iwlist wlan0 scan | grep ESSID: Use grep along with the name of a field to list only the fields you need (for example to just list the ESSIDs).
  • nmap: Scans your network and lists connected devices, port number, protocol, state (open or closed) operating system, MAC addresses, and other information.
  • ping: Tests connectivity between two devices connected on a network. For example, ping 10.0.0.32will send a packet to the device at IP 10.0.0.32 and wait for a response. It also works with website addresses.
  • wget http://www.website.com/example.txt: Downloads the file example.txt from the web and saves it to the current directory.

SYSTEM INFORMATION COMMANDS

  • cat /proc/meminfo: Shows details about your memory.
  • cat /proc/partitions: Shows the size and number of partitions on your SD card or hard drive.
  • cat /proc/version: Shows you which version of the Raspberry Pi you are using.
  • df -h: Shows information about the available disk space.
  • df /: Shows how much free disk space is available.
  • dpkg – –get–selections | grep XXX: Shows all of the installed packages that are related to XXX.
  • dpkg – –get–selections: Shows all of your installed packages.
  • free: Shows how much free memory is available.
  • hostname -I: Shows the IP address of your Raspberry Pi.
  • lsusb: Lists USB hardware connected to your Raspberry Pi.
  • UP key: Pressing the UP key will print the last command entered into the command prompt. This is a quick way to repeat previous commands or make corrections to commands.
  • vcgencmd measure_temp: Shows the temperature of the CPU.
  • vcgencmd get_mem arm && vcgencmd get_mem gpu: Shows the memory split between the CPU and GPU.

Tuesday, March 27, 2018

Raspberry Pi Resolution Changes

Apabila kita sambungkan Pi ke monitor komputer, saya pasti, kita akan mengalami masalah resolution, iaitu imej menjadi pecah dan tidak sharp. Jika perkara ini berlaku maka sesuatu perlu dilakukan untuk mendapatkan imej yang cantik serta tidak pecah. Jadi marilah kita selesaikan masalah kita tersebut.

Pertama sekali kita lihat apakah set resolution yang ada dalam Pi kita, untuk itu... pada terminal, sila taip :

$ tvservice -m DMT












paparan berikut akan keluar, cuba perhatikan dengan teliti, terdapat 6 modes ( 6 mode ini bagi Pi3 sayalah, jika anda punya, manalah saya tahu berapa)

kemudian jika ada perasan, ada perkataan (prefer) pada mode 35, iaitu pada resolusi 1280x1024 @ 60Hz 5:4, clock :108MHz progressive

Jadi apa yang perlu dilakukan ialah ingat pada mode berapakah yang dicadangkan oleh system. Dalam kes saya, mode 35.

Kemudian, untuk tukar setting resolution ke mode yang dicadangkan itu. Sila taip :

$ sudo nano /boot/config.txt











kemudian pada paparan nano, sila edit atau tambah pada bahagian # DMT (computer monitor) modes. Dalam kes saya, saya tambah perkataan hdmi_mode=35. 

















Saya sengaja tidak padam atau gantikan hdmi_mode=1 tetapi tambah hdmi_mode=3 dengan bertujuan untuk melihat apa yang akan terjadi. Kemudian save perubahan yang kita buat pada nano dan reboot untuk melihat hasilnya.


















selepas reboot, paparan pada monitor saya menjadi lebih cantik dan tiada lagi masalah imej pecah dan tidak jelas. Perkataan pada skrin dapat dibaca dengan jelas dan terang sekali. Jadi ini bermakna monitor komputer saya memerlukan setup pada mode 3 iaitu pada resolusi 1280x1024. Jadi fahamlah saya kini. Bagi yang ingin mencuba untuk siasat apakah resolusi yang sesuai untuk monitor dan Pi3 anda, bolehlah mencubanya nanti. Lupa nak beritahu, saya guna monitor jenis LCD dan guna VGA to HDMI converter. 73 Zaki.

Sumber rujukan :

Wednesday, August 2, 2017

delete file, direktori

Delete file : $ rm (nama file)

Delete direktori : $ rm -rf (direktori)/

Thursday, July 20, 2017

acarsdec 3.4 : Monitoring Full Message Format Past #2

Dibawah ini adalah data yang diperoleh daripada pemantauan selama 12 jam, iaitu bermula dari jam 12 tengah malam semalam sehingga jam 12 tengahari sebentar tadi.


./acarsdec -o2 -v -p -22 -g 400 -r 0 131.450 131.550 131.475 131.725 131.825 131.850

Jika diperhatikan, channel #1 dan channel #2 adalah sangat aktif, manakala channel #3 hanya satu packet sahaja yang diperoleh (data yang dihitamkan).


Data ini diperoleh daripada ant mobile dual band Diamond UHF/VHF yang hanya diletakkan diatas bumbung rak buku dalam shack kawan. Bermakna ant indoorlah. Maknanya bolehlah juga ye gunakan indoor ant, tetapi ianya bergantung kepada lokasi juga rasanya, lokasi kawan bertuah, sebab airport hanya 5 minit drive dari base kawan dan sea level pula adalah 72 kaki dari paras laut. Jadi aku rasa faktor lokasi juga membantu nih.

[#2 (F:131.550 L: -31 E:0) 20/07/2017 14:45:45 --------------------------------

Mode : B Label : Q0 Id : 8 Nak

Aircraft reg: .9V-OFD Flight id: TZ0292

No: S93A


[#1 (F:131.450 L: -24 E:0) 20/07/2017 15:33:46 --------------------------------

Mode : 2 Label : Q0 Id : 2 Nak

Aircraft reg: .9M-AHD Flight id: AK6049

No: S81A


[#3 (F:131.475 L: -28 E:0) 20/07/2017 15:33:46 --------------------------------

Mode : 2 Label : Q0 Id : 2 Nak

Aircraft reg: .9M-AHD Flight id: AK6049

No: S81A


[#1 (F:131.450 L: -28 E:2) 20/07/2017 16:07:49 --------------------------------

Mode : 2 Label : 80 Id : 7 Nak

Aircraft reg: .9M-AHQ Flight id: AK5411

No: M62A

3N01 POSRPT 5411/20 WBGG/WMKJ .9M-AHQ

/POS N01421E103388/ALT +01148/MCH 203/FOB 0032/ETA 1608


[#1 (F:131.450 L: -21 E:0) 20/07/2017 16:18:04 --------------------------------

Mode : 2 Label : 80 Id : 2 Nak

Aircraft reg: .9M-AQN Flight id: AK1726

No: M73A

3N01 POSRPT 1726/20 WSSS/WMKP .9M-AQN

/POS N01456E103523/ALT +18753/MCH 642/FOB 0058/ETA 1707


[#2 (F:131.550 L: -22 E:1) 20/07/2017 16:28:32 --------------------------------

Mode : S Label : Q0 Id : 2 Nak

Aircraft reg: .G-CLAB Flight id: P30449

No: S82A


[#2 (F:131.550 L: -22 E:0) 20/07/2017 16:28:54 --------------------------------

Mode : S Label : Q0 Id : 2 Nak

Aircraft reg: .G-CLAB Flight id: P30449

No: S82A


[#1 (F:131.450 L: -21 E:1) 20/07/2017 17:18:33 --------------------------------

Mode : 2 Label : _d Id : 6 Ack : S

Aircraft reg: .A6-EBW Flight id: EK0349

No: S54A


[#1 (F:131.450 L: -23 E:1) 20/07/2017 17:18:41 --------------------------------

Mode : 2 Label : _d Id : 7 Ack : T

Aircraft reg: .A6-EBW Flight id: EK0349

No: S55A


[#2 (F:131.550 L: -23 E:3) 20/07/2017 18:45:35 --------------------------------

Mode : S Label : _d Id : 0 Ack : W

Aircraft reg: .A6-EOM Flight id: EK0449

No: S15A


[#1 (F:131.450 L: -23 E:3) 20/07/2017 19:31:06 --------------------------------

Mode : 2 Label : _d Id : 5 Ack : T

Aircraft reg: ..VQBMM Flight id: XA0000

No: M27A


[#2 (F:131.550 L: -18 E:1) 20/07/2017 22:36:33 --------------------------------

Mode : J Label : H1 Id : 2 Nak

Aircraft reg: .9M-FFF Flight id: MH1034

No: D42A

#DFB'''''072017223502         002922470106795785


[#2 (F:131.550 L: -17 E:0) 20/07/2017 22:36:37 --------------------------------

Mode : J Label : H1 Id : 3 Nak

Aircraft reg: .9M-FFF Flight id: MH1034

No: D42B

#DFB       0000000000          0517005181

 

[#2 (F:131.550 L: -17 E:0) 20/07/2017 22:36:49 --------------------------------

Mode : J Label : H1 Id : 3 Nak

Aircraft reg: .9M-FFF Flight id: MH1034

No: D42B

#DFB       0000000000          0517005181


[#2 (F:131.550 L: -17 E:1) 20/07/2017 22:36:58 --------------------------------

Mode : J Label : H1 Id : 3 Nak

Aircraft reg: .9M-FFF Flight id: MH1034

No: D42B

#DFB       0000000000          0517005181


[#2 (F:131.550 L: -19 E:1) 20/07/2017 23:04:11 --------------------------------

Mode : B Label : _d Id : 7 Ack : W

Aircraft reg: .9M-MXI Flight id: MH0602

No: S47A


[#2 (F:131.550 L: -17 E:0) 21/07/2017 01:43:20 --------------------------------

Mode : S Label : SA Id : 6 Nak

Aircraft reg: .VT-ANR Flight id: AI0347

No: S17A

0LH014320VS/

acarsdec 3.4 : Monitoring Full Message Format

modifikasi mcx - pl259
Proses modifikasi ini sebenarnya adalah yang kali kedua, yang pertama sebenarnya hilang. Entah...aku pun tak pasti mana dia pergi, dua hari aku mencari. Tak jumpa-jumpa, jadi aku ambil keputusan untuk buat satu lagi. Lama juga proses membuatnya. Mula jam 8.30 malam hingga pukul 10.30 baru siap. 2 jam lebih masa diambil untuk proses solder sahaja. Mata aku sudah tidak seperti dahulu. Baru aku sedar, aku rupanya rabun dekat. Bercinta untuk solder...sebab bergelut dengan mata yang kurang nampak. Banyak kesilapan berlaku dan proses resolder sentiasa berulang. Lepas ni, akan pergi tempah cermin mata.

Projek aku sebenarnya pada malam ini adalah untuk monitor acarsdec dalam mode full message format, iaitu  ( o2 )

 ./acarsdec -o2 -v -p -22 -g 400 -r 0 131.450 131.550 131.475 131.725 131.825 131.850

oleh kerana acarsdec 3.4 ini mampu untuk decode 6 channel sekaligus, maka sebab itu aku masukkan enam freq terus iaitu 131.450, 131.550, 131.475, 131.825, 131.725, 131.850. Saja nak tengok, bagaimana jadinya.

Antenna yang digunakan pula adalah QFH, antenna yang resonant pada fre 137mhz. Sebenarnya ini adalah ant yang dibuat semasa projek NOAA haritu. Oleh kerana NOAA sudah sukses, maka kawan gunakan ia untuk acars pula. Projek selepas ini, nak buat QFH khas untuk freq ACARS.


Selepas beberapa minit monitor, ianya terus tangkap beberapa signal. Ada tiga mesej berjaya dipintas, lihat gambar dibawah.

Satu permulaan yang baik. Jadi... aku akan biarkan ia pada malam ini sehingga pagi esok. Esok pagi kita tengok macam mana hasilnya..berapakah jumlah mesej yang berjaya dipintas. Jika bernasib baik, akan dapat mesej yang baik serta berguna kandungannya. 73
 

Sunday, July 16, 2017

acarsdec output format : Monitoring mode


Kali ini, aku eksperiment pula dengan output format ( -o ). Sebenarnya ada tiga format output bagi acarsdec ini, iaitu:

1. One line by message format (-o1 )

/acarsdec -o1 -v -p -22 -g 400 -r 0 131.450 131.550 

2. Full message format ( -o2 )

/acarsdec -o2 -v -p -22 -g 400 -r 0 131.450 131.550 

3. Monitoring mode ( -o3 )

/acarsdec -o3 -v -p -22 -g 400 -r 0 131.450 131.550 

Tetapi dalam post kali ini, aku cuba monitoring mode, iaitu -o3. Hasil daripada pemantauan, aku berjaya kutip 4 pesawat yang kebetulan melintas sekitar QTH aku iaitu AK0379, JHBWMK, TR2664 dan AK5031.  Selepas ini akan cuba eksperiment dengan format lain pula. 73 zaki.

Bila KA9Q Tiba-Tiba “Hang” Walaupun Service Masih Active — Cara Saya Buat Auto-Recovery Untuk Radiosonde Auto-RX

  Cara saya buat auto-recovery untuk Radiosonde Auto-RX + KA9Q + Airspy Mini Beberapa hari selepas setup Radiosonde Auto-RX 1.9.0 + KA9Q + A...