Wednesday, December 05, 2007
I tried to install minbar from http://khaled.djihed.com/ubuntu/minbar/minbar_0.1-4_i386.deb .
I still need to install libitl0 before I can install minbar.
You still need to manually enter the Long/Lat of your location + GMT zone.
In my case I got from here http://www.islamicfinder.org/prayerDetail.php?city=Jakarta&state=06&country=indonesia&lang=&home=2007-12-5
due to I live at Jakarta Indonesia.
Latitude: -6.1744
Longitude: 106.8294
Timezone: GMT +7.00
But when I see the prayer time list, the Ashr time is quite different from the usual time of Ashr in Jakarta.
I try all the "Calculation Method" listed in minbar, but I can't get the Ashr time that approximate with Jakarta's Ashr time. Almost all list Ashr time about an hour before except for Hanafi method is about half an hour after the time.
So, I think I should better use Pray Time! FireFox Add-on Extention.
Thursday, November 08, 2007
Saturday, November 03, 2007
Provider : XL & Centrin
Mobile : Nokia E61
using Bluetooth (Dial Up Network/DUN) service
Create new file /etc/ppp/peers/centrin
connect "/usr/sbin/chat -v -f /etc/chatscripts/centrin"
usepeerdns
noauth
defaultroute
noipdefault
nocrtscts
nocdtrcts
modem /dev/rfcomm0 115200
user "user@xl.centrin.net.id"
Replace user@xl..... with your username given by centrin.
File /etc/ppp/pap-secrets, add this line at the end of the file.
"user@xl.centrin.net.id" * "mypassword"
Also replace the mypassword with your password.
Create new file /etc/chatscripts/centrin
TIMEOUT 60
ABORT ERROR
ABORT BUSY
ABORT VOICE
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "NO DIAL TONE"
ABORT "NO ANSWER"
"" "ATZ"
OK AT+cgdcont=1,"IP","centrin.net.id"
OK-AT-OK "ATDT*99#"
TIMEOUT 75
CONNECT
Prepare your bluetooth connection, so your computer can see your mobile phone. But somehow I cannot pairing from "Bluetooth Manager" :-( .
CLI rulezz .... :-)
Next, some commands need root priviledge.
Search for device and channel for Dial-Up Network.
$ sdptool search DUN
In my case, the device-id is 00:12:D2:6B:1F:4F
and the channel is 2.
We'll use rfcomm0 . So release old connection, if any.
$ rfcomm release 0
Bind the device, use sdptool's result.
$ rfcomm bind 0 00:12:D2:6B:1F:4F 2
Next, we need to pair your computer and your mobile-phone.
Well, I don't know how to do it better. Please advice ....
But we need to open xhost security.
$ xhost +
Place the PIN at the handset.
Match the Bluetooth PIN at the Ubuntu.
$ cat < /dev/rfcomm0
Control-C to back to prompt.
Then close the X security.
$ xhost -
Then call the pppd
$ pppd call centrin
Happy surfing ....
Tuesday, February 20, 2007
To flush unused memory on Linux
% dd if=/dev/zero of=junk bs=10MB count=200 #generate a 2000MB file
% # by now top will show not much free memory left.
% rm junk
You will then see a big jump of free memory because the data in the dirty buffers is no longer valid and the memory is free for other use.
Wednesday, November 29, 2006
Integrating Mantis Bug Tracking with Win32 TortoiseSVN
mike.junk@NOntlworldSPAM.com
25-Apr-2005 11:11 #419
Brief guide to TortoiseSVN integration on Win32. This will allow you to enter a Mantis issue number when doing an SVN commit, automatically add a note to the Mantis 'notes' log containing info about the change, and show a link to the issue from TortoiseSVN log.
1. Set properties for your SVN repository (e.g. in TortoiseSVN, use the file properties dialog) to include the following:
bugtraq:label = issue
bugtraq:url = http://
bugtraq:message = issue %BUGID%
bugtraq:warnifnoissue = true
2. Create a post commit hook file in the SVN respository hooks directory (
REM Post-commit hook for MantisBT integration
SET REPOS=%1
SET REV=%2
SET DETAILS_FILE=
SET LOG_FILE=
echo ****** Source code change ******>>%DETAILS_FILE%
svnlook log -r %REV% %REPOS%>>%DETAILS_FILE%
echo SVN Revision:%REV%>>%DETAILS_FILE%
svnlook diff -r %REV% %REPOS%>>%DETAILS_FILE%
DEL %DETAILS_FILE%
DEL %LOG_FILE%
3. Add the following to your Mantis config_inc.php
#Integration to SVN
$g_source_control_notes_view_status = VS_PUBLIC;
$g_source_control_account = '
$g_source_control_set_status_to = OFF;
$g_source_control_regexp = "/\bissue [#]{0,1}(\d+)\b/i";
Sunday, November 19, 2006
Dump database MySQL tiap hari
To backup MySQL everyday with simple shell script.
I'm using Ubuntu 5, MySQL 5.
Create a file at /etc/cron.daily .
Named, e.g. "backup-mysql" .
The content of the file is (between dashes) :
-------------------------------------------
#!/bin/sh
test -x /usr/bin/mysqldump || exit 0
/usr/bin/mysqldump --all-databases -u root --password=a | gzip - > /backup/mysql/mysql-`date +%F`.sql.gz
cd /backup/mysql
find . -atime +14 -delete
-------------------------------------------
#!/bin/sh
Tell the shell wich shell to run this script. Ubuntu default is bash shell.
test -x /usr/bin/mysqldump || exit 0
Check the /usr/bin/mysqldump is it there ? If not just exit.
/usr/bin/mysqldump --all-databases -u root --password=a | gzip - > /backup/mysql/mysql-`date +%F`.sql.gz
Dump all the databases from server with user 'root' and password 'a' (for example). Zipped with gzip and store at /backup/mysql. The file name generated differently every day prefixed with 'mysql-' follow by the date (from `date +%F`, it's a back quote pair).
cd /backup/mysql
find . -atime +14 -delete
Go to the folder and check if there are some file older than 14 days, delete it.
Tags: MySQL, cron, backup, dump, bash, Ubuntu
Wednesday, August 30, 2006
C Development Environment on Ubuntu
To set C Development Environment on Ubuntu
Just apt-get install build-essential
Sorry one-liner
Tags: Ubuntu, C Development
Monday, July 03, 2006
GSM : XL Xplore
Mobile : Sony Ericsson T610
using Bluetooth (Dial Up Network/DUN) service
Create new file /etc/ppp/peers/xlgprs
connect "/usr/sbin/chat -v -f /etc/chatscripts/xlgprs"
usepeerdns
noauth
defaultroute
noipdefault
nocrtscts
nocdtrcts
modem
/dev/rfcomm0
115200
user "xlgprs"
File /etc/ppp/pap-secrets, add this line at the end of the file.
"xlgprs" * "proxl"
Create new file /etc/chatscripts/xlgprs
TIMEOUT 60
ABORT ERROR
ABORT BUSY
ABORT VOICE
ABORT "NO CARRIER"
ABORT "NO DIALTONE"
ABORT "NO DIAL TONE"
ABORT "NO ANSWER"
"" "ATZ"
"" "AT&FH0M0"
OK AT+cgdcont=1,"IP","www.xlgprs.net"
OK-AT-OK "ATDT*99***1#"
TIMEOUT 75
CONNECT
"AT&FH0M0" is specific for SE T610.
Prepare your bluetooth connection, so your computer can see your SE T610.
Some commands need root priviledge.
Search for device and channel for Dial-Up Network.
$ sdptool search DUN
In my case, the device is 00:0F:DE:04:6F:0E
and the channel is 1.
We'll use rfcomm0 . So release old connection, if any.
$ rfcomm release 0
Bind the device, use sdptool's result.
$ rfcomm bind 0 00:0F:DE:04:6F:0E 1
Next, we need to pair your computer and your SE T610.
Well, I don't know how to do it better. Please advice ....
But we need to open xhost security.
$ xhost +
Place the PIN at the handset.
Match the Bluetooth PIN at the Ubuntu.
$ cat < /dev/rfcomm0
Control-C to back to prompt.
Then close the X security.
$ xhost -
Then call the pppd
$ pppd call xlgprs
Happy surfing ....
Wednesday, June 21, 2006
Ubuntu 6.06 Dapper Drake Installation
First of all is to download the ISOs. I managed to download it three of them, the desktop, the server, and the alternate ISOs for i386. Fortunately while I was in Singapore, I had a very good Internet cable in my corp's apartment to get those three in one night.
I had not opportunity to burn when I was there. So, days latter I'm in base city, Jakarta, I burn two of them. The desktop and alternate ISOs.
First idea to make it live CD as interface to install the Ubuntu is a great one. But, my experience is not so good as I expected. I try first the desktop CD.
The CD didn't boot smoothly in my desktop PC [IBM ThinkCenter] also in my notebook [Sony VAIO VGN-B100B]
It hang for quite a while when it try to mount the root on both PC and notebook.
After that many lines of error messages shown up.
So, I suspect the ISO file is broken or the burning process have some glitches.
I check and double check the MD5 hash and it's a correct one. So, I try to burn the desktop ISO for the second time.
Try to boot with the new CD but the same situation always came up.
So, I start to googling the "error while mount the root with Ubuntu 6.06 CD". Fortunately the Ubuntu forums has the work-around. Just type 'evms_activate' (without quote) and press Enter when you see the text error messages in the monitor. For my desktop PC the error is consistent but for my notebook the error is gone and I not doing anything except the CD is the new one. Creepy ...
After I defract my hard-disk and backing-up all important files. I decide to try to install the Dapper Drake.
First try was the notebook. I feel the desktop live CD is quite slow or heavy some way.
But this was my first time of my life while I install the Linux I can play Tetris, Mines, etc (of course Gnome's game version). The resize and install procedures was smooth as I expected but still I feel it's took more time then text-based installer.
Next, my desktop. I try to install with desktop CD. After passing the boot problem, I already got the feeling that this is not a good idea. The boot process took a very long time to show the Gnome Desktop. Even I was trying to pop-up the Terminal it took forever.
So, just push the magic 'ON' button until my PC is off.
Next, I try to boot with alternate CD and try to install with text-based installer. The installation was fast and easy.
Tags: Indonesia, Singapore, Jakarta, Linux, Ubuntu, Dapper Drake, 6.06, mount root file system, hang, error
Wednesday, May 17, 2006
Installing Rails on Ubuntu Breezy
I want to try to install Rails [Ruby] also.
So I do these as root (sudo su) :
apt-get install rails
apt-get install libapache2-mod-ruby
a2enmod rewrite
I don't want to touch my DocumentRoot at
/etc/apache2/sites-available/default
So, I add in the end of but within <VirtualHost></VirtualHost> :
Alias /rails/ "/usr/lib/cgi-bin/rails/"
<Directory "/usr/lib/cgi-bin/rails/">
Options ExecCGI FollowSymLinks
AddHandler cgi-script .cgi
AllowOverride all
Order allow,deny
Allow from all
</Directory>
Then re-start the apache
/etc/init.d/apache2 force-reload
Then goto /usr/lib/cgi-bin
cd /usr/lib/cgi-bin
mkdir rails
cd rails
To test the rails at /usr/lib/cgi-bin/rails/
rails test
cd test
ruby script/generate controller pleasework
vi app/controllers/pleasework_controller.rb
Add something inside pleasework_controller.rb, to be look like this :
class PleaseworkController < ApplicationController
def index
render_text "rails ok juga"
end
end
Edit public/.htaccess
vi public/.htaccess
Change the RewriteRule from
RewriteRule ^(.*)$ dispatch.cgi [QSA,L]
to this
RewriteRule ^(.*)$ /cgi-bin/rails/test/public/dispatch.cgi [QSA,L]
I don't know how to do this more elegant (damn ... another regex!!)
At last, we ready to shoot the URL :
http://myubuntubox/cgi-bin/rails/test/public/pleasework
Tags: Linux, Ubuntu Breezy, Apache2, rails, ruby, Indonesia
Tuesday, April 18, 2006
Setting autentikasi apache 2 dengan mysql di Ubuntu
Berikut ini spesifik untuk kasus saya yg mungkin berbeda dengan Anda.
Edit file /etc/apache2/sites-available/ssl-default
Kira-kira sebagian isinya seperti ini :
Auth_MySQL_Info 192.168.2.4 "www-data" w
Alias /svnadmin/ "/var/www/svnadmin/"
<Directory "/var/www/svnadmin/">
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 192.168.2.0/255.255.255.0
AuthMYSQL on
AuthMySQL_Authoritative on
Auth_MySQL_DB http_auth
Auth_MySQL_Empty_Passwords off
AuthName "Subversion user admin"
AuthType Basic
require valid-user
</Directory>
Sunday, December 18, 2005
Monday, April 18, 2005
Sumber : http://www.teaparty.net/technotes/blue-gprs.html
Linux : Ubuntu 5.04
Bluetooth USB
GSM/GPRS : Matrix (Indosat)
Install bluez-utils.
Saya menggunakan bluetooth USB.
Colok BT ke PC.
Cek dmesg | grep USB kira-kira akan terlihat spt :
---------
usb 2-1: new full speed USB device using uhci_hcd and address 2
Bluetooth: HCI USB driver ver 2.7
---------
Nyalakan BT di Nokia.
Scan BT dari Linux
$ hcitool scan
Scanning ...
00:11:9F:EC:59:29 mh n9500
OK kita dpt BT Device address.
Sekarang kita cari channel Dial Up Network.
$ sdptool search DUN
Inquiring ...
Searching for DUN on 00:11:9F:EC:59:29 ...
Service Name: Dial-Up Networking
Service RecHandle: 0x1001c
Service Class ID List:
"Dialup Networking" (0x1103)
Protocol Descriptor List:
"L2CAP" (0x0100)
"RFCOMM" (0x0003)
Channel: 2
Language Base Attr List:
code_ISO639: 0x454e
encoding: 0x6a
base_offset: 0x100
Profile Descriptor List:
"Dialup Networking" (0x1103)
Version: 0x0100
Penting diperhatikan nomor Channel yg didapat ( 2 ).
Mungkin utk device lain berbeda.
Copy file /etc/ppp/peers/provider jadi gprs .
Edit file /etc/ppp/peers/gprs .
----------------------------------
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/gprs"
defaultroute
/dev/rfcomm0
57600
debug
----------------------------------
Copy /etc/chatscripts/provider jadi gprs
Edit /etc/chatscripts/gprs
----------------------------------
TIMEOUT 5
ECHO ON
ABORT '\nBUSY\r'
ABORT '\nERROR\r'
ABORT '\nNO ANSWER\r'
ABORT '\nNO CARRIER\r'
ABORT '\nNO DIALTONE\r'
ABORT '\nRINGING\r\n\r\nRINGING\r'
'' \rAT
TIMEOUT 12
OK ATE1
OK 'AT+cgdcont=1,"IP","satelindogprs.com"'
OK ATD*99***1#
----------------------------------
Untuk menjalankan koneksi GPRS.
Jalankan :
$ rfcomm release 0
$ rfcomm bind 0 00:11:9F:EC:59:29 2
$ cat < /dev/rfcomm0
Isi PIN di Nokia 9500
Isi PIN di Linux.
Jika tdk muncul dialog PIN. Jalankan command 'xhost +' . Ini trik kasar. Lihat man xhost .
Ulangi cat < /dev/rfcomm0
Ketik Ctr+C untuk kembali ke prompt.
$ pppd call gprs
Happy surfing ...
Salam,
Mige
Tuesday, April 12, 2005
here's the fstab entry:
/dev/hdb5 /mnt/win_d vfat umask=0,iocharset=iso8859-1,codepage=850,users 0 0
pretty sure it's the umask=0 that did it, as that essentially mounts the partition with file permissions of 777. The ,users entry is probably unecessary, but i'll leave it for the time being.
Monday, February 28, 2005
Lihat di dmesg apakah kabel DCU-11 dikenal oleh Linux ?
Jika tdk ada device usb-serial lain biasanya kabel DCU-11 dikenal dgn driver dari Prolific 2303. (lihat juga blog saya mengenai usb-serial dn chipset Silicon Labs)
Kabel USB ini akan terhubung sebagai device serial, mungkin di /dev/ttyUSB0 (atau /dev/tts/USB0 ... cari yg mirip lah)
Cek AT+CGDCONT? dgn menggunakan minicom di handphone anda.
Sesuaikan "AT+CGDCONT=3,\"IP\",\"satelindogprs.com\",\"\",0,0"
dan "ATDT*99***3#
angka 3 disini harus sesuai dengan salah satu AT+CGDCONT?
/usr/sbin/pppd /dev/ttyUSB0 115200 connect '/usr/sbin/chat -v ABORT "NO CARRIER" "" "AT&F" OK "AT+CGDCONT=3,\"IP\",\"satelindogprs.com\",\"\",0,0" OK "ATDT*99***3#" CONNECT' disconnect '/usr/sbin/chat -v ABORT "BUSY" "" "\K" "" "+++ATH"' defaultroute noauth mtu 1500 mru 1500 noipdefault idle 600
Jgn lupa untuk men-edit file /etc/ppp/options
Disable LCP dengan cara beri tanda komen(#) dibagian lcp-*
Jika tdk koneksi anda akan selalu putus dlm waktu 120 detik.
regards,
mige
(This blog send with Matrix GPRS)
Thursday, February 24, 2005
Saya punya beberapa kabel data Sony Ericsson tapi pake chipset dari Silicon Laboratories (CP210x).
Di Debian : lsusb -v
Sayang sekali nggak ada drivernya untuk Linux.
Setelah cari2 di google ternyata, Silicon Laboratories di banned oleh komunitas Linux krn melanggar GPL ...
Nasib ...
Ada cara lain untuk meng-akali hal ini ?????
Tuesday, April 27, 2004
Akhirnya vcd playernya jalan ...
Cek semua file config untuk semua playernya ...
Cari kira-kira yang isinya "default.vcd.device=" trus isi (punya saya) "/dev/hdd" jadi seperti begini :
default.vcd.device=/dev/hdd
Pokoknya lihat semua file config dari gmplayer, totem, xine dan cari yang mirip seperti diatas.
Happy search and fill ...
Monday, April 12, 2004
Install gmplayer (GUInya mplayer) ... payah nggak bisa langsung jalan .... error di option -vo ...apa gichu (males setting-setting lagi) ...
Jadi masih pake mplayer untuk VCD player ... agak report tapi ok ...
Install xmlto (interfacenya xmlproc) dwonload dari rpmfind.net ... ok
Sekian dulu ...
Sunday, April 11, 2004
Install Mandare 10.0 Community (Download Version), maunya sih upgrade dari Mdk 9.2 tapi estimated time-nya sekitar 4 jam ...
Saya urungkan untuk melanjukan upgrade. Saya install fresh ... Semua mount point di-format kecuali /home ...
Instalasinya kira-kira 1 jam ...
Dari tampilannya sih nggak jauh beda dari Mdk 9.2 ....
Mungkin diawal-awal lebih banyak kecewanya .... boot nggak bisa dari CD1 tapi dari CD2 ... but it's ok.
Default browser internet untuk gnome ganti dari galeon jadi ephipany ... kurang tahu kenapa ...(agak kecewa)
Totem nggak bisa nyetel VCD ... uh... padahal di 9.2 langsung bisa. Xine juga nggak bisa ... arrgghhh ...
Jadinya pake mplayer untuk VCD ...(what ... command line again ..)
Sebagai developer saya butuh beberapa package :
- Anjuta saya install dari sourcenya ... semua dependency ada di Mdk 10.0 ... cool ...
- python + pygtk + wxpython ... ok
- docbook dtd + xsl ... ok
Ok deh ... gichu aja dulu ..