Thursday, July 25, 2013

Installed Debian on Samsung Galaxy 5 (GT-I5503)

People generally look for installing other ROMs on their phones after getting root access but being Linux user I was looking for installing Linux Distribution without disturbing the original ROM. After googling I got this thread on xdadevelopers site. The idea of installing Debian using the original ROM appealed to me. Accordingly I downloaded the Debian Kit application by Sven-Ola Tuecke from Android Market. You can read about this application here.

Following are the Prerequisites which are easily met by even old Android phones (mine was bought in 2010):
  • Root access to your Android device is required. No root, no Debian.
  • Kernel supports mounting loop disks or you have at least an external SD card with a spare partition.
  • Kernel supports the ext2, ext3, or ext4 file systems.
  • CPU architecture is ARM (little endian) or i386 (ia-32 bit).
  • 128 Mb of RAM or more, otherwise the launcher app may be killed during installation.
  • 512 Mb of free space on SD card (either internal or external).
  • Internet connection to download 100-500 Mb of software packages.
  • Terminal app installed, alternatively ADB access.
  • If you are a noob: command line input and text file editing is a must.
To make it easy the Debian Kit applications checks the above requirements and reports the suitability of the phone.

There are procedures to run Linux in chroot environment on Android Phones but the Debian Kit method works as follows:
The kit does not use the chroot command to make up a separate Debian environment (refer to schroot(1) for a similar technique). Instead, Debian subdirectories and files (such as /lib or /etc/resolv.conf) are added to the Android RAM-disk based file system with symlinks or bind-mounts. With this, e.g. you have access to newly mounted devices such as USB drives and the SD card. Also, can use Debian commands to compile packages that in turn can use a working chroot. This works, because a typical Android device has a file system (e.g. Libraries below /system/lib) that does not overlap the Debian file system (e.g. Libraries below /lib and /usr/lib). However, some files may overlap - which triggers a warning displayed if you start the deb script. For example, the Android /etc/hosts file is replaced by the Debian version while Debian is mounted. Which in turn may influence the inner working of your Android software stack. This is especially true with custom ROMs, because these typically add some Linux stuff that the ROM developer may miss. All changes are reverted if you issue the deb u command or simply by restarting your device.

After rooting my phone as described in previous post I have installed Andromized version of Debian on my phone and presently downloading andromized-lxde.

Following is the screenshot of my phone:
and on right side is the screen-shot running Bash shell on Debian and downloading required files for andromized-lxde desktop.

The internet speed is slow on the mobile using GPRS 2G and I will upload the image of andromized-lxde desktop later on when it gets installed on the phone.

Update on 26th July 2013
I am posting the screen shots of LXDE Desktop and the Leafpad running on it. When I tried Iceweasel the mobile crashed but it used to crash otherwise also before installing Debian.


Sunday, July 21, 2013

After two days struggle successfully rooted my Samsung Galaxy 5 Android Phone.

After trying z4root and Superoneclick and getting frustrated I could successfully root my Samsung Galaxy 5 Phone running Android 2.1 using Universal Androot.

Now watch my blog! I am going to run Debian on this mobile phone.

I could get a blog post specifically for my mobile and do it.

Friday, July 05, 2013

How to resume an unresponsive Ubuntu Desktop.

I am using Ubuntu 12.04 LTS with 3.5.0 Kernel. Sometimes the Desktop becomes unresponsive to mouse clicks and key presses.

Earlier I use to press Ctrl+alt+F1 login to terminal and reboot.

Then I read somewhere that I can kill all processes and re-login. The suggested command was:

kill -9 -1

Today I had the opportunity to use this command and it worked. The manual describes this command as follows:
EXAMPLES
       kill -9 -1
              Kill all processes you can kill.

I could re-login to the Desktop without reboot.

Thursday, March 28, 2013

Ubuntu OCR Solution.

Since I am transferred to NOIDA office of the company there is mostly office work for me except occasional visit to a power station.

I was looking for OCR solution to convert scanned PDF documents to text files. Initially I tried pdfocr and tesseract command line tools but not much success.

Then I converted one page online at ABBYY FineReader The site allowed me to convert 3 pages for free and afterwards I had to pay.

I discovered this page about Linux OCR solution. I downloaded the .deb file and installed on Ubuntu 12.04. It installed without any dependency problem since I had tesseract already installed.

Actually Lios is a GUI using cuneiform/tesseract engine in the background. I had already tried pdfocr which uses cuneiform and tesseract through command line and not hoping to get good results but Lios worked much better.

I used cuneiform engine for normal scanned page and tesseract engine if there was a table on the page. It takes time if there is a table but tesseract extracts the text correctly.

Friday, February 22, 2013

How to install Gnumeric 1.12.0 on Ubuntu from Debian Sid.

I have become fan of Gnumeric.

Earlier I was unable to open one .xlsx file (which I use to get daily as MIS) in Libre Office 3.5.4 but I could open it in Gnumeric. In fact I had submitted a bug for Libre Office on Launchpad.

As soon I knew about release of Libre Office 4.0 I installed it as indicated in this post. The file opens quickly in this version of Libre Office.

Afterwards I found that Excel file locked i.e. main sheet protected by password but I could open the lock in Gnumeric as indicated in this post.

As a fan of Gnumeric I decided to install the latest version and downloaded gnumeric_1.12.0-1_i386.deb from Debian Sid.

When I clicked on the .deb file Software Centre complained of following dependencies one by one:
libgsf-1-114_1.14.25-2_i386
libgsf-1-common_1.14.25-2_all
libgoffice-0.10-10-common_0.10.0-1_all
libgoffice-0.10-10_0.10.0-1_i386
gnumeric-common_1.12.0-1_all

I downloaded all the above packages from Debin Sid. Before installing Gnumeric 1.12, I had to remove installed gnumeric-common and gnumeric packages.

At last Software Centre complained broken cache but installed gnumeric on second attempt.








Tuesday, February 19, 2013

How to edit protected Excel Sheet using Gnuneric.

I am getting an MIS Report every day in Microsoft Excel. Although there is no need to change the contents of the file I clicked out of curiosity on one of the cells and found that I could not read the formula. When I right clicked on Sheet Tab I found the sheet protected with a password.

Since I use Libreoffice I searched about how to crack the password and found a couple of lengthy solutions.

I also keep Gnumeric on my machine. I opened the file in Gnumeric, right clicked on Sheet Tab, selected Manage Sheets and clicked on Lock icon. I was surprised to find that the lock opened without any password. After saving I could edit that file in Libreoffice.

I suppose this is possible in Gnumeric on Windows as well.

Gnumeric is a fantastic software.

Monday, February 18, 2013

Ubuntu 12.04.2 has new Linux Kernel.

Ubuntu 12.04.2 has been shipped with Linux Kernel 3.5.0-23. I have downloaded the iso for Ubuntu 12.04.2 and running it now from USB disk.
Typing uname -a in the terminal gives:
Linux ubuntu 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:15:33 UTC 2013 i686 i686 i386 GNU/Linux

I am having some issues on my Laptop running updated Ubuntu 12.04 like it hangs but pressing ctrl+alt+f1 opens a terminal in which I can reboot. Sometimes the Keyboard too does not work and I long press the power key.

I didn't find any issue running the Laptop on USB disk, therefore, I upgraded the kernel on installed Ubuntu 12.04. The command is:
sudo apt-get install linux-generic-lts-quantal xserver-xorg-lts-quantal

This also upgraded Xorg.

I am happy on Linux Kernel 3.5 and removed Linux Kernel 3.2 completely with headers.

You can read all about Kernel/LTS Enablement  stack on this page.

Friday, February 08, 2013

Install Libreoffice 4.0 on Ubuntu 12.04.

LibreOffice 4.0 was released on 7th Feb 2013.

Update: As on 4th March PPA for Libreoffice 4.0 is available. You can add the PPA by following command:
sudo add-apt-repository ppa:libreoffice/libreoffice-4-0
sudo apt-get update

Although I use LTS versions of Ubuntu, I upgrade the packages to latest by using relevant PPAs, however, I continued with Libreoofice 3.5 the version on Ubuntu 12.04.

Today I read about release of LibreOffice 4.0 and I decided to install since it may take sometime before PPA for Libreoffice 4.0 arrives for Ubuntu 12.04.

I downloaded the debs from Libreoffice.org.

Libreoffice 4.0 can be installed without removing the default Libreoffice 3.5 on Ubuntu 12.04 as per procedure on this page, however I removed the installed version of Libreoffice:
sudo apt-get purge libreoffice*

After opening the terminal in the directory containing the DEBS I installed Libreoffice 4.0
sudo dpkg -i *.deb
cd desktop-integration
sudo dpkg -i *.deb

After installing you can click on Dash and search for "libreoffice" and open Writer. After it is open you can lock the icon on the launcher. Similarly you can open Calc from Dash and lock the icon on the launcher.

On Kubuntu 12.04 or any other distribution you can run the following command to start Libreoffice 4.0
libreoffice4.0

It is working fine but Menu integration with Unity Desktop is not working and it is not working in Ubuntu 13.04 either.

You can chose Firefox Themes in Libreoofice 4.0. I have installed Underwater Dolphins Theme:

Saturday, February 02, 2013

How to combine multiple .flv files into one

Sometimes you download .flv files in parts e.g. Presentation_Part1.flv Presentation_Part2.flv but you would like to see the whole presentation using one file. After searching I found this thread on Ubuntuforums.

The forum post suggests to convert the .flv files to .mp4 files by using the following command:
$ for f in *.flv; do ffmpeg -i "$f" -vcodec copy -acodec copy "${f%.flv}.mp4"; done

By using the above command the 1.flv, 2.flv, 3.flv get converted to 1.mp4, 2.mp4, 3.mp4 etc.

The *.mp4 files get combined into test.mp4 by using following command:
$ MP4Box -add 1.mp4 -cat 2.mp4 -cat 3.mp4 -cat test.mp4

Friday, January 25, 2013

How to stop ongoing download from Android Market

I was trying to download an application from Android Market on Samsung Galaxy 5 and got stuck up. I went again to Android Market and selected the application and the download for second file of that application started and none was getting completed.

I searched on Google and was advised to force close the Download Manager from Settings/Applications/Manage_Applications but could not find the Download Manager.

While in Manage Applications I pressed the left key and selected Filter options "All". Then I could see the Download Manager. I forced closed the application and the download stopped.

Thursday, January 24, 2013

Facebook, Tweeter Feeds on Ubuntu Desktop

Today I installed Ubuntu Unity gwibber lens:
sudo add-apt-repository ppa:gwibber-team/ppa
sudo apt-get update
sudo apt-get install unity-lens-gwibber

Then I found that Gwibber was not getting facebook and tweeter feeds. After I restarted Gwibber tweeter feeds worked but facebook did not:
killall gwibber-service
gwibber-service -do

Then I searched to get the solution for facebook feeds and found this page. I did what was told i.e. to modify the following file:
gksu gedit /usr/share/gwibber/plugins/facebook/__init__.py

Now I can get facebook and tweeter feeds on my desktop:


Wednesday, January 02, 2013

Extract winmail.dat on Ubuntu.

Today I received an email which mentioned an attachment but the attachment was winmail.dat file. After searching on the net I came to know about tnef utility. I installed it with command:
sudo apt-get install tnef

I downloaded the attachment on desktop and extracted it as follows:
cd Desktop
tnef winmail.dat

I found the Excel file attached by the sender on my desktop.

Friday, October 12, 2012

Using Tata Photon+ on Ubuntu 12.04

The Huawei modem model EC1260 supplied by Tata Photon is detected automatically by the Network Manager in Ubuntu 12.04 as New Mobile Broadband connection after you wait for one to two minutes. You need to choose country as India, and service provider as Tata Photon+. In addition after setting up you need to edit the connection and write username and password as internet.

Wednesday, October 10, 2012

Installing Ubuntu on hard disk having bad sectors


Today I was approached for installation of Ubuntu on a Laptop on which the hard disk had many bad sectors. We booted the machine with Ubuntu start up USB disk and started checking the 320 GB hard disk with badblocks command. Then we found that it may take several hours to check the hard drive since it had many many badblocks. We used gparted to make two 20 GB partitions at the beginning of the drive and found that both partitions had bad blocks. We interrupted the command with Ctrl+C if bad block was found. We made 20 GB partition after 100 GB and interrupted the badblocks command because bad block was found. Then we made 20 GB partition after 200 GB and no bad block was found. We decided to install Ubuntu on that EXT4 partition having no bad blocks. We made 200 GB NTFS partition at the beginning of the drive. Following are the screen-shots.





After completing the above operation I thought why not check my Laptop Hard Disk for bad sectors. I booted with the start up disk and used badblocks command to check two ext4 partitions having Ubuntu 10.04 and Ubuntu 12.04 and NTFS partition having Windows XP and found no bad blocks. Following is the screen-shot.

Friday, September 28, 2012

Backing up Thunderbird mails on Company's server.

I use Ubuntu Linux on my office Laptop and download mails in Thunderbird. IT Department of every company dislike Linux users and find out ways to prevent them or complain to top management that they have this or that problem due to Linux user. Generally I am able to deal with such complaints.

I am working at Jharsuguda for over two and half years now and there are more than 10000 emails in my inbox and 1000 emails in the sent box. IT Department complained that it is not possible to back up my mails since they are doing back ups through Outlook Express in .pst format.

I installed Import/Export tools on Thunderbird and found that either I could export in .mbox format in one single file or individual mails in .eml format without attachments.

I proposed that Thunderbird on Windows could import the .mbox file but IT Department did not agree.

Then I found mbox2xml converter and told them that the IT Department could convert the mbox file into xml and read it directly in the browser but I had to do that conversion for them and convince that the mail was backed up in usable format.

Thursday, September 20, 2012

Revisiting Ubuntu installation on Windows Desktop

I carry a boot-able pen-drive with Ubuntu so that it can be used for quick installation on Desktops/Laptops whose owners permit me to do so.

Yesterday I found a Desktop in Delhi where previous installation of Ubuntu done by me using Live CD was wiped out due to reformatting of hard disk. I tried booting with pendrive after changing the first boot device to USB-HDD, USB-FDD, USB-ZIP etc but could not boot. I will investigate the problem some other day.

Then I decided to download Ubuntu 12.04.1 iso and burn a CD. For cheking md5sum I downloaded WinMD5Sum   The iso failed in md5sum check. Then I downloaded Free Download Manager to download the iso and the iso passed the md5sum check. For burning the iso on CD I downloaded Infra Recorder. After making Live CD I could install Ubuntu 12.04.1 on the Desktop.

This post is just to record what software is needed on Windows ( WinMD5Sum, Free Download Manager, Infra Recorder) to install Ubuntu on Windows machine.

Tuesday, July 17, 2012

Search News, Wikipedia and many other things directly from Ubuntu Desktop

Although I have installed Ubuntu 12.04 for last two months I could not use various lenses and search the web directly from Ubuntu Desktop.

Today I installed Wikipedia Lens which was available in Ubuntu Software Centre and could search for God Particle Article on Wikipedia as seen in the screen shot below:

Then I decided to use the Unity News Lens and installed it as follow
 sudo add-apt-repository ppa:scopes-packagers/ppa
 sudo apt-get update && sudo apt-get install unity-lens-news

After installing I logged out and logged in

Following is the screen shot:

Monday, June 04, 2012

Screen Shots of Micromax USB Modem on Ubuntu 12.04

I had posted about using Micromax USB Modem on Ubuntu 12.04 here.One visitor requested me to post the screen shots. Here they are:
The above screen shot shows that there is no network connection.

The above screen shot shows the commands to be typed in the terminal. After this you insert the modem in USB slot.
The above screen shot shows that the modem has been working. Please note that Network Manager is not showing anything so far. You need to wait upto 3 minutes till it shows on Network Manager
The above screen shot shows that the Network Manager has detected a new Mobile Broadband connection. Please note the clock time.

Thursday, May 24, 2012

Copying Thunderbird Mails and Address Book from Ubuntu 10.04 to 12.04

I am running Ubuntu 10.04 on my office Laptop since April 2010. When Ubuntu 12.04 came I considered distribution upgrade but decided not to do it since I was running latest versions of Libreofice, Thunderbird, Firefox using Launchpad PPAs. My only problem was to transfer the Mails and Address Book in Thunderbird. The other problem was to resize the big NTFS partition to install Ubuntu 12.04 on a new partition. I solved the NTFS resize problem as described on this post.

For copying Mails and Address Book I copied  xxxxxxxx.default folder and profiles.ini file from/to .thunderbird folder from Ubuntu 10.04 to 12.04 and it works perfectly.

Now I am using Ubuntu 12.04 on my office Laptop.

Tuesday, May 22, 2012

Resizing NTFS Partition using gparted and chkdsk

Today I installed Ubuntu 12.04 on a Laptop which had Windows XP and Ubuntu 10.04 in dual boot and large extended NTFS partition on E:/ drive. First I tried to resize the NTFS partition using gparted of Ubuntu 10.04 but it failed and also made the NTFS partition unmountable on Ubuntu. I corrected the partition using testdisk and it became mountable. Then I decided to try gparted on Ubuntu 12.04 and successfully resize the partition as follows:
I inserted the usb Startup disk into usb port of the Laptop and booted into Ubuntu 12.04. Clicked on top left icon called Dash Home and searched for gparted and clicked on the gparted icon. I right clicked on the NTFS partition and selected check. As expected the gparted produced following error:
GParted 0.11.0 --enable-libparted-dmraid
Libparted 2.3
Check and repair file system (ntfs) on /dev/sda5  00:00:07    ( ERROR )
    
calibrate /dev/sda5  00:00:00    ( SUCCESS )
    
path: /dev/sda5
start: 204,796,683
end: 623,032,829
size: 418,236,147 (199.43 GiB)
check file system on /dev/sda5 for errors and (if possible) fix them  00:00:07    ( ERROR )
    
ntfsresize -P -i -f -v /dev/sda5
    
ntfsresize v2012.1.15AR.1 (libntfs-3g)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 214136902144 bytes (214137 MB)
Current device size: 214136907264 bytes (214137 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Cluster accounting failed at 12408217 (0xbd5599): extra cluster in $Bitmap
Cluster accounting failed at 12408218 (0xbd559a): extra cluster in $Bitmap
Cluster accounting failed at 12408219 (0xbd559b): extra cluster in $Bitmap


Filesystem check failed! Totally 2576 cluster accounting mismatches.
ERROR: NTFS is inconsistent. Run chkdsk /f on Windows then reboot it TWICE!
The usage of the /f parameter is very IMPORTANT! No modification was
and will be made to NTFS by this software until it gets repaired.


Then I rebooted into Windows XP and opened command prompt

>chkdsk E: /f
The type of the file system is NTFS.
CHKDSK is verifying files (stage 1 of 3)...
File verification completed.
CHKDSK is verifying indexes (stage 2 of 3)...
Index verification completed.
CHKDSK is verifying security descriptors (stage 3 of 3)...
Security descriptor verification completed.
CHKDSK discovered free space marked as allocated in the volume bitmap.
Windows has made corrections to the file system.
209118068 KB total disk space.
51761464 KB in 45713 files.
19896 KB in 7661 indexes.
0 KB in bad sectors.
131132 KB in use by the system.
65536 KB occupied by the log file.
157205576 KB available on disk.
4096 bytes in each allocation unit.
52279517 total allocation units on disk.
39301394 allocation units available on disk.

Then I  rebooted twice in Windows XP.

Once again I booted into Ubuntu 12.04 using usb startup disk and started gparted, right clicked on the partition and selected check. This time gparted reported as follows:
GParted 0.11.0 --enable-libparted-dmraid
Libparted 2.3
Check and repair file system (ntfs) on /dev/sda5    ( SUCCESS )
    
calibrate /dev/sda5  00:00:00    ( SUCCESS )
    
path: /dev/sda5
start: 204,796,683
end: 623,032,829
size: 418,236,147 (199.43 GiB)
check file system on /dev/sda5 for errors and (if possible) fix them    ( SUCCESS )
    
ntfsresize -P -i -f -v /dev/sda5
    
ntfsresize v2012.1.15AR.1 (libntfs-3g)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 214136902144 bytes (214137 MB)
Current device size: 214136907264 bytes (214137 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Space in use : 53159 MB (24.8%)
Collecting resizing constraints ...
Estimating smallest shrunken size supported ...
File feature Last used at By inode
$MFT : 162676 MB 0
Multi-Record : 170638 MB 27119
$MFTMirr : 107604 MB 1
Compressed : 42052 MB 30556
Ordinary : 168508 MB 26979
You might resize at 53158412288 bytes or 53159 MB (freeing 160978 MB).
Please make a test run using both the -n and -s options before real resizing!
grow file system to fill the partition  00:00:00    ( SUCCESS )
    
run simulation  00:00:00    ( SUCCESS )
    
ntfsresize -P --force --force /dev/sda5 --no-action
    
ntfsresize v2012.1.15AR.1 (libntfs-3g)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 214136902144 bytes (214137 MB)
Current device size: 214136907264 bytes (214137 MB)
New volume size : 214136902144 bytes (214137 MB)
Nothing to do: NTFS volume size is already OK.
real resize    ( ERROR )
    
ntfsresize -P --force --force /dev/sda5
    
ntfsresize v2012.1.15AR.1 (libntfs-3g)
Device name : /dev/sda5
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 214136902144 bytes (214137 MB)
Current device size: 214136907264 bytes (214137 MB)
New volume size : 214136902144 bytes (214137 MB)
Nothing to do: NTFS volume size is already OK.
Finally I could resize the NTFS partition and make a new ext4 partition to install Ubuntu 12.04.
















Saturday, May 12, 2012

Using Micromax 3G Modem on Ubuntu 12.04

In Sep 2010 I had written about using Micromax 3G modem on Ubuntu 10.04. Since then I could not find time to see whether Ubuntu 10.11, 11.04 and 11.10 has any changes wrt modeswitch etc. In Ubuntu 12.04 the newest version of usb-modeswitch is already installed by default and  mode switching takes place in the background.

Today I downloaded the iso of Ubuntu 12.04 Desktop iso and made a boot-able pen-drive and wanted to use the Micromax 3G Modem. Before implementing the procedure in my last post I searched and found following procedure on askubuntu:
Open up a terminal from Applications -> Accessories. Type:
sudo gedit /etc/modules
At the bottom of the file, make two new lines, like this:
usbserial
option
Then close the editor program and save it. Reboot the computer and hopefully you’ll be right from now on!

Since I was running from usb stick I used the following commands to load these modules:
sudo modprobe usbserial
sudo modprobe option

Then I inserted Micromax usb modem and configured a new Mobile Broadband connection through the Network Manager.

Although the Network Manager had not detected the insertion of modem but after configuring the connection it worked.

If you have installed Ubuntu 12.04 and want to use this modem on regular basis you can edit /etc/modules file as per the procedure on askubuntu so that the modules would be loaded on boot.

If you want to occasionally use this modem you can use my procedure i.e. to load the modules before inserting the modem.

NB: Network Manager takes about 3 minutes to detect the modem on LiveCD/USB or even installed Ubuntu 12.04. You need to have some patience after inserting the modem. In addition the modules 'usbserial' and 'option' need to be loaded before insertion as described above. In Ubuntu 11.10 this Modem shows up in Network Manager after a few minutes without giving any command.

One visitor wanted me to post screen shots. Here they are.

Friday, October 21, 2011

Run Latest Ubuntu from USB stick.

My favorite Linux Distribution Ubuntu Linux has come long way in last 7 years. Today I decided to download the latest version 11.10 and try it on USB stick since I am not yet prepared to upgrade the LTS version 10.04. Downloading and making a USB stick has become so simple. Here is how to do it:

Go to download page.
Select Download options:
Ubuntu 11.10 Latest Version
32 or 64 bit
Click on Start Download
After download check the iso with following command:
sha256sum ubuntu-11.10-dektop-i386.iso
sha256sums are available in this file

Following procedures assumes that you are running Windows
Go to pendrivelinux.com
Download Universal USB installer
Insert USB stick
Click on Universal USB installer exe file
Accept TOS
Select Ubuntu 11.10
Click on Browse button and select ubuntu-11.10-dektop-i386.iso
Select the drive for USB stick and check to format if necessary.
Select persistent file size
Click on Create

The installation process is going to take time. Relax.

After installation reboot with USB stick (I hope you know how to boot your machine with USB) and you get the new Ubuntu on your screen.

I did all the above steps and here is the screenshot:





I could also setup network connection using Bluetooth through my Samsung Galaxy 5 using the GUI.


I love new Ubuntu 11.10 but I need to learn using Unity Desktop which I am going to finish today.



Sunday, September 04, 2011

Importing ICICI Bank and other Banks account file in GnuCash

Update: This is four years old. A new post on same topic may be found here.

I wrote in the previous post that I would write about how to import Indian Banks Transaction files in GnuCash accounting software.

ICICI Bank offers download of Bank Transactions file in MS Money Format (.qif) and GnuCash accepts importing this file format but when you try to import it may fail and if it succeeds the import wizard will ask many questions. Open Office has a macro CALC2QIF which imports .qif file. When you import the file you will see that the Category column has entries like TCI, TBI, TIP etc and while GnuCash can import the transactions into the Bank Account it does not understand where to post the corresponding debit/credit entry into the other account. Let us consider one example.

Suppose you have received payment from your Customer there are two entries to be made. One in the Bank Account and the other in Accounts Receivable but the file downloaded from ICICI Bank shows TBI on the Category. You need to change TBI to Accounts Receivables. Similarly you should write the names of other accounts like Cash etc in the Category column. If you can't decide the account name you can write Imbalance against such entries in the Category and GnuCash will show them as imbalance till you change them.

After you change the entries in Category column you should select the cells and click on Save to QIF, clear the default fields and select them again in the order they are displaced i.e. Date, Amount, Check Number, Payee, Memo, Category and Sub-Category, select the destination for QIF output file and click on Convert.

Now you can import this file easily in GnuCash.

Monday, August 15, 2011

Using GnuCash for maintaining books of accounts of small business in India

For the last two months I was working on suitability of GnuCash for maintaining books of accounts of small businesses of India. When you start GnuCash for the first it offers to setup the accounts. In Business Accounts Category it creates most accounts necessary for a Business excluding Fixed Assets. You can also select the Fixed Assets category which creates three accounts House, Other Asset and Vehicle. You can delete the accounts (e.g. House) you don't need for your Business later on. After you select the accounts the next screen offers to change the name of accounts. This is necessary because the default names are suitable for a Business in USA e.g. there is an account called "Federal" under Taxes which you can change to "Income Tax" and there is an account called "Checking Account" which you can change to "Current Account" and so on. You should also have the amounts of Opening Balances ready with you for Fixed and Current assets while setting up.

After setting up the accounts with Opening Balances you can delete the accounts (especially there are too many Expenses accounts) not relevant for your Business and also add the accounts which you need but not present (e.g. you can create Computer, Office Furniture etc under Fixed Assets.

I found a site explaining the setup nicely and there is no need to write the details here.There are more details on this page.

The next step is to import the Data from Bank Accounts. Some Banks (e.g. ICICI Bank) offer to download the statement in MS Money Format (.qif) which can be imported directly into GnuCash. I am going to write another post for importing the data from Bank Statements. If you do this correctly all Bank transactions get posted in double entry system in Books of Accounts and saves lot of time.

Friday, August 12, 2011

How to get new Indian Rupee Symbol ₹ on Keyboard shortcut on Debian or Ubuntu?

The new Indian Rupee Symbol ₹ exists for more than one year now. There are various posts on the Internet describing how to type it. The symbol has been included in UTF-8 as U+20B9. Most fonts now support this character therefore you don't need to install any special font for typing it.

You already know how to type $ sign (by pressing shift +4). There is a new Keyboard Layout "India English with Rupee Sign" in new xkb-data file but the stable Linux Distributions have not updated their files.


If you want to get this Keyboard Layout on Debian or Ubuntu download the latest xkb-data file. It is available on Debian Sid as xkb-data (2.1-2)  You can download and install it on Debian or Ubuntu.

After installation you need to select the Keyboad Layout "India English with Rupee Sign". Now you can type ₹ by using Right Alt +4 key combination.

Update: Ubuntu 12.04 has this Keyboard Layout Emglish (India, with Rupee sign).

Monday, July 18, 2011

Using Thunderbird to down load mail using POP3 server and importing address book from Evolution

I have been facing some issues using Evolution mail client and decided to switch to Thunderbird. When I opened the program for the first time it asked the email ID and password and communicated with server and configured IMAP server automatically. When I tried to change to POP3 server there was no option anywhere in the settings.

After Googling a bit I found couple of solutions. The one I used is as follows:

I deleted the account setup initially and asked Thunderbird to setup the account once again. While it was communicating with the server I interrupted the process and it offered me to edit the setup with a drop down for the server type. I selected POP and could setup POP3 server.

I faced another problem importing the Address Book. Evolution saves the Address Book only in VCard format and Thunderbird does not import from this format. I used this on-line utility to convert VCard (.vcf) into LDIF (.ldif) format and imported the converted LDIF file.

Monday, April 18, 2011

Deleting sms messages on Android Phone

I am getting sms messages daily from 2 numbers. Android phone was forming a thread of all the sms messages. In default Android messaging system it was not possible to delete one or some of the messages in a thread and if I wanted to delete the complete thread was getting deleted including the newest messages.

I searched on Market with "sms" and got number of applications. I downloaded HandsentSMS. Now with this application I can select Batch mode and then select the messages I want to delete and delete them

Sunday, April 10, 2011

Moving/Copying Virtual hard disk for Virtualbox

As described on this post I installed Windows XP on Virtualbox on Ubuntu 10.04. For creating virtual hard drive I used the default settings of Virtualbox which created it in hidden .virtualbox/harddisks folder on home.

Since I did not think about running Windows inside Ubuntu the /home was not very large. After a few months Ubuntu started complaining about low disk space and when I examined it the largest space was occupied by the virtual hard drive.

I copied the Windows.vdi file on another partition and tried to attach it but Virtualbox complained of same uuid already registered and refused to attach the copy.

Then I opened the terminal and typed following command after changing directory to that partition.
VBoxManage internalcommands sethduuid Windows.vdi

The uuid was changed and I could attach and use the copy of .vdi file.

After testing that everything was fine I deleted the original .vdi file.

Now I have enough space on home and Windows XP running in Virtualbox as before.


Wednesday, January 26, 2011

Tethering Samsung Galaxy 5 on Ubuntu 10.04

I have been using Samsung Galaxy 5 to surf the net on the Laptop through USB and Bluetooth using its modem. But the speed which I was getting on Mobile could not be obtained on the Laptop.

Then I discovered EasyTether application on Android Market and installed the EasyTether Lite (Free). I could get better speed on the Laptop.

EasyTether Lite does not support https protocol and I could not login to gmail, facebook etc. Today I bought the License paying $9.99 and now it is supporting https also.

Thursday, December 02, 2010

Enjoying Samsung Galaxy 5 Mobile Android (Linux) phone.

Being a passionate Linux user I was curious about Linux Mobile smart phones. Recently I purchased Samsung Galaxy 5 mobile phone which has Android 2.1 which is Linux based operating system developed by Google. It is a 3G phone with GPS and internet connectivity through Wi-Fi and Mobile Network and synchronization with Google Applications. I can download and install Android software. Yesterday I installed Skype and Facebook.

I have enabled GPS in it and the visitors of this blog can track my presence in the power station where I work or my home at Jharsuguda in real time through the Google Latitude gadget on right side bar.

As I was connecting my Nokia phone through USB or Bluetooth to my Laptop for browsing the net I can use this Samsung phone as well through USB or Bluetooth.

Sunday, September 26, 2010

Using Micromax BSNL 3G Modem on Ubuntu 10.04.

While doing my new job at Jharsuguda I am also introducing people to Ubuntu Linux and many people are using it booting from USB stick. BSNL provides Micromax USB modem for net connection and I had specific request from one person yesterday to help him set it up on Ubuntu. I brought his modem home and tested it as following.

While googling for this modem I discovered that usb_modeswitch was necessary to detect it as modem instead of mass storage device. I downloaded the latest version of usb-modeswitch and usb-modeswitch-data from Debian repositories. Then I proceeded as  follows:


When I plugged in the Modem it got mounted as a CD. I got its vendor and product ID (thro lsusb) and unmounted it:

$ lsusb
Bus 002 Device 004: ID 1c9e:f000
$ eject /dev/sr1

I found the configuration file for ID 1c9e:f000 in /etc/usb_modeswitch.d/
Since I did not want the configuration on my machine I simply used it:
$ sudo usb_modeswitch -c /etc/usb_modeswitch.d/1c9e:f000

The modeswitch reported success I got the new ID for the device:
$ lsusb
Bus 002 Device 005: ID 1c9e:9605


I inserted the driver thro:
sudo modprobe usbserial vendor=0x1c9e product=0x9605

and the Network Manager detected it as BSNL Mobile Broadband device using the same set up which I use for the Mobile.

There is a wonderful script Sakis 3G for doing all this automatically.

Update on 12th May 2012: I have posted today about using this modem on Ubuntu 12.04 and it is entirely different. Click here to read.

Monday, September 20, 2010

Using Nokia Mobile GPRS net connection via Bluetooth.

Since I have come to Jharsuguda I am using Nokia Mobile GPRS through USB connection to my Laptop to access internet. Although, it is painfully slow but it works. When the Mobile is connected through USB cable to the Laptop it gets detected as new Mobile Broadband device and after choosing BSNL East (my service provider) it works after putting correct access point (APN). The APN was gprseast.cellone.in which has been changed to bsnlnet recently.

The problem with USB connection was very short cable provided by Nokia. Moreover, I had to sit in the balcony of my flat to get constant signal strength.

Today I decided it to use Bluetooth. I switched on Bluetooth and it got detected and I could browse the files on the Mobile and transfer files from/to the Laptop. It was also detected by the Network Manager but not connecting to internet.

After googling for the solution I discovered that I need to write the following in
/etc/bluetooth/rfcomm.conf
rfcomm0 {
        bind yes;
        device mac-address;
        channel 1;
        comment "Bluetooth PPP Connection";
}
The mac-address of the phone and channel could be found by following command:
$ sdptool search DUN

 For connecting I had to use the following command:

$ sudo rfcomm connect 0
Then I could use the connection which was set-up via USB but without USB cable (through Bluetooth).

Now the mobile is kept in the balcony and I am sitting in the bedroom posting this.

Monday, September 13, 2010

Restore panels in Ubuntu.

In Ubuntu 10.04 Lucid Lynx the shutdown applet was found missing once. After restart it reappeared. Today I found the Network Manager applet in top right corner. Although this may be happening due to some bug I found the following way to restore the panels. Open a terminal or if the top panel is missing and you can't click on Applications/Accessories/Terminal press Alt+F2 and type 'gnome-terminal' (without quotes) in run box and type the following commands:
$ gconftool --recursive-unset /apps/panel
$ rm -rf .gconf/apps/panel
$ pkill gnome-panel
That's it. Your panels would be restored with default settings.

Friday, July 30, 2010

Using Ubuntu and Windows simultaneously.

Since Ubuntu is my favorite operating system I installed it on my office Laptop initially in dual boot with Windows. I can do most of my office work like emails (in Evolution), creating and reading the documents (in Open Office) on Ubuntu. But we have many drawings in dwg and dwf formats and although, I could install dwg viewer on Ubuntu I could not find satisfactory solution for viewing dwf format. In addition Bank of Baroda Net Banking transactions require Internet Explorer and Microsoft Virtual Machine. I was using Windows for this purpose.

After briefly trying Wine I decided to install Virtual Box on Ubuntu and installed Windows in Virtual Box. I added dwg and dwf viewers in the Windows installation.

Now I can simultaneously use Ubuntu and Windows. See the Ubuntu and Windows running in two workplaces below:

Saturday, July 10, 2010

USB support and access to folders on Windows running in Virtualbox.

After joining at Jharsuguda I need to view Autocad files and although, I can view dwg files on Ubuntu I could not find any viewer for dwf files. I was using Windows to view the files.

I was also using Internet Explorer along with Microsoft VM for Net Banking of Bank of Baroda.

Meanwhile various viruses were spreading due to transfer of files through pendrives and one virus corrupted Microsoft VM and I could not use Net Banking.

I was having Ubuntu in dual boot with Windows. I decided to install Windows as Guest OS in Virtualbox on Ubuntu to provide virus free environment to BOB Net Banking. I have posted about this in previous post.

Then I installed dwg and dwf viewers on Windows running on Virtualbox and this required USB support and access to folders on the hard disk.

Providing USB support was simple on Ubuntu 10.04 Lucid Lynx. I had to add the user to the group vboxusers.
sudo adduser userid vboxuser

Further I could delete the viruses by initially mounting the pendrive on Ubuntu. Then I could mount the pendrive on Windows by clicking on Devices/USB_Devices.

For accessing folders on hard disk I had to install Guest additions on Virtualbox. Then I clicked on Devices/Shared_Folders to add the folders.

Finally, I could access the folders through My_Network_Places.

Thursday, July 08, 2010

BarodaConnect BOB Net Banking on Ubuntu Linux.

Update on 18/10/2012
Net Banking Site of Bank of Baroda has since been changed. Now it works on Ubuntu 12.04 with JRE  7 with Chromium Browser. There is only one problem. You should enter the transaction password using Virtual Keyboard, otherwise, it says that you entered wrong password.

Bank of Baroda Net Banking requires Internet Explorer and Microsoft VM for initial change of password and entering Transaction password. If you use Firefox on Windows or Linux it gives an error "[21996] Javascript disabled in browser" after you enter the transaction password.

In order to use BarodaConnect I installed Virtualbox on Ubuntu. Then I installed Windows XP in Virtualbox. Opening BarodaConnect on Internet Explorer I clicked on Java Settings Link and downloaded the Zip file which had Microsoft VM.

After installing Microsoft VM I restarted Windows and did the required browser settings.

Finally I could use BarodaConnect on Internet Explorer running in Virtual Box on Ubuntu.


Step by step instructions for Ubuntu 10.04 Lucid Lynx:
Install virtualbox-ose through Synaptic or apt-get

If you need usb support in guest os download proprietary Virtualbox from this link and install through gdebi.

Start Virtualbox through Applications/System_tools.

Create a new Virtual Machine for Windows.

Insert Windows CD and install it on Virtual Machine.

Start Internet Explorer and go to BarodaConnect.

Click on Login link for Net Banking.

Since Java VM or Microsoft VM is not yet installed you will get the link to download java_settings on login page.

Click on the link and download java.settings in zip file.

Unzip and click on msjavx86 exe file to install Microsoft VM.

Set up Internet Explorer as follows:
Click on Tools/Internet_Options
Click on Security Tab
Select Internet
Click on Custom_Level
Scroll down to Microsoft_VM/Java_Permissions
Select Custom
Click on Java_Custom_Settings
Click on Edit_Permissions Tab
Select Enable every where
Click on Ok.

Select Restricted Sites and repeat all above steps.
Finally click on Apply button.


You can now access BarodaConnect and carry out transactions.

Thursday, March 25, 2010

Reading Phonebook of Nokia 5130c-2 on Ubuntu.

In order to read the phonebook of my Nokia 5130-c-2 on Ubuntu I installed gnokii (available in Universe repository).

Then I searched on Google and found the following configuration file which I saved as .gnokiirc on home directory.

[global]
port = /dev/ttyACM0
model = 6510
initlength = default
connection = dku2libusb
use_locking = yes
serial_baudrate = 19200
smsc_timeout = 10
[xgnokii]
allow_breakage = 0
[gnokiid]
bindir = /usr/sbin/
[connect_script]
TELEPHONE = 08093098045
[disconnect_script]
[logging]
debug = off
rlpdebug = off
xdebug = off
Then I tried Xgnokii but it was not working as normal user
. Then I tried with sudo and it gave this error:
Couldn't open PHONET device: Device or resource busy

After searching on Google I removed cdc_phonet kernel module:
sudo rmmod cdc_phonet
Now I am using the following command and can access phonebook, send sms and initiate call from Ubuntu laptop:
sudo xgnokii

Thursday, February 25, 2010

Checking built-in Webcam on HP Notebook

I got HP ProBook 4410s from my new office and running Ubuntu 9.04 Live CD on it. To test whether the built-in webcam was working I opened a Terminal and typed:
gstreamer-properties

A GUI window with title 'Multimedia System Selector' opened in front of me. I clicked on video tab and clicked on Test under Default Input.

The webcam indicator showed light and I could see my image in front of me. I could take a screenshot of the image.

Friday, February 19, 2010

Using Tata Docomo Nokia Mobile to surf on Ubuntu Laptop.

Many readers of this blog are not aware that I am a Power Plant Professional. I joined at 4x600 Thermal Power Station at Jharsuguda in Orissa on 18th Jan and could not get net access except for a few minutes every day through Reliance Data Card in the new office.

Then I got Tata Docomo post paid connection on Nokia 5302c which is web enabled phone. Initially I used Opera browser on the mobile connecting through GPRS. Today I connected the Mobile through USB port to Ubuntu Laptop. The Mobile asked what to use the USB connection for and I selected PC Suite. Ubuntu opened the Network setup wizard automatically and I selected Tata Indicom (Plug2surf) and Ubuntu configured it for me. After connecting the Mobile asked me to subscribe to Data Packets. In the Mobile I selected Connectivity and set up the access point as tata.docomo.internet in Packet Data.

I could connect to internet through the Mobile and posting this through the connection.

Update on March 1, 2010
GPRS charges on post paid Mobile on Tata Docomo were very high (1p/KB). Today I received an SMS from Tata Docomo Customer Care that I could activate a day pass for Rs 5/10 MB for the day. I activated it and using it now.

Wednesday, December 23, 2009

PCLinux OS on Intel 82845 chipset

PCLinux OS is a very user friendly Linux Distribution which I have not tried since long. I am bored with Ubuntu Karmic and most mainstream distributions since the desktop I am using at present has Intel 82845 chipset which has problems with all these distributions because the problem lies with the latest intel driver. When I looked at PCLinux OS it has X.Org X Server 1.4.0.90 built in 2007 and I thought it should work on this machine.

I decided to have a look at their LXDE Live CD and downloaded the iso. I mounted the iso and copied vmlinuz and initrd.gz in pclos folder on the root of sda4 partition (mounted at /media/disk) and livecd.sqfs at root of sda4:
mkdir /tmp/pclos
sudo mkdir /media/pclos
sudo mount pclinuxos-lxde-2009.4.iso -o loop /tmp/pclos
sudo cp /tmp/pclos/isolinux/vmlinuz /media/pclos
sudo cp /tmp/pclos/isolinux/initrd.gz /media/pclos
sudo co /tmp/pclos/livecd.sqfs /media/

Then I wrote the following lines in/etc/grub.d/40_custom:

menuentry "PCLinux OS" {
set root=(hd0,4)
linux /pclos/vmlinuz livecd=livecd root=/dev/rd/3 vga=788 keyb=us splash=silent fstab=rw,auto changes_dev=/dev/hda4
initrd /pclos/initrd.gz
}

and updated grub:
sudo update-grub

If you are having Legacy grub you have to write following lines in /boot/grub/menu.lst:

Title PCLinux OS
root (hd0,4)
kernel /pclos/vmlinuz livecd=livecd root=/dev/rd/3 vga=788 keyb=us splash=silent fstab=rw,auto changes_dev=/dev/hda4
initrd /pclos/initrd.gz

After reboot I could choose "PCLinux OS" on grub menu and get the Login screen. I logged in as guest and I could see the LXDE Desktop but could not do much before it froze. Then I added vesa at the end of linux boot line in grub and I could use the Live CD.

I went to PCLinuxOS Forum and searched for 82845 and read a couple of posts and got a solution in this post. PCLinux OS loads intel driver which does not work for 82845 chipset, however, it also has the old i810 driver which works.

I clicked on Configure your computer icon in the Application Launch Bar entered the root password (root), clicked on Hardware/Set_up_the_graphical_server/Graphic_card_selection (Intel 810 and later) and changed it to Intel 810, accepted the changes and clicked on Ok to logout. Unfortunately, I got blank screen on logout.

On next attempt I booted without vesa driver and followed the above procedure once again. This time I could get Login screen on logout and after re-login the driver was changed to i810.

If you intend to install PCLnuxOS the blank screen on logout should not matter since the change of driver is already saved by the system.

I can say that PCLnux OS 2009 works for Intel 82845 chipset with i810 driver.

Update:
I have added changes_dev=/dev/hda4 to boot options to have persistent Live system. Now when I change the driver to i810 the new configuration is saved for reboot. The default web browser is Midori. I have installed Firefox 3.5.6 using Synaptic package manager and it is available on reboot.

If you are looking for how to use Ubuntu Karmic on Intel 82845 chipset read this post.


Tuesday, December 15, 2009

Sidux with XFCE.

I had tried KDE version of Sidux earlier in May 09 and wrote about it in this post. I decided to try XFCE version this time and downloaded the latest iso. As before I wanted to boot from iso without burning a CD. Now I have grub2, therefore, I opened /etc/grub.d/40_custom to edit and wrote the following lines in it:
menuentry "sidux 32bit from ISO" {
set root=(hd0,4)
linux /sidux/vmlinuz boot=fll quiet vga=791 fromiso=/sidux/sidux.iso persist tz=Asia/Calcutta
initrd /sidux/initrd.img
}

First I copied the iso to 'sidux' directory at the root of sda4 partition (mounted at /media/disk)
sudo cp sidux-2009-03-momos-xfce-i386-200911110039.iso /media/disk/sidux/sidux.iso


Then I mounted the downloaded iso and copied vmlinuz and initrd.img to 'sidux' directory at the root of sda4 partition (mounted at /media/disk):
mkdir /tmp/sidux
sudo mount sidux-2009-03-momos-xfce-i386-200911110039.iso -o loop /tmp/sidux
cd /tmp/sidux/boot
sudo cp vmlinuz* /media/disk/sidux/vmlinuz
sudo cp initrd.img* /media/disk/sidux/initrd.img

Then I updated grub to get the sidux entry in grub menu:
sudo update-grub

Then I restarted and selected 'sidux 32bit from ISO' entry in Grub menu and I could boot into the XFCE Desktop on latest Sidux.

There was a freeze after some time because of the bug in Xorg for Intel 80845 chip-set.
I had faced same problem on Ubuntu Karmic on this chip-set and forced Xorg to use vesa driver by writing xorg.conf. I copied the file to /fll/cow/etc/X11 on sda4:

Section "Monitor"
    Identifier    "Configured Monitor"
EndSection

Section "Screen"
    Identifier    "Default Screen"
    Monitor        "Configured Monitor"
    Device        "Configured Video Device"
EndSection

Section "Device"
    Identifier    "Configured Video Device"
    Driver        "vesa"
EndSection

Wednesday, December 09, 2009

Google Chrome Browser for Linux

Some Linux users were already running Google Chrome Browser from dev channel. Now Google has announced immediate availability of Google Chrome Browser for Linux. You can download it from here. You can download themes and extensions. See my screenshot. I have installed Similar Pages, Feedly, Aviary screenshot utility, Gmail checker and Xmarks extensions and you can see their icons on right side.



Update on Dec 12
When Google announced Chrome Beta it was version 4.0.249.30 and unstable version was also same, however, the development continues and if you upgrade unstable today it is at version 4.0.266.0. If you installed unstable before beta was announced the version changes if you upgrade, however, those who installed beta the version remains at 4.0.249.30, therefore, if you want to stick to beta remove unstable and install beta or don't upgrade unstable and let it stay at version 4.0.249.30.
Update on Dec 17
Today Chrome Beta also got updated to version 4.0.249.40.

Monday, December 07, 2009

Using Google Chromium OS on Desktop.

After Google announced the availability of source of Chromium OS VMWare and USB images appeared on internet. I downloaded USB image but it exceeded the 2 GB size of my pendrive. Then a smaller USB image (less than 1 GB) was made by a developer and I downloaded it today from this site. I extracted the image and copied it to the pendrive through:
sudo dd if=ChromeOS-Cherry.img of=/dev/sdb bs=4M

I could boot from USB to the login screen but it froze after login then I realized that I was using a desktop which has Intel 82845G chipset. Then I modified xorg.conf on the USB stick to use vesa driver.

I could then get to the Chrome browser. I could browse but noticed following two problems:
  1. I was already logged in to my Google account but could not use the Blogger even after I logged out of gmail and tried to login to Blogger. The Blogger complains about cookie functionality.
  2. When I type I have to wait a few seconds before the text appears on the browser.
Note: On next boot I was already logged into Blogger. You can ignore point 1.

Thursday, December 03, 2009

Xmarks on Google Chrome Browser.

I have been running Google Chrome Browser (unstable) on Ubuntu Linux. Today I discovered that I can run Xmarks for Chrome Alpha, version 0.5.11 on it. I clicked on the download link of Xmarks through Chrome Browser and it installed as an extension.


You need to have an Xmarks account to access the download link and the Google Chrome Browser should be from Development Channel.

Xmarks is working perfectly on Google Chrome from dev channel.

Wednesday, November 11, 2009

How to change default Operating System on Ubuntu 9.10 Karmic Koala

Some people use Ubuntu in dual boot with Windows and they prefer to make Windows as default Operating System. Prior to Ubuntu 9.10 this was achieved by changing the default line in /boot/grub/menu.lst file.

Ubuntu 9.10 Karmic Koala has Grub2 which does not have menu.lst file. The configuration file is /boot/grub/grub.cfg which is not supposed to be edited even by root. The primary configuration file for changing menu display settings is /etc/default/grub. The procedure to change the default OS is as follows:


Count the line number in the Grub menu taking first line as 0.
$ gksudo gedit /etc/default/grub

Change 0 in this line to the desired number:
GRUB_DEFAULT=0

Save and close the file

$ sudo update-grub

After running update-grub the default will change in grub.cfg

Tuesday, November 03, 2009

Running Ubuntu Karmic on Intel 82845G/GL[Brookdale-G]/GE Chipset

My daughter's Desktop which I use while at Bhubaneswar has this chipset:

$ lspci -nn | grep VGA
00:02.0 VGA compatible controller [0300]: Intel Corporation 82845G/GL[Brookdale-G]/GE Chipset Integrated Graphics Device [8086:2562] (rev 03)

I have installed Ubuntu 9.10 Karmic Koala on this machine and it is having random freezes. I have submitted a bug report but I don't think the bug is going to be resolved very soon. There is another bug resembling mine (my bug may be a duplicate) which has been submitted upstream on freedesktop.org but I don't think that it may be resolved soon.

I decided to change to vesa driver but there was no xorg.conf. I used the following xorg.conf:

Section "Monitor"
Identifier "Configured Monitor"
EndSection

Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
EndSection

Section "Device"
Identifier "Configured Video Device"
Driver "vesa"
EndSection

There is no freeze using vesa driver.

Update on Jan 1 2010
There is some activity on the bug report. The commit in the Kernel responsible for this bug has been identified and informed upstream. Meanwhile I have found that if I use IceWM instead of gnome there is no freeze with intel driver. If you are comfortable with IceWM you can also use it.

Thursday, October 29, 2009

How to boot Ubuntu from Desktop iso.

I have been trying various Linux distributions by copying the contents of Live CD ISO to a spare partition, editing menu.lst file of Grub for suitable entries and booting the operating system. This method saves a CD.

Grub2 is the default boot-loader on Ubuntu 9.10 Karnic for previous distributions you have to install it.

To install Grub2:
$ sudo apt-get install grub-pc
This will install Grub2 but does not replace Grub Legacy and puts an entry in /boot/grub/menu.lst to Chainload and try it. After you find that it is working you need to replace Grub Legacy by Grub2:
$ sudo upgrade-from-grub-legacy

I installed Grub2 recently and discovered that it can directly boot from ISO. I had Ubuntu 9.10 Desktop CD ISO to try. Instead of copying the contents of the ISO I copied the ISO in my-ISO folder on one partition (sda4). Then added following entry in the file /etc/grub.d/40_custom
menuentry "Karmic Live CD (sda4)" {
loopback loop (hd0,4)/my-ISO/ubuntu-9.10-desktop-i386.iso
linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=/my-ISO/ubuntu-9.10-desktop-i386.iso
initrd (loop)/casper/initrd.lz
}

Then I updated Grub2:
$ sudo update-grub

The update copied the above menu entry from /etc/grub.d/40_custom to /boot/grub/grub.cfg (Please note that you are not supposed to edit grub.cfg directly).

On reboot I selected the new menu entry "Karmic Live CD (sda4)" and could boot from the ISO.

Please note that on Grub2 sda4 is represented by  (hd0,4) and not  (hd0,3) like in Grub Legacy.

Tuesday, October 27, 2009

How to make manual entry in Grub2 on Ubuntu.

I installed Ubuntu 9.10 Karmic Koala RC today on one partition using Desktop CD. This version of Ubuntu has Grub2 which is under development. The Grub did not detect Ubuntu 9.04 Jaunty Jackalope and I could not boot into it till I studied the problem and resolved it.

As suggested on Ubuntu Wiki I tried the following workaround:

$ sudo apt-get install --reinstall libdebian-installer4
$ sudo os-prober
$ sudo update-grub

The above commands detected the Jaunty installation and updated /boot/grub/grub.cfg file (equivalent of /boot/grub/menu.lst file) but put wrote wrong partition #.


After reading Grub2 documentation on Ubuntu Wiki I made following manual entry in the file /etc/grub.d/40_custom

menuentry "Ubuntu 9.04" {
set root=(hd0,8)
linux /vmlinuz-2.6.28-16-generic root=UUID=5fdb796b-96c0-49f1-80ec-9455e337625c ro xforcevesa quiet splash
initrd /initrd.img-2.6.28-16-generic
}

The partition numbering system has changed on Grub2 and (hd0,8) now means sda8 partition. After writing the above file I had to run:
$ sudo update-grub

to add the entry in grub.cfg file.

Sunday, October 18, 2009

How to create Google Chrome theme with your picture.

Since the day I installed Mariah Carry theme on Google Chrome I wanted to create one with my picture. This did not work immediately since the Linux version of Chrome browser could not pack the theme into .crx file. The new version 4.0.222.5 does.

Here is the screenshot of my theme:

This is how I created it:
Create a folder MyTheme and another folder Image inside it. Copy the following text on editor and save it as manifest.json in MyTheme folder.

{
   "name": "name_of_theme",
   "theme": {
      "colors": {
         "bookmark_text": [ 255, 255, 255 ],
         "frame": [ 255, 255, 255 ],
         "ntp_background": [ 45, 42, 41 ],
         "ntp_header": [ 0, 0, 0, 1 ],
         "ntp_link": [ 255, 255, 255 ],
         "ntp_section": [ 68, 68, 68, 0.3 ],
         "ntp_section_link": [ 255, 255, 255 ],
         "ntp_section_text": [ 255, 255, 255 ],
         "ntp_text": [ 255, 255, 255 ],
         "tab_background_text": [ 0, 0, 0 ],
         "tab_text": [ 255, 255, 255 ],
         "toolbar": [ 0, 0, 0 ]
      },
      "images": {
         "theme_frame": "Image/theme_frame.png",
         "theme_ntp_attribution": "Image/theme_ntp_attribution.png",
         "theme_ntp_background": "Image/theme_ntp_background.png",
         "theme_tab_background": "Image/theme_tab_background.png",
         "theme_toolbar": "Image/theme_toolbar.png"
      },
      "properties": {
         "ntp_background_alignment": "bottom",
         "ntp_background_repeat": "no-repeat",
         "ntp_logo_alternate": 1
      },
      "tints": {
         "buttons": [ 1, 1, 1 ]
      }
   },
   "version": "3"
}

Replace "name_of_theme" with the name you want to give to the theme.

Now you require following images in the Image folder:



theme_frame.png


theme_ntp_attribution.png


theme_ntp_background.png (Put your photograph as this image)


theme_tab_background.png









theme_toolbar.png

You can download the images from this page.

Next step is to pack the theme. Type the following in the address bar of the chrome browser:
chrome://extensions/
Click on Pack_extension under Tools.
Click on Browse for Extension_root_directory
Chose MyTheme Folder
Click on Ok.
This will create two files MyTheme.crx and MyTheme.pem.

Now you have to open the .crx file using Chrome browser. You can do this by typing the following in the address bar:
file:///path_to_MyTheme.crx

Save the file and the theme is installed.

Tuesday, October 06, 2009

Google Chrome Browser on Ubuntu with nice themes.

As per Google the Chrome Browser for Linux is under development. For Ubuntu user it is a fairly developed Browser with Flash working and even themes could be installed from Google Chrome Themes Gallery. Look at the Mariah Carry Theme on my Browser running on Ubuntu 9.04 Jaunty Jackalope:

I have installed Daily Build of Chromium Browser available on following PPA:
http://ppa.launchpad.net/chromium-daily/ppa/ubuntu
the GPG key can be added from the following command:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 4E5E17B5


For some people what I have installed from PPA is Chromium and not Google Chrome, although, both are same browser. If you want to install with the name Chrome here is the link to Chrome .deb package

Tuesday, September 22, 2009

Tux Paint Open Source Drawing Software for Children.

I installed Tux Paint on Ubuntu for my grand daughter but while teaching her how to use it I have fallen in love with it since I can't paint. It has an option called Stamps which can be used to insert images on the canvas like the following images of the Sun, Seagull and 3 types of houses on the following painting:

Talking about my lousy painting I painted this one using GIMP.



Thursday, September 03, 2009

Install new Opera 10 on Ubuntu

Opera 10 was released on 1st September and I tried to upgrade since the Opera deb repository was already available on my software sources file. Then I noticed that I had not added the Opera GPG Key. I added the key:
$ wget -O - http://deb.opera.com/archive.key | sudo apt-key add -

and I could upgrade to the new version.

Saturday, August 22, 2009

How to talk using Pidgin 2.6.1 on Ubuntu Jaunty.

Pidgin 2.6.0 was released on Aug 19 2009 and brought good news to Linux users that it comes with Voice and Video support.

This is how I installed on Ubuntu 9.04 Jaunty Jackalope.

Removed existing Pidgin:
sudo aptitude purge pidgin pidgin-data libpurple0 libpurple-bin
Add the following repositories to Software sources:
deb http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu jaunty main
deb-src http://ppa.launchpad.net/pidgin-developers/ppa/ubuntu jaunty main
Add signing keys:
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A1F196A8
Update and install:
sudo aptitude update
sudo aptitude install pidgin
For audio/video calls:
Double click the buddy and
Click on Conversation/Media in the new window.
If the buddy does not have audio/video facility the options will be greyed out.

Filed ITR2 with Zero income tax on Capital Gain taking help of Claude AI.

  I file income tax return on my own (without any help from anyone) every year. But this year I decided to take the help of Claude AI primar...