Monday, August 23, 2010

HOWTO : Voice over IP (VoIP) on Android (Asterisk Edition)

*** Last updated on August 28, 2010 (GMT +8) ***

UPDATED : CSipSimple just released 0.00-12-24 today (2010-AUG-28). A quick test is conducted and some bugs are fixed. This tutorial will be updated when I fully tested this new version.

Testing report


UPDATED : The current version is 0.00-12-36 as on today (2010-SEP-22). The app is much more stable.

This tutorial is show you how to setup your Android phone to communicate with another IP Phone or Android in no further investment. Meanwhile, this feature does not consume your mobile phone air time but consume the 3G data. If you have an unlimited 3G plan, you will be very happy with that. Make sure you are connected to the internet when using the VoIP. Wifi also works fine.

PART I - Select a SIP provider

The following SIP providers offer free account of SIP service for inbound and outbound. You can select one of them that suit you most. I prefer sip2sip.info. Make sure to register to the SIP provider and write down all the details that they give you for further setting.

sip.tpad.com
sip.12voip.com
sip.smartvoip.com
sip2sip.info
sip.actionvoip.com

For example, your login name (account name) of sip2sip.info is "Android".

PART II - Asterisk configuration

If you have an Asterisk server, you can set it yourself. The settings are similar to the below mentioned. If you do not have one, I suggest you to use PBXes.org (the same provider/developer of SIPDroid) which offers 2,000 minutes monthly free air time for 60 minutes per call. You will have 2 simultaneous calls, 5 trunks and 5 extensions per account.

The following is setting at the website of PBXes.org :

(A) Create a Trunk
"Trunks" -- "Add Trunk"

"Trunk Name" - any name you like, e.g. sip2sip
"username" - the username of sip2sip.info, e.g. 3344567890
"password" - the password of sip2sip.info
"SIP server" - "sip2sip.info"

"Outbound Caller ID" - any name you want to display on phone

(B) Create Outbound route
"Outbound Routing" -- "Add Route"

"Route Name" - any name you like, e.g. sip2sip
"Trunk Sequence" - select the above, such as SIP/sip2sip

Select "Valid for all numbers"

"Extension" - any number, e.g. 100

(C) Create Extension
"Extensions" -- "Add Extension"

"Display Name" - any name you like, e.g. Android

"username" - android-100
"password" - any password
"dial" - "SIP/android-100"

"Outbound CID" - any name you like, e.g. Android

(D) create Ring groups
"Ring Groups" -- "Add Ring Group"

"ring strategy" - ringall or hunt or memoryhunt
"ring time (max 60 sec)" - 60 or less

Select "Hangup"

(E) Create Inbound route
"Inbound Routing" -- "Add Incoming Route"

Regular Hours
Select "Extension" to "Android <100>"

After Hours
Select "Extension" to "Android <100>"

Select "No override (obey the above settings)"

PART III - SIP Client (Softphone) for Android

There are 2 great SIP clients for Android, they are SIPDroid and CSipSimple. You can download them in the Android Market.

The captioned clients are under development in beta and alpha stage respectively. The current version of SIPDroid is 1.5.5 while CSipSimple is 0.00-12-22. For the CSipSimple, I suggest you to download it at her official site.

You can download "Barcode scanner" from the Market to scan the QRCode on the site for installation. Make sure you have enabled the "Unknown sources" at "Applications" of "Settings" at your Android phone.

(1) CSipSimple configuration

(A) Account
"Add account" -- "Basic"

"Account name" - any name you like, e.g. pbxes.org
"User" - username-<extension>, e.g. android-100
"Server" - pbxes.org
"Password" - password

(B) Settings
(a) Easy Configuration
Nothing to set now.

(b) Network
Check all items.

(c) Media
Check "Echo cancellation"
Check "Voice audio detection"

(d) User interface
Check "Dialer integration"
Check "Text dialer"
Check "Integrate with Music application"
Check "Keep awake while on call"
Check "Use partial wake lock"

(2) SIPDroid configuration

The setting is similar to the CSipSimple. It also provides video streaming.

PART IV - Dial out

At the space provided at the CSipSimple, type the following to dial out :

For example, you dial to yourself from another softphone.

android@pbxes.org

or

android-100@pbxes.org

PART V - Linksys SPA IP Phone (SPA941) configuration

Open browser and go to the setup page of SPA941.

Ext 1

SIP Settings
SIP Proxy-Require - pbxes.org

Proxy and Registration
Proxy - pbxes.org
Outbound Proxy - no need to set
Use Outbound Proxy - no

Subscriber Information
Display Name - Office
User-ID - office-100
Password - your password
Use Auth ID - yes
Auth ID - office-100

e.g. you have create "office" with the extension "100" at PBXes.org

User

Speed Dial
Speed Dial 2 - android-100@pbxes.org
Speed Dial 3 - david-100@pbxes.org

Speed Dial Out

Pick up handset, press "2" (speed dial number) and then "#"

PART VI - Conclusion

Although SIPDroid is the first apps in the Market for VoIP and it also provides video streaming, the dial out procedure is not mature. The apps cannot running in the background for awaiting VoIP calls when you always dial out to PSTN (land lines). It is because it dial out VoIP calls only.

CSipSimple is still in alpha stage but it is quiet more stable as at 0.00-12-22. You can select if you want to dial out via SIP account or Mobile phone number. It is quiet mature. It will be prefect if it also provide video streaming and contact list for VoIP dial out.

CSipSimple and SIPDroid are working prefectly on Asterisk.

The current development version (CSipSimple 0.00-12.22) does not support bluetooth. When bluetooth is enabled, the incoming and outgoing call may caused your Android hang or power off is required.

This tutorial may also apply to other smartphones or desktops that have SIP Client. For Ubuntu or Linux, you can use Ekiga.

That's all! See you.

Friday, August 20, 2010

HOWTO : Voice over IP (VoIP) on Android (Ekiga edition)

*** UPDATED ON AUGUST 28, 2010 (GMT +8)***

UPDATED : CSipSimple just released 0.00-12-24 today (2010-AUG-28). A quick test is conducted and some bugs are fixed. This tutorial will be updated when I fully tested this new version.

Testing report


UPDATED : The current version is 0.00-12-36 as on today (2010-SEP-22). The app is much more stable but Ekiga.net accounts cannot be communication each other over 3G at the moment.

This tutorial is show you how to setup your Android phone to communicate with another IP Phone or Android in no further investment. Meanwhile, this feature does not consume your mobile phone air time but consume the 3G data. If you have an unlimited 3G plan, you will be very happy with that. Make sure you are connected to the internet when using the VoIP. Wifi also works fine.

Step 0 (Optional) :

If you will use your Android to call VoIP via wifi, you will need to configure your router for the purpose.

Forward the essential ports of SIP at your router.

Forward port 5000-5100 and port 3478-3479 to any internal address.

*It works great on TP-Link TL-WR1043ND router with DD-WRT firmware.

**You may also consider to do MAC filter for wifi access.

Step 1 :

Use free SIP provider Ekiga.net.

Official page

Register page

*the account may look like this - yourname@ekiga.net

**Ekiga.net may require STUN server when you are behind NAT or firewall. The STUN server should be stun.ekiga.net and port is 3478.

***You can also use Ekiga on your Ubuntu / Linux desktop.

Step 1a (Optional) :

If you will use Ekiga on Ubuntu 10.04, you should patch it with PPA.

sudo add-apt-repository ppa:sevmek/ppa
sudo aptitude update


To install -
sudo aptitude install ekiga

or, to upgrade -
sudo apt-get upgrade

Step 1b (Optional) :

If you are using Ubuntu or Linux and behind NAT or firewall, you may require to add the following lines to /etc/rc.local and then reboot.

The following setting is to overcome the timeout problem.

sudo nano /etc/rc.local
echo 3600 > /proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout
echo 3600 > /proc/sys/net/ipv4/netfilter/ip_conntrack_udp_timeout_stream


Step 2 :

Install CSipSimple apps at the official site. The current version is 0.00-12-22 at this writing. CSipSimple is under development at Alpha stage. The version at the Market is 0.00-12.

Select "Menu" -- "Accounts" -- "Add account" -- "World wide providers" -- "Ekiga"

Fill in the "User name" - "yourname" and "Password" - "yourpassword".

Save it.

You may see the word "Ekiga" turn to green.

Step 3 :

Select "Menu" -- "Settings"

(a) Easy Configuration
Nothing to set now.

(b) Network
Check all items.

(c) Media
Check "Echo cancellation"
Check "Voice audio detection"
Check "Enable ICE" (if you are behind firewall or NAT)
Check "Enable STUN" (if you are behind firewall or NAT)
Enter "stun.ekiga.net" at "STUN server"

*ICE may not required in some conditions.

(d) User interface
Check "Use partial wake lock"

Step 4 :

Exit and go to the dial panel. Select "six dots" icon on the left lower corner just next to the green phone headset.

Type your friend's account, the format may be "yourfriend@ekiga.net". Then, press green phone headset to dial out.

Remarks :

Up to now, the only cons is no contact list for speed dial. I have posted the request to the developer's site.

The known issue is that it cannot dial to Asterisk server as it will hang up automatically. In addition, when you call to Desktop that running Ekiga and behind router, you may encounter no voice between both sides.

The current development version (CSipSimple 0.00-12.22) does not support bluetooth. When bluetooth is enabled, the incoming and outgoing call may caused your Android hang or power off is required.

That's all! See you.

Thursday, August 19, 2010

HOWTO : Full HD playback with VideoLan and PPA on Ubuntu 10.04

This tutorial may read conjunction with the HOWTO : MyGica D689 USB HDTV dongle, VideoLan and PPA on Ubuntu 10.04 but the different is the display card. The display card (GeForce 8500GT) that using at the link does not support Full HD playback.

The CPU used in this tutorial does not support full HD playback.

Hardware and software used in this tutorial :

CPU - AMD Athlon 64x2 4200+
RAM - 8GB DDR2 800
Hard Drive - 500GB x 4 on Hardware RAID 10
Display card - nVidia GeForce GT240
Monitor - 4:3 LCD monitor (not full HD monitor)
Operating system - Ubuntu 10.04 Desktop AMD64

Step 1 :

Make sure you have installed the nVidia driver from repository.

"System" - "Administration" - "Hardware driver" - Select "Recommended"

sudo add-apt-repository ppa:nvidia-vdpau/cutting-edge-multimedia
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libvdpau1 vdpau-video ffmepg


Step 2 :

Install VideoLan and related packages.

sudo apt-get install x264 vlc mencoder qt4-qtconfig
sudo apt-get install ubuntu-restricted-extras quicktime-utils quicktime-x11utils libdvdnav4 libdvdread4 libdvdcss2 non-free-codecs faad


Or, you may require to reboot your system when necessary.

Step 3 :

*The settings below is only good for my hardware only. Yours may be different.

Run "VideoLan"

"Tools" -- "Preference" -- "Video Settings" -- Enable "Accelerated video output (Overlay)"

"Tools" -- "Preference" -- "Input and Codecs Settings" -- Enable "Use GPU acceleration (experimental)"

"Tools" -- "Preference" -- "Input and Codecs Settings" -- "x264 preset and tuning selection" -- Select "ultrafast" and "fastdecode"

Full HD video sample

You can download this sample for testing.

That's all! See you.

Wednesday, August 18, 2010

Must Install Apps for your Android

*** Last Updated on September 22, 2010 (GMT +8) ***

I have a Google Nexus One with Android 2.2. The following list is the some of the apps in my phone that I think good for you all.

For Hong Kong only

StudioKUMA Call Filter - Block spam calls
HK Weather Widget - Hong Kong Weather
港價 - Compare products price between shops / supermarkets Updated on September 13, 2010
Hong Kong Sky Eye - Traffic condition (still pictures) from Transport Dept
Mark Six (香港六合彩) - Lottery of Hong Kong
香港通宵交通 - Transportation for midnight
MyMetroHK - Metro (MTR's free newspaper)
am730 - AM730 free newspaper
StudioKUMA BusInfo - Buses information
Useful Numbers - Useful telephone numbers in HK

Chinese Input Method

Cantonese keyboard - Cantonese input method
Simplified Cangjie keyboard - Cangjie input method

Multimedia

RockPlayer - Media player (can play RMVB)
Adobe Reader - Adobe Reader (read PDF)
Any Radio - Internet radios (including all HK channels)
Skyfire - Another Browser with can watch TVB's MyTV New on September 13, 2010

Utilities

Tethering Widget - Toggle between USB and Hotpot tethering
Dr.Web Anti-virus - Anti-virus
Flash Player 10.1 - Adobe Flash player
Android System Info - Information about your Android
LauncherPro - Launcher (with 7 pages) Updated on September 13, 2010
App 2 SD - Moves apps between phone and microSD card
ESrongs File Explorer - File explorer for phone and microSD
Fast Reboot - Memory optimizer
Power Save Mode Toggle - Toggle between power save mode and standard mode
EStrongs Task Manager - Can kill task when it is abnormal
Save my Attach - Save email attachment
Quick Uninstaller - Uninstaller
Volume Control (by RevoSolutionary Development) - Control the volume of the Android New on September 13, 2010
SwiFTP - Android as FTP server New on September 13, 2010
Voice Caller ID - Speak out caller's ID when your phone rings New on September 22, 2010

Others

Find Starbucks - Any Starbuck coffee shop near you
GoMarks for Google - Google's bookmark
GPS Essentials - Information gathered by GPS
大牛新聞 - Instant News
ShopSavvy Barcode Scanner - Can read barcodes include QRCode
Barcode scanner (by ZXing Team) - Can read QRCode New on September 13, 2010
EasyShare - Share your QRCode
ConnectBot - SSH client
Sipdroid VoIP + video - SIP client
CsIpSimple - Another SIP client (in Alpha stage) New on September 13, 2010
MSN Talk - MSN instant messenger
Gemini Calendar - Calendar (work with Google's Calendar)
Thinking Space - Mind Map editor New on September 13, 2010
PingChat - Similar to MSN Talk but it can send MMS like images New on September 13, 2010
WiFi Manager - Shows available wifi APs New on September 13, 2010
ColorDict - Dictionary New on September 13, 2010

That's all! See you!

Tuesday, August 17, 2010

HOWTO : MyGica D689 USB HDTV dongle, VideoLan and PPA on Ubuntu 10.04

This tutorial is similar to the previous one but the different is using PPA repository

Hardware and software used in this tutorial :

CPU - Intel Core 2 Quad Q9550
RAM - 8GB DDR2 800
Hard Drive - 500GB x 4 on Hardware RAID 10
HDTV - MyGica D689 HDTV USB dongle (v3.0)
Display card - nVidia GeForce 8500GT
Monitor - 4:3 LCD monitor (not full HD monitor)
Operating system - Ubuntu 10.04 Desktop AMD64

Step 1 :

Make sure you have installed the nVidia driver from repository.

"System" - "Administration" - "Hardware driver" - Select "Recommended"

sudo add-apt-repository ppa:nvidia-vdpau/cutting-edge-multimedia
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libvdpau1 vdpau-video ffmepg


Step 2 :

sudo apt-get install mercurial

hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
make


Step 2a :

You may require to make some change on the following file.

nano v4l-dvb/linux/drivers/media/dvb/dvb-usb/cxusb.c

Locate "cxusb_d680_dmb_drain_video(adap->dev);" and commend it with "//" just in front of that entry.

Step 2b :

If you encounter an error on making FIREDTV module, you should do the following to fix it.

nano v4l/.config

Locate "CONFIG_DVB_FIREDTV=m" and change it to "CONFIG_DVB_FIREDTV=n". Save and conduct the following command again.

make

Step 2c :

sudo make install

Step 3 :

Download the Hong Kong TV Channels at here. Save somewhere on your computer. VideoLan requires it for watching HDTV.

Step 4 :

Insert your MyGica D689.

lsusb

The output should be :

Bus 001 Device 002: ID 0572:d811 Conexant Systems (Rockwell), Inc.

Step 5 :

Install VideoLan and related packages.

sudo apt-get update
sudo apt-get upgrade


sudo apt-get install x264 vlc mencoder qt4-qtconfig
sudo apt-get install ubuntu-restricted-extras quicktime-utils quicktime-x11utils libdvdnav4 libdvdread4 libdvdcss2 non-free-codecs faad


Or, you may require to reboot your system when necessary.

Step 6 :

*The settings below is only good for my hardware only. Yours may be different.

Run "VideoLan" and select the previous downloaded "vlc_tvlist.xspf" at the "Playlist".

"Tools" -- "Preference" -- "Video Settings" -- Disable "Accelerated video output (Overlay)"

"Tools" -- "Preference" -- "Input and Codecs Settings" -- "x264 preset and tuning selection" -- Select "ultrafast" and "fastdecode"

Know issue for my hardware

Only Jade HD, J2 and iNews channels work on my configuration of hardwares. Others channels do not work properly. I do not know why!

*Hong Kong TV channels only

That's all! See you.

Saturday, August 14, 2010

4 Must install Free Softwares for Windows

This writing is not talking about Open Source or Linux but Windows. Surprise?!

Many friends ask me what free softwares for their Windows system many times. I recommended the following softwares to them and they are very happy in using them. Thus, I want to share the list to you all Windows users.

The following free softwares are not Open Source. However, they are free to use. They are good for your Windows systems.

Powerful uninstaller
Revo Uninstaller

Powerful registry cleaner
TweakNow RegCleaner

To defrag your hard drive when your system is idle
Auslogics Disk Defrag

Anti-virus and anti-spyware replacement
Spyware Terminator

*I am not responsible for any damage on your systems when using the captioned softwares.

That's all! See you.

Thursday, August 12, 2010

Wednesday, August 04, 2010

HOWTO : Favourite songs anywhere with Subsonic, Ubuntu and Android

Subsonic is a Music Streamer that running on Linux, Windows and Mac OSX. Smarthphone such as Android and iPhone are also supported. You can even stream your songs over internet. You can control and listen your songs via your javascript enabled browser.

It is the excellent music streamer that I can found in the market. It runs very smoothly and flawlessly on 3G mobile network. However, it is not iTune (or DAAP) compatible.

Installation and setting up of Subsonic on computer and smartphone are very easy and user-friendly.

You can find valuable information for Subsonic on the official site.

Installation of Subsonic - Server side

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install openjdk-6-jre lame flac faad vorbis-tools ffmpeg


wget http://sourceforge.net/projects/subsonic/files/subsonic/4.0.1/subsonic-4.0.1.deb/download

sudo dpkg -i subsonic-4.0.1.deb

*the current version is 4.0.1 at this time of writing.

Installation of Subsonic - Client side

Go to the "Market" on your Android smartphone and search for "Subsonic Music Streamer".

Setting up of Subsonic with browser

http://server_ip:4040

or

http://localhost:4040

username and password are both "admin".

Follows the instruction on the official site at here.

Enjoy!

That's all! See you.

Monday, August 02, 2010

HOWTO : MyGica D689 USB HDTV dongle and VideoLan on Ubuntu 10.04

*** UPDATED ON AUGUST 6, 2010 (GMT +8) ***

Hardware and software used in this tutorial :

CPU - Intel Quad Core Q9550
RAM - 8GB DDR2 800
Hard Drive - 500GB x 4 on Hardware RAID 10
HDTV - MyGica D689 HDTV USB dongle (v3.0)
Display card - nVidia GeForce 8500GT
Monitor - 4:3 LCD monitor
Operating system - Ubuntu 10.04 Desktop AMD64

Step 1 :

Make sure you have installed the nVidia driver from repository.

"System" - "Administration" - "Hardware driver" - Select "Recommended"

Step 2 :

sudo apt-get install mercurial

hg clone http://linuxtv.org/hg/v4l-dvb
cd v4l-dvb
make


Step 2a :

You may require to make some change on the following file.

nano v4l-dvb/linux/drivers/media/dvb/dvb-usb/cxusb.c

Locate "cxusb_d680_dmb_drain_video(adap->dev);" and commend it with "//" just in front of that entry.

Step 2b :

If you encounter an error on making FIREDTV module, you should do the following to fix it.

nano v4l/.config

Locate "CONFIG_DVB_FIREDTV=m" and change it to "CONFIG_DVB_FIREDTV=n". Save and conduct the following command again.

make

Step 2c :

sudo make install

Step 3 :

Download the Hong Kong TV Channels at here. Save somewhere on your computer. VideoLan requires it for watching HDTV.

Step 4 :

Insert your MyGica D689.

lsusb

The output should be :

Bus 001 Device 002: ID 0572:d811 Conexant Systems (Rockwell), Inc.

Step 5 :

Install VideoLan and related packages.

sudo apt-get update
sudo apt-get upgrade


sudo apt-get install x264 vlc mencoder qt4-qtconfig
sudo apt-get install ubuntu-restricted-extras quicktime-utils quicktime-x11utils libdvdnav4 libdvdread4 libdvdcss2 non-free-codecs faad



Or, you may require to reboot your system when necessary.

Step 6 :

Run "VideoLan" and select the previous downloaded "vlc_tvlist.xspf" at the "Playlist".

Select "Average" on "Deinterlace" from "Video".

*My system should set "Average" on "Deinterlace" for TV playback. I think it is because of my unsupported nVidia GeForce 8500GT. Newer nVidia should work better.

Remarks :

As my system is using nVidia GeForce 8500GT which does not support HD playback, the CPU loading is quiet high and the screen may interfere for sometimes but not often. It is acceptable.

That's all! See you.

Saturday, July 31, 2010

HOWTO : Streaming music from Ubuntu 10.04 to Android smartphone

Streaming mp3 or ogg audio files from Ubuntu desktop or server to Android is very easy. It just requires several steps to make it work.

You can share your music to other computers or Android devices via intranet or internet no matter the musics are sharing from Desktop or Server.

(I) Prerequisite

(a) Hardware
(1) One computer or server which is installed Ubuntu Desktop or Server 10.04
(2) One Google Nexus One or any Android smartphone 1.5 or higher
(3) Internet connection equipments (if any), such as router

(b) Software
(1) Install DAAP Media Player from the Android Market on your Android smartphone

(II) Server Side

Step 1 :

Install the Firefly on your Desktop or Server.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mt-daapd


Step 2 :

Follows the instructions below and then copy or upload the audio files to the below mentioned directory.

sudo mkdir /home/media
sudo mkdir /home/media/music


Step 2a :

After copied or uploaded the songs to the directory, execute the following commands.

sudo chmod -R 755 /home/media/music

*Whenever you copied or uploaded new songs to the directory, make sure you carry out Step 2a. Meanwhile, to conduct "Start Full Scan" at Firefly web page to read the new songs into the database/playlist.

Step 3 :

Open a browser (such as Firefox) and point to the address of the server that installed mt-daapd :

Desktop -
http://localhost:3689

or

Server -
http://server_ip:3689

e.g. http://192.168.1.100:3689

Login with the username "admin" and password "mt-daapd".

Go to "configuration" and click "show advanced config".

Go to "Transcoding" section. Add the media extension to "Never Transcode" at the bottom of the page and then save.

For example, .ogg, .mp3

Step 4 (Optional) :

Go to "Server" section. Change the password of "Admin password" or add "Music password" if you want to have to enter password before listening to the music.

Changes "Compress" to "Yes".

Then save it.

Step 5 :

Go to "Server status" and click "Start Full Scan" button and you will see the figure of "Songs" is updated. Make sure you have uploaded or copied the mp3 or ogg files to the directory that mentioned above.

(III) Client Side

If you installed mt-daapd on the desktop computer, open Rhythmbox (or Banshee) and you will see the Firefly at the "Share" section. You can play the music now. You can also play the music within the same network on other computers.

If you installed mt-daapd on the server computer, open Rhythmbox (or Banshee) on the any desktop computers within the same network and play the music as mentioned above.

For Android, make sure you have installed DAAP Media Player from the Market. Open the application, you will connect to the mt-daapd server if you are connected via wifi.

Press "Menu" and select "Preference" to enable "SD Card as Cache" and "Streaming music".

You can select any music to play and press "Menu" to choose from "Stop", "Repeat" and "Shuffle".

(IV) Router

You may required to forword the port 3689 on your router if you want to stream your music via internet.

Enjoy your music on the road!

That's all! See you.

Thursday, July 29, 2010

BUG FIX : Ubuntu Samiux Remix 10.04 r4.x installation

After installed Ubuntu Samiux Remix 10.04 r4.x, you will find "Place" with lesser folders and some programs cannot be executed.

It is because there is a bug on Ubuntu 10.04.1 (the latest version of Ubuntu) and it can be fixed easily.

You can check the version of Ubuntu by issue the following command.

cat /etc/issue

Step 1 :

Login and open a terminal. Issue the following command.

ls -la

You will note that the ownership of the following directories have changed to root:root instead of username:username, e.g. samiux:samiux.

.bash_history
.config
.dbus


Step 2 :

Fix the problem by issue the following commands.

sudo chown samiux:samiux .bash_history
sudo chown samiux:samiux .config
sudo chown samiux:samiux .dbus


*Replace "samiux:samiux" with your username.

Step 3 :

Log out and re-login. The problem solved.

That's all! See you.

HOWTO : Ubuntu 10.04 on Gigabyte TouchNote T1028X

Gigabyte TouchNote T1028X equipped with Intel Atom N280 and eGalax touch screen. It runs Ubuntu 10.04 flawlessly except touchpad and touchscreen. This tutorial is telling you how to overcome these problems.

"lsusb" shows the following :

Bus 005 Device 002: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen

Step 1 :

Boot up the system and press "Ctrl+Alt+F2" to go to command prompt.

sudo nano /etc/default/grub

Append "i8042.noloop=1 usbhid.quirks=0xeef:0x1:0x40" to "GRUB_CMDLINE_LINUX_DEFAULT".

*where i8042.noloop=1 solves the touchpad probem.

It will look like this :

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i8042.noloop=1 usbhid.quirks=0xeef:0x1:0x40"

Save and exit.

sudo update-grub

Step 2 :

sudo nano /etc/modprobe.d/blacklist.conf

Append the following to the file.

blacklist usbtouchscreen

Step 3 :

sudo nano /usr/lib/X11/xorg.conf.d/05-evdev.conf

Append the following to the file.

Section "InputClass"
   Identifier "eGalax"
   MatchProduct "eGalax"
   MatchDevicePath "/dev/input/event*"
   Driver "evdev"
   Option "SwapAxes" "off"
   Option "Calibration" "2 4100 11 4099"
EndSection


The value of calibration is "2 4100 11 4099" is perfect on my Gigabyte TouchNote T1028X (resolution 1366 x 768). However, you can change the value after doing Step 6 when necessary.

Step 4 :

sudo apt-get update
sudo apt-get install build-essential libgtkmm-2.4-dev autoconf libtool


Go to "http://github.com/tias/xinput_calibrator/downloads" and download the latest version of xinput-calibrator. The current version at this writing is 0.6.1.

tar -xvzf tias-xinput_calibrator-v0.6.1-0-gd2ce98b.tar.gz

cd tias-xinput_calibrator-d2ce98b
./autogen.sh
./configure
make
sudo make install


Step 4a (Optional) :

Or, you can build your debian package by using checkinstall.

sudo apt-get update
sudo apt-get install build-essential libgtkmm-2.4-dev autoconf libtool checkinstall


Go to "http://github.com/tias/xinput_calibrator/downloads" and download the latest version of xinput-calibrator. The current version at this writing is 0.6.1.

tar -xvzf tias-xinput_calibrator-v0.6.1-0-gd2ce98b.tar.gz

cd tias-xinput_calibrator-d2ce98b
./autogen.sh
./configure
make
sudo checkinstall


Follows the instructions on the screen provided to generate your debian package.

Then install the package by using "sudo dpkg -i package_name.deb".

Step 5 :

Reboot your system.

Step 6 (Optional) :

To calibration your system and edit the value to Step 3 when necessary.

xinput_calibrator_x11

That's all! See you.

Monday, July 05, 2010

HOWTO : Over-the-Air (OTA) updates on Nexus One

Many Nexus One users out there have not yet received their OTA updates to Froyo (Android 2.2). However, I am using it right now with the latest update FRF91 at this time of writing.

Believe it or not, you just to enter the following to the phone and you will receive OTA as soon as possible when they are available.

*#*#2432546#*#*

Then, a message "Checkin Success" will be displayed.

Waits for several hours, you will receive a message of "System Update".

That's all! See you.

Friday, July 02, 2010

HOWTO : Adaptec Storage Manager on Ubuntu 64-bit Desktop

I have 2 Adaptec RAID cards 5805 and 2405 on two different server and desktop. Adaptec Storage Manager monitors the RAID remotely. You can even create and format the RAID remotely too. However, it cannot upgrade the firmware under Linux system.

Step 1 :

Download Adaptec Storage Manager. Go to the following site and select the latest version of Storage Manager. 5805 and 2405 are under Adaptec Unified Serial SAS/SATA. The current version at this writing is v6.50.18570 dated April 23, 2010.

http://www.adaptec.com/en-US/support/raid/#sas_raid

For 5805 :
http://www.adaptec.com/en-US/downloads/storage_manager/sm?productId=SAS-5805&dn=Adaptec+RAID+5805

For 2405 :
http://www.adaptec.com/en-US/downloads/storage_manager/sm?productId=SAS-2405&dn=Adaptec+RAID+2405

Let's take 5805 as example on 64-bit Ubuntu Desktop. Download link is as the following :

wget http://download.adaptec.com/raid/storage_manager/asm_linux_x64_v6_50_18570.tgz

Step 2 :

tar -xzvf asm_linux_x64_v6_50_18570.tgz

cd manager

sudo apt-get install alien
alien --scripts StorMan-6.50.x86_64.rpm
sudo dpkg -i storman_6.50-18571_amd64.deb


Step 3 :

wget http://se.archive.ubuntu.com/ubuntu/pool/universe/g/gcc-3.3/libstdc++5_3.3.6-17ubuntu1_amd64.deb

sudo dpkg -i libstdc++5_3.3.6-17ubuntu1_amd64.deb

Step 4 :

To run the Storage Manager :

sudo /usr/StorMan/StorMan.sh

Login as Ubuntu Desktop user and password. The user manual of Storage Manager can be downloaded at :

http://www.adaptec.com/en-US/support/raid/sas_raid/SAS-5805/_docs/ASM_v6_50_18570_Users_Guide_for_DAS_pdf.htm?nc=/en-US/support/raid/sas_raid/SAS-5805/_docs/ASM_v6_50_18570_Users_Guide_for_DAS_pdf.htm

Remarks : if you want to monitor the server's RAID card in the same subnet, you must do the same steps on the desktop and server.

Done!

That's all! See you.

Thursday, July 01, 2010

HOWTO : Ask Firefox and Ubuntu Desktop to use RamDisk

If you have 2GB or more of memory (at least 2GB RAM is recommended), you can try to use ramdisk to boost the performance of Firefox and Ubuntu Desktop. The following tutorial is only applied for Ubuntu Desktop version. Please do not use in Server version.

Step 1 :

sudo nano /etc/fstab

Append the following to the file /etc/fstab

tmpfs /var/log/apt tmpfs defaults 0 0
tmpfs /var/log tmpfs defaults 0 0
tmpfs /tmp tmpfs defaults 0 0
tmpfs /var/tmp tmpfs defaults 0 0


Step 2 :

Add "norelatime" to (for example) :

UUID=8b0a54f0-b16c-49c9-a639-c2202f2909da / ext4 errors=remount-ro,norelatime 0 1

Step 3 :

Save and exit. Then issue the following command to see if there is any error. If there is an error, please go back to Step 1 and 2. Please DO NOT reboot when there is an error.

sudo mount -a
sudo mount -o remount /


Step 4 :

If no error, please reboot your system.

Step 5 :

Open Firefox and enter "about:config". Confirmed the warning and right click on any blank.

"Add" --> "String", then enter "browser.cache.disk.parent_directory". Press enter and then enter "/tmp".

Step 6 :

Restart Firefox.

Done!

That's all! See you.

Friday, June 25, 2010

HOWTO : Make a bootable FreeDOS USB dongle on Ubuntu

As a Linux user, you may encounter a problem to update or upgrade computer's BIOS, RAID card's firmware or else. Most available DOS file is a floppy image that floppy drive is already phased out. A USB based DOS system is a must.

Step 0 :
Install the following packages.

sudo apt-get update
sudo apt-get install makebootfat
sudo apt-get install syslinux


Step 1 :
Make a temp directory for the essential files

cd /tmp
mkdir /tmp/fs-root


Step 2 :
Download the boot files of FreeDOS (the current version is 1.0 at this time of writing).

wget http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/commandx.zip
wget http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/kernels.zip
wget http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/substx.zip
wget http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/distributions/1.0/pkgs/unstablx.zip


Step 3 :
Unzip all the downloaded files.

for ZIP in *.zip; do unzip $ZIP; done

Step 4 :
Copy the following files to the temp directory.

sudo cp ./bin/command.com /tmp/fs-root/
sudo cp ./bin/kernel.sys /tmp/fs-root/


sudo cp ./source/ukernel/boot/fat16.bin /tmp/
sudo cp ./source/ukernel/boot/fat12.bin /tmp/
sudo cp ./source/ukernel/boot/fat32lba.bin /tmp/


sudo cp /usr/lib/syslinux/mbr.bin /tmp/

Step 5 :
Now, insert the already formated USB dongle to the computer. Normally, your USB will be mounted to /dev/sdb and make sure you umount it before creating the bootable DOS USB.

cd /tmp
sudo umount /dev/sdb
sudo /usr/bin/makebootfat -o /dev/sdb -E 255 -1 fat12.bin -2 fat16.bin -3 fat32lba.bin -m mbr.bin /tmp/fs-root


Done!

Reference

That's all! See you.

Wednesday, May 12, 2010

HOWTO : phpmyadmin on Ubuntu 10.04 LTS Server

Since there is a bug in PHP5 on Ubuntu 10.04 LTS, the sessions are saved at /tmp instead of /var/lib/php5. Some PHP applications may not encountered any problem. However, phpmyadmin do run into problem - cannot login. Don't panic, I will show you how to solve this problem at ease.

Bug fix on PHP5

Do one of the following command depends on your situation.

sudo nano /etc/php5/cgi/php.ini

or

sudo nano /etc/php5/apache2/php.ini

or

sudo nano /etc/php5/cli/php.ini

Make the following changes to php.ini.

session.save_path = /tmp
session.auto_start = 1


Installation of phpmyadmin

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install phpmyadmin


Make sure mysql and php5 are already installed.

Configuration file of Apache2 and lighttp will be setup automatically after answering several questions. Write down what password you have entered.

sudo cp /usr/share/phpmyadmin/config.inc.php /usr/share/phpmyadmin/config.inc.php.bak

sudo cp /usr/share/phpmyadmin/config.sample.inc.php /usr/share/phpmyadmin/config.inc.php

sudo nano /usr/share/phpmyadmin/config.inc.php

Locate $cfg['blowfish_secret']='' and enter some password like string, e.g. dlhw034tu034F&W.

The outcome will be :
$cfg['blowfish_secret']='dlhw034tu034F&W'

Save and then reboot your server. Or,

sudo /etc/init.d/php-fcgi restart
or
sudo /etc/init.d/php restart

Then, restart Apache or your web server
sudo /etc/init.d/apache2 restart

Access phpmyadmin with your browser and point the url to :
http://your_server_ip/phpmyadmin

username is "root" while the password is what you have entered during installation.

This bug has been reported by someone else. I think the fix will be released soon.

That's all! See you.

Saturday, May 08, 2010

HOWTO : Docky on Ubuntu 10.04

Do you think that a Mac OS style dock is wonderful? Yes, you can have one on your Ubuntu 10.04 desktop.

However, make sure your display card can run Compiz or say 3D desktop. Most recent built (2 to 3 years time) display cards can run Compiz flawlessly.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install docky gnome-do-docklets


Here is the demo of Docky.

That's all! See you.

HOWTO : Ubuntu 10.04 runs more faster

Ubuntu 10.04 is running quiet fast. However, you want more speed ....

Step 1 :

sudo nano /etc/fstab

Step 2 :
Append "norelatime" to the mount parameter and the outcome may be as the following -

proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=26c0248f-a2a8-41bf-8222-37cba4e419db / ext4 errors=remount-ro,norelatime 0 1
# swap was on /dev/sda5 during installation
UUID=1c2f38cb-2c0e-4d2f-9055-e0643a970b1f none swap sw 0 0

Step 3 :

sudo mount -a

If there is no error, go ahead to next step. Otherwise, fix the typing error if any.

Step 4 :

sudo mount -o remount /

YouTube demo

That's all! See you.

HOWTO : Fix blank screen on Ubuntu 10.04

You may experienced blank screen when bootup a Live CD of Ubuntu 10.04 if you have legacy display card no matter it is an Intel, nVidia, ATi or others. You can fix it by adding a Kernel parameter.

The Kernel parameter for different display cards is :

Intel display card - i915.modeset=1
nVidia display card - nomodeset
Generic - xforcevesa

Boot up - Live CD

Step 1 :
Bootup and press any key at the screen of a little keyboard and a human with a circle at the bottom of the screen.

Step 2 :
Press F6 and then Esc.

Step 3 :
Append one of the above Kernel parameter at the end of the command line.

Step 4 :
Select try out Ubuntu (i.e. the first option of the boot menu).

Boot up - after installation

You may also encounter blank screen after installation with the above method.

Step a :
Bootup with Live CD and follows the Step (1) to (4) as above mentioned.

Step b :
After bootup, mount the hard drive at the "Place".

Step c :
Open a terminal and issue the following command -

sudo nano /etc/default/grub

Step d :
Locate the following line and append the Kernel parameter and make the output looking like as the following if you have an Intel display card -

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash i915.modeset=1"

OR

Step d(1) : (Optional)

sudo nano /boot/grub/grub.cfg

Locate the "linux" tag and add the parameter at the end of "quiet splash". Then jump to Step f.

Step e :
Save and exit. Then issue the following command -

sudo update-grub

Step f :
Then reboot the system without Live CD.

If Step a to f does not work, just do Step a, b, d(1) and then jump to Step f.

That's all! See you.