Τρίτη 23 Νοεμβρίου 2010

CLAPACK Installation in Netbeans,LINUX

Just to save a couple of hours of sleep for some people like me.

1)Download clapack.tgz from http://www.netlib.org/clapack/

2)Extract and call "make" inside the main directory

3)Call the following in terminal:

cp lapack_LINUX.a liblapack_LINUX.a

cp blas_LINUX.a libblas_LINUX.a

ranlib libblas_LINUX.a

ranlib liblapack_LINUX.a

cd F2CLIBS/

cp libf2c.a liblibf2c.a

ranlib liblibf2c.a

cp liblibf2c.a ../

4)Create new C Project in Netbeans

5)Change the makefile to contain only this:

CC = gcc

ROOTPATH = /path/to/clapack

main:main.o

$(CC) -o ./dist/Debug/GNU-Linux-x86/NAME_OF_PROJECT/main.c -I$(ROOTPATH)/INCLUDE -L$(ROOTPATH) -llapack_LINUX -lblas_LINUX -llibf2c -lm

Very helpful topic:

http://icl.cs.utk.edu/lapack-forum/viewtopic.php?f=2&t=2020

Τετάρτη 1 Σεπτεμβρίου 2010

Lyx : LaTeX Frontend

GUI for writing in LaTeX

1) sudo apt-get install lyx

2) If you want to see your math symbols instead of red text, also install the latex-xft-fonts package.

3) latex2html allows lyx to produce html output.

4) foiltex is useful for making presentations.

5) After installing such packages you should reconfigure ( goto Edit -> Reconfigure) and then restart LyX.

For Greek support:

6) Install packages texlive-lang-greek,texlive-fonts-extra,texlive-latex-extra

Σάββατο 31 Ιουλίου 2010

GRUB2 tips

In case something is f****d up with multiple partitions, multiple grubs etc.

1)Live Ubuntu CD startup

2)sudo fdisk -l

to check the right sda (in my case sda2)

3)sudo mount /dev/sda2 /mnt

sudo mount /dev/sda2 /mnt/boot

sudo mount --bind /dev /mnt/dev

sudo chroot /mnt

grub-install /dev/sda

4) Cntrl+D

5)sudo umount /mnt/dev

sudo umount /mnt

Blog Client for (K)Ubuntu

Great program, with which the first post will be published!

It is called Biblo Blogger. Brief instructions. Yes terminal.

sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com \ 0xfe0272d55c41c17774052e575646f8b10331274d

echo deb http://ppa.launchpad.net/neversfelde/ppa/ubuntu `lsb_release --short --codename` main | sudo tee -a /etc/apt/sources.list

sudo apt-get update ; sudo apt-get install bilbo

Blog--->Add Blog--->URL+username+password--->Auto Configure

For adding tags, Post Categories.

Credits to http://bigbrovar.wordpress.com/2009/09/06/the-ultimate-blogging-client-for-linux/