i'm not really a bumblebee
romillyhills.co.uk uses cookies! cookies are used for the login system and removing this bubble.
clock01:12 on 04.12.12 eye380 speech bubble0
the raspberry pi is a cheap pc that can run [many versions of] linux, here is a guide on getting started with arch and running your own mumble and apache server.

the combination of arch and the raspberry pi could not be more perfect. arch is lightweight; it has no ui so the install is around 60mb and it boots in approximately 10s, combine this with a cheap low power computer like the raspberry pi and you have an ideal home server. no monitor. no mouse. just power and network.

to get started you'll need a few things

a raspberry pi

an sd card

arch linux

disk imaging software like win32diskimager [you want the binary]

and an ssh client like putty

first you need to install the image onto your sd card. win32diskimager does this really simply, just select the image and your sd card and go. this will take a few minutes but once it's ready you're technically done. you can put the sd card into the pi with network and power and your good to go.

but you'll need to be able to control your raspi, this could be done by plugging in a monitor and keyboard but ideally for a server you want remote access. this is what putty is for.

you'll need the ip of your raspi, which will show up as 'alarmpi' on your router. once you have that run putty enter the ip select ssh and go. it should look like this

you'll be prompted with a security message, but just hit yes to continue. you'll be confronted with a terminal asking for a login. the default username is 'root' and the password is 'root'. after logging in you're good to go

this is where a quick tweak is needed, if you type
df -h

the disk information will be displayed, you'll notice it claims the disk is only 1.8G even though you sd card is [probably] much larger.

to fix this a few commands are needed, it won't make any sense untill you actually run it
fdisk /dev/mmcblk0

Delete the second partition /dev/mmcblk0p2

Create a new primary partition and use default sizes prompted. This will then create a partiton that fills the disk

Save and exit fdisk:

Now reboot. Once rebooted:
resize2fs /dev/mmcblk0p2

this was taken from a forum somewhere on the net. just a note here; when you're at the 'w' stage it will display a warning, this doesn't matter and you can just continue. to reboot you can type

now when you type
df -h

again you'll have your full disk available. now you have some storage space you should update your system, this is done with the line
pacman -Syu

it means package manager...

then let it update. now the system is fully running and updated we can start setting up the server.

setting up a mumble server is incredibly simple just type
pacman -Sy murmur

to install it

to run it, and that's it you can connect to that ip, remember to forward the port if you want external access

apache is just as simple to get working
pacman -Sy apache

to install it, then

to run it, if you then navigate to your raspi's ip you'll see the defualt apache index page. as a quick example to change this you'll need a text editor like vim.
pacman -Sy vim

once you have vim you can open the index.html with
vim /srv/http/index.html

bare in mind vim is running in the command line, so everything is done with the keyboard. navigate around with the arrow keys, when you want to type press 'i' and 'esc' when you're done. to save and quit type ':wq' or to just quit ':q'. anyway, just type 'hello' or something in index.html to show that it's working.

and that's it. remote access mumble and apache server on a raspberry pi.

but as a final note, here are some useful commands.

change the root password

change the computer name
vim /etc/hostname

to shutdown

then pull the plug
what happened to my arms!?