Friday, December 16, 2016

Print a pdf in book form

pdfjam --landscape --no-twoside --suffix book --a3paper --nup 2x1 --no-tidy --frame 'true' --signature '32' -- name.pdf -

pdftk A=name-book.pdf cat Aodd output Aodd.pdf

pdftk A=name-book.pdf cat evensouth output Aeven.pdf

 pdftk A=Aodd.pdf B=Aeven.pdf shuffle A B output finalName.pdf

Thursday, September 15, 2016

Sunday, July 3, 2016

Thursday, June 9, 2016

Nvidia stops working on kernel upgrade (login loop problem) : Ubuntu

It may happen in the machines having latest Nvidia cards to which Ubuntu default repository Nvidia drivers are not compatible, and you might have installed driver from binary file available on Nvidia official site.

When you logout or restart after upgrade system, you get trapped in to login loop. Login window appears but you fail to get in.


Ctrl+ Alt + F1

Login to the terminal on screen

$ sudo /etc/init.d/lightdm  stop

go to the folder where you have saved your binary file

$ sudo sh ./NVIDIAfileName.bin --dpkg

Follow the instructions to reinstall it. Restart on completion. You may find that compiz is not working properly. So

$ dconf reset -f /org/compiz/
$  unity --reset-icons


Thursday, February 25, 2016

Saturday, February 20, 2016

My First make file which works

# Define required macros here
SHELL = /bin/sh

CFLAG = -Wall -g
CC = gfortran
LIBS = -lm

# Write program dependency and main program

SRCS = SubProg1.f90 SubProg2.f90 SubProg3.f90 SubProg4.f90 SubProg5.f90 SubProg6.f90 MainProg.f90

OBJS = $(SRCS:.c=.mod)

MAIN= MainProg

.PHONY: depend clean

@echo  Simple compiler named mycc has been compiled

$(MAIN): $(OBJS)

$(CC) $(CFLAGS) $(INCLUDES) -c $<  -o $@

$(RM) *.mod *~ $(MAIN)

depend: $(SRCS)
makedepend $(INCLUDES) $^