All you have to do to install the IEEEtrans class is type:
sudo apt-get install texlive-publishers texlive-publishers-doc
But the best thing to do is:
- Download the IEEEtran.zip archive from here.
- Unzip it into some folder.
- Then create a folder latex in /usr/share/texmf-texlive
- Now, create a folder IEEE in /usr/share/texmf-texlive/latex
- Copy the content of the archive IEEEtran.zip into /usr/share/texmf-texlive/latex/IEEE
- run sudo texhash to let latex know that there are new files installed.
This way, you are installing all the files in IEEEtran and do not have to worry in the future. 😀
For more info check the links in Useful Links for Latex.
You know how sometimes you spend hours trying to figure out what was the command that you used ‘that time’ when you were trying to do ‘that thing’. Well, I am tired of doing that, so, I decided I will keep a separate blog post will all the shell commands (whether simple ot complex) that I find useful.
sudo apt-get install <package name>
this is the basic command used in Ubuntu for installing new packages.
2. So, you have some applications installed but you don’t know where it is? No problem just type:
which <application name>
and it will return the path to the appication. For example, type which cat, or which ls.
So today, I was setting up Latex in Ubuntu. And actually, it is installed by default in Ubuntu 9.10, but if you don't have it in your version of Ubuntu, all you have to do is type:
sudo apt-get install texlive
in the shell. sudo apt-get install <package name> is the command you use for installing any package in Ubuntu.
Once you do this, you can compile a simple LaTeX file by typing:
where test.tex is the file you want to compile.
This will generate two important files:
The test.dvi is the output of file (dvi stands for device indipendent), and test.log is the log file
(it contains information about the compilation process and any warning and error messages). If something goes wrong be sure to check test.log.
To display the content of the file simply type:
in the shell.
Now, back to test.dvi. There are ways for viewing dvi files in Ubuntu, but, we won't go there. Usually when you use Latex, you want to get ps (post script) file
or pdf (portable document format) file. To get a ps file, you need to type in:
The first command converts the dvi file into a ps file. The second command displays the content of the ps file. For the second command to work, you need to have
gv (ghostviewer) installed. If this is not the case, just type in sudo pat-get install gv. After you have successfully completed the previous steps, all you have to do
to get a pdf version of your file is to type:
This last command will convert the ps file into a pdf file. To view the pdf file type:
and the file will open in a Document Viewer.
Well, that's all folks :-D, have fun.
For more info on Latex check my blog post with Useful Links for Latex.
Once my odyssey about sharing the Internet connection between two PCs ended, I expected that I can enjoy my Internet uninterruptedly. And again one HOWEVER. This time I wanted to use SVN to checkout one project I am working on (located on a server in my lab). I typed:
svn co https://server-in-the-lab.edu/project
in the terminal and it responded that it cannot resolve the domain server-in-the-lab.edu. I tried accessing the server from the browser and it was working fine. So, the problem was with SVN. As usual, I asked my friend Google Search if he knows anything about this. Don’t get me wrong, he is a nice guy, but sometimes he talks a lot before he gets to the point. But let’s make a long story short. I found the solution. In my home folder in Ubuntu there is a folder .subversion. You can see this folder by typing:
in your home folder. In that folder, there is a file named servers. In this file, there are quite a few lines that are commented. If you find the section [global] you will see that right underneath it there are the following lines:
#http-proxy-exceptions = …
#http-proxy-host = …
#http-proxy-port = …
I uncommented the last two lines. On the first line, I put the IP adress of my proxy server (10.42.43.10), while, on the second line, I put the port number of my proxy server (8080). I tried again and it worked. Now, I’ll get back to my code.
Today, I needed to connect two PCs to share an Internet connection, namely, my netbook (Windows XP), which has a wireless Internet connection, and my PC (Ubuntu 9.10), which does not have a wireless adapter. After some conversation with my friend Google Search, I found out that I can do this with a crossover cable and the Internet Connection Sharing in Windows XP. This was supposed to be very simple 🙂 However, because there is always however when your messing with computers, it turned out that Internet Connection Sharing requires that the IP address 192.168.0.1 is not used by anyone. And, of course, this was not the case, my router was set up to use this address. Now, you think well that is easy just change the IP address of the router. I agree, it is easy, if you know the password for the router, but you see, my router actually belongs to my landlord and I don’t know the password and, my landlord is on a holiday. I know, the whole story sounds like a Series of Unfortunate Events. But in the end it has a happy ending.
I wasn’t ready to give up, so, I continued searching online to see if there is a way to change the IP address that the Internet Connection Sharing requires, but the Microsoft web site assured me that this is not possible. Actually, they call it a “know issue”. I know what you think, only Microsoft can do such a thing.
So, I was sitting in front of my computer thinking that maybe I should install Ubuntu on my netbook, when my roommate finally woke up (4:00 pm). He got interested in the problem, tried brainstorming, but I already tried everything that he suggested, the he came up with the idea that I should try installing a proxy server on my netbook, and set up the browser on my PC to use the proxy on my netbook. There was nothing left to lose, we installed a trial version of WebScout (a Windows proxy server) configured the proxy server and the browser on my PC and in less then 5 minutes I had Internet on my PC. What an adventure! What a relief!
Reliability, availability, and performance of web systems.