Playing with Raspberry Pi: Day 1 – Installing the ARCH

I came back from my vacation and decided to give my Raspberry PI a spin and see what I can do with it for my personal entertainment.
Many would start thinking of XBMC or something to turn it to something that’s network intensive and doesn’t really utilize other things.

I’m personally against that. You have a GPIO and a camera socket to play with. If I wanted to have an XBMC, I’d run it in an old Pentium 4 PC or an Atom-based machine.

My final project would hopefully be a controllable live streaming camera (And who knows, might end up flying that damn thing too!).

So, in this post, I’ll only document my steps to have an initial setup.

Given this link, I had the choice to either install RISCOS, Raspbian, or Arch. I decided to go with Arch. Why? Simply because it’s minimum, it’s linux, and for me to poop onlearn while I’m in the process.

And because I’m using Windows, I had to download and use this tool to burn the Arch image properly in an SD card.

After that, just kick it in and start using it. The root username and password are root. So you better change that. So here’s that I did:

  1. Changed the password executing

    passwd

  2. Updated the OS and included packages by executing

    “pacman -Syyu”

  3. Fixed my local timezone

    ln -s /usr/share/zoneinfo/Asia/Kuwait /etc/localtime

  4. Fixed my hostname

    raspi > /etc/hostname

    Note that the hostname is raspi. Change that to whatever you want.

  5. Rebooted the system. Only because I wanted to see the new hostname. You can skip this step.
  6. Added a new user

    useradd -m -g users -s /bin/bash -G audio,games,lp,optical,power,scanner,storage,video pi

    The username here is “pi”. You can change it to whatever you want, I just liked the pi name for it

  7. Set the new user’s password

    passwd pi

  8. Install nano and sudo

    pacman -S sudo nano

    Why sudo? Because you’d need to do stuff with root privileges. Why not su? Because it’s better to do root stuff command by command, not through the whole session! Why nano? Because we’re going to text-edit some files. I prefer nano, you can use whatever you like.

  9. OK, now let’s edit the sudoers and make pi a sudoer

    nano /etc/sudoers

  10. Scroll down to almost the end of the page, until you find this:

    ## Uncomment to allow members of group sudo to execute any command
    # %sudo ALL=(ALL) ALL

    Uncomment it and make it look like this

    ## Uncomment to allow members of group sudo to execute any command
    %sudo ALL=(ALL) NOPASSWD: ALL

  11. Now, let’s create a new group called “sudo” and add pi to it

    groupadd sudo
    usermode -a -G sudo pi

  12. And you’re set! Log in with pi and you should be able to sudo. If not, just reboot and should be working fine.

So, my future plan for this toy is this:
To have a streamable video footage where I can control the camera’s axis. I’ll most likely end up attaching it to a roaming object and have it stream stuff in a different perspectives. I’m even wondering if I should add voice to it.

So yeah, next post will be about figuring out how the camera works on Raspberry Pi

Oh, so far, I followed this tutorial.

5 thoughts on “Playing with Raspberry Pi: Day 1 – Installing the ARCH

  1. You can use XBMC by installing the “NOOBS” software that is found in the official website. Extract the files to your SD card then install openelec or raspbmc.

    1. I find it sort of insulting to use RaspberryPI as an XBMC, to be honest.
      You have GPIO ports for a reason; use them! :E
      If I wanted an XBMC, I would’ve used whatever other tiny\old\useless machine for that, not a RaspberryPI

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.