Scripts that I use on my Raspberry Pi #3

(adsbygoogle = window.adsbygoogle || []).push({});

I normally use sendemail on my Rasberry Pi because it’s easiest way to send email from your Raspberry Pi Linux machine using command line.

Let’s first install sendemail:

apt-get install sendemail

Using sendemail is easy:

sendemail -xu LOGIN -xp PASSWORD -f FROM -t TO -s SERVER:PORT -o tls=yes -u […]

Scripts that I use on my Raspberry Pi #1

This script checks what your current external IP address and will let you know if it has changed since the last time you checked. You can easily modify this script to make your Raspberry Pi send you an email of it’s external IP address and send email when it’s email address has changed so this […]

Linux: Show your IP-address

Show IP-Address

How to get your IP-address:

ifconfig "eth0"|grep ‘inet addr’|cut -d’ ‘ -f12|cut -c6-20

and if you want to use IP-address at your own scripts just use:

INTIP=`ifconfig eth0|grep ‘inet addr’|cut -d’ ‘ -f12|cut -c6-20` echo "$INTIP"

and now you have your IP-address on $INTIP enviroment and you can use that at your scripts.

[…]

Enabling/Disabling devices using command line on windows

I needed to disable smartcard reader on my client laptop because for some reason it had two smartcard readers and I only needed to use one so I had to disable that device on every laptop which I installed so I wanted to make it a bit easier for me.

First of all you need […]

Sony Ericsson GM29 on Linux

Using Sony Ericsson GM29 GPRS modem on Linux to send text messages.

I use this kind of code which I get from usenet but I have modified it for my own purpose:

#! /usr/bin/kermit + set port /dev/ttyS0 set speed 9600 if fail { # Check that port was obtained exit 1 \m(port): \v(setlinemsg) […]