One of the blackberry feature is Bluetooth, and we can use it to transfer file.Here is the steps :
- Activate your Blackberry bluetooth and set it to Discoverable Mode ( You will see ‘waiting for connection’ message on the blackberry.
- On Ubuntu, open terminal akses root, you can use # sudo su to always work as root.
- Scan Blackberry Bluetooth using hcitool
# hcitool scan
Scanning …00:1C:CC:4C:4A:32 BlackBerry 8310
Now, scan your blackberry for other available services.# sdptool browse
Inquiring …
Browsing 00:1C:CC:4C:4A:32 …
Service Name: Dialup Networking
Service RecHandle: 0×10000
Service Class ID List:
“Dialup Networking” (0×1103)
“Generic Networking” (0×1201)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 1
Profile Descriptor List:
“Dialup Networking” (0×1103)
Version: 0×0100
Service Name: Headset
Service RecHandle: 0×10001
Service Class ID List:
“Headset Audio Gateway” (0×1112)
“Generic Audio” (0×1203)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 2
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100
Service Name: Hands-free
Service RecHandle: 0×10002
Service Class ID List:
“Handsfree Audio Gateway” (0×111f)
“Generic Audio” (0×1203)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 3
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100
Profile Descriptor List:
“Handsfree” (0×111e)
Version: 0×0105
Service Name: Advanced Audio
Service Provider: BlackBerry
Service RecHandle: 0×10003
Service Class ID List:
“Audio Source” (0×110a)
Protocol Descriptor List:
“L2CAP” (0×0100)
PSM: 25
“AVDTP” (0×0019)
uint16: 0×100
Profile Descriptor List:
“Advanced Audio” (0×110d)
Version: 0×0100
Service Name: A/V Remote Control TG
Service Provider: BlackBerry
Service RecHandle: 0×10004
Service Class ID List:
“AV Remote Target” (0×110c)
Protocol Descriptor List:
“L2CAP” (0×0100)
PSM: 23
“AVCTP” (0×0017)
uint16: 0×100
Profile Descriptor List:
“AV Remote” (0×110e)
Version: 0×0100
Service Name: BlackBerry Desktop Service P:0×2DF2F542 R:0×03 V:0×20104
Service RecHandle: 0×10005
Service Class ID List:
UUID 128: 426c6163-6b42-6572-7279-44736b746f70
“Serial Port” (0×1101)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 4
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100
Service Name: Phonebook Access PSE
Service RecHandle: 0×10006
Service Class ID List:
“Phonebook Access - PSE” (0×112f)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 5
“OBEX” (0×0008)
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100
Profile Descriptor List:
“Phonebook Access” (0×1130)
Version: 0×0100
Service Name: BlackBerry Bypass Service P:0×2DF2F542 R:0×03 V:0×20003
Service RecHandle: 0×10007
Service Class ID List:
UUID 128: 426c6163-6b42-6572-7279-427970617373
“Serial Port” (0×1101)
Protocol Descriptor List:
“L2CAP” (0×0100)
“RFCOMM” (0×0003)
Channel: 6
Language Base Attr List:
code_ISO639: 0×656e
encoding: 0×6a
base_offset: 0×100
There you are, there are quite complete service from the blackberry.We can use it as a modem or audio gateway and transfering files.
- Now, connect/pair your Ubuntu System with the blackberry.
# rfcomm connect rfcomm0 00:1c:cc:4c:4a:32
00:1c:cc:4c:4a:32 is the id number result from hcitool scan above.
After succesfully paired, you may use nautilus and start transfering your files send to bluetooth.done.
December 27th, 2009
Posted by
admin |
Blackberry, Ubuntu |
no comments
Yes lets fight with spam.
These days spammers are in love with my server, damn.
I just realize it, when I keep getting email bounced from the recipient guardian, such as barracuda.
When I check and recheck, the mail server is running as open relay server.
Here is what I did to protect.
Firstable, I already have Qmail + Vpopmail running properly and compiled as enabled roaming user that mean is smtp authenticate feature is enabled.
Secondly, You dont need to create secure connection using CRAMD5, AUTH PLAIN, AUTH LOGIN. Dont missunderstood, these secure connections are nothing to do with open relay, if you want to enable this feature that will be great.
Third, you must edit your /etc/tcp.smtp . tcp.smtp is a file to manage connection to your smtp port. Do google about this. You will find dozen knowledge about it.
The point is you must add these line :
127.:allow,RELAYCLIENT=”"
:allow,SMTPAUTH=”"
:deny
That means, allways allow connection from localhost and always allow incoming connection that using smtp authentication and deny the rest except the “rcpt to: ” is in the /var/qmail/control/rcpthosts file.
# service qmail stop
# service qmail cdb
# service qmail start
November 25th, 2009
Posted by
admin |
CentOS, Email, Ubuntu |
no comments
Q : How can I open and extract rar file ?
Rar files are compressed file, you need to decompressed it or unrar it.
There is linux software called unrar, able to read , open and extract rar files.
$ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz
Untar the downloaded file
$ tar -zxvf rarlinux-3.6.0.tar.gz
Both unrar and rar commands are located in rar sub-directory. Just go to rar directory:
$ cd rar
$ ./unrar
Now copy rar and unrar to /bin directory:
# cp rar unrar /bin
To Extract Rar files use:
$ unrar x rar.file
September 29th, 2009
Posted by
admin |
CentOS, Ubuntu |
no comments
To Setting up static ip address is very easy, but sometime we forget how to do it.
Here’s the step, just incase you forgot.
# vi /etc/networking/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address xxx.xxx.xxx.xxx(enter your ip here)
netmask xxx.xxx.xxx.xxx
gateway xxx.xxx.xxx.xxx(enter gateway ip here)
# vi /etc/resolv.conf
nameserver xxx.xxx.xxx.xxx(enter your dns server ip)
nameserver xxx.xxx.xxx.xxx(enter your alt dns server ip)
# service networking restart
Thats all.
August 31st, 2009
Posted by
admin |
Ubuntu |
no comments
Hi,
I have Centos installed on HP Proliant Box with 13Gig of RAM Memory.
Yesterday, I was running rsync all my websites into another box in LAN.
Somehow the memory has dropped out and there is only 32Mb left on free memory.
Damn, only copying files has eating more than 12 Gigs of memory, and after rsync has finish and there is no more rsync process , the free mem won’t go back to normal. That is crazy !!.
I know you people will or even already have the same situation as I did.
Here is the tips. The secret is on /proc/sys/vm/drop_caches file.
Simply run this :
To free pagecache:
echo 1 > /proc/sys/vm/drop_caches
To free dentries and inodes:
# echo 2 > /proc/sys/vm/drop_caches
To free pagecache, dentries and inodes:
# echo 3 > /proc/sys/vm/drop_caches
Here is the example syntax and the result before and after freeing the memory.
[root@dev vm]# cd /proc/sys/vm/
[root@dev vm]# cat drop_caches
0
[root@dev vm]# free
total used free shared buffers cached
Mem: 1132664 1085076 47588 0 194664 490084
-/+ buffers/cache: 400328 732336
Swap: 2031608 0 2031608
[root@dev vm]# sync ; echo 3 > /proc/sys/vm/drop_caches ; free
total used free shared buffers cached
Mem: 1132664 388280 744384 0 116 48240
-/+ buffers/cache: 339924 792740
Swap: 2031608 0 2031608
You have new mail in /var/spool/mail/root
[root@dev vm]# cat drop_caches
3
[root@dev vm]# sync ; echo 0 > /proc/sys/vm/drop_caches ; free
total used free shared buffers cached
Mem: 1132664 395952 736712 0 1336 55180
-/+ buffers/cache: 339436 793228
Swap: 2031608 0 2031608
note: don’t forget to put ‘0′ back into the drop_caches.
I still dont know if there will the any risk, until now.. everything is fine.
August 3rd, 2009
Posted by
admin |
CentOS, General, Ubuntu |
no comments