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