WSPR: Persiapan RaspberryPi

From OnnoWiki
Revision as of 07:48, 20 April 2016 by Onnowpurbo (talk | contribs) (→‎Instalasi WSPR)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Download Raspbian

Download dari


Burn ke SD card

Buang semua partisi dari SD card di /dev/sdb

fdisk /dev/sdb
d
d
d
d
w

Burn Raspbian IMG ke SD card untuk RaspberryPi dapat mengunakan perintah

sudo su
unzip 2016-03-18-raspbian-jessie-lite.zip
dd if=2016-03-18-raspbian-jessie-lite.img of=/dev/sdb

akan keluar kira-kira

2658304+0 records in
2658304+0 records out
1361051648 bytes (1,4 GB) copied, 839,032 s, 1,6 MB/s

Pastikan

  • File 2016-03-18-raspbian-jessie-lite.img di unzip dari source .zip-nya
  • SD card berada di /dev/sdb

Default Username & Password

  • Default user raspbian = pi
  • Default password raspbian = raspberry

Matikan ipv6

sudo su
vi /etc/sysctl.conf

set

net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Jalankan

sudo sysctl -p

Instalasi ssh server

sudo su
apt-get update
apt-get install openssh-server

Perbaiki locale

sudo locale-gen id_ID.UTF-8


Set Interface

Edit

vi /etc/network/interfaces

Isi dengan, misalnya,

iface eth0 inet static
    address 192.168.0.15
    broadcast 192.168.0.255
    netmask 255.255.255.0
    gateway 192.168.0.223

atau

iface eth0 inet dhcp

atau

iface eth0 inet manual


atau tambahkan di rc.local

vi /etc/rc.local

isi dengan

ifconfig eth0 192.168.0.15 netmask 255.255.255.0
route add default gw 192.168.0.223
echo "nameserver 8.8.8.8" >> /etc/resolv.conf

Set DNS

vi /etc/resolv.conf

isi dengan

nameserver 8.8.8.8

Instalasi WSPR

Install aplikasi pendukung

sudo apt-get install git g++ make grep mawk ntp

Get code/ compile:

cd /usr/local/src
rm -rf WsprryPi
git clone https://github.com/JamesP6000/WsprryPi.git
cd WsprryPi
make

Install to /usr/local/bin:

sudo make install

Uninstall:

sudo make uninstall