" Work should be challenging and the challenge should be fun... "

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


Thanks Yo! 

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


Friday, October 9, 2015

Configure IITM's CSE Department mail on Andriod

Going to follow K.I.S.S policy. DIY seeing snapshots below. That's it. Thanks! 
Caution: Don't change any default ports.. Just edit the server and security type alone as below. Email-ID = DCF_USERNAME@cse.iitm.ac.in
Step 1- Open Gmail App> Settings>Add account>   IMAP/POP3> Email-ID/Password > IMAP  (I have choosen IMAP. But it should naturally work  for both)
Step 2(In settings)- Email ID > Password>csemail.iitm.ac.in > SSL/TSL (Accept all cert).
Step 3(Out settings)- Email ID> Password>csemail.iitm.ac.in > STARTTLS (Accept all cert)

P.S.
K.I.S.S - (Keep It Simple Stupid) 
DIY - (Do It Yourself) 

Wednesday, July 15, 2015

New avatar - Tech Blog

This was my first blog in Blogspot. However for many months I have not posted anything here. I just had this weird thought, why don't I post technical stuff that I get to know or learn every day. So that it might help someone or me some day (or even never! i don't mind! ;-) ).

Cheers, See you. :-)

Saturday, July 26, 2014

Journey to IIT Madras

I wanted to do PG right after my B.Tech. I was forced to go for work due to my parents compulsions. I finally learned in a hard way about my purpose of my life(watch out for next post). It all started after some days after I begin to work as Database Administrator (that's how it is being called) in Bangalore. Desire to learn more cropped in after seeing/doing my helsinki's friends M.S. assignments. Although I can't afford to do go abroad for PG,  I decided that I will do M.Tech from a reputed college than my UG college. So I decided to write GATE. I was able go for some coaching classes there. All my weekdays absorbed by office works and all my weekend are full of classes at thegateacademy. It went like crunched thingy. I didn't score enough. I got only M.S calls from NITs and I was rejected there pretty badly. I was disappointed but still it was NOT my 100% effort.  I came to chennai. I took a less profile job thinking that I will do some good time for my preparation but it didn't go well. This time I didn't do well as I didn't go for coaching. There were lot of family problems as well my brother was sick, my father was transferred to some other city, he underwent a surgery,etc.
Finally, a do or die attempt I boldly resigned my 35K INR / month job(For any IITians reading this, I know you people think this isn't a big deal..uh But it was from my position). Took admission at Gateforum. I just lived with only books for a several months. I either eat or read or sleep as one of my friend would say. Those were my only activities during those days. Thanks to my room mates udhaya, ram, pandi, kumar, sundar, mani, etc. I finally got a decent rank(AIR) to get into IIT Madras. Surprisingly I cleared interviews and got admission offers from IIT Bombay RA, IIT KGP , IIT H as well. I didn't travel for IIT K interview call fearing of their rigorous interviews style. I was rejected in IIT D. It was nice experience travelling all the places. I finally decided and joined IIT Madras on Jul 21 2014.  Although it was decided long back by me to either join IITM or NITT or none  :P ;-)

count++ It's not just counts; It Records too.