Google+
Showing posts with label Raspberry Pi. Show all posts
Showing posts with label Raspberry Pi. Show all posts

Wednesday, 29 April 2015

New USB hub for bitcoin mining.

Got my new powered hub (Plugable® USB 2.0 7-Port Charging Hub) for my Raspberry Pi Bitcoin mining. Works perfectly!

ThePiHut's HUB hub simply didn't have enough Amperage to give each ASIC miner plugged the power it wanted.

I'm running a mix of miners that I found cheap on eBay which I thought might be an issue but cgminer seems to be handling them fine.


Hopefully when I have some more funds I can start looking at renewable energy sources as currently the power draw, even on a Raspberry Pi doesn't seem economical for the gains. For the moment i'm not in it for that, just for the fun of experimenting!

Saturday, 9 November 2013

Raspberry Pi quick start guide

Setup

Once you've got your Raspberry Pi, SD card and Micro USB charger your nearly ready! 


Grab the Raspbian image from http://www.raspberrypi.org/downloads and follow the instruction on their site to install the dirstro on the SD card. Then insert the card into your Raspberry Pi and plug in the power. 

The only other cable I have connected to the Raspberry Pi is an Ethernet cable which goes into the Sky Hub (My ISPs router). 

Now without a keyboard and display attached we need a way to connect to the device. We will use a terminal (think DOS / CMD ) to do this. Personally I use SupperPutty which requires Putty . 

Next we are going to need to know where the Raspberry Pi sits on our network. The easiest way I find it to log into my router. 

If you need to know your routers IP then you can get this a variety of ways: ipconfig from Windows CMD, ifconfig in OSX and Linux or finding the default gateway via the adaptors status option (Windows again):



Most routers will display a list of attached devices. Now the Raspberry Pi won't have a hostname so you might have to just try and SSH to some of the listed IP's until you find the right one. A MAC starting with b8:27:eb belong to the Raspberry Pi Foundation so that's a good start if you see it. 

Your router might also give to you the option to assign one of your private IP's to the Raspberry Pi so it picks up that same address on your local network every time. I highly recommend this.  As shown in the table pic below:

Later on if you find you want access to your Raspberry Pi from elsewhere you can then setup a firewall setting on your router to allow SSH though and to a specific private IP on your home network. Obviously you will need to know your public IP that the router has to connect to the internet, this will either be dynamic requiring you to use a dynDNS service like no-ip.com , or a static IP which your ISP can inform you of. 

Once we know our IP we can now use that terminal client to connect. 


Notice that the host was 10.0.0.11 in my case. In yours it might be something like 192.168.0.x etc. Also the default username and password as mentioned on the download site are U: pi and P: raspberry .

Getting started with the command line interface CLI

First and formost you don't want others to access the Pi. With those default settings anyone could get on. 

To change the password of the login Pi with elevated privileges we use: 

sudo passwd


We will get prompted to input the new password twice and then it is set and confirmed with the output:
passwd: password updated successfully

Next up is some housekeeping. Run the following to check and make sure the software is fully up-to-date:
 
sudo apt-get update
sudo apt-get upgrade


The Pi does not comes with a battery and thus replies to NTP servers for getting to correct time. Using the command:

date

Will display the current time and date that the Pi has taken from NTP server set. 

Next up is a command that lets to change rather a lot of options to do with the Raspberry Pi:

sudo raspi-config



This guide is work in progress and not yet fully complete. Please leave comments if you would like to see more or if there is anything else I have missed that you think should be included. 


Friday, 23 August 2013

Rasp Pi adventures with Smokeping!

So I got a bit side tracked from my ICND2 studying tonight. I need a larger SD card for my Raspberry Pi but I set it up with a 2GB card regardless.


I then wanted to try smokeping which is a tool I haven't used in a while.

After a quick format of the SD card and then using Win 32 disk imager . I slotted the SD card into the Raspberry Pi and plugged in the power.

Next, as I was using the Pi without a monitor or keyboard I had to SSH into it which it is already setup for luckily with Raspbian.

Loaded up Putty and checked my routers GUI page for attached devices (typically 192.168.0.1 on home routers). A nice touch is the Pi presents its hostname as 'raspberrypi' so I didn't need a OUI checker to check all the MACs until I found the Pi.

Once I found the IP I put that into Putty and got a login challenge. By default the username is 'pi' and the passsword is 'raspberry'. As soon as your in I recommend using the 'passwd' command to change the 'pi' usernames password!

Next, it doesn't have a hardware clock. So check the date with.... 'date'.

Then:

Sudo apt-get update - updates the Pi's librarys 

Sudo apt-get upgrade - upgrades any software that needs it. 

sudo apt-get smokeping   - Downloads the Smokeping repositories


From here you basically change directory using:

cd /etc/smokeping/config.d

I had to comment out a line using 'sudo nano /etc/smokeping/config.d/pathnames' as the installer complained about sendmail. 

Then you just need to use 'sudo nano' again with the target and Probe files to get your desired effects. 

I'll go into more detail another time but right now i'm a bit tired! 

End result (Also long as I haven't turn it off / broken the firewall / port forwarding):
alpagot.redirectme.net:8081/cgi-bin/smokeping.cgi