Install LaTeX in Ubuntu

LaTeX is a markup language which produces documents, separating content and style. While using LaTeX, you have to focus on content without worrying about the style. For using it, just learn few commands and you are good to go.

There are number of LaTeX distributions and one of them is TeX Live.

To install Tex Live, type this command on your terminal:

sudo apt-get install texlive-full

After this is complete, we need to install LaTeX editor. There are many available, but I am using Texmaker. To install it, type:

sudo apt-get install texmaker

After you are done with installation part, open it from terminal by typing following:


Okay! Now here is small tutorial on how to create a document in LaTeX. Click on File -> New and type following in space provided:

  1. \documentclass{article}
  2. \begin{document}
  3. Hello world!
  4. \end{document}

Save it as a ‘tex’ file by clicking File -> Save. Compile the document clicking the arrow Quick Build.

Now enjoy creating your documents without being worried about its style 🙂



Recovery of Corrupt or absent IOS on cisco switch

First, enter rommon mode by unplugging and plugging the power cable back and press the mode button for few seconds. Also, keep in mind to set the BUAD rate as high as possible to speed up the downloading process.


Once you are in rommon mode, type the following commands,

Switch: flash_init

Switch: reset


In enable mode, type command to delete old or corrupt flash (this command is going to take a few moments).

Switch# erase flash:

Switch# reload


You can verify it with  # dir flash:

After you finish booting, you will enter rommon mode as there is no ios. Type,

switch: copy xmodem: flash:c2960-lanbase-mz.122-35.SE5.bin

go to Transfer Tab “Send File…” browse the file on desktop and the protocol is “Xmodem”


This is going to take while. Once you finish this, type:

unset BAUD


Establish a new connection with default setting and reset to restart the switch or simply type switch: boot to load ios. With this, we are done and you can use your switch. 🙂



Add client to Active Directory Domain on Window server 2012

Your domain controller is of no use if you haven’t added machines to it. So here I am going to show simple steps to add client (window server 2008 r2) to window server 2012 domain.

From the AD users and computers of server 2012, right click computers, then go to New|Computer. In the prompt asking for name, give name of your client machine.

jcThen switch to client machine, and make sure in network settings, DNS is pointing to the correct DNS server. In my case, DNS address is same as IP address of server 2012. To make sure, ping your domain from client machine.

Now, in the system settings of window server 2008, click ‘Provide computer name and domain’ and then ‘change’ (Pic. 2).

In a prompt, select domain, and correctly put the name of your domain in space provided and press OK (Pic. 3).

Congratulations! You just connected your client to your domain.