Configuring in NO-IP in Raspberry Pi

Raspberry_Pi_Logo

Create an account at no-ip.com and set up a new host/redirect. Set up port forwarding and DDNS on your router.

Download No-Ip client

sudo wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
sudo tar -vzxf noip-duc-linux.tar.gz
cd no-ip-2.1.9-1
sudo make
sudo make install

Create new file in /etc/init.d called noip2

sudo vim /etc/init.d/noip2

#! /bin/sh
### BEGIN INIT INFO
# Provides: testnoip
# Required-Start:
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start:  2 3 4 5
# Default-Stop:   0 1 6
# Short-Description: Test daemon process
# Description:    Runs up the test daemon process
### END INIT INFO

# . /etc/rc.d/init.d/functions	# uncomment/modify for your killproc
case "$1" in
    start)
	echo "Starting noip2."
	/usr/local/bin/noip2
    ;;
    stop)
	echo -n "Shutting down noip2."
	killproc -TERM /usr/local/bin/noip2
    ;;
    *)
	echo "Usage: $0 {start|stop}"
	exit 1
esac
exit 0

Make script executable and run at startup

sudo chmod 755 /etc/init.d/noip2
sudo update-rc.d noip2 defaults

Reboot the rPi

sudo reboot

Happy Hacking 🙂

Advertisements

Raspberry Pi change keyboard layout

Raspberry_Pi_Logo

If different letters appear on-screen from that which you typed, you need to reconfigure you keyboard settings. In Debian, from a command line type:

sudo dpkg-reconfigure keyboard-configuration

Or do it the cli way,From the command line type

sudo nano /etc/default/keyboard

Then find where it says

XKBLAYOUT="gb"

and change the gb to the two-letter code for your country…
Basically almost all indian keyboards are us based so you can change it to US..

You may need to restart for the changes to take effect.

Happy Hacking 🙂