Archive for December, 2009

Ubuntu notify message

No Comments »

Little useful Ubuntu terminal command:

notify-send "Computer Says" "Hi"


Php Under Control on Ubuntu

7 Comments »

Install Java

sudo apt-get install sun-java6-jre sun-java6-plugin sun-java6-fonts

Test Java

java -version

Create SymLink

sudo ln -s /usr/bin/java /bin/java

Install Cruise Control

cd /opt

Download Cruise Control binary files at

http://sourceforge.net/projects/cruisecontrol/files/CruiseControl/2.8.2/

or directly

sudo wget http://mesh.dl.sourceforge.net/project/cruisecontrol/CruiseControl/2.8.2/cruisecontrol-bin-2.8.2.zip

Unzip Cruise Control

sudo unzip cruisecontrol-bin-2.8.2.zip -d /opt

Create SymLink

sudo ln -s /opt/cruisecontrol-bin-2.8.2 /opt/cruisecontrol

Start CruiseControl

/opt/cruisecontrol/cruisecontrol.sh

The output should something like this be like this …

[cc]Dec-15 19:58:50 Project       - Project connectfour:  next build in 5 minutes
[cc]Dec-15 19:58:50 Project       - Project connectfour:  waiting for next time to build

Get PhpUnderControl

svn co svn://svn.phpunit.de/phpunit/phpUnderControl/trunk /opt/phpUnderControl

Patch Cruise Control

/opt/phpUnderControl/bin/phpuc.php install /opt/cruisecontrol

Read next to start cruising your project
http://phpundercontrol.org/documentation/getting-started.html


No video on Ubuntu with dual monitors

4 Comments »

I had trouble with my Dual monitors and video. No matter what player i usede it just showed black screen. So the solution is:
Alt +F2 enter:

gstreamer-properties

Then Video tab > Output and choose

X Windows System (No Xv)

Restart and give a try to video player.


Crontab on linux

No Comments »

Edit crontab

crontab -e

Run web address each minute and log to file

00-59 * * * * wget -q -O ~/www/logs/cron.log http://www.domain.com

Google chrome on Ubuntu

No Comments »

Must say I am very impressed on how fast Google Chrome on Ubuntu is. It takes no time to load. It was pain to browse gmail on firefox with firebug enabled and now Gmail is just flying. Very good job. Thank you google team ;)


Creating virtual hosts on Ubuntu

2 Comments »

All virtual host for apache2 are saved in directory

/etc/apache2/sites-enabled/

and apache will automatically load all files in it

Create virtual host at your host file for ubuntu

sudo gedit /etc/hosts

Add new line, for example

127.0.0.1	mydomain.local

Create virtual host at your host file for apache

sudo gedit /etc/apache2/sites-enabled/001-mydomain

Add directives


	ServerAdmin webmaster@localhost
	ServerName mydomain.local
	DocumentRoot /home/user/www/public/

Restart apache

sudo /etc/init.d/apache2 restart

Check if your new domain is working at http://mydomain.local/


LAMP on Ubuntu

No Comments »

Install Apache Mysql PHP

sudo tasksel

Select LAMP server and press OK
Wizard will prompt for MySql password

Install PhpMyAdmin if needed

sudo apt-get install phpmyadmin

Restart Apache

sudo /etc/init.d/apache2 restart

That should be it. Check if everything is working by visiting http://127.0.0.1/phpmyadmin

Paths:
Document Root: /var/www
PhpMyAdmin config: /etc/phpmyadmin/config.inc.php
Mysql config: /etc/mysql/my.cnf
Apache config: /etc/apache2/sites-enabled/000-default
PHP config: /etc/php5/apache2/php.ini