Monday 21 December 2015

Firebird 2.5

Firebird stable 2.5.x is located into this repository (ppa) for LTS and current 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 libapache2-mod-php5
sudo php5enmod 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/html/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

Tuesday 17 November 2015

Tidak bisa install windows 8

Ketika install windows 8 muncul pesan seperti berikut:

"windows cannot installed to this disk. the selected disk is of the gpt partition style"



Solusinya adalah seperti ini :

In some technology or computer forum, some technicians give some advice that convert GPT to MBR with Diskpart, which is run by program code. The specific steps are following below:
  • Enter system installing interface by using Win 7 disc or USB hard drive boot. and then press “Shift”+”F10” to open the command prompt.
  • Input “Diskpart” (do not input quotation mark, the following as well), and then press “Enter”to enter operating interface.
  • Input “list disk”: to check hard disk properties. Pay more attention to capacity of hard disk to select. Usually, disk 0 is hard disk, and disk 1 is the usb dirve where wins 7 install.
  • Input “select disk 0”: to select disk 0 as the disk that is operating.
  • Input “clean”: to clean up current hard disk’s partition.
  • Input “convert mbr”: to convert GPT into MBR.
  • Input “create partition primary size = xxx”: to create the size of primary partition.
  • Input “format fs = ntfs quickly”: to format disk to NTFS quickly.
  • Input “exit”: to finish operating.
  • Input “exit”: to shut down the command prompt.
After finishing operating, shut down the command prompt and install windows system on computer in normal way. The steps seems be concise, but the greatest shortage is that all data and files will be clean up. If you don’t have backup files in GPT disk, you will be crying and anxious for that. And if you don’t have some professional knowledge about program, this way is not recommended.

Monday 10 August 2015

Install WintoUSB di Linux Mint

Currently WinUSB is not in the Ubuntu Software Center for Ubuntu 14.04 and there is no PPA for installing WinUSB in Ubuntu 14.04 either, so you have to install the Ubuntu 13.10 version.
  1. Open the terminal using the keyboard combination Ctrl+Alt+T.
  2. Download the winusb package that is compatible with your operating system's architecture:
    for Ubuntu 32-bit:
    wget https://launchpad.net/~colingille/+archive/freshlight/+files
    /winusb_1.0.11+saucy1_i386.deb
    
    for Ubuntu 64-bit:
    wget https://launchpad.net/~colingille/+archive/freshlight/+files
    /winusb_1.0.11+saucy1_amd64.deb  
    
  3. Install winusb:
    sudo dpkg -i winusb_1.0.11+saucy1*
    
  4. Fix dependencies errors:
    sudo apt-get -f install
    
These four steps will install the WinUSB graphical interface and the WinUSB command line tool. The WinUSB GUI is much easier to use than the WinUSB command line tool.
WinUSB is a tool for creating a bootable USB flash drive used for installing Windows. For creating a bootable USB flash drive for installing Ubuntu use the built-in Startup Disk Creator application. For creating a bootable USB flash drive for installing other Linux distros use UNetbootin from the Ubuntu Software Center.

Wednesday 8 July 2015

Install VNC Server Di Linux Mint


Setelah sebelumnya posting tentang VNC server di debian, lanjutan kali ini tentang instalasi VNC Server di UBUNTU dengan tampilan GUI META desktop environment. Versi Ubuntu yang saya pakai adalah Ubuntu Saucy Salamander (13.10).

Langkah – langkah instalasi:

  • Install META desktop environment
  • Install VNC server
  • Konfigurasi VNC Server
  • Auto start on boot VNC Server



1. Install META desktop environment

Tambahkan lebih dulu salah satu repo berikut ini di /etc/apt/sources.list (pilih salah satu saja)



  1. sudo add-apt-repository "deb http://repo.mate-desktop.org/ubuntu saucy main"
  2. sudo add-apt-repository "deb http://packages.mate-desktop.org/repo/ubuntu saucy main"
  3. sudo add-apt-repository "deb http://mirror1.mate-desktop.org/ubuntu saucy main"



Install META desktop environment



  1. sudo apt-get update
  2. sudo apt-get --yes --quiet --allow-unauthenticated install mate-archive-keyring
  3. sudo apt-get update
  4. sudo apt-get install mate-core
  5. sudo apt-get install mate-desktop-environment



2. Install dan Start VNC server




  1. sudo apt-get install vnc4server
  2. vncserver
masukkan password dan konfirmasi password. Langkah ini sekaligus membuat konfigurasi default start up VNC.
Selanjutnya stop VNC server untuk meng-edit konfigurasinya.

vncserver -kill :1


3. Edit Konfigurasi VNC Server


sudo nano .vnc/xstartup

Edit pada baris-baris berikut ini:

  1. #!/bin/sh
  2. # Uncomment the following two lines for normal desktop:
  3. unset SESSION_MANAGER
  4. unset DBUS_SESSION_BUS_ADDRESS
  5. # exec /etc/X11/xinit/xinitrc
  6. [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
  7. [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
  8. xsetroot -solid grey
  9. vncconfig -iconic &
  10. # x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
  11. # x-window-manager &
  12. mate-session &
  13. # gnome-session --session=ubuntu-2d &

Simpan perubahan tersebut (tekan ctrl + x lalu tekan Y)



4. Membuat script auto-start on boot




Langkah selanjutnya yang tidak kalah penting adalah membuat script auto start supaya VNC Server berjalan otomatis setelah server di restart (rebooting). Berbeda dengan CentOs yang cukup bisa dilakukan dengan command chkconfig.



4.1. Buat script startup lalu edit.

  1. touch /etc/init.d/vncserver
  2. chmod +x /etc/init.d/vncserver
  3. nano /etc/init.d/vncserver

4.2. Copy paste kode berikut ini lalu simpan

  1. #!/bin/sh -e
  2. ### BEGIN INIT INFO
  3. # Provides:          vncserver
  4. # Required-Start:    networking
  5. # Required-Stop:     networking
  6. # Default-Start:     2 3 4 5
  7. # Default-Stop:      0 1 6
  8. ### END INIT INFO

  9. PATH="$PATH:/usr/X11R6/bin/"
  10.   
  11. # The Username:Group that will run VNC
  12. export USER="root"
  13. #${RUNAS}

  14. # The display that VNC will use
  15. DISPLAY="1"

  16. # Color depth (between 8 and 32)
  17. DEPTH="16"

  18. # The Desktop geometry to use.
  19. #GEOMETRY="x"
  20. #GEOMETRY="800x600"
  21. GEOMETRY="1024x768"
  22. #GEOMETRY="1280x1024"

  23. # The name that the VNC Desktop will have.
  24. NAME="your-vnc-server"

  25. OPTIONS="-name ${NAME} -depth ${DEPTH} -geometry ${GEOMETRY} :${DISPLAY}"

  26. . /lib/lsb/init-functions

  27. case "$1" in
  28. start)
  29. log_action_begin_msg "Starting vncserver for user '${USER}' on localhost:${DISPLAY}"
  30. su ${USER} -c "/usr/bin/vncserver ${OPTIONS}"
  31. ;;

  32. stop)
  33. log_action_begin_msg "Stoping vncserver for user '${USER}' on localhost:${DISPLAY}"
  34. su ${USER} -c "/usr/bin/vncserver -kill :${DISPLAY}"
  35. ;;

  36. restart)
  37. $0 stop
  38. $0 start
  39. ;;
  40. esac

  41. exit 0
Agar script tersebut menjadi executable, ubah hak akses permission-nya.



sudo chmod +x /etc/init.d/vncserver

4.3. Atur script menjadi auto start pada saat proses booting





sudo update-rc.d vncserver defaults 99






4.4. Start VNC Server

/etc/init.d/vncserver start



Jalankan VNC viewer di client, lalu koneksikan ke server, dengan format IP_address_server:5901, port 5901 bisa diganti sesuai jenis user dari 1, 2 dan seterusny.

Friday 26 June 2015

Reset Printer Epson L110, L120, L210

Cara Reset Manual Indikator Tinta Epson L110, L120, L210

482be0780a95e4c7890ac08bfc06c217_cara-reset-manual-indikator-tinta-printer-epson-l210
Kali ini saya ingin membagikan pengalaman tentang “Cara Reset Manual Indikator Tinta Epson L110. L120. L210. L300. L350. L355 “, perlu diketahui sobat untuk printer epson terbaru ini yang mana indikator tinta akan membaca kosong pada batas waktu maksimal pencetakan dan tentunya printer tidak akan bisa digunakan, sekilas info untuk permasalahan seperti ini kalau kita menggunakan cara dari epsonnya yang mana kita harus membeli tinta original dan memasukkan serial number yang berada dikemasan botolnya, saya kira cara ini memakan waktu yang lama, nah!!
tanpa Bas Bis Bus alias Basa Basi Busuk hehehe Bang saya ingin berbagi bagaimana cara yang simple dan praktisnya.
Sebelum printer tidak bisa digunakan di monitor komputer akan timbul peringatan “It is nearly time to reset the ink levels “
yang arti intinya sobat harus bersiap siap untuk mereset indikator tintanya dan sampai batas printer tidak bisa mencetak akan timbul peringatan “It is time to reset the ink levels “,
Kemudian untuk cara resetnya sobat tinggal menekan tombol resume atau kertas (tombol disamping tombol power) :
  • Tekan pertama tahan tombol resume sekitar 5 detik lalu lepas,
  • Tekan kedua tahan tombol resume sekitar 3 detik lalu lepas,
  • Tekan ketiga tahan tombol resume sekitar 1 detik lalu lepas,
  • setelah itu akan hilang lampu warna merah pada tombol resumenya dan printer siap digunakan kembali.
(catatan tekanan pertama dst .. selang waktunya jangan lama harus secepat-cepatnya)
Selesai.

Wednesday 10 June 2015

Cara Mengatasi EPSON Stylus T13 (Printer error), Lampu merah menyala

Di bawah ini akan saya jelaskan cara mereset / Memperbaiki printer Epson T13 yang error, lampu merah nyala. Hal ini saya alami di printer yang sudah di modifikasi tinta infus....




Tidak usah terlalu lama untuk membacanya, langsung praktek saja ya...

Jika kita melihat lampu merah menyala ( Jangan berhenti di Zebra Cross, nanti tangkep Polisi ) pada printer epson dan printer Ngadat , Pastikan  jangan panik Ya, i
Next, Buka cover printer
Tekan tombol (lampu merah) terus lihat cartridge ( Cartridge akan bergerak ke tengah)
Kalo Cartride sudah berada di tengah, tekan lagi tombol (lampu merah) sekali saja.
Pastikan cartridge bergerak ke kiri (bergesernya sedikit)
Setelah itu tekan tombol putih pada cartridge (Biasanya terletak di tengah-tengah cartridge), lalu tekan lagi tombol (lampu merah) terus tekan lagi tombol putih pada cartridge.
Cartridge akan bergerak ke kiri
Lanjut, tekan tombol (lampu merah) sebanyak 2 kali sampe cartride bergerak ke kanan dan ke kiri.
Tunggu sampai cartride berada di sebelah kanan.
Terakhir, Printer EPSON Stylus T13 sudah kembali normal.

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