Category: Linux

PHP Functions

How to a Print to a Local or Network Printer with PHP and Linux Command Line

Easy way to print from php or just plain command line. exec(“lpr [ options ] [ filename … ]”); Gettin a little fancy. cat thesis.txt | lpr Another example exec(“lpr -P printer -r filename.txt”); Read more in at this Link

Read more

Speech Recognition with the Raspberry Pi

UPDATE: Audio quality is greatly improved by using a sampling rate of 48000 Hz (The default rate is 8000 Hz). So, the commands in step 10 and step 16 been changed to reflect that sampling rate. These are the steps: 1. Start out by installing the Debian Wheezy image on an SD card and boot […]

Read more

Fix Sound Drivers for Raspberry Pi – Easy

Install the Sound Drivers Update : The newer Debian “Wheezy” image enables the sound driver by default so this section is not needed to those that are using the newest version. Others that are having audio issues from previous versions of Raspian, see below. In the Debian “Squeeze” image the ALSA sound drivers are considered experimental and […]

Read more

RaspberryPi Media center – XBMC – Easy Tutorial

This is a quick video showing how to setup XBMC on the raspberryPi using raspbmc. This will turn your raspberry Pi in to a media centre http://www.raspbmc.com/ Check out the forums for help http://forum.stmlabs.com/  

Read more

Coolest Things To Do with Your Raspberry Pi

Raspberry Pi powered quadrocopter Originator Says: My finished raspberry pi quadrocopter. More information at www.botched.co.uk. R2D2 Robot Powered by Raspberry Pi Originator Says: This is a birthday gift I built from scratch for my girlfriend 🙂 The hardware is made of a broken Interactive R2D2 toy and a bunch of cheap parts purchased online. Inside, the little […]

Read more

Pithos – Pandora Desktop Client for Linux

Pithos is a Linux based client for the GNOME Desktop for the online music platform: Pandora.com. Although there is a official Flash based Linux client for Pandora.com but it is a RAM hog and does not leave you with a tasteful experience. There is another client called the Pianobar but is only for the command-line. Among all these, Pithos proves […]

Read more

Add Ftp Users and Change Home Directory

To add a user account, use the following syntax, and follow the prompts to give the account a password and identifiable characteristics such as a full name, phone number, etc. sudo adduser username To delete a user account and its primary group, use the following syntax: sudo deluser username Deleting an account does not remove […]

Read more
PHP Functions

Easily Run PHP Script As A Cron Job Linux

I’ve nicely written PHP script that I’d like to run as a cron job. I’m using CentOS 4.5 as server with Apache web server. How do I setup a PHP script as a cron job? You need to setup execute permission on a php script. You need to use chmod command to change file access […]

Read more

Why does apt-get fail to resolve the mirror?

yes, the name server update does work and if it does work then you’ve probably updated your IP settings to be static and your server can no longer resolve URLs. Try the above and if it works reboot. if it fails after rebooting then do this: edit the template file for the resolv.conf. Ubuntu server […]

Read more

How to look at updated access.log or other log files in linux command line

Go to /var/logs directory or whichever on you want to look tail and try these commands: tail -f /var/log/messages less /var/log/messages more -f /var/log/messages vi /var/log/messages

Read more