Cara Reset Password Raspberry Pi!

Yang namanya lupa Password memang bikin sebel. Di komputer menggunakan Linux, kita bisa masuk ke Grub dan reset password root dari sana (di Recovery Mode). Nah kalau untuk boart sekecil Raspberry Pi gimana?

Ternyata, pengembang Raspberry Pi sudah memfasilitasi proses-proses ala ala Recovery Mode di Linux, tapi lebih sederhana lagi. Secara umum, Raspberry Pi booting dengan juga membaca dan mengeksekusi file¬†cmdline.txt. Kita bisa isi perintah-perintah unik disana ūüėÄ

Implementasi

Silakan shutdown Raspberry Pi, kemudian copot SD Cardnya. Buka di komputer/laptop. Kemudian lihat di partisi boot, ada satu file bernama cmdline.txt. Buka file tersebut.

Ganti dari:

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=.......f-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait

menjadi:

dwc_otg.lpm_enable=0 console=serial0,115200 console=tty1 root=PARTUUID=.......f-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait init=/bin/sh

Simpan. Kemudian taruh lagi SD Card ke Raspberry Pi.

Secara khusus, Raspberry Pi akan booting langsung ke Shell (/bin/sh) dan kita bisa melakukan proses reset disana.

Caranya dengan mengaitkan ulang partisi Linux Raspberry Pi ke modus read-n-write (rw) dengan perintah:

mount -o remount,rw /dev/mmcblk0p2 /

kemudian reset password dengan perintah passwd seperti biasa:

passwd namauser

Kemudian keluar, reboot Raspberry Pi. Copot SD Card dan kembalikan lagi isi dari file cmdline.txt seperti semula.

How to Install WordPress 5.0 in Raspberry Pi

WordPress 5.0 (or to be exact when this article is published, WordPress 5.0.2) is released as new major version with some big changes like the default editor and new concept for frontend interface of WordPress.

On this tutorial, we will install WordPress 5.0 in Raspberry Pi. I’m using Raspbian as the default operating system for my Raspberry Pi. Make sure, your raspberry pi internet connection is working and FAST. Heuheu

First, you need to update and upgrade to the latest repository and software available by this command:

sudo apt-get update
sudo apt-get upgrade

then we will install the database server with this command:

sudo apt-get install mariadb-server mariadb-client

make sure you remember the root password you’re type in on those wizard. connect to MySQL/MariaDB server with:

mysql -u root -p

create a new database and setup new user:

create database wordpress;

#then

create user 'wordpress'@'localhost' identified by 'password';

#setup the privileges

grant all privileges on 'wordpress'.* to 'wordpress'@'localhost';

#flush
flush privileges;

Next step, installing Webserver and PHP by using this command:

sudo apt-get install apache2 libapache2-mod-php5 php5 php5-cli php5-mysqli php5-mbstring php5-gd php5-mcrypt php5-json

test your brand new installed webserver by looking into web browser and pointing out to : http://localhost/

Download the latest WordPress available on https://wordpress.org/download/ and extract it to ‘/var/www/html’

tar -xzvf wordpress.tar.gz -C /var/www/html

and refresh your http://localhost/ URL in your browser, the WordPress installer should be loaded.

Install wordpress, like usual. Write your database username, database password, database name and write your Blog Title.