Tag Archives: Raspberry Pi

Raspberry Pi – NOOBS

The fantastic groups over at raspberrypi.org have introduced a new project shaped around the idea of simplifying the beginner experience when it comes to using the Raspberry Pi.

NOOBS makes setting things up much easier, and while grandma and grandpa may still be left on the outskirts of things you won’t need to do much more that head over to the download page and grad the NOOBS zip packed via direct download or torrent.

NOOBS offers many good choice images you may want to choose from such as Raspbian, RaspBMC, RiscOS, Archlinux and others…

So now even more of us can have a slice of the Pi.

More info can be found here: http://www.raspberrypi.org/archives/tag/noobs

Raspbian Wheezy Squid Proxy

“I am learning all the time.  The tombstone will be my diploma.”  ~Eartha Kitt

Hello Friends, I am back again with an update on my most recent Raspberry Pi (Rasp~ Pi) minimal image; This time around I have added a Squid Proxy Server to the mix. Like that of my previous post I am still running on top of the awesome base setup that just works wonders for me.

I did add some additional tools such a htop, sshfs, cifs utils, nmap, and many more. You’ll just have to give it a go to see for yourself., but let us not get off track. This image is all about the out of the box squid proxy experience. I have done the install (simple for some, not to others) and updated the squid.conf to allow for the typical LAN network access. Don’t worry, I preserved the base configuration file for your review.

Some things I would like you to know:

1. This image boots up, grabs an IP Address from your DHCP network
2. Squid will also start-up on its own (using Google DNS to look up internet addresses)
3. Runs fantasticly on a small home / office network

Link to download this custom updated image: raspbian_wheezy_armhf_squid_jermsmit_20120819.7z
Sorry about the size, there are some things I didn’t clean up’; such as logs etc…

The root password is: jermsmit

–More Info–

Squid is a proxy server and web cache daemon. It has a wide variety of uses, from speeding up a web server by caching repeated requests; to caching web, DNS and other computer network lookups for a group of people sharing network resources; to aiding security by filtering traffic. Although primarily used for HTTP and FTP, Squid includes limited support for several other protocols including TLS, SSL, Internet Gopher and HTTPS – source

 

mount windows share using cifs

Once again I am tinkering with my Raspberry Pi doing things.  Now I want to mount my windows share remotely to move files around, also extend my storage remotely. As always I share how to do this with some simple steps.

To mount a remote Windows share In Debian Squeeze you need to make sure that cifs-utils is installed. To install cifs-utilis, just use apt-get:  apt-get install cifs-utils (apt-get update && apt-get install cifs-utils) if you haven’t did an update in a while.

After the install (or before) you need to make a directory to mount to. In my case I use the /media/video/ location because I am mounting video files and like to keep my names logical to what I am mounting or else I might forget.

To do this I then type the following:
mount -t cifs //10.0.10.1/video /media/video/ -o username=accountname,password=password

To verify your work all you need do is change directory into the /media/video and do a ls command, you can also do this by just typing ‘ls /media/video

Now wasn’t that simple

Raspbian Wheezy armhf Rasp~ Pi minimal image

Hi friends, Hi to myself in the future.

Here is a updated Raspberry Pi minimal image. This one is compiled with hard float support; hardware instead of software emulation.

Include:

A minimal Raspbian Wheezy installation (similar to a netinstall)
Hard Float binaries: floating point operations are done in hardware instead of
A disabled incremental updates, means apt-get update is much faster
Latest raspberry pi patches
Latest version of the firmware(s) | for usb video and usb wireless support
Lower GPU RAM usage (32MB) by default | I run headless
224MB of ram are available to the system
A very tiny image: even with a 2GB SD there is a lot of free space
SSH Installed and starts by default
The clock is automatically updated using ntp
Yes! IPv6 support

Link to download this custom updated image: raspbian_wheezy_armhf_jermsmit_20120815.7z

The root password is: jermsmit

–More Info–

I have 2 images in the 7zip archive; one containing the rootfs and the other containing the boot partition. I have it setup this way because I boot with the SD card 1GB (only need 16MB) and a USB Drive 2GB is all you need, but you can use larger

My Raspberry Pi needs a Swap

About Swap: Linux divides its physical RAM (random access memory) into chucks of memory called pages. Swapping is the process whereby a page of memory is copied to the preconfigured space on the hard disk, called swap space, to free up that page of memory. The combined sizes of the physical memory and the swap space is the amount of virtual memory available.

Swapping is necessary for two important reasons. First, when the system requires more memory than is physically available, the kernel swaps out less used pages and gives memory to the current application (process) that needs the memory immediately. Second, a significant number of the pages used by an application during its startup phase may only be used for initialization and then never used again. The system can swap out those pages and free the memory for other applications or even for the disk cache.

Adding Swap: File Method
I am using this method over a drive partition simply because i didn’t create a partition to use.

1 - Locate an area on disk to place the swap file. In my Raspberry Pi setup I am going to use /root
2 - Use the following dd command example creates a swap file with the name “swap” under /root directory: # dd if=/dev/zero of=/root/swap bs=1M count=512
3 - Change the permission of the swap file so that only root can access it: # chmod 600 /root/swap
4 - Make this file as a swap file using mkswap command: # mkswap /root/swap
5 - Enable the newly created swapfile: # swapon /root/swap

Your done. But wait! I don’t want to turn the swap on each time I reboot, that’s just silly.

To make this swap file available after the reboot, add the following line to the /etc/fstab file:
/root/swap               swap                    swap    defaults        0 0

Now hopefully my Raspberry Pi will be a little less prone to locking up due to being out of memory.

Raspberry Pi – Root FS on USB Thumb Drive

“We build too many walls and not enough bridges.” – Isaac Newton

Today I worked on resetting up my Raspberry Pi with a minimal image from Chris’s Digital Realm. I like this image because its very basic and does what one would want. Boot, and assigned an IP Address via DHCP, and best of all, fits on a 1GB SD Card. The rest is on you to install additional packages and updates. Thanks Chris, I love you work and has been helpful in jump starting my Raspberry Pi experience.

After a few setups and seeing how 1GB SD was not going to give me the space for all the packages I wanted installed, I started looking for a way to boot my Rasp~Pi and add additional storage.

To get this working I did the following:

1. I wrote the rasp~pi image (the one from Chris’ site) to a USB stick, instead of an SD card.
Sorry for not providing the direct link to the download; Please Chris’s site for that.

2. after that, plug your USB stick into your computer, copy all files files from USB stick into your SD card. I have found that you only need the following to boot: start.elf, loader.bin, kernel.img, config.txt, cmdline.txt, bootcode.bin which can fit even a 16MB SD card.

3. modify cmdline.txt, change the root=/dev/mmcblk0p2 to root=/dev/sda1 or root=/dev/sda1
in my setup I needed to change to root=/dev/sda2

– Additional Info –

1. Format your SD card to FAT16 before placing files on it. – I use gparted to do this
2. Feel free to remove the FAT16 partition from the USB Drive; You wont be using it.
3. Use gparted to give you more space on the root file system if you needed. The image will leave the rest of the space unused. I may do a write up on this later as I am thinking of adding a swap.

Hope this helped. Now plug in and boot up the root filesystem from the USB stick!

 

My first slice of Raspberry Pi

Today, I got my hands on Raspberry Pi. I was able to get a Debian image working on a 1GB SD card, but that wasn’t all I did. After my initial boot I installed open-ssh, mysql client and server, lighttpd, and php.  I even took this to the next level and installed WordPress. it’s not something I’d use to host jermsmit.com from it was fun to play with. In short, I took a bite, and it was good.

What’s next? I don’t know yet, but will update you all soon as I am working on it. I am thinking of Vyatta Router that’s based on Debian Linux, who knows.

What’s a Raspberry Pi?

The Raspberry Pi is a credit-card sized computer that plugs into your TV and a keyboard. It’s a capable little PC which can be used for many of the things that your desktop PC does, like spreadsheets, word-processing and games. It also plays high-definition video. We want to see it being used by kids all over the world to learn programming.

Get more info about Raspberry Pi here