Monday, 9 March 2015

Commands to run to get most latex packages

Install texlive from synaptic package manager
sudo apt-get install texlive-latex-base
sudo apt-get install texlive-extra-utils 
sudo apt-get install texlive-latex-extra

Tuesday, 27 January 2015

Update manager gets stuck on a package download

If the update manager gets stuck at a package download and then you can't use "apt-get install" due to errors like dpkg locked and you try rm /var/lib/../../lock and it still does not work then do the following
check the output of this command: 
ps aux | grep http 
This will result in 2 or 3 lines with the second column of each line being the pid of the process if the process is doing its job. If the result is just 1 line, say the last phrase being grep http or something, the updates are not being downloaded/installed. Its safe to kill the update manager 
To do this: 
run: ps aux | grep update and note the pid of the update-manager being the second column after your user name in the 2/3 line list of output. Let the pid of update-manager be pid 
Kill this process by running: 
kill -9 pid 
If operation is not permitted, try with sudo, but take care that you don't kill any other process. Note the pid of update-manager carefully.
Source - http://ubuntu.aspcode.net/view/635400140124705175239668/how-to-cancel-update-manager-downloading-flashplugin-installer

Monday, 29 December 2014

Disbaling bluetooth on boot up - ubuntu 12.04

Run sudoedit /etc/rc.local and add this before line with exit 0:
rfkill block bluetooth
You should still be able to enable Bluetooth through the top bar applet.

Thursday, 20 November 2014

Back up slides in Latex

 To have back slides in latex and not screw up the slide numbering, do this.
 1. Add these after your \usepackage{} lines, before \begin{document}
  \newcounter{sauvegardeenumi}
  \newcommand{\asuivre}{\setcounter{sauvegardeenumi}{\theenumi}}
  \newcommand{\suite}{\setcounter{enumi}{\thesauvegardeenumi}} 

2. Then, as below.
\begin{frame}

Your last slide...

\end{frame}
% BACK UP SLIDES
\newcounter{finalframe}
\setcounter{finalframe}{\value{framenumber}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{frame}
.
.
.
\end{frame}

\begin{frame}
.
.
.
\end{frame}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setcounter{framenumber}{\value{finalframe}}
\end{document}

Wednesday, 19 November 2014

Setting up website on server at IITB

Paste all your files in the public_html folder.

if you can't do that. run
~$ ls -l
and see if have ownership rights on the folder. If you dont, send a email to admin[at]ee[dot]iitb[dot]ac[dot]in and ask them to give you those permissions.

Once you can copy into the folder, you are almost done.
go to - http://www.ee.iitb.ac.in/student/~loginname/

If your CSS file is not loading, then ssh to your account from a terminal, then run
~$ chmod -R 755 public_html

(the -R is very important)

Should be all working now.

Peace.

Monday, 10 November 2014

Increasing number of workspaces

For Ubuntu 12.04, with gnome session fallback

To increase the number of workspaces,

gsettings set org.gnome.desktop.wm.preferences num-workspaces 8
 

Peace.

Tuesday, 21 October 2014

Latex related links

Writing a pseudo code-
http://tex.stackexchange.com/questions/163768/write-pseudo-code-in-latex

Getting the algorithmx package
http://www.latex-community.org/forum/viewtopic.php?f=54&t=21070