Minggu, 29 November 2009

step by step install LAMP (Linux Apache Mysql Php)

Install MySQL (skip Postgresql)

At this point we'll need to log in again to the server and type:
sudo apt-get install mysql-server php5-mysql
Press Y to continue the install.

Replace the following string NewRootDatabasePassword with a secure password of your own choosing.
There is no space between the -p and the password on the second command.
mysqladmin -u root password NewRootDatabasePassword

mysqladmin -u root -h localhost password NewRootDatabasePassword -pNewRootDatabasePassword
We now need to create the Moodle database and Moodle user in MySQL.
The mysql command will prompt for your NewRootDatabasePassword (from above). Replace NewMoodleDatabasePassword with a secure password of your own choosing.
mysql -u root -p
> CREATE DATABASE moodle DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
> GRANT ALL PRIVILEGES ON moodle.* TO moodleuser@localhost IDENTIFIED BY 'NewMoodleDatabasePassword';
> GRANT SELECT,LOCK TABLES on moodle.* TO moodlebackup@localhost IDENTIFIED BY 'MoodleBackupPassword';
> FLUSH PRIVILEGES;
> QUIT
The above also creates a backup user moodlebackup so that you can use mysqldump to make database backups without accident.

Install Apache

The following mod-security, ldap, and odbc libraries are optional.
sudo apt-get install apache2 libapache2-mod-php5 php5-gd

sudo apt-get install libapache2-mod-security php5-ldap php5-odbc
Restart Apache
sudo /etc/init.d/apache2 restart
Note: To install Moodle 2.0 for the current ubuntu, you need to install PHP from an external repository --Olli Savolainen 19:28, 10 April 2009 (UTC)

Install other software

On the command line, type:
sudo apt-get install openssh-server unattended-upgrades

sudo apt-get install unzip zip aspell-en aspell-fr aspell-de aspell-es

sudo apt-get install curl php5-curl php5-xmlrpc

sudo apt-get install clamav-base clamav-freshclam clamav
Press Y to continue the install after each of these apt-get commands.
The clamav package will support virus checking on file uploads into Moodle. May have to run it again to configure properly.
Additional languages are available for aspell.




Kamis, 26 November 2009

Bos Ubuntu Tantang Duel Windows 7

Bos Ubuntu Tantang Duel Windows 7

Jakarta - Tokoh utama di balik sistem operasi
Ubuntu, Mark Shuttelworth memuji Windows 7 dari
Microsoft. Namun di sisi lain, dia juga percaya
diri versi terbaru Ubuntu 9.10 dengan kode nama
Karmic Koala dapat berduel dengan Windows 7.

Shuttelworth, Chief Executive Canonical yang
mensponsori distro Ubuntu Linux, menilai Windows
7 adalah perkembangan signifikan ketimbang versi
sebelumnya. Windows 7 juga dinilainya pantas jadi
sistem operasi di netbook dan bersaing dengan Linux.

"Saya gembira Windows 7 telah diluncurkan. Kami
pun bisa berhadapan secara langsung," ucap
Shuttelworth yang dilansir PCpro dan dikutip detikINET, Kamis (29/10/2009).

Salah satu yang dinilai menguntungkan Canonical
dalam duelnya melawan Windows 7 adalah soal
harga. "Windows tetaplah software proprietary dan
relatif sebuah teknologi yang mahal," tambahnya.
Ini dianggapnya membuat banyak orang tak dapat menjangkau Windows 7.

"Linux semakin membaik dan Windows semakin mahal.
Saya kira, kami bisa berkompetisi," kata pria
asal Afrika Selatan ini dengan nada optimis.

Karmic Koala sendiri menyajikan berbagai fitur
baru. Misalnya, waktu untuk boot sekarang lebih
cepat dan adanya aplikasi Software Store yang
dikembangkan, yang menyediakan software gratis untuk dipilih user.

--
Copyright © 2009 detikcom, All Rights Reserved

Senin, 16 November 2009

How do I insert a Landscape page into my (portrait) document?

In your open document in OpenOffice.org: 
you can setting your OpenOffice.org like


  1. Open the Styles and Formatting window [F11].
  2. Click on the Page Styles icon (fourth icon from left).
  3. "Default" should already be highlighted. Right-click to see the context menu and choose New.
  4. In the dialog that appears, give the new page style a descriptive name, e.g. Landscape.
  5. Click on the Page tab and change the page orientation to Landscape by clicking on the corresponding radio button. You may also make other changes to the page style, if needed (such as adjusting the margin sizes).
  6. Click OK. The new style will appear as one of the page style choices.
  7. Place the text cursor in your document at the location where you want to insert the Landscape page.
  8. Select Insert->Manual Break.
  9. In the dialog that appears, select Page Break and in the Style list, select your new page style, e.g. Landscape.
  10. Click OK.
To end the Landscape area and return to Portrait in your document:
  1. Place the text cursor in your document at the location where you want to stop the Landscape layout.
  2. Select Insert->Manual Break.
  3. In the dialog that appears, select Page Break and in the Style list, select the previous page style, e.g. Default.
  4. Click OK.
 learn more
source code:http://openoffice.org

Kamis, 12 November 2009

Google Go News language Programming

After Android operating system, Google is now trying to experiment with an open source programming language called Go, which will optimize the reliability of applications and multi-processor systems. Go is the second programming language that Google has released this year. Meanwhile, in July last, Google has released Simple programming language, a dialect of BASIC for the development of Android applications.

According to Rob Pike, head of Google engineers said that the purpose made Go, is a language system, can be like C + + or C. Pike also said that Go has the same level with Java, if someone is smart to play with the Java language, it also will not be difficult to use Go. Go itself began in 2007 as a project has been running 20 percent, but that Go was also assisted by the various contributor such as a Google engineer Robert Griesemer, Ken Thompson, Ian Taylor, and Russ Cox.

Go also includes plug-ins for the Eclipse Integrated Development Environment (IDE), and Go for Google to develop a web application creation. Go also will be at the upcoming Chrome browser, where Go will work with the Native Client, an open source technology to run the other language code in web applications. Go have a compiler called Gccgo based in the GCC, and one other compiler for 64-bit x86 machines, and 32-bit x86. In addition, the language of Go is also support for the ARM chip and Android devices. For more information, please see the Google website Go (golang.org)

Jumat, 06 November 2009

Explore Ubuntu Mobile and Embedded

Ubuntu is a great server and desktop distribution for the GNU/Linux® operating system, but did you know that it's also ideal for handheld and mobile embedded devices? Ubuntu's latest release, Gutsy Gibbon, now includes support for the embedded and mobile spaces with the Ubuntu Mobile and Embedded (UME) project. Get to know the UME project, and find out how to get started. 


In this tutorial
  • Introduction to the Ubuntu Mobile and Embedded (UME) project, its architecture, and its use
  • How to install and test the Hildon desktop
  • How to build a development environment for a mobile device
  • Other mobile platforms
Objectives
The primary objective of this tutorial is to get you quickly acquainted with the Ubuntu embedded framework and tools. Along the way, you learn about several tools and new approaches to Linux kernel configuration and environment construction. You also learn about some other projects with goals similar to the UME project.
Prerequisites
This tutorial assumes some knowledge of Linux development and the Linux user-space environment.
System requirements
This tutorial is intended to be hands-on. To run the examples in this tutorial, you need Ubuntu version 9.10. By following the instructions in this tutorial, you can use an existing UME environment and build applications for a mobile or handheld device. If you intend to install the UME and run it on your desktop, ensure that at least 4 GB of disk space is available.

sms gateway with gammu on linux

The applications of the SMS gateway can be searched and downloaded from the internet. You would be able to found a number of SMS gateway applications from the various platforms.
One of them that will be discussed in this article is Gammu, As we are going to use Gammu application for sms gateway, because apart from we can download free also it’s easy to configure and can be use in both i.e. Windows and Linux. Another reason is to use Gammu is because MySQL can be used. But here we will discuss that how we can setup SMS gateway using Gammu with Linux.
The mobile phone that succeeded in being tried by me is Nokia 3310 and Siemens C35i using Linux platform.

Before installation is done, first read information repeatedly about Gammu here:
http://www.mwiacek.com/gsm/soft/gammu.html
Have you gathered the information?
OK.
.
Now let’s gather the requirement to develop the SMS Gateway using Gammu.

Download Gammu.

1. gammu.tar.gz
Download the gammu package from: www.mwiacek.com/zips/gsm/gammu/gammu.tar.gz
# wget www.mwiacek.com/zips/gsm/gammu/gammu.tar.gz
2. Web Server (If you have webserver, don’t ignore this, if not yet then you must install first apache, myslq, php)
3. The Nokia mobile phone 3310 or Siemens C35i. For other mobiles phone please read again:

http://www.mwiacek.com/gsm/soft/gammu.html

Gammu supports various types of the mobile phones. How come? look this: Gammu currently supports: majority of Nokia phones from DCT3 generation with Nokia operating system – for example Nokia 3210, 3310, 3315, 3410, 5110, 5130, 6110, 6510, 6610, 7210, 8310
Many AT devices – for example many Siemens, Sony Ericsson, Nokia, Alcatel models, Alcatel from BE5/BF5/BH4 generation – for example 501, 511, 512, also some functions with OBEX and Symbian devices
4. The Serial cable for the mobile phone

If you have successfully downloaded gammu.tar.gz, please extract it:

#tar xvfz gammu.tar.gz
After extracted automatically you will find the folder gammu-1.08.00, now enter into the extracted folder.
#cd gammu-1.08.00
Before installation make a custom read README, INSTALL, etc.
#. /configure
#make
Here must be paid attention by you whether being that error or not if the error occurs that means a significant library mysql you are still being more incomplete, usually an error that appear was found when MySql doesn’t support the gammu. (his installation process repeatedly try to find the mysql library which is needed)
#make shared
#make install
#make installshared
Further it’s necessary for you to upgrade the “library”
# vi/etc/ld.so.conf
Add the library link /usr/local/lib to file ld.so.conf, once you have done upgrade the library:
#/sbin/ldconfig
Note: If you did not find any error to this stage means you have successfully installed the Gammu sms Gateway.
Now tried to enter again into the folder where you extracted gammu.tar.gz and copy the available files in folder /docs/example/config/* here you will find 3 files by the name of gammurc, mysql.sql, smsdrc and gammurc.
Copy the gammurc and smsdrc into the /etc directory
#cp gammurc smsdrc /etc/
Further search edited file like this:
[gammu]
port = /dev/ttyS0 #if you are using COM2 then substitute it with ttyS1
#model = 6110 #model of mobile phone was ignored by you, because it doesn’t need often to mention the phone model.
connection = fbus #With Nokia mobile phone connection should be fbus if you used the Siemens mobile phone then substitute the fbus with at19200
#synchronizetime = yes
#logfile = gammulog
#logformat = textall
#use locking = yes
#gammuloc = locfile
#startinfo = yes
#gammucoding = utf8
#rsslevel = teststable
#usephonedb = yes

If you are still confused, inside the gammurc file it has the guidance available. If you are lazy to edit the file, then you can get the file from www.posmetropadang.com/gammu/gammurc
Now confirm if the data cable and your mobile phone are connected to port COM1 to your computer, if everything is just fine, run the following command.
#gammu –identify
I hope you could see output as being supervised here:
Manufacturer : Nokia
Model : 3310 (NHM-5)
Firmware : 06.33 F (28-11-03)
Hardware : 1012
IMEI : 350835608671298
Original IMEI : 350835608671298
Manufactured : 0802
Product code : 0505201
Simlock 1 : MCC+MNC 00101, opened, user , counter 0
Simlock 2 : GID1 0000, opened, factory, counter 0
Simlock 3 : GID2 0000, opened, factory, counter 0
Simlock 4 : MSIN 0000000001, opened, factory, counter 0
MSID : 830d50880846870ebedd126096
MCU checksum : 9C79
DSP ROM : 6
If you got the connection info like above gammu means Gammu detected your mobile phone and now you can continue to the next step.
Now let’s configure that how all the phone’s SMS’s will be kept by MySQL database to put forward on the webpage using php scripts.
OK further bro… our work has almost finished, possibly have some coffee or cigarettes that could disrupted previously hehe…??
Now try to open the file smsdrc that you copied earlier to directory /etc
#vi /etc/smsdrc
[smsd]
PIN = 1234
logfile = smsdlog
commtimeout = 1
sendtimeout = 10
Search and edit the part that you configured in the mysql database:
# ————————- SETTINGS FOR –smsd MYSQL —————————
user = root
password = password_mysql_user
pc = localhost
database = Database_name
Note: The above lines are to make connection with mysql database.
Now enter to the directory /docs/example/config/ and get the file ‘mysql.Sql’, that is a table structure. Now put this file to the database that we are creating in the MySQL database for SMS gateway.
For sms database
#mysqladmin –u root –p create sms
To create tables for gammu grab the file ‘mysql.sql’
#mysql –u root –p <>
Or it can be easier for you if you make Gammu tables through phpadmin.
http://localhost/phpmyadmin
Once you are finished, you can start the smsd deamon:
#gammu –smsd MYSQL/etc/smsdrc
The Log filename Is “smsdlog”
Press Ctrl+C to stopped the program …
After the issuing above command if output is like above means your SMS gateway is done successfully and you can use it according to your requirements. And all the available sms in your mobile phone will be entered inside the mysql database.
For your further stage is to putting forward your SMS’s to the web which is using php scripts, The required php script can be downloaded from
http://www.syednetworks.com/gammu-sms-gateway.zip
You must edit the SMS database info in the sms.php file.
If all goes well, now you can open the SMS’s through your favorite browser:

http://localhost/sms.php
Now what must be done by you??
The smsd service deamon must be running to grab the SMS’s from the phone and you and you could see on the web.
Create a Gammu startup script.sh and place it in the directory /usr/local/Bin/#cd/usr/local/bin/
#vi gammu.sh
File contents are as follows:
#! /bin/sh
export LANG=da
DK
/usr/local/bin/gam you –smsd MYSQL/etc/smsdrc
After edited that file open /etc/inittab
#vi /etc/inittab
And add the below line in the inittab
GA:345:respawn:/usr/local/bin/gammu.sh
Wow… was long enough also, hmmm hopefully did not have the problem ya… now finished your coffee, until you finished developed the SMS Gateway by using Gammu.
If you are having comments and questions, do not hesitate, just feel free to ask.

sourcecode:http://www.syednetworks.com

upgdrading ubuntu 9.04 to ubuntu 9.10 with cdrom



This document provides instructions and notes on upgrading to Ubuntu 9.10 (code name "Karmic Koala"), the most recent release of Ubuntu, released on the 29th of October 2009.  

Before You Start
  • You can only directly upgrade to Ubuntu 9.10 from Ubuntu 9.04 (see UpgradeNotes).
  • Be sure that you have all updates applied to Ubuntu 9.04 before you upgrade.
  • Before upgrading it is recommended that you read the release notes for Ubuntu 9.10, which document caveats and workarounds for known issues in this version.
If you have a version of Ubuntu which was released before Ubuntu 9.04, please see UpgradeNotes for information on how to upgrade.
  1. Download the alternate installation CD
  2. Burn the ISO to a CD and insert it into the CD-ROM drive of the computer to be upgraded.
    • If the ISO file is on the computer to be upgraded, you could avoid wasting a CD by mounting the ISO as a drive with a command like:
      sudo mount -o loop ~/Desktop/ubuntu-9.10-alternate-i386.iso /media/cdrom0
  3. A dialog will be displayed offering you the opportunity to upgrade using that CD. 
https://help.ubuntu.com/community/KarmicUpgrades?action=AttachFile&do=get&target=umcd1.png

  1. Follow the on-screen instructions.
If the upgrade dialog is not displayed for any reason, you may also run the following command using Alt+F2:
gksu "sh /cdrom/cdromupgrade"
Or in Kubuntu run the following command using Alt+F2:
kdesudo "sh /cdrom/cdromupgrade"
 
cwiiiiwww...
source code : http://ubuntu.com 




Minggu, 01 November 2009

ubuntu 9.10 final release


bulan oktober kemaren team ubuntu merilis sistem operasi terbaru yaitu ubuntu 9.10,dalam rilis kali ini ubuntu mengusung berbagai macam fitur-fitur baru...
dalam versi beta yang pernah saya pakai,sistem operasi ini sangat cepat dan bagus sekali...

untuk teman-teman yang mau mencoba dan mengembangkan sistem operasi ini bisa download link dibawah ini..








[mirror]