Showing posts with label RaspberryPi. Show all posts
Showing posts with label RaspberryPi. Show all posts

2015-10-02

GIT ANNEX on RASPBIAN JESSIE

https://github.com/tradloff/git-annex-RPi

Problem:

git-annex: error while loading shared libraries: libgnutls.so.26: cannot open shared object file: No such file or directory
fatal: 'annex' appears to be a git command, but we were not
able to execute it. Maybe git-annex is broken?

Solution:

sudo ln -s /usr/lib/arm-linux-gnueabihf/libgnutls.so /usr/lib/arm-linux-gnueabihf/libgnutls.so.26


2015-06-13

Internet connection sharing with Raspberry Pi via Ethernet

My laptop is connected to internet via WiFi and I want to connect raspberrypi via Ethernet cable. I want to be able connect to raspberrypi via ssh and I also want for raspberrypi to be able access the internet. I have basic understanding about networks. And I think this task should event easier then setup a router. Bud it is not! Unless you know exactly what to do! You can find tips with a million terminal commands... You  can study advanced networks... bridging or nat and then run dhcp server... If you running a server this is all great! On a laptop you do not need all this...


Click Edit!

Change to "Shared to other computers"



Just my local network connection information, no voodoo magic!

First time I set this up! It did not work! Solution is: RESET laptop after configuration is done!

To find out raspberrypi IP:

rolas@Aspire-E5-571G ~ $ cat /var/lib/misc/dnsmasq.leases
1434209461 b8:27:eb:75:89:01 10.42.0.79 raspberrypi ff:eb:75:89:01:00:01:00:01:1c:dd:60:6a:b8:27:eb:75:89:01


https://www.youtube.com/watch?v=ZK-JHfJqmkY

2015-02-15

GIT ANNEX

  • Installing latest git version

https://launchpad.net/~git-core/+archive/ubuntu/ppa

$ sudo add-apt-repository ppa:git-core/ppa

$ apt-get update && apt-get --only-upgrade install git

$ apt-get install git-annex
 
$ git --version
git version 2.3.0

$ git annex version
git-annex version: 5.20140412ubuntu1

https://git-annex.branchable.com/walkthrough/


  • Git-annex binary for Raspberry-pi


https://github.com/tradloff/git-annex-RPi

  • Windows version


https://downloads.kitenet.net/git-annex/windows/current/
















2015-01-02

Web chat on Raspberry Pi using nodejs


  • Writing image to SD card

 sudo dd bs=1M if=./2014-12-24-wheezy-raspbian.img of=/dev/sdc

  • Installing nodejs and modules

http://doctorbin.tumblr.com/post/53991508909/how-to-install-the-latest-version-of-nodejs-npm

I used this version: http://nodejs.org/dist/v0.11.7/
Newer versions "npm" not working, throws "Illegal instruction". 

  • Working chat app example

https://github.com/Automattic/socket.io/tree/master/examples/chat




  • Javascript & JQuery tutorial

https://www.youtube.com/playlist?list=PLoYCgNOIyGACnrXwo5HMCfOH9VT05znGv



2014-11-21

RaspberryPi Home security (Home project)

Components:

  • RaspberryPi
  • old USB GSM modem stick ( unused, collecting dust in a drawer )
  • ordinary USB Webcam

Plan:

I have http server already running on  RaspberryPi.

I can communicate with Modem via minicom (/dev/ttyUSB0), so I will write a simple program that sends SMS using AT Commands.

I can get pictures from webcam , so I will put it, so it can be viewed on web.
Or even send to me via email.

I can access gpio, so I can detect if doors were open...
Or maybe I will connect a movement sensor to it (similar that one used in stairways, to turn the light on and off).


                                                  AWESOME!!!

 I will put more info later!





2014-08-20

Private MailBox on Raspberry Pi


Buy a domain "something.com" or "somethingelse.eu" or what ever.
For my domain name, I paid ~10 euro for a year.
I bought from http://www.serveriai.lt/
I assume that Raspberry Pi you already have. And You also have stable internet at home and you can access your network from outside it means external static IP or IP that changes very rarely.
 
If you thinking , why do I need this, there is a lot free mail accounts on google yahoo etc...
Don't ask me! I am gonna ignore you!

Installation:

# aptitude install lighttpd

# aptitude install postfix  

# aptitude install dovecot-core dovecot-imapd

download roundcube and extract to /var/www/

install by following instructions in
http://<yourDomainName>/roundcubemail/installer/

Configuration:

lighttpd have to be configured for php support, more info about it is in here

Add your domain name to:
$ sudo nano /etc/hosts
127.0.0.1    localhost <domanName>

Testing:

Make sure tcp ports are open:

# netstat -nat
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      lighttpd
tcp        0      0 0.0.0.0:143             0.0.0.0:*               LISTEN    dovecot
tcp        0      0 0.0.0.0:25              0.0.0.0:*               LISTEN      postfix
 

For you to get mail's outside your local network, You have to open tcp port 25 for public in your router, but right after you open to public, definitely test you postfix configuration otherwise you can be banned for spam. 
Test is very easy:


http://www.mailradar.com/openrelay/


Adding user for mail:


# adduser <userName>
# usermod -a -G mail <userName>


If you want to add <firstName.lastName> do it like this:
 
# adduser --force-badname <firstName.lastName>


 




 

It's not super fast, but it fast enough for me to use it. I am still testing...  but I like it so far!




** Update **


You will be spammer by default unless your internet provider can help you and set "reversDNS" for you.

So now I have to decide, ether I change my internet provider and pay more money and than continue with mail box or spare some money and forget this idea. 


2012-12-04

Small, low power NAS with Raspberry Pi


Hardware:
 * Raspberry Pi
 * SD Card 4GB
 * Power supply 5V 2A, with micro USB jack

User Application:

Web server for media streaming on Raspberry Pi

   Runs Lighttpd server. Performance: no problem streaming 9GB *.mkv movie.
   Test done with 1TB external HDD 3.5 USB2 NTFS partition;

   Easy addons (non tested):
             * Torrent Client: "transmission-daemon"
             * FTP server: "proftpd"
             ...
             * Use your imagination... =)
             ...

        
Costs:

Raspberry Pi Type B Single Board Computer 512MB        £25.92  UK    (110LT)
SD Card 4GB (It would be better CL10)                               ~£5  UK        (22LT)
Power supply                                                                        ~ £6   UK        (26LT)