Network attached storage (NAS) with Raspberry Pi

raspberry_pi_nas_upload_speed_LAN

There is a Raspberry Pi 3 out there which is much faster than version 1 and 2. While latest two are faster than first model, I thought it would be great to give some purpose to first Raspberry Pi model B. We share several computers around the house and sometimes need simple file storage solution to make backups, share and store. Rasperry Pi model B is sufficient for simple Network Attached Storage (NAS) solution. It doesn’t need much processing power to manage drive. And there is also an option to have torrent client running 24/7. Other benefits of using Raspberry Pi is low power. Lets go through all steps on how to set up Network Attached Storage on this Raspberry Pi. You can go with several different solutions on setting up NAS. You could go with cloud solution like Owncloud which is similar to Dropbox. This might be convenient in …

Continue reading

Continuously running Raspberry Pi torrent client

raspberry_pi_transmission_weg_ui

Previously we have configured basic NAS storage on Raspberry Pi. Having such power and doing nothing with storage is a waste. To prove its usefulness Next logical step is to implement torrent client on this machine. The benefit is obvious, you have NAS server which his always available and also torrent client which downloads/seeds files without need power hungry PC. You can find many torrent clients that can be used in Raspberry Pi, but it seems that lots of people prefer Deluge which has plenty of features and requires small memory to run. Deluge is great in its flexibility – the ability to run on desktop, through web interface and through ThinClient. The other popular packet is Transmission, which is also lightweight and has great WebUI. Transmission is able to handle magnet links from web interface. And it seems it is easier to configure. So we are going to stick …

Continue reading

Raspberry Pi 3 goes 64-bit and adds more features

Raspberry Pi 3

When first Raspberry Pi board was introduced it literally changed the understanding of small computers by bringing Linux closer to us. With great support, low board prices and huge community it stayed on top next to Arduino for four years. Of course in to keep that success, updates in hardware and software are mandatory. We know how fast things change computer industry, so time to time Raspberry Pi foundation kept upgrading Pi boards From first, to second and now the newest third generation – Raspberry Pi 3. At first glance you may see that Raspberry Pi 3 board is practically identical to version 2. component layout is same including all peripherals. So all enclosures that worked with Pi2 should fit fine for Pi3 boards. But not the most obvious things that make it stand out.

Transferring files with SCP between raspberries

I was playing with Raspberry Pi Model B for quite a long time. Tweaked few settings, wrote couple helper scripts. After some time second Raspberry Pi 2 arrived. I realized that most settings and scripts that were working on previous should do fine on a new one. I needed to copy few files from one Raspberry to another. For this purpose I decided to use Secure Copy (SCP). This is a file sending command over SSH. Raspbian OS already come with SCP installed so you can use it right away. (it it is missing you can install it by running command sudo apt-get install scp).

Time to make Raspberry Pi go wireless

Raspberry Pi Model B comes with Ethernet interface built in where you can plug cable and have internet access. In many cases this is enough, but what if you want it to be more portable and still be able to connect to it? One solution would be using Wi-Fi adapter. Since there are couple USB connectors, probably best choice would be using USB based Wi-Fi modules. You can get them in very compact size that aren’t that good at sensitivity and range or choose bigger ones with antenna. No matter what type you select – all of them works pretty same way. For my experiment I am going to use cheap Wireless adapter EDUP model EP-N8508. It supports all necessary features and standards that are needed to have WiFi. Small form factor makes it attractive to use on many devices like Laptop and so on Raspberry Pi. You may need …

Continue reading

Working with SQLite in Raspberry Pi using Python 3

Last time we did few basic operations with SQLite in Raspberry Pi. We learned how to set up SQLite3, create first database file and fill with data. Using SQL commands we were able to select data and print in terminal screen. But eventually you are going to face with more complex queries or will need to store data automatically so it could be read by other routines and so on. For instance you are going to build a simple project that would read data from digital temperature sensor. One of great ways of storing data in to database is to use python script. Anyway you are probably gonna use it for GPIO operations. So lets learn how to store simple data to sqlite database using python. I am going to use Python3. Raspberry Pi comes with Python 2.7 built in so we will need to install Python3. To do so …

Continue reading

Using SQLite in Raspberry Pi

If you are doing some data logging, sensor reading or other routine task with raspberry Pi, then you probably are thinking of using database. The list of database software choices is quite long, but in most cases you will end with single or few tables in database. First thought might be MySQL – well known database server in WWW. Anyway this is pretty heavy tool to have running on Raspberry Pi. In my opinion SQLite is probably most suitable choice. Because it is serverless, lightweight, opensource and support most SQL code. Another handy thing is that SQLite stores data in single file which can be stored anywhere.