The thread I link to has some common ideas, mostly involving installing applications which use the camera. You don't have to go that far.
The easiest way to check that it's working properly without installing anything is to run gstreamer-properties from ALT-F2 or the terminal. On the "Video" tab, look for the "Default Input" section and click "test." You should see the webcam's video output.
Also, now that Cheese is installed by default on Hardy, you can use that application. If it goes away in Hardy+1, though, you can still use GStreamer.
Nam Phạm's blogs
Saturday, 2 June 2012
Saturday, 19 May 2012
Drupal: Create "hello world" module in drupal 7
This tutorial will show you the easiest way to create a module for drupal 7.
Begin:
Begin:
- Go to 'modules' of drupal 7.
- Create 'hello_world' folder.
- Create two blank files: hello_world.info and hello_world.module under 'hello_world' under 'hello_world' folder.
- Open 'hello_world.info' and enter this content:
name = Hello World
description = This is my first module
core = 7.x - Go to 'Modules' at back-end, You will see your module listed here. Don't enable this module, because we still not finish yet.
- Create a menu link to call a page where will show 'hello world'. Open 'hello_world.module' and enter this content:
function hello_world_menu() {
$items['hello-world'] = array(
'title' => 'Hello World',
'page callback' => 'hello_world',
'access arguments' => array('access content'),
);
return $items;
}
function hello_world() {
return "hello world";
} - Go to home page and the result will look like this:
Drupal: Readable path
This toturial will show you how to replace the default path of drupal by custom path.
Example:
Example:
www.mysite.com/?q=node/add/article => www.mysite.com/?q=create-articleUsing Path module, you can:
www.mysite.com/?q=node/1 => www.mysite.com/?q=hello-world
- Set the path for individual node with the Path module (on the node/add or node edit form).
- Add a URL alias at 'Administer > Configuration > Search and metadata > URL aliases' in Drupal 7, 'Administer > Site buiding > URL aliases' in Drupal 6.
Drupal: Installing Drupal on Ubuntu
- Download the latest version of drupal here: http://drupal.org/project/drupal
- Extract this file into folder: /var/www/
- Rename drupal folder: example: Rename 'drupal-7.14' to 'mySite'
- Go to: mySite/sites/default . Copy 'default.settings.php' file and rename it to 'settings.php'.
- Create an folder called 'files' under: mySite/sites/default/ .
- Set permission for 'default' folder:
sudo chmod 777 -R /var/www/mySite/sites/default/
- Go to : localhost/phpmyadmin and create a database. example: create a database called 'mySite'.
- Go to : localhost/mySite . It will redirect you to installation page of drupal.
- Click on 'Save and continue' button until you redirect to 'Database configuration' page.
- Enter you database name, database account and database password. Like this:
Database name: mySite
Database account: root
Database password: ****** - After complete the step above, you will redirected to 'Configure site' page. At the page, Enter you site information and then click 'Save and continue'.
- Remove write permission on 'settings.php' file.
sudo chmod a-w /var/www/mySite/sites/default/settings.php
- At 'drupal installation complete' page, you click on 'Visit your new site'.
- Congratulation, I have installed Drupal success. Let's try to make some great things on your site.
Subscribe to:
Posts (Atom)