Thursday, November 15, 2018

Ubuntu 18.04 in dual boot with Endless OS

 I bought Acer Aspire 3 Model A315-21 which came with pre-installed Endless OS. I could install Ubuntu 18.04 after resizing the Endless OS partition. But the grub of Ubuntu did not pick up the entry of Endless OS. I asked question on Ask Ubuntu and was told to add the following menu entry in /etc/grub.d/40_custom
menuentry "Endless" { insmod part_gpt insmod fat set root='hd0,gpt1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1 1234-abcd else search --no-floppy --fs-uuid --set=root 1234-abcd fi chainloader /EFI/endless/shim.efi}

I was told to replace two instances of "1234-abcd" by UUID of /dev/sda1 which is EFI partition created by Endless OS. The above menu entry chainloads the grub installed by Endless OS.

After booting there was no chance of selecting the above menu entry since the grub menu was hidden.

I opened /etc/default/grub and changed the following lines:
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=0in
to:
#GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
I could chainload the grub of Endless OS but it was not booting and I had to disable secure boot.

Interestingly the Endless OS boots with secure boot on if I choose the grub of Endless OS in BIOS

NB: Since Ubuntu 18.04 had bug of grub install I downloaded Daily/Live image of Ubuntu 18.04 in which the bug has been removed.


Monday, November 05, 2018

Installed Peppermint Linux on Lenovo Ideapad S100

I am presently at Bhopal and these people have Lenovo Ideapad S100 with Windows 7. Last time I had tried antiX Linux on USB boot on this machine.

This time I found that they had to reformat the disk and reinstall Windows 7 which was not working well.

When I boot this Laptop on Windows 7 there were auto key presses of space bar for sometime. Afterwards I could use it but space bar did not produce "space". I had to use onscreen keyboard for typing "space".

I decided to try Linux on the machine and since it has only 2 GB RAM I decided to try Peppermint Linux.

I downloaded Peppermint 9 (32 bit), checked md5sum, bought SanDisk from local market and made bootable usb disk using Rufus.

This Laptop is not friendly for USB booting. On Lenovo Laptops pressing F12 is supposed to show boot menu but the Laptop does not have F12 key and suppose to work with Fn+F11 but Fn does not work on BIOS.

I pressed F2 to enter the BIOS Set up but there is no option to bring up the USB boot option above HDD boot, however, the BIOS suggests that you could disable HDD boot option by putting "x" after selecting it and pressing x key.

After disabling HDD boot I could boot from USB. The Space Bar key did not work on Live Peppermint Desktop and I had to install "onboard" to get onscreen keyboard.

Even then I decided to install Peppermint in dual boot with Windows 7.

After install and booting Peppermint Desktop once again I had to install "onboard" and use it for space bar.

After applying all updates, however, I find that the Space Bar key is working.

Mission successful.

Saturday, October 13, 2018

Endless OS pre-installed on Acer Aspire 3.

 I bought Acer Aspire 3 Model A315-21 on Amazon during current Great Indian Festival. Regarding OS Amazon stated:

  • Operating System: This is an Elinux -based laptop. Requires separate purchase and installation of operating system software (like Windows), not included in the box. Refer to Acer website for drivers

Since it says "Requires separate purchase and installation of operating system software" I thought nothing would be pre-installed and I was ready to install Ubuntu 18.04.

But it came pre-installed with Endless OS and I am very much impressed with the modern Linux Operating System.

See what is says in the QA below:

Why can't I use apt-get, dpkg, dnf, or rpm commands?

Most desktop Linux distributions are oriented towards tech-savvy users and developers, but Endless OS isn't your typical Linux distribution. We have a different target user. We don’t use rpm, apt, or any other packaging system. We use a read-only root file system managed by OSTree with application installed using Flatpak.

You may notice that the apt-get and dpkg commands are installed. This is because Endless OS is based on Debian, and these commands are used while creating Endless OS. Each release is a read-only snapshot, so you can use commands like dpkg -l which do not make changes to the system, but you cannot use commands like apt-get install.

For more information on the open-source software used to build Endless OS, see the Developers page on our website.

Wednesday, September 26, 2018

Booting daily-live/current cosmic-desktop-amd64.iso from Grub2 and updating it using zsync.

Today I downloaded Ubuntu 1810 Cosmic Cuttlefish Live ISO

    wget -c http://cdimage.ubuntu.com/daily-live/current/cosmic-desktop-amd64.iso


 and used it booting from Grub2 menu entry as follows:

    sudo gedit /etc/grub.d/40_custom

and added the following lines:

    menuentry "Cosmic Desktop iso" {
            set isofile="/home/user/cosmic-desktop-amd64.iso"
            loopback loop (hd0,X)$isofile
            linux (loop)/casper/vmlinuz.efi boot=casper iso-scan/filename=$isofile noprompt noeject
            initrd (loop)/casper/initrd
    }

then I updated grub to add the menuentry:

    sudo update-grub

I could boot from the ISO selecting Cosmic Desktop iso from menu.

Today I decided to keep the ISO updated and installed zsync and used it to update.

    sudo apt-get install zsync -y
    zsync http://cdimage.ubuntu.com/daily-live/current/cosmic-desktop-amd64.iso.zsync
    #################### 100.0% 108.2 kBps DONE  

    reading seed file wily-desktop-amd64.iso: **************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************Read wily-desktop-amd64.iso. Target 100.0% complete.   
    verifying download...checksum matches OK
    used 1257062400 local, fetched 0

Since it is less than 24 hours it says " fetched 0"

If you want to use the method please note that the ISO is on /home folder of the user. Put your username replacing user and X in (hd0,X) as your partition no X.

Sunday, September 02, 2018

Enabling tapping on touchpad on Debian Mate Desktop.

I installed Mate Desktop on Debian 9 "Stretch" recently and found that tapping on touchpad did not work and the setting was missing in Mate Control Centre.

After searching I found the solution on Debian Wiki
# mkdir -p /etc/X11/xorg.conf.d
# echo 'Section "InputClass"
        Identifier "libinput touchpad catchall"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"
        Option "Tapping" "on"
EndSection' > /etc/X11/xorg.conf.d/40-libinput.conf


Thursday, June 28, 2018

Outage of Chromecast on June 27 2018

There is a 10:30 PM serial on Zee Marathi (Grahan) which does not have repeat telecast in the day.

We watch it through Zee5 and Chromecast on our TV next day morning.

We could watch it on 27th June in the morning but later on when I tried to use Videostream on Chromecast it did not work.

I tried rebooting, Factory Reset on Chromecast, restarting Wifi but nothing worked.

After searching on internet I came to know that it was Global issue.

Google resolved it and we could use Chromecast on 28th June morning.


Tuesday, May 29, 2018

Playing Music on Bluetooth Speaker artis BT 15 through SD Card.

As mentioned on previous post I bought artis BT 15 Bluetooth Speaker mainly to use with my mobile phone since its sound output is less.

The Bluetooth Speaker also has micro SD Card slot to play the songs on SD Card without connecting with any phone or Laptop.

I had one micro SD Card and SD Adapter to mount it on Laptop. After mounting the card it got mounted as read only.

I checked the Adapter and it had a hardware lock switch to write protect it. After putting the switch in unlock position it got mounted as rw.

I copied the Music Folder with its contents from the Laptop on the micro SD Card.

After inserting the card in the slot on Bluetooth Speaker I could play the songs on the Speaker.

Now I don't need any mobile or Laptop to play those songs.

Sunday, May 27, 2018

Connecting Bluetooth Speakers for sound output on Ubuntu 16.04

I bought Bluetooth Speker artis BT15 mainly to use with my mobile Coolpad Mega 2.5D since the output volume of the phone for playing Jio TV is very less.

After using with the phone I thought to check it with Laptop although Laptop speakers are good enough.

I could pair and connect the Bluetooth Speaker and it was showing in System_Settings/Sound/Output as "Headset BT15" and I selected it but the Music was still playing through Laptop Speakers.

After searching askubuntu I got the solution:
  1. Change #AutoEnable=false to AutoEnable=true in the /etc/bluetooth/main.conf (notice new line is un-commented)
  2. Unpair the headset
  3. Restart the bluetooth service sudo /etc/init.d/bluetooth restart
  4. Pair your headset again and connect it
  5. Go to sound settings. From the output device tab you should now see the headset listed along with other output device like internal speakers
  6. Choose it as the sound output device.

Saturday, April 28, 2018

Installing Ubuntu 18.04 Bionic Beaver on Lenovo G50-45

My Lenovo G50-45 has Windows 10 and Ubuntu 16.04, Debian 9 and two more partitions to install whatever Linux I feel like.

I downloaded Ubuntu 18.04 Desktop ISO on 27 April 2018 and tried to install on spare partition. It failed to install Grub with error message 'grub-efi-amd64-signed' package failed to install target/ and also wiped menu entries of Ubuntu 16.04 and Debian making my system unbootable.

I had to boot again on Ubuntu 18.04 Live USB, install and run Boot Repair to get the menu entries back.

Today I installed Ubuntu 18.04 once again with following command:
sudo ubiquity -b
which installed without Grub.

After login in Ubuntu 16.04 I updated grub and got the entries of Ubuntu 18.04 and could boot Ubuntu 18.04.

But for anybody trying to install Ubuntu 18.04 without any other Linux present should use following procedure on AMD machines:
 

1) Boot Ubuntu Live DVD/USB in testing mode and open terminal
2) Run installation process without installing bootloader by:
sudo ubiquity -b
3) Press "Continue testing" after installation is over.
4) Mount newly installed file system into /mnt:
sudo mount /dev/sda2 /mnt
sudo mkdir /mnt/boot/efi
sudo mount /dev/sda1 /mnt/boot/efi
for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
(where sda2 is the root partition and sda1 is the efi partition)
5) Load efivars by:
sudo modprobe efivars
6) Reinstall grub-install for a 64bit version
sudo apt-get install --reinstall grub-efi-amd64
sudo grub-install --no-nvram --root-directory=/mnt
7) Change root to /mnt and update grub
sudo chroot /mnt
sudo update-grub
8) Move and rename the installed bootloader
cd /boot/efi/EFI
sudo cp -R ubuntu/* BOOT/
cd BOOT
sudo cp grubx64.efi bootx64.efi
9) Reboot the system.


Tuesday, April 17, 2018

Combining multiple video files into one video file.

I had four video files which were supposed to be played one after the other. After searching on Internet I learned about using ffmpeg.

I created mylist.txt file in the folder where the video files were kept.
file '3SRB_Stretching.mp4'
file '3SRB_Swiso.mp4'
file '3SRB_Refining_Exercise.mp4'
file '3SRB_Radhe_Krishna.mp4'

Then I opened terminal and typed following command after CD to the folder.
ffmpeg -f concat -safe 0 -i mylist.txt -c copy 3SRB.mp4

I got 3SRB.mp4 file which combined the four files in mylist.txt file.

Air India direct flight to San Fransisco has flown through China today.

 My sister in law left for San Fransisco by AI 173 flight which flows over North Pole. I tracked that flight on flightstats.com till it land...