Friday, May 28, 2010

How to ssh to Mac

Ever since I got my Mac Book Pro, I have been trying to ssh into it. Unlike Fedora, Ubuntu and RHEL, Macs do not have this ssh switched on by default. Here is the step-by-step procedure for doing so (note that this is for the machine to which you need to connect, not the one from which you would connect) :

  1. Go to "System Preferences"
  2. Select "Sharing"
  3. Unlock the lock symbol at the bottom-left corner
  4. Check "Remote Login"
  5. Now close this window and try out ssh-ing to your machine. In case you do not know the IP of your machine, type "ifconfig" in the terminal to get it.
One could have also modified the ssh configuration file located at /etc/sshd_config for the same. Initially I had also done the same. However the method that I described above is completely GUI based, so even non-geeks can try it out. Besides this interface also allows one to tweak a lot of other things as well.

Disclaimer: I am a Mac newbie, its only since last one week that I have been using it. The above procedure is what I figured out after some attempts in my Mac Book Pro running OS X. I do not really know if it would be the same for other Macs as well.
 

Friday, May 07, 2010

IEEE formatting in LaTeX

I had to write one of my recent reports in IEEE format. Although IEEE does provide all the necessary files and guideline, I had to spend quite sometime to get the things working with LaTeX. So here is a step by step procedure on how to use the IEEE template in LaTeX in Ubuntu and Fedora.
  1. Download the template from the IEEE Manuscript Template page. Presently the file-name for Unix is "IEEEtran2.tar.gz".
  2. Extract this file in a folder IEEEtran.
  3. Within that create a subdirectory "bibtex"
  4. Download the bibtex file "IEEEtranBST1.tar.gz" from the same IEEE Manuscript Template site to this directory and extract.
  5. For Ubuntu users:
    • Move IEEEtran directory to /usr/share/texmf-texlive/tex/latex/
  6. For Fedora users:
    • Move IEEEtran directory to /usr/share/texmf/tex/latex
  7. Run "texhash", (this would require root privileges) or use sudo if its available.
That is it. Now you are ready to directly use this template file for your LaTeX reports. A couple of more things for LyX users:
  • After following these steps, you have to restart LyX.
  • Go to Lyx > Tools > Reconfigure
  • Restart LyX
  • To use this template just select IEEEtran from the Document Settings.
If you have been benefited by this short tutorial, please drop by a comment.