Tuesday 14 April 2015

Install firebird 2.5 di ubuntu

Firebird stable 2.5.3 is located into this repository (ppa) for LTS supported Ubuntu releases
The ppa repository must be added this way
sudo add-apt-repository ppa:mapopa
Then you need to update the cache repository
sudo apt-get update
Here is how you can inspect the firebird2.5 related packages
apt-cache search firebird2.5-*
Install the super server package (you will be asked about the SYSDBA password and what service to enable : Super Server, Classic or Super Classic )
sudo apt-get install firebird2.5-super
The following extra packages will be installed:
  firebird2.5-common firebird2.5-common-doc firebird2.5-dev firebird2.5-server-common libfbclient2 libib-util
Suggested packages:
  libfbembed2.5 firebird2.5-examples firebird2.5-doc
The following NEW packages will be installed:
  firebird2.5-server-common firebird2.5-super
The following packages will be upgraded:
  firebird2.5-common firebird2.5-common-doc firebird2.5-dev libfbclient2 libib-util
5 upgraded, 2 newly installed, 0 to remove and 21 not upgraded.
Need to get 5,442kB of archives.
After this operation, 11.3MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Or install Classic or Super Classic if you have more than one cpu (dual core or SMP machine) and want SMP support
sudo apt-get install firebird2.5-classic
or
sudo apt-get install firebird2.5-superclassic
You need to configure the package after is installed
sudo dpkg-reconfigure firebird2.5-super
Install the examples and dev files
sudo apt-get install firebird2.5-examples firebird2.5-dev 
The employee.fdb archive will be under this dir /usr/share/doc/firebird2.1-examples/examples/empbuild/
cd /usr/share/doc/firebird2.5-examples/examples/empbuild/
sudo gunzip employee.fdb.gz
sudo chown firebird.firebird employee.fdb
sudo mv employee.fdb /var/lib/firebird/2.5/data/
Connect to database using the isql-fb console
$ isql-fb
SQL> connect "/var/lib/firebird/2.5/data/employee.fdb " user 'SYSDBA' password 'SYSDBApassword';
always use localhost: in front of db path when using classic or superclassic in 2.5 this way the lock files and the shared memory segment will be owned by the 'firebird' user. Another alternative is to add yourself to firebird group
$ sudo adduser `id -un` firebird
Then connect to the db in superclassic or classic
$ isql-fb
SQL> connect "localhost:/var/lib/firebird/2.5/data/employee.fdb " user 'SYSDBA' password 'SYSDBApassword';
If all is ok then you will have the message with what database connected and what user and ready to use sql prompt
Database:  "/var/lib/firebird/2.5/data/employee.fdb ", User: SYSDBA
SQL> 
Now you can check the server version and the tables
SQL> show tables;
       COUNTRY                                CUSTOMER
       DEPARTMENT                             EMPLOYEE
       EMPLOYEE_PROJECT                       JOB
       PROJECT                                PROJ_DEPT_BUDGET
       SALARY_HISTORY                         SALES

SQL> show version;
ISQL Version: LI-V2.5.0.* Firebird 2.5
Server version:
Firebird/linux Intel (access method), version "LI-V2.5.0.* Firebird 2.5"
Firebird/linux Intel (remote server), version "LI-V2.5.0.* Firebird 2.5/tcp (eeepc)/P11"
Firebird/linux Intel (remote interface), version "LI-V2.5.0.* Firebird 2.5 Release Candidate 2/tcp (eeepc)/P11"
on disk structure version 11.1
To create a new database
SQL> create database "/var/lib/firebird/2.5/data/first_database.fdb" user 'SYSDBA' password 'SYSDBAPASSWORD';
SQL> connect "/var/lib/firebird/2.5/data/first_database.fdb" user 'SYSDBA' password 'masterkey';
Commit current transaction (y/n)?y
Committing.
Database:  "/var/lib/firebird/2.5/data/first_database.fdb", User: SYSDBA
SQL>
If you want to create a simple table then insert 1-2 rows and select from it here is one example
SQL> CREATE TABLE TEST (ID INT NOT NULL PRIMARY KEY, NAME VARCHAR(20));
SQL> show tables;
       TEST
SQL> INSERT INTO TEST VALUES (1, 'John');
SQL> INSERT INTO TEST VALUES (2, 'Joe');
SQL> select * from test;

          ID NAME                 
============ ==================== 
           1 John                 
           2 Joe 
To quit the isql-fb console type quit
SQL> quit
CON>; 
For a good open source GUI admin tool you might check the flamerobin administration tool included in ubuntu repository can be installed by an simple
sudo apt-get install flamerobin
Then use it from the menu Applications->Programming-> FlameRobin
To use firebird with php , you will need the php5 driver
sudo apt-get install php5-interbase
sudo /etc/init.d/apache2 restart
Next if you need to install an php administration tool like Firebird Web Admin
sudo apt-get install git-core
git clone git://github.com/mariuz/firebirdwebadmin.git 
mv firebirdwebadmin /var/www/firebirdwebadmin
and load it in the browser http://localhost/firebirdwebadmin
It should look like this screen shot
=Other Firebird Related Guides=
You can start with the main Firebird documentation.
To use Ruby language with firebird I wrote a tutorial on howto install the stable driver.
For Ruby on Rails i wrote howto install the Firebird Active Record Adapter and start an application.
To use python you must use the official stable firebird python driver and here is howto install and use the driver.
For Lazarus IDE i wrote an visual guide on howto use the database aware components in a simple application that uses Firebird.
Lua Language does have a good driver and there is a Getting started guide with firebird on ubuntu
Server Side Javascript is served with the help of a pure Javascript nodejs driver

Thursday 26 March 2015

Remote Desktop Windows Tanpa Password


Remote destop windows tanpa menggunakan password,
Ikuti langkah di bawah ini :





Langkah Pertama :
Masuk ke start-run-gpedit.msc

Langkah kedua :
Pilih computer config –windows settings
Langkah Ketiga :
Pilih Security Settings\Local Policies\Security Options\Accounts lalu edit file Limit local account use of blank passwords to console logon only – Klik Disabled, and then click OK.





Selesai, sekarang bisa remote desktop windows tanpa password


Wednesday 28 January 2015

Web Joomla Local Host

Bagi websmaster tentu tidak asing dengan yang namanya XAMPP, dan tentunya mereka menggunakannya untuk mendevelope sebuah website. Seperti halnya menginstall Joomla di localhost. Secara default xampp biasa diakses dengan url http://localhost atau http://127.0.0.1. Namun url tersebut dapat kita rubah dengan domain sesuka kita sendiri, misal: www.domain-sendiri.com.
Pada kesempatan kali ini saya akan berbagi ilmu bagaimana merubah url localhost atau 127.0.0.1 menjadi domain sendiri pada server apache di xampp. yang jelas harus sudah terinstall xampp di windows atau komputer anda. Langsung saja silahkan disimak penjelasannya beserta gambar.

Cara Merubah Url Localhost atau 127.0.0.1 dengan Domain Sendiri di Xampp:

1. Pastikan sudah terinstall xampp di windows anda, bisa juga dengan portable di flashdisk. simak cara Menginstall XAMPP Portable di Flashdisk.
2. Matikan service "apache" dan "mysql" pada xampp anda.


3. Buka windows explorer dan cari file HOST yang terletak di c:/windows/system32/drivers/etc/ lalu edit dengan notepad++ atau editor lain kesukaan anda.
4. Tambahkan 127.0.0.2 www.domain-sendiri.com (terserah anda) pada baris terakhir, lalu simpan dan tutup.
5. Buka "c:/xampp/apache/conf/" cari file "httpd.conf" lalu edit dengan notepad++ 
6. Cari "ServerName" lalu tambahkan tulisan : ServerName www.domain-sendiri.com:80 di bawah baris tersebut.
7. Buka file "index.php" pada lokasi "c:/xampp/htdocs/" lakukan pengeditan dengan notepad++
8. Cari tulisan : header('Location: '.$uri.'/XAMPP/'); lalu ganti "XAMPP" dengan folder installasi joomla atau website yang anda inginkan. misal: "syekhalijaber" (tujuanya agar ketika mengakses url www.domain-sendiri.com akan diarahkan langsung menuju folder syekhalijaber sebagai default website).
9. Jalankan kembali service "apache" dan "mysql" pada xampp anda, lalu buka browser dengan mengetik url domain anda.

Opsi Lain Jika Ingin Menjadikan Folder Tertentu Sebagai Default Website di Domain

Untuk opsi ini domain anda akan diarahkan ke folder tertentu yang anda kehendaki dan url domain tidak dengan sub folder setelah domain anda. artinya jika pada tutorial di atas, ketika anda akses www.domain-sendiri.com maka akan diarhkan ke www.domain-sendiri.com/syekhalijaber/. namun pada opsi ini anda tidak lagi diarahkan ke folder tersebut melainkan tanpa tampak folder yang anda inginkan.
Untuk caranya adalah:
10. Matikan lagi service "apache" dan "mysql" pada xampp anda.
11. Buka file "httpd-vhosts.conf" pada lokasi "c:/xampp/apache\conf\extra" lakukan pengeditan dengan notepad++.
12. Tambahkan 

    ServerAdmin postmaster@dummy-host2.localhost
    DocumentRoot "/xampp/htdocs/syekhalijaber"
    ServerName domain-sendiri.com
    ServerAlias www.domain-sendiri.com
    ErrorLog "logs/domain-sendiri.com.log"
    CustomLog "logs/domain-sendiri.com.log" combined


13. Jalankan kembali service "apache" dan "mysql" pada xampp anda lalu buka url www.domain-sendiri.com pada browser kesayangan anda.
Semoga postingan ini bermanfaat dan dapat dijadikan pembelajaran yang berharga buat anda, dan jika postingan ini bermanfaat silahkan dishare ke jejaring sosial anda sehingga teman anda dapat mengetahui info yang berharga ini.
 
Di copy dari : http://www.inzacky.com/2013/05/mengganti-localhost-dengan-domain.html