sudo yum groupinstall "X Window System" Desktop Fonts
- edit /etc/inittab:
id:5:initdefault
init 5
to start desktop mode
Search This Blog
CentOS Linux: install desktop
After CentOS minimal installation, you may want to install desktop environment:
shell script: nested for loops in one line
for a in 1 2 3; do for b in 4 5 6; do echo "$a $b"; done; done
1 4 1 5 1 6 2 4 2 5 2 6 3 4 3 5 3 6
JAVA_HOME on Mac OS X
To check where JAVA_HOME is:
/usr/libexec/java_homeor
/usr/libexec/java_home -v 1.6
To export it as env variable
export JAVA_HOME=$(/usr/libexec/java_home)or
export JAVA_HOME=$(/usr/libexec/java_home -v 1.6)
postgreSQL: undefined symbol: PQconnectdbParams
Managed to compile and install postgresql under my own account, when running
the solution is:
createdb testit gave this error:
undefined symbol: PQconnectdbParams
the solution is:
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/$PGSQL_HOME/libwhere $PGSQL_HOME is the directory that postgresql is installed into.
bash: for loop in one line
for ((i=0;i>5;i++)); do echo $i; done
for i in 1 2 3 4 5; do echo $i; done
GIT: list tags in chronological order
git log --date-order --graph --simplify-by-decoration --pretty=format:'%ai %h %d'
git-log
Subscribe to:
Posts (Atom)