Tuesday, September 25, 2012

syncronize folder

How to syncronize betwen 2 folder on ubuntu 12.04

Open the terminal, and run the sync command;


 hari@MyNB:~$ sudo rsync -a folder1 folder2


"that command mean syncronize folder1 to folder2 "

that's it.... easy right ?


Saturday, September 22, 2012

Change Unity to Gnome on ubuntu 12.04

Here some step to change Unity to Gnome.

1. Add repository

sudo add-apt-repository ppa:gnome3-team/gnome3 
 
2. Run repository update

sudo apt-get update
 
3. Install the gnome-shell

sudo apt-get install gnome-shell
 
4. Log out than login, but remember to choose the session first ... and Enter... violaaa... your gnome desktop ready to use...

 





 
 
 

Sunday, September 9, 2012

Install SMS Gateway di Ubuntu

Cara Install SMS Gateway di ubuntu

1.    Langkah pertama adalah install gammu dan gammu-smsd.
Perintahnya adalah :
apt-get install gammu
apt-get install gammu-smsd
2.connect modem dan cek menggunakan perintah
   
#lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 008: ID 15d9:0a4c Trust International B.V. USB+PS/2 Optical Mouse
Bus 002 Device 009: ID 04d9:1203 Holtek Semiconductor, Inc. Keyboard
Bus 002 Device 007: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
root@TMA-PowerEdge-T110-II:~#
 
#dmesg | grep tty
[    0.000000] console [tty0] enabled
[    1.800643] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    1.896399] serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[    2.192509] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    2.244389] 00:0a: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
[30640.705668] usb 2-1.2: pl2303 converter now attached to ttyUSB0
3. Buat file /root/.gammurc
   #nano /root/.gammurc
   port = /dev/ttyUSB0
   model =
   connection = at115200
   synchronizetime = no
   logfile = /var/log/smsdlog
   logformat = nothing
   use_locking =
   gammuloc =

4. Untuk test apakah gammu sudah bisa connect dengan modem lakukan perintah #gammu --identify
      # gammu --identify
Device               : /dev/ttyUSB0
Manufacturer         : Wavecom
Model                : MULTIBAND  900E  1800 (MULTIBAND  900E  1800)
Firmware             : 641b09gg.Q2403A 1320676 061804 14:38
IMEI                 : 012345678901234
SIM IMSI             : 510101352454024



5.  Buat database sms dan jalankan script mysql.sql di /usr/share/doc/gammu/examples/sql/mysql.sql

6. Supaya tidak muncul error " Error code: 2002, Error: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)" jalankan perintah

sudo mkdir /var/run/mysqld
sudo ln -s /opt/lampp/var/mysql/mysql.sock /var/run/mysqld/mysqld.sock


7. jalankan service gammu-smsdrc dengan perintah

/etc/init.d/gammu-smsd start

INGAT = apabila service gammu-smsdrc ini sudah jalan maka kalau menjalankan perintah gammu --identify akan tidak muncul hasilnya. harus matikan service gammu-smsdrc dulu.

8. Supaya service ini jalan otomatis apabila pc restart, taru perintah itu di file rc.local

9. Untuk melihat isi inbox di mysql 

mysql> select  ReceivingDateTime,TextDecoded from inbox;
+---------------------+-------------------------------------------+
| ReceivingDateTime   | TextDecoded                               |
+---------------------+-------------------------------------------+
| 2012-09-09 17:56:01 | Sudah bisa connect tuh inbox gamunya.    |
| 2012-09-09 17:54:10 | Hallo                                     |
+---------------------+-------------------------------------------+
2 rows in set (0.00 sec)