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...