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

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

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 ? :-/

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

find out X as below
​root@warriorwithin:~# lsblk -f
NAME    FSTYPE LABEL      UUID                                 MOUNTPOINT
├─sda1  vfat   ESP        CAE4-7B30                            
├─sda2  vfat   DIAGS      F640-9997                            
├─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"  

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

what to do now? :-(

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

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

All Done!!

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


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)

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 ;-)

Friday, July 4, 2014

Student Again - My Master's Program

And finally I got offered from IIT Madras in the 4th round for M.Tech 2014-16. Yay!! I am happy. Student again ;-)

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