2006-10-17

Linux

/usr/bin/ld: cannot find -lGL
collect2: ld returned 1 exit status

Solve: delete -lGl in Makefile
------------------------------------------------------------------------------------------
GLXBadContext

install xorg-driver-fglrx-dev
/etc/X11/xorg.conf
Section "ServerFlags"
Option "AIGLX" "off"
EndSection

Section "Extensions"
Option "Composite" "Disable"
EndSection

------------------------------------------------------------------------------------------
/etc/apt/sources.list ------------------------------------------------------------------
deb http://us.archive.ubuntu.com/ubuntu/ dapper main restricted universe multiverse
deb http://packages.freecontrib.org/ubuntu/plf/ dapper free non-free
# The above lines were generated automatically by EasyUbuntu 3.0 Beta Release
# The rest of your sources.list follows

# deb http://us.archive.ubuntu.com/ubuntu/ dapper main restricted
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://us.archive.ubuntu.com/ubuntu/ dapper-updates main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-updates main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://us.archive.ubuntu.com/ubuntu/ dapper universe
# deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe
## Uncomment the following two lines to add software from the 'backports'
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb-src http://us.archive.ubuntu.com/ubuntu/ dapper-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu dapper-security main restricted
deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted
deb http://security.ubuntu.com/ubuntu dapper-security universe
deb-src http://security.ubuntu.com/ubuntu dapper-security universe

#just for opensync -- deleted after install
deb http://www.in.fh-merseburg.de/~jahn/opensync/ dapper main
#just for moto4lin
#deb http://ubuntu.geole.info/ dapper universe multiverse

~/.bash_profile ------------------------------------------------------------------
# .bash_profile
CVS_RSH=ssh;export CVS_RSH
# Get the aliases and functions
alias win='rdesktop -g 1280x1024 192.168.0.4'
alias co='cvs -d :ext:scylla.gtg:/usr/local/cvsroot checkout GTG'
alias up='cvs -d :ext:scylla.gtg:/usr/local/cvsroot update GTG'

#alias mm='mencoder "mf://file*.jpg" -mf fps=30 -o output.avi -ovc copy -lavcopts -force-avi-aspect 1.0 -noodml vcodec=mpeg4:vhq:vbitrate=9200:aspect=1.78:format=422P'

#alias mm='mencoder "mf://file*.jpg" -mf fps=30 -o output.avi -ovc lavc divtc:pass=1 -lavcopts vcodec=mpeg4:vhq:vbitrate=9200'

#alias mm='mencoder "mf://*.jpg" -mf type=jpg:fps=30:w=500:h=500 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=9200'
alias mm='mencoder mf://file*.jpg -mf w=500:h=500:fps=30:type=jpg -ovc copy -oac copy -o output.avi'
#alias mmtga='mogrify -format jpeg *tga;mencoder mf://*.jpeg -mf w=500:h=500:fps=30:type=jpg -ovc copy -oac copy -o output.avi'
alias mmtga='mogrify -format jpg *tga;mencoder mf://file*.jpg -mf w=500:h=500:fps=30:type=jpg -ovc copy -oac copy -o output.avi;rm *tga'
alias mmj='mencoder mf://file*.jpeg -mf w=500:h=500:fps=30:type=jpg -ovc copy -oac copy -o output.avi'
#alias mm='mencoder "mf://file*.jpg" -mf type=jpeg:fps=30:w=500:h=500 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=9200'
#alias mmt='mencoder "mf://tfile*.jpg" -mf fps=30 -o tcontour.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=9200'
#alias mmp='mencoder "mf://pfile*.jpg" -mf fps=30 -o pcontour.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=9200'
#alias mmv='mencoder "mf://vfile*.jpg" -mf fps=30 -o vcontour.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=9200'
alias mmt='mencoder mf://tfile*.jpg -mf w=500:h=500:fps=30:type=jpg -ovc copy -oac copy -o tcontour.avi'
#alias mmt='mencoder "mf://tfile*.jpg" -mf type=jpeg:fps=30:w=500:h=500 -o tcontour.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=9200'
alias mmp='mencoder "mf://pfile*.jpg" -mf type=jpeg:fps=30:w=500:h=500 -o pcontour.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=9200'
alias mmv='mencoder "mf://vfile*.jpg" -mf type=jpeg:fps=30:w=500:h=500 -o vcontour.avi -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=9200'
alias mmps='mencoder "mf://*.ps" -mf fps=30 -o vcontour.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=9200'
alias mmtif='mencoder "mf://*.tif" -mf fps=30 -o vcontour.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=9200'
alias acroread='/usr/local/Adobe/Acrobat7.0/bin/acroread'
alias ls='ls --color=tty'
alias ll='ls -l --color=tty'
alias l.='ls -d .* --color=tty'
alias ll.='ls -dl .* --color=tty'
alias lt='ls -t --color=tty'
alias llt='ls -lt --color=tty'
#alias rm='rm -i'
alias j='jobs'
alias e='exit'
alias acroread='/usr/bin/acroread'


#alias mm='mencoder \*.jpg -mf on:fps=15 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=9600'
#alias mmt='mencoder \*.tif -mf on:fps=15 -o output.avi -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=9600'


if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

#if [ -f ~/.cshrc ]; then
# . ~/.cshrc
#fi

# User specific environment and startup programs

PATH=$PATH:$HOME/bin
BASH_ENV=$HOME/.bashrc
USERNAME=""

#change the prompt
#export USERNAME BASH_ENV PATH
#export PATH
#export PS1="\e[32;40m\w> "
#export PS1="\e[32;40m\w> \e[0m"
#export PS1="\[\e[32;1m\]\w> \[\e[0m\]"
#export PS1="\[\e[36;1m\]\u@\[\e[32;1m\]\H> \[\e[0m\]"
#export PS1="\e[32;40m\w> "
#export PS1="\e[0m"

#change the terminal title and prompt
#export PS1="\[\033]0;\u [at] \H: \w\007\]\u [at] \h$promptchar"
export PS1="\[\033]0;\u@\H:\w\007\]\u@\H:\w$ "

#use my own color for ls
eval `dircolors $HOME/.coloursrc`

#below is chaged by Deliang
run=/home/aggregate/deliang/Fluidised_Bed/Cohesive/Code/
shell=/home/aggregate/deliang/shell