Search This Blog

Default SSH Username and Password for Raspbian


In case you are trying to log in to your Raspberry Pi with Raspbian over ssh, here are the default credentials:

username: pi
password: raspberry



So once you figure out the IP address your Pi has been assigned (like 192.168.2.3), you can log in like this:

ssh pi@192.168.2.3

from a terminal on another computer.

Using Two USB Controllers with a Raspberry Pi and RetroPie


I recently installed RetroPie on my Raspberry Pi 3 and everything was great until I tried to use two USB controllers at once. I plugged them both in and configured them, but when I entered a game, neither controller would work.

After a lot of debugging, I found out that if you start the Pi with one controller plugged in then plug the other one in after Emulation Station has booted they will both work in game. So if you're having trouble getting two USB controllers working at the same time, try that.

I haven't tried rebooting with them both plugged in after they both worked, but that would be ideal. Being able to just leave them as is and turn on the Pi then play would be great.

I also want to try out these SNES style controllers:


I'm tired of using Xbox controllers for games that don't fit them well.

Pi Town's Recommended Raspberry Pi Kit


If you're looking for an awesome Raspberry Pi 3 kit that won't break the back, check out the Vilros Raspberry Pi 3 Starter Kit Bundle. It comes with:

  • Raspberry Pi 3 Model B
  • Raspberry Pi Enclosure Case (Piano Black) 
  • 32 GB Micro Sd Card Preloaed with NOOBS 
  • SD card Adapter 
  • 2500 mA Micro USB Power Supply -- 5-Feet Long (110/220 Compatible) 
  • High Quality HDMI Cable 
  • Heatsink for Raspberry Pi - Set of 2 Heat Sink

This is the current Pi kit that I'm working with for most of my projects here and it is great. All the parts seem like very good quality and I'm not sure you could put together a kit for less than this one costs on Amazon. It also comes with a very helpful guide for getting started with the Raspberry Pi. So check it out if you're looking to get a Pi or upgrade your older one: Vilros Raspberry Pi 3 Starter Kit Bundle

How much power does a Raspberry Pi Need?

TL:DR - Grab this power supply for your Raspberry Pi to make sure it gets enough power to operate correctly: AmazonBasics Dual Port USB Wall Charger - 2.1 Amp

I just sold by Raspberry Pi B+ (the original Pi) and I'm preparing to purchase a Raspberry Pi 3. The old Pi did a great job, but will now move on to its next life as an even more budget-friendly device for the next person.

In getting ready for the new Pi, I wanted to make sure I get the right power supply this time. My previous power supply was just a phone charger that only put out 1.5 amps. I found out that 1.5 amps was really the lower boundary for a smooth Raspberry Pi experience.

The Raspberry Pi organization recommends 1.8 amps for the Raspberry Pi 3:


So I'm planning on grabbing this power supply from Amazon: AmazonBasics Dual Port USB Wall Charger - 2.1 Amp. It outputs 2.1 amps so should cover my needs for the new Pi.

Mounting a Drive With a Raspberry Pi



When you plug a USB hard drive or flash drive into a Raspberry Pi, you need to mount it to access the data on it. To do that, you need to know what name the OS has given the drive. So plug it in then run this command dmesg | tail. This will output something like this:

[ 1238.761341] sd 6:0:0:0: [sdb] 126058496 512-byte logical blocks: (64.5 GB/60.1 GiB)
[ 1238.762086] sd 6:0:0:0: [sdb] Write Protect is off
[ 1238.762091] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 1238.763149] sd 6:0:0:0: [sdb] No Caching mode page found
[ 1238.763155] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 1238.766839] sd 6:0:0:0: [sdb] No Caching mode page found
[ 1238.766846] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[ 1238.767747]  sdb: sdb1 sdb2


You can see that the OS has referred to the drive as sdb, with two partitions sdb1 and sdb2. To mount sdb1, you can make a directory to mount it to:

mkdir ~/mydrive

Then mount it:

sudo mount /dev/sdb1 ~/mydrive

Now your drive is mounted at that location and all the files will be within the mydrive folder. Depending on the filesystem of the partition, you might need to change the ownership to write to the drive:

sudo chown -R your_username:your_username ~/mydrive


 

Quickly Set Up Your Raspberry Pi With This Easy Script


If you're wanting to quickly set up your Raspberry Pi for web projects, check out this script from GitHub user Xeoncross: lowendscript. It was created for use with low-resource VPS servers and removes a lot of the default programs that Debian comes with that you likely do not need.

This script is great for people that are looking to do web development and other web projects on their Raspberry Pi, but want their Pi running as efficiently as possible. However if you'd like to do your set up manually, I've talked about a few web project set ups here:

Setting up Apache on a Raspberry Pi
Setting up Nginx on a Raspberry Pi
Router Settings Going to a Raspberry Pi
Nginx and PHP on a Raspberry Pi

Changing the user password on a Raspberry Pi

To change your password on a Raspberry Pi, use the passwd command:

robert@rpi $ passwd
Changing password for robert.
(current) UNIX password: 
Enter new UNIX password: 
Retype new UNIX password: 

passwd: password updated successfully

You will be asked for your current password, then to enter your new password twice to make sure you don't make a mistake.

Raspberry Pi News, Week of February 1 2015




Here is some additional Raspberry Pi action elsewhere on the internet, for those of you that can't get enough this week.

Raspberry Pi 2: 6x Faster than Original, Will Run Windows 10







Raspberry Pi 2
Raspberry Pi 2

The Raspberry Pi Foundation announced that the successor to the original Pi is now on sale. You can order the Raspberry Pi 2 right now for $35, the same price as the original Pi. Even though it doesn't cost more, the new Pi packs much more power and new features compared to the original, which came out in February of 2012. Now, three years later, the Pi Foundation has released a credit-card sized machine with 6 times the power of the original. It packs a 900 MHz quad-core ARM Cortex-A7 and 1GB of LPDDR2 SDRAM. That's twice the memory of the original Pi.

And since this is an ARMv7 processor (opposed to the previous ARMv6), it can run many more operating systems, including Windows 10. Microsoft has even announced that there will be a free version of Windows 10 for the Raspberry Pi 2. The founder of the Raspberry Pi Foundation even said "I think it's a usable PC now". I've been using my original for a while now :). Joking aside, he meant that you could even use the Pi as a general-purpose computer, whereas the past models were better of used for small programming experiments or headless utility machines.

If you're worried about your original Raspberry Pi becoming obsolete, you can rest assured. The Raspberry Pi Foundation has said that they will continue to produce Model A, Model B, and Model B+.

Here's a link to the store if you're looking to pick up one the new Pi's: Raspberry Pi 2.