I was having trouble with dual monitors and “Make default” button.
Thanks to http://www.thetechrepo.com/main-articles/502-how-to-change-the-primary-monitor-in-ubuntu-or-other-linux-distributions
Short code: xrandr –output HDMI2 –primary
Posts Tagged ‘ubuntu’
Little useful Ubuntu terminal command:
notify-send "Computer Says" "Hi"
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
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/
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