Tuesday, May 16, 2017

How to get a colored bash and change the title of the current terminal tab



buka teks editor,

sudo nano .bashrc

tambah dua line ini,

PS1='\[\033[1;36m\]\u\[\033[1;31m\]@\[\033[1;32m\]\h:\[\033[1;35m\]\w\[\033[1;31m\]\$\[\033[0m\] ' #colour



PROMPT_COMMAND='echo -en "\033]0;9m2zak Terminal\a"'      #terminal 
pada perkataan 9m2zak Terminal tu, tukarlah ke apa-apa perkataan pilihan anda

kemudian save dan

source .bashrc

tutup terminal dan buka balik, seelok-eloknya reboot pi3 anda. Have fun...


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 ...