Archive

Archive for October, 2012

Updated Raspbian “wheezy” Image now supports 512MB Model B

October 31, 2012 Leave a comment

This is a minor point release, adding support for the 512MB Model B and permitting arbitrary partitioning of memory between CPU and GPU by editing the gpu_mem property in config.txt.

Which can be downloaded from the following locaiton – Raspberry Pi Image Downloads Page

 

Advertisements
Categories: Raspberry pi, Technology

How to create a new user on Raspberry Pi

October 28, 2012 1 comment

There may be a time where you need to add a another user account which can be done by running the following command

sudo useradd jsmith

(you will need to enter a password for the new user account)

you will also be asked for user information but you can just enter through it and “y” to confirm

——————————————————

pi@raspberrypi ~ $ sudo adduser jmsith
Adding user `jmsith’ …
Adding new group `jmsith’ (1003) …
Adding new user `jmsith’ (1002) with group `jmsith’ …
Creating home directory `/home/jmsith’ …
Copying files from `/etc/skel’ …
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for jmsith
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n] y
——————————————————

The next thing you need to do is create a home directory for the account by running the following command.

sudo mkdir /home/jsmith

We now need to assign the permissions so that our user account has permission to save to there home directory by running the following command

sudo chown jsmith:users /home/jsmith

To test this account works logoff your standard account and log back in with your new account.

Adding Mysql to your Raspberry Pi webserver

October 28, 2012 1 comment

Whilst you can have a perfectly good website server without a database if you have followed this guide

How to setup a webserver with PHP on Raspberry Pi

You need a database to provide a way of holding data and is a requirement for many content management systems (CMS) and web-based applications

Mysql is the most popular database server and most third-party software for Linux is designed to use Mysql so to install on you raspberry pi type the following

sudo apt-get install mysql-server

During the install you will be asked to enter a password twice

(This password is for the setting up of your MySQL root password)

Once done you then need to type the following command to install the php mysql libraries to allow PHP to access the mysql database

sudo apt-get install php5-mysql

To test that you installed MySQL successfully we can run the following command

mysqladmin -u root -p ping

You will then need to enter the MySQL root password which you set when you installed the MySQL software

If successful you will see the below text.

——————————————————
pi@raspberrypi ~ $ mysqladmin -u root -p ping
Enter password:
mysqld is alive
——————————————————

How to setup a webserver with PHP on Raspberry Pi

October 21, 2012 2 comments

This will show you how to turn your raspberry pi in to a light weight web server running lighttpd instead of full fat apache and it will also be running PHP (P Hypertext Preprocessor) ready for any website you want to run on it.

1) Change the default password (Change Password Instructions)

2)Install the Lightptd by running the following command

sudo apt-get install lighttpd

(we use sudo command for “run as admin” as the standard account is not an admin)

To see if it was successful browse to your raspberry pi and should see the following webpage

3) Install the PHP by running the following command

sudo apt-get install php5-cgi

4) Now we need to link the PHP software to Lighttpd software we installed early by running the following command

sudo nano /etc/lighttpd/lighttpd.conf

Add the following highlighted red lines to the .conf file and save with ctrl+x

——————————————————
server.modules = (
“mod_access”,
“mod_alias”,
“mod_compress”,
“mod_redirect”,
“mod_fastcgi”,
#       “mod_rewrite”, )
——————————————————

and the following at the bottom of the file

——————————————————
   fastcgi.server = ( “.php” => ((
                     “bin-path” => “/usr/bin/php-cgi”,
                     “socket” => “/tmp/php.socket”
                 )))
——————————————————

5) Restart the Lighttpd software by running the following command

sudo service lighttpd restart

(You should see the following)

——————————————————
[ ok ] Stopping web server: lighttpd.
[ ok ] Starting web server: lighttpd.
——————————————————

6) Now we need to create a test file to see if the PHP is working on the raspberry pi by doing the following

sudo nano /var/www/index.php

and adding the following information into the file and save with ctrl+x

——————————————————
<?php
 phpinfo();
?>
——————————————————

7) To see if it was successful browse to your raspberry pi and should see the following webpage instead of the standard lighttpd page you looked at earlier.

 You now have a working light-weight web server with PHP on your Raspberry Pi

How to change Raspberry pi default password

October 14, 2012 Leave a comment

Log into the raspberrypi with the following details 

user name pi and password raspberry

before logging into the gui type the following

passwd

you will be prompted for your old password, then you new password twice.

The next time you log in you will need to use the new password.

Back up Installed Android Apps in Bulk

October 14, 2012 Leave a comment

Here is a very simple application to back up apps on your android device in bulk.

App Manager is designed to be a simple to use app for Android users to back up their apps in bulk or one-by-one. In addition, it has also a provision to uninstall apps in bulk (batch uninstall). App Manager also gives extensive information about each app.

App Manager has a very easy to use interface. After installation, just check the applications you want to back up or hit check all option for batch back up, and then tap backup. Your apps are safely backed up onto your SD card.

Save the backed up apps on your computer for safekeeping. For that, connect your phone to your PC and go to your SD card – Android – Data –burrows.apps.appmanger using Airdroid or USB Cable and copy and save the folder on your PC.

App Manager can be downloaded from here —> App Manager on PlayStore

Even though you can backup in bulk you will have to restore applications one by one.

Introduction to Vi Text Editor for Raspberry pi users

October 14, 2012 1 comment

When working with the raspberry pi I have come across the Vi Text Editor which is completey different to the nano so here is a quick introduction to the Vi text editor.

It is important to remeber there are two modes in Vi theses are Insert-text mode and Command mode

To enter the Vi text editor you need to do the following

Vi (name of file)

Assuming you did not already have a file this command will create one

To start putting text into your file you need to do the following

Type the letter i (it stands for “insert-text mode”),

At the end of each line of text you will need to press the return key for a new line

When finshed push the ESC key to end insert-text mode

To edit a line or move the cusor within a  file in Vi text editor we first need to be in command mode and type

/(word looking for)

((ie /re) would move the cursor to the first instance of re)

Then push i to enable insert-text mode

When finshed push the ESC key to end insert-text mode and go back to command mode.

When you exit insert-text mode you will change to the command mode

To save a file and exit VI type ZZ (note the capitals).

raspberrypicloud

The University of Glasgow's Raspberry Pi Project

Tech-o-rama

Your all round solution for tech problems (and some others things...like spelling errors)

thedomesticfringe.com/

telling stories - making memories

Raspberry Pi Kid

A 14-year old's adventures with Raspberry Pi

Naked Security

Computer Security News, Advice and Research

Grumpy IT Girl

I'm not a very good writer

Dustin Software

Because programming is fun!

Pinoy Tekkie

USER-FRIENDLY TECHNOLOGIES FOR THE PINOY NOOBIES

petRockBlog

Fun stuff for technics enthusiasts

I Kissed My Date Goodnight

Embarking on motherhood through the miracle of adoption.

projectz

Tech, Gadgets, Photography, Social Media and Poor Spelling

Programming My Rasberry Pi

A brave fool's adventures into the unknown!

Chris Ainger's Blog

Where Fishing Meets Computing

PIPAL

Information wants to be free

ITtechExec: Protecting Tech Careers Since 2001

Technical Career Advancement: Transformed. Guaranteed.

CRUNCHEDD

Entertainment, Technology, Social Media Updates from in Between the Web…

StartupTunes

An Exclusive Web 2.0 Startups Review Blog

The Life of Me

Just another IT blog

NJrajgelani

The Best Place for Deziners

%d bloggers like this: