Tuesday, July 07, 2015

Using antiX live usb on Lenovo Ideapad S100.

I am presently at Bhopal and the family has Lenovo Ideapad S100 Netbook with Windows 7. I had made usb stick with latest antiX-15 which I decided to try on this netbook.

On this Netbook pressing F12 on boot is supposed to bring Boot Menu but it did not work (may be because F12 is actually Fn+F11 and Fn key may not be working on boot).

Pressing F2 however brings the BIOS Set up. In BIOS Set up Boot Tag I could see the USB Stick but there is no provision to bring it up and make it first boot device.

But I could disable booting from Hard Disk (first boot device) by putting a "x" by pressing "x" key and save settings.

Then I could boot from USB and  now posting this on Iceweasel (Open Source Firefox) on antiX-15.

This machine has 2 GB RAM and antiX is very fast.

Friday, July 03, 2015

Review of antiX-15 USB persist on UEFI Secure Boot.

On 30th June 2015 new version of antiX called antiX-15 (Killah P) was released. I was impressed with the announcement "Want to run live on a box with UEFI bootloader? antiX can do this", and immediately wanted to test this.

I downloaded antiX-15-V_64-full.iso from souceforge. The announcement recommended Unetbbotin to make live usb but unfortunately Unetbootin crashed while selecting the iso file. I used dd command to copy the iso to usb but it allowed me to boot only in Legacy mode of BIOS.

I posted on antiX Forum and was advised to mount the iso and simply copy the contents (same like what I recommend for Ubuntu 14.04 for UEFI)

sudo mkdir -p /mnt/iso
sudo mount -o loop,ro  antiX-15-V_64-full.iso /mnt/iso
cp -a /mnt/iso/. /media/USB_mount_point/

 After selecting boot from usb in BIOS Boot Menu I could boot into antiX default Desktop with secure boot on since antiX has Microsoft signed kernel image.

Then I wanted to make the usb persistent. I used the cheat-code "persist=root!,home" in grub boot line but was getting blank screen.

I created the rootfs and homefs files and placed them in /antiX folder on usb even then it did not work:
dd if=/dev/zero of=rootfs bs=1M count=0 seek=1024
mkfs.ext4 -q -m 0 -O ^has_journal -F rootfs
dd if=/dev/zero of=homefs bs=1M count=0 seek=1024
mkfs.ext4 -q -m 0 -O ^has_journal -F homefs 
After struggling for a day I was told to change "gfxpayload=text" to "gfxpayload=keep" in grub.cfg and it worked.


Thursday, June 18, 2015

Enjoying old Desktop days with Mate DE 1.8.1 on Debian 8.1

I recently installed Debian 8.1 in triple/quadruple boot with Windows8.1/Ubuntu14.04.2/Ubuntu15.04 on my Lenovo G50-45 Laptop.

Initially I installed LXDE Desktop but yesterday added Mate Desktop and now enjoying good old days of Gnome 2.


Wednesday, June 17, 2015

How to make back-light Brightness Fn keys work on LXDE.

Back-light Brightness is set on my Laptop by Fn+F11 (down) and Fn+F12 (up) keys. These keys worked on Ubuntu Unity Desktop but not on LXDE Desktop.

I tried xbacklight command but it did not work. Then after googling I discovered that xbacklight does not work on radeon driver.

Then I tried how it works on Ubuntu Unity Desktop and found that following command was executed by USER=root
/usr/lib/unity-settings-daemon/usd-backlight-helper --set-brightness 24
Since the command to be executed required root privileges I created two bash shell files on my desktop:File ~/home/Desktop/Brightness1
#! /bin/bash
# script to set the initial brightness on login
[ "$UID" -eq 0 ] || exec gksu bash "$0" "$@"
/usr/lib/unity-settings-daemon/usd-backlight-helper --set-brightness 12
File ~/home/Desktop/Brightness2
#! /bin/bash
# script to set the initial brightness on login
[ "$UID" -eq 0 ] || exec gksu bash "$0" "$@"
/usr/lib/unity-settings-daemon/usd-backlight-helper --set-brightness 24
I made the files executable and tested them. The script asked for sudo password and set the required brightness.
Then I inserted following Keycodes in ~/.config/openbox/rc.xml
<!-- Keybindings for LCD Backlight -->    <keybind key="XF86MonBrightnessDown">        # decrease screen brightness      <action name="Execute"><command>/home/user/Desktop/Brightness1</command></action>    </keybind>    <keybind key="XF86MonBrightnessUp">        # increase screen brightness      <action name="Execute"><command>/home/user/Desktop/Brightness2</command></action>    </keybind>
and it works by pressing Fn+F11 and Fn+F12 i.e. it asks for sudo password and sets the required brightness. 

Friday, June 12, 2015

How to run Debian with secure boot on.

I am having Lenovo G50-45 Laptop which had Windows 8.1 pre installed and I have installed Ubuntu 14.04 and 15.04 in triple boot with secure boot on.

Today I installed Debian 8.1 on another partition. For installing Debian I had to disable secure boot. After installation if I was booting Debian through its Boot Loader I had to disable the secure boot.

Later on I enabled secure boot and using Ubuntu 15.04 and updated the kernel. After update the grub got updated and it picked up the entry of Debian.

Now I could boot Debian through Ubuntu's Boot Loader without disabling secure boot.

NB: For those who are not familiar with UEFI. Each operating system has its own Boot Loader with entries of other operating systems in the Grub Menu.

Saturday, June 06, 2015

Chromixium OS -- Chromebox plus Ubuntu.

I was always fascinated with any OS from Google or something like that. I had tried gOS Desktop in 2007 and Chromium OS on pendrive in 2009.

Google then launched Chrome OS only on Chromeboxes and they have significant market share today.

One developer has combined Ubuntu with Openbox, LXPanel and Google Applications to develops what he calls Chromixium OS.

I downloaded the Chromixium 64 Bit RC ISO, copied it to USB, added casper-rw file and persistent boot parameter in /boot/grub/grub.cfg before "quiet splash" in the menu entry and running it now on my Lenovo G50-45 Laptop. The OS has beautiful Desktop:



Tuesday, June 02, 2015

How to recover lost Grub Menu and Edit Menu entries.

Yesterday I installed Ubuntu 15.04 on USB stick and selected grub install on the USB to keep the Grub on Hard Disk intact. Even then I lost the Grub Menu on the Hard Disk and had to use the grub on the USB to boot into Ubuntu 14.04.2 installed on the hard disk.

For recovering Grub of menu I had to install Boot Repair through the ppa. After running Recommended Repair through Boot Repair I got the Grub Menu on the hard disk but with many unnecessary entries.

For removing the unwanted entries on Grub Menu I installed Grub Customizer and used it to remove the entries.

Boot Repair and Grub Customizer are excellent tools.

Monday, June 01, 2015

UEFI Bootable full install of Ubuntu 15.04 on 32 GB USB stick.

Yesterday I posted about Live persistent UEFI Bootable USB stick of Ubuntu 15.04. I could upgrade some packages, save wifi settings and documents and they were available on reboot but when I upgraded linux kernel I could not reboot on using persistent kernel boot parameter and even without this parameter.

Since the 32 GB USB stick could take full install I made full install of Ubuntu 15.04 on the stick with installing bootloader on the stick. The bootloader also picked the Windows 8.1 and Ubuntu 14.04.2 installations on the hard disk.

I think the days of persistent live linux on USB stick are over and full install is the way forward.


Sunday, May 31, 2015

Live persistent UEFI Bootable USB stick of Ubuntu 15.04.

I had purchased one 32 GB USB stick to back up Windows 8.1 installation on my Lenovo G50-45 Laptop before installing Ubuntu 14.04 in dual boot. Since the dual boot is working well and Windows recovery partition already exists on the Laptop I decided to have Live persistent Ubuntu 15.04 on the stick.

I created 2 GB Fat32 partition, 4 GB ext4 partition with label casper-rw and another 4 GB ext4 home-rw partition on the USB stick. Then I used start up disk creator to put Ubuntu 15.04 on Fat32 partition.

After booting I found that persistence did not work on UEFI machines since there was a bug in live usb creator. The work around was to edit the /boot/grub/grub.cfg file and put "persistent" before "quiet splash" in the menuentry.

Now my wifi settings and documents are avaiable on reboot.

I will try updating the system later on. Upgrades to packages like Firefox worked but when I upgraded the linux kernel I could not boot with or even without persistent boot parameter.

Today I made full install of Ubuntu 15.04 on the USB stick.

Monday, May 25, 2015

We bought Google Chromecast.

After buying latest Android Phones and Tabs the next step was to buy Google Chromecast to connect theses devices to TV for media streaming but it required Wifi at home and our Landline phone and MTNL Broadband was in safe custody since 2010 when we went to Jharsuguda. I was not wiling to spend for Landline Phone and we experimented with Mobile Operators taking advantage of Mobile number portability. Finally we sattled for Idea after trying Reliance CDMA and Airtel. For internet Reliance GSM Data was working in the Tab.

For Broadband also I am experimenting with Tikona Brodband which is Wireless till the terrace of our flat where a CPE is installed from where it is wired to the Wifi router installed at suitable location in the home.

The Chromecast is plugged in the HDMI port of the TV and gets power either through USB port of the TV or mains. The Android Phone is used for Setting up the Chromecast to connect to the Wifi Router. After setting up the Cromecast is directly connected to the Wifi Router like other Android Devices and Laptops.


Now suppose you want to watch the Youtube video on your TV you first open the Video on the Phone/Tab or Crome Browser on the Laptop and connect the device to the Chromecast. After connecting the Youtube video directly plays on the TV.

You can also play the local media on your Android devices on the TV. For Laptop you can do it through Chrome Browser and its add-on extensions.

Thursday, May 07, 2015

New Terminal Commands learnt.

Recently I learned some new Terminal commands. Following is the output of these command on my Lenovo G50-45 Laptop.

$ lspci -nnk | grep -i vga -A3 | grep 'in use'
    Kernel driver in use: radeon
 $ /usr/lib/nux/unity_support_test -p
OpenGL vendor string:   X.Org
OpenGL renderer string: Gallium 0.4 on AMD MULLINS
OpenGL version string:  3.0 Mesa 10.3.2

Not software rendered:    yes
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes

Unity 3D supported:       yes
 $ cat /etc/lsb-release; uname -a
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.2 LTS"
Linux Lenovo-G50-45 3.16.0-37-generic #49~14.04.1-Ubuntu SMP Thu Apr 30 10:52:28 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
$ lspci -nnk | grep -iA2 net
01:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]
    Subsystem: Lenovo Device [17aa:b736]
    Kernel driver in use: rtl8723be
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 10)
    Subsystem: Lenovo Device [17aa:3812]
    Kernel driver in use: r8169
I knew the following command but now the second one to be used.
$ sudo fdisk -l

WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xecf87c27

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1   976773167   488386583+  ee  GPT
Partition 1 does not start on physical sector boundary.
$ sudo gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
  MBR: protective
  BSD: not present
  APM: not present
  GPT: present

Found valid GPT with protective MBR; using GPT.
Disk /dev/sda: 976773168 sectors, 465.8 GiB
Logical sector size: 512 bytes
Disk identifier (GUID): D8108174-FF68-4388-A994-3799AE5B6B2D
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 976773134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2029 sectors (1014.5 KiB)

Number  Start (sector)    End (sector)  Size       Code  Name
   1            2048         2050047   1000.0 MiB  2700  Basic data partition
   2         2050048         2582527   260.0 MiB   EF00  EFI system partition
   3         2582528         4630527   1000.0 MiB  FFFF  Basic data partition
   4         4630528         4892671   128.0 MiB   0C01  Microsoft reserved part
   5         4892672       104552447   47.5 GiB    0700  Basic data partition
   6       104552448       733698047   300.0 GiB   0700  Basic data partition
   7       898043904       950472703   25.0 GiB    0700  Basic data partition
   8       950472704       976773119   12.5 GiB    2700  Basic data partition
   9       733698048       895946751   77.4 GiB    8300 
  10       895946752       898043903   1024.0 MiB  8200

Sunday, May 03, 2015

How to make UEFI Bootable Ubuntu 15.04 USB stick on Windows 8.1?

Since many years we download the Ubuntu ISO and use the installed Ubuntu to make a Start up Disk from the ISO to install on the same or other machines. The Start up disk is a UEFI Bootable USB stick.

Today I faced a question on Ubuntuforums about how to make UEFI Bootable Ubuntu 15.04 USB stick on Windows 8.1. I am doing it now on My Lenovo G50-45 Laptop on Windows 8.1. I have the Ubuntu 15.04 ISO on the drive. I have downloaded and installed md5 Calculator Application from Windows Store. I have checked the md5sum of the ISO and it is same as in this file.

I have downloaded 7-Zip 9.38 .msi file from here.
I have a 2 GB USB stick formatted in FAT32 in the USB slot.
I have extracted the ISO on the USB stick using 7-Zip.
I right click on Start Button and select Disk Management and find that the USB drive is Healthy (Active, Primary Partition)
I right click on Start Button, select Power Options/Choose what the power button does and uncheck Fastboot (if exixts)
I reboot holding the shift key.
On reboot I select use a device and EFI USB device and get options on Grub Menu to run Ubuntu without install.




Wednesday, April 29, 2015

Ubuntu 14.04 on Lenovo Laptop G50-45 with Kernel 3.16.

As written on this post I installed Ubuntu 14.04 LTS in dual boot with Windows 8.1 in December 2014.

The proprietary driver fglrx worked fine till I updated it to newer version on  12th April 2015. After the update I could not login and had to remove fglrx driver and come back to radeon.

Today I installed Kernel 3.16 (original kernel 3.13) through LTS Enablement Stack with following command:
sudo apt-get install --install-recommends linux-generic-lts-utopic xserver-xorg-lts-utopic libgl1-mesa-glx-lts-utopic libegl1-mesa-drivers-lts-utopic
 The open source driver radeon is working perfectly on Kernel 3.16

This Laptop has Realtek Wireless Network Adapter and its driver rtl8723be was causing disconnections and required reboot to connect again. This is solved by following command:
echo "options rtl8723be fwlps=0" | sudo tee /etc/modprobe.d/rtl8723be.conf
Now Ubuntu 14.04 is working perfectly on this Laptop.

Monday, March 23, 2015

My Android one phone got Android Lollipop 5.1 update.

I bought Karbonn Sparkle Android one installed with Android Kitkat version 4.4.4 recently. Yesterday it got Android version 5.1 update which is called Lollipop.
If you click on Settings/About_phone/Android_version_5.1 number of times it opens Lollipop game (Screenshot below)

Sunday, December 14, 2014

Installation of Ubuntu 14.04.1 in dual boot with Windows 8.1 on Lenovo Notepad G50-45

There are many visitors to this post through Google Search when they look for suitable Linux Distribution for Lenovo G50-45 but this is an old post and I recommend that anyone looking to install Ubuntu on this Laptop should go for Ubutu 16.04 LTS and not 14.04, however, if you are looking for instructions for Dual Boot with Windows you should read this post but install Ubuntu 16.04 LTS which has no issues.

Lenovo Notepad G50-45 Specifications:
Model Name 80E3
CPU AMD E1-6010 1.35G
RAM 2G
HDD 500 GB
Display 15.6" HD LED
OS Windows 8.1 WB EM

I downloaded 64 Bit Desktop ISO of Ubuntu 14.04.1from Ubuntu and used it to create USB Start up Disk from Ubuntu 12.04 on another machine.

After shutting down the Windows 8.1, I inserted the USB Start up Disk in USB port on the Lenovo Notepad and pressed the NOVO button as shown in the diagram below:


 The display brought the BIOS screen below:

 I selected Boot Menu and selected to Boot from USB, on Grub menu I selected Try Ubuntu and could boot into Live Ubuntu 14.04.

In Live Ubuntu every thing worked well except I could not mount the Windows NTFS partitions getting errors that Windows was not shutdown properly, although I had selected to shutdown while in Windows. After reading about shutdown of Windows 8.1 I decided to shutdown Windows completely by running following command:
Shutdown /s /t 0
Once again I started Ubuntu Live session as above and I could now mount the NTFS partitions. I could have resized NTFS partitions using gparted but decided to do it in Windows.

In Windows I tried to shrink C:/ partition but was not allowed to shrink more than 50%. Once again after reading on the net I did following settings in Windows as advised on this blog:

1.Disable Hibernation
2:Disable Paging in C Drive temporarily
3:Diable System protection in c Drive temporarily

After doing the above settings I could shrink the partition to the extent I desired (48 GB for Windows 8.1). I created new NTFS partition leaving 80 GB unused for Ubuntu installation.

Once again I started Ubuntu Live session and created one EXT4 and one SWAP partition to be used for Ubuntu. Then I decided to check whether Windows 8.1 is accepting these changes or not by booting into Windows. Everything was Ok in Windows. Windows had a Recovery partition on the hard disk which I could copy to a USB disk.

Finally I decided to install Ubuntu on the EXT4 partition. After the installation I could boot into Ubuntu as well as Windows from grub installed on MBR.

The Laptop had Radeon Display Driver and the default ati driver was not working properly. After installing proprietary fglrx driver it is ok. 

Wednesday, September 17, 2014

Income Tax efiling utility and DSC working on Ubuntu Linux.

I am using Linux since Sep 2004 and Ubuntu since July 2005. I was forced to use Windows for Bank of Baroda Netbanking and efiling of Income Tax Return.

Bank of Baroda changed in 2012 and I could use Chromium Browser with JRE 7 on Ubuntu.

Income Tax efiling utility worked only on Windows besides the Digital Signature upload and signing.

Since last two years my CA prepares the xml file of the Income Tax Return but last year I had to use Windows for uploading the xml file using Digital Signatures.

On going through Downloads on Income Tax efiling website I find that besides Excel utility there is Java utility which is having following instructions in Readme.txt
To run in LINUX
Change the ITR.sh file's permission, provide execution permission by executing the following command
> chmod 755 ITR.sh                
run using the command "sh ITR.sh" or ./ITR.sh


This year I find that I could use Firefox with latest JRE 7 on Ubuntu for uploading and signing the Digital Signatures (DSC).

Thanks to the demise of Windows XP, the Income Tax Department had to switch to latest JRE 7 which works on Windows 7/8 as well as Ubuntu 12.04.

Thursday, June 05, 2014

How to deal with Excel (.xlsx) file not opening in Libreoffice?

Long back I discovered that Excel (.xlsx) file not opening in Libreoffice opens in Gnumeric.

Today I noticed that after I save the file opened in Gnumeric in the same format without making any changes it can be opened in Libreoffice.

Thursday, November 14, 2013

Goodbye Ubuntu, Welcome AntiX Linux

Although I tried many Linux Distributions as evident from various posts on this blog, I have always used Ubuntu LTS version on my office Laptop and home desktop.

Now I have decided to say Goodbye to Ubuntu and selected AntiX Linux as my OS.

Day before yesterday, I downloaded the latest antiX iso from sourceforge
I installed Unetbootin on Ubuntu Software Centre and created boot-able USB Stick using Unetbootin and the iso image. Windows user can download the Windows exe file and install Unetbootin and create the USB stick.

Yesterday, I tried antiX using the USB stick. I could also create persistent file to save the settings etc.

On my office Laptop, I always keep two versions of Ubuntu in dual boot, the current LTS for use and either retain the old LTS or the latest version for testing. I had old LTS version 10.04, which I deleted and used the partition to install antiX after booting from USB stick.

After installation I added Icedove (which is same as Thunderbird) and copied xxxx.default and profile.ini files from hidden .thunderbird folder from Ubuntu to hidden icedove folder on antiX and I could see all previous mails and address books.

I added the Battery Monitor in Conky.

I have set up the Cannon Image Runner Printer.

I am using antiX now, goodbye Ubuntu.


Yesterday, I was trying to play music on dhingana.com but it was not playing. I found that Iceweasel is having Flashblock extension installed by default. I posted on antiX forum and got a reply. Accordingly, I added www.dhingana.com to whitelist in preferences of Flashblock extension and it works.

Automation of entries of shopping in Gnucash on Endless OS with the help of Gemini.

  When I buy something and make payment sms immediately comes on mobile. I enter the transactions in Gnucash on Laptop with Endless OS manua...