Pages

Tuesday, June 28, 2016

Removing old kernels on Ubuntu.

On Linux distributions you get kernel update and the images of old kernels remain on your machine occupying space. I got a kernel update today:
$ uname -r
4.4.0-28-generic
After restart I could see that the image of old kernel was present on the machine:
$ dpkg -l | tail -n +6 | grep -E 'linux-image-[0-9]+' | grep -Fv $(uname -r)
ii  linux-image-4.4.0-24-generic                4.4.0-24.43                                         amd64        Linux kernel image for version 4.4.0 on 64 bit x86 SMP
I removed the old kernel by using following commands one by one:

sudo dpkg --purge linux-signed-image-4.4.0-24-generic
sudo dpkg --purge linux-image-extra-4.4.0-24-generic
sudo dpkg --purge linux-image-4.4.0-24-generic
I removed the kernel headers by using following commands one by one:
sudo dpkg --purge linux-headers-4.4.0-24-generic
sudo dpkg --purge linux-headers-4.4.0-24
Since I remove the previous image on every kernel update I had to remove only 4.4.0-24 but if you are doing it first time you may have many images starting from 4.4.0.21


Saturday, May 28, 2016

TintCore Linux on Lenovo G50-45

About 8 years ago I tried TinyCore Linux and developed a couple of tcz files to the project.

Yesterday I downloaded the latest TinyCorePure64-7.1 ISO and made a UEFI bootable USB stick to try it. I could boot to the desktop and connect through wired network (wireless wlan0 was not detected out of the box but that was expected from the Tiny Linux distribution). I installed Opera Browser.
After searching on the Forums, I installed following tcz files:
wireless-4.2.9-tinycore64.tcz
           wireless_tools.tcz
firmware-rtlwifi.tcz
wpa_supplicant-dbus.tcz
wpa_supplicant.tcz
After this wlan0 was detected but I had to make wpa_configure.conf file and connect through following command:
$ sudo wpa_supplicant -iwlan0 -c/opt/wpa_configure.conf &
I have added the above command to /opt/bootlocal.sh to automatically connect on next boot.

Now I can explore this Tiny Linux distribution once again.


Thursday, April 21, 2016

Running Ubuntu 16.04 Xenial Xerus on my Lenovo G50-45 Laptop.

I had downloaded Ubuntu 16.04 Daily ISO and was periodically updating it using zsync. I updated it this morning to version 20-Apr-2016 22:30 and assuming it that it is going to be the Final version installed it to hard disk replacing Ubuntu 14.04.4 Trusty (which I was not using anyway).

See the screen shot below with Unity Launcher moved to Bottom using Unity Tweak Tool (which is now available in Software).

Saturday, October 24, 2015

Transfer files from Android to Ubuntu 15.10 Lenovo G50-45 Laptop using Bluetooth.


I struggled to use Blue-tooth on my Ubuntu 14.04 Lenovo G50-45 and eagerly waiting for Ubuntu 15.10 which has Linux Kernel 4.2 and proper drivers for using Blue-tooth on this Laptop. As soon as Ubuntu 15.10 Development version Kernel was upgraded to 4.2 I installed it and happily using it. Although the Laptop got connected through Blue-tooth to my Android Phone I had to try various things including  obex-data-server etc. to transfer the files.

On 22nd Oct 2015 final version of Ubuntu 15.10 was available I downloaded the ISO and made a USB stick and decided to connect Android phone to the laptop using Blue-tooth on Live Ubuntu 15.10.

I had to install Bluetooth Manager to transfer files to and from Android Phone to the laptop.

Friday, October 16, 2015

Importing ICICI Bank, other Banks and Android Applicaton Transactions in GnuCash.

I posted about the same topic in 2011. I have decided to maintain the Books of Accounts on my own in the Current Financial Year 2015-16 (since the tryst with Steam Turbine is temporarily suspended and tryst with Linux is on which the readers of this Blog would have noticed anyway looking at frequency of my posts). I installed GnuCash 2.6.6 on Ubuntu through Software Centre couple of days ago and started importing the Bank Account Files. ICICI Bank no longer offers QIF/MSMoney Fomat download as stated in comments on the year 2011 post. No problem for me. I downloaded the Excel File and saved as CSV which was accepted by GnuCash in the option "Import Transactions from CSV".

I imported the transactions from Bank Accounts, Credit Card Accounts and the corresponding debit/credit entry went into Imbalance and only task then was to change the imbalance into the correct account.

I have again become my own CA, thanks to GnuCash.

I also installed GnuCash Application on Android Phone, created Expenses Account, entered the Cash transactions while shopping, exported the transactions in QIF File, imported that File on Desktop Application and the Transactions are entered there. Great going.

Tuesday, October 13, 2015

Filing Income Tax Return using Java Utility on Ubuntu.

My CA audits my accounts and sends me the XML file of Income Tax Return for uploading it to Income Tax Return e-Filing site. I check the XML file by opening it in the Browser or if I see that a thorough check is necessary I use other tools including Excel Utility for which I need Windows.

This year I decided to use the Java Utility available in Downloads section of e-Filing site. When I opened it typing ./ITR.sh in the Terminal it produced an error. On Googling I found that I need an older version of Java to use it.

I went to Java Oracle site and downloaded the old version jre-8u51-linux-x64.tar.gz and extracted it to /opt/jre (I had to create the directory). Since the latest version of JRE openjdk-8-jre 8u66-b01-5 was installed on my Laptop I removed it and had to use "G Alternatives" to add the path /opt/jre/1.8.0_51/bin/java for Oracle Java.

I could then use the utility by typing ./ITR.sh in the Terminal and open the XML File to view the Income Tax Return.

I made necessary changes in the Return after consulting my CA and could submit it directly through the utility without logging to e-Filing site.