Sunday, November 6, 2016

Challenges in Linux Mint 18 Cinnamon installation

The scenario is I have a Dell Inspiron machine dual booting Window 8.1 and Debian 8. I wanted to replace the Debian with Linux Mint 18 Cinnamon.


  1. Download the ISO file (64bit) from https://linuxmint.com/download.php
  2. Verify the downloaded ISO file from  https ://linuxmint.com/verify.php
  3. Press F2 during boot screen and make the fast boot to OFF & save and exit.
  4. Press F12 during boot screen and make the boot mode as UEFI and Safeboot off.
  5. Using Unetbootin create a bootable ISO using the USB disk.
  6. In Windows > Settings > System &recovery > Using your Pendrive > restart
  7. It boots into Mint 18, Install option 
  8. At some step it asks for partition choose "something else"
  9. Delete the existing "/" partition and "/home" using Minus "-" 
  10. Create partition "/" and "/home" using "+" make sure that format is checked
  11. After installation grub did not appear and it boots into windows directly.
  12. bcdedit /set {bootmgr} path \EFI\mint\grubx64.efi   did not work
  13.  Attempted this http://howtoubuntu.org/how-to-repair-restore-reinstall-grub-2-with-a-ubuntu-live-cd#.UkpRK4Z6Y6Q  
  14. grub-install /dev/sdX  showed error, did not work - showed efi error
  15. Then I installed boot-repair from LIVE CD terminal as told here https://help.ubuntu.com/community/Boot-Repair. Run it with "Recommended repair"
  16. That's it. It fixed everything(I should have done it before itself). Here is a view of the Workspace. 


Thursday, May 19, 2016

Debian and it's love ...!

I have been using a lot of Linux/based distribution during my UG days. It all started with installing solaris on my 512MB RAM machine after an installation demo by CSE seniors(Krithika, Balachandran and others) . Then, I went on to Ubuntu, Fedora, OpenSUSE, Debian for reasons during my project work. Of all, my Favorite is Debian for their less memory or/and power consumption with simple neat looks. 

During my PG days I installed Ubuntu 14.04 and were using for the past 2 years (almost). Now that I wanted to get back to my fav Debian and went into so many issues which I haven't faced during those days. Moreover, hardware/software itself got too complicated with BIOS/UEFI/Legacy mode/Safeboot/Fastboot/Win8/Win10. 

Objective, I wanted to replace Ubuntu with Debian and still use it a dual boot alongside windows. Specs: Debian 8.4, Dell Inspiron 3000 series, I7, 8GB RAM

Initial steps 
0. To live boot F12 key at boot, I have to choose boot from pendrive under Legacy option in boot menu options. In UEFI mode with safeboot OFF already.
1. Downloaded Debian with Mate desktop environment[DE] as I preferred Mate over other DE than cinnamon, current gnome, KDE, etc
2. I installed with manual partitioning. Formatted the existing ubuntu "/" and "/home" and then while writing to boot loader it said Ubuntu detected. OMG. windoz? :-/ 
3. I went ahead and completed. As I booted, I could see only grub prompt. However, when I live booted all my partitions are safe.

Errors and steps taken to resolve
4.
grub>  ls
hd0 (hd0,gpt12) (hd0,gpt11) (hd0,gpt9) (hd0,gpt8) ...

It will list the partitions in Harddisk


5. Find out where "/"  of linux files is installed by pressing "tab"

press tab after typing as below..
grub> (hd0,gpt11)/
/bin /boot /etc /opt /home /root /sys lost+found  ...

you can figure out what for you, for me it is 11 here in this example. It is used below        

6.
grub>  set boot=(hd0,gpt11)
grub>  set prefix=(hd0,gpt11)/boot/grub
grub>  insmod normal  
grub>  normal

This will make the grub OS chooser window to appear. But it showed only Debian. Where is the windoz ? :-/

7.
Do the below in termial after login to debain
# grub-mkdevicemap
# update-grub
# grub-install /dev/sdX

If these 3 steps are complete then you are done!!

8.
find out X as below
​root@warriorwithin:~# lsblk -f
NAME    FSTYPE LABEL      UUID                                 MOUNTPOINT
sda                                                            
├─sda1  vfat   ESP        CAE4-7B30                            
├─sda2  vfat   DIAGS      F640-9997                            
├─sda3                                                         
├─sda4  ntfs   WINRETOOLS 8A1442471442370B                     
├─sda5  ntfs   OS         7C80471B8046DB72                     
├─sda6  ntfs   New Volume 0604B4F304B4E6B9                     
├─sda7  ntfs   New Volume 1EA62DCBA62DA3ED                     
├─sda8  ntfs   New Volume 24786E8A786E5B16                     
├─sda9  ntfs   PBR Image  A2E878FBE878CED3                     
├─sda10 swap              f594b846-2211-4e70-bbcd-f97a6e05e036 [SWAP]
├─sda11 ext4              32ae4ff5-10fd-4992-a70d-21b07dfce9da /
└─sda12 ext4              331172f1-2eea-4589-a5ef-c1ab2f4975e0 /home

X for me is "a"  

9.
root@warriorwithin:~# grub-install /dev/sda
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.

what to do now? :-(

10.
Check if /sys/firmware/efi exists if so then mount as below. And we know that step 8 ESP is in sda1 we will mount that in efi
root@warriorwithin:~# mkdir -p /boot/efi
root@warriorwithin:~# mount /dev/sda1 /boot/efi

11.
root@warriorwithin:~# grub-install /dev/sda
Installing for x86_64-efi platform.
Installation finished. No error reported.
root@warriorwithin:~# 

All Done!!
Cheers




Tuesday, March 22, 2016

Check the LAN machines up or not ?

I was always interested finding out if some machines on my LAN is powered up or not. Say whose ip are between 10.6.15.100 - 10.6.15.150. One can find it manually however it is laborious. I just wrote a quick c++ program. It works in my Ubuntu laptop. Check out the pastebin page.

http://pastebin.com/ketm0C83    <<<--- click="" code.="" for="" here="" p="">

Thanks Yo!

There is a most recent article here -- it is efficient than above. 

Saturday, February 13, 2016

Connect to [faster] internet via Intranet machine

Hi Folks,

Good to see you  you see it again. Let's get to the point straight. This procedure can help you in two ways. 
  • You are on a LAN where your machine don't have a Internet and say you know a machine which has(Of course you need your credentials) .
  • You are on a LAN. Say your internet speed sucks. Say the other machine has a faster speed. 


Section 1: Proxy config 
All the snapshots are from Ubuntu. It can be done for other Linux Distro's or Windows as well.
Note:- Port number in Section 1.4 and Section 2.3 must match





Section 2. Putty config

Install Putty if you don't have it already.





Thanks to Satya Ivvv


Last Post !! Moved to new site

As I am getting old 😋, it seem like I can not remember many of my earlier tech encounters. This is the place I was logging so that I refer ...