The version of Firebird packaged with Ubuntu “Edgy Eft” is 126.96.36.19970-10 but is labelled "firebirdsql2" and Firebird packaged with Ubuntu “Feisty” is 188.8.131.5270-12.
Install Firebird Database on Ubuntu
sudo apt-get install firebird2-super-server
Apt's dependency tracking will automatically propose all the packages required for a complete installation.Ignore the “firebird2-server” virtual package which will just ask you to select either the “Classic” or “Super” server.
The packages will then download and install on the target machine, a new user “firebird” will be created to run the server, and the server will be started immediately
Setting up firebird2-super-server (184.108.40.20670-10) ...
Created default security.fdb
Starting Firebird server: server has been successfully started
You will then be asked to enter a new password for the SYSDBA user, spelling mistake included:
Plase enter new password for SYSDBA user:
You will then be returned to a shell prompt with the following output, that's it!
a new user “firebird” is created on the target machine. With administrator access, set a password for this new user:
sudo passwd firebird
Enter new UNIX password:
Retype new UNIX password:
Now you can switch to the firebird user with the su command
If you try to stop the server from running with the init.d command an error message will appear.
sudo /etc/init.d/firebird2 stop
/etc/init.d/firebird2: 28: source: not found
Stopping Firebird server: Your user name and password are not
defined. Ask your database administrator to set up a Firebird
can not attach to server
The same will happen if you try and start the server.To stop the server use the following command
sudo su -c "fbmgr -shut -password SYSDBApassword" firebird
server shutdown completed
Where SYSDBApassword is the password you entered immediately after installation and the second password is the firebird user password. To start the server again
su -c "fbmgr -start" firebird
With the installation complete, you can now begin using Firebird on Ubuntu Linux. The base package does not include any example databases, so if you like, install some with
sudo apt-get install firebird2-examples
These will be installed in /usr/share/doc/firebird2-examples/. While you're at it, install the utilities package
sudo apt-get install firebird2-utils-super
This will give you an interactive shell, and backup and reporting tools among others. Now you can test your Firebird installation by connecting to an example database. Decompress the example “employee.fdb” database
Fire up the interactive shell.
At the SQL> prompt, connect to the database with:
SQL> connect "employee.fdb" user ‘SYSDBA' password ‘SYSDBApassword';
If you get an error message like “Statement failed, SQLCODE = -551 no permission for read-write access to database /usr/share/doc/firebird2-examples/examples/employee.fdb”, then the server process doesn't have read or write access to the database file. Change the ownership of the database to the user firebird with
sudo chown firebird:firebird employee.fdb
When you manage to successfully connect to the database you will see the message:
Database: "employee.fdb", User: SYSDBA
Now, from the SQL> prompt, feel free to browse around the employee database:
SQL> show tables;
That' it this will complete the firebird database setup in Ubuntu