sudo pear upgrade PEAR
pear config-set auto_discover 1
pear install pear.phpunit.de/PHPUnit
เตรียมความพร้อมก่อน
1. VirtualBox http://www.virtualbox.org/ ไปเอามาติดตั้งก่อนเลย
2. OSx86 อันนี้หาได้จาก Bittorrent ต่างประเทศครับ ลอง search ดูเอง
เมื่อได้ของครบแล้วก็ทำการติดตั้ง VirtualBox ให้เรียบร้อย จากนั้นเริ่มทำการสร้าง Virtual Machine และทำการติดตั้ง OSx86 กันต่อเลย
1. เมื่อเปิด VirtualBox ขึ้นมาแล้วให้คลิกที่ New เพื่อทำการสร้าง Virtual Machine
ใน Terminal
sudo apt-get install stardict
เสร็จแล้วไปโหลด 2 ไฟล์จากลิ้งข้างล่าง
http://www.iamgolfz.com/download/stardict/stardict-lexitron-et-2.4.2.tar.bz2
http://www.iamgolfz.com/download/stardict/stardict-lexitron-te-2.4.2.tar.bz2
แล้วแตกไฟล์เก็บไว้ที่ /usr/share/stardict/dic
ใช้คำสั่ง
sudo mv stardict-lexitron-* /usr/share/stardict/dic/ && cd /usr/share/stardict/dic/
แล้วก็
sudo tar xvfz stardict-lexitron-et-2.4.2.tar.bz2
sudo tar xvfz stardict-lexitron-te-2.4.2.tar.bz2
พิมพ์ใน Terminal
sudo gedit /etc/apache2/sites-enabled/000-default
เพิ่ม
Alias /virtualname/ "/home/me/html/realdirectory/" <Directory "/home/me/html/realdirectory/"> Options Indexes FollowSymLinks MultiViews AllowOverride all Order allow,deny Allow from all </Directory>
Save แล้วปิด แล้วรีสตาร์ท Apache
sudo /etc/init.d/apache2 restart
To install subversion, open a terminal and run the following command:
sudo apt-get install subversion libapache2-svn
We’re going to create the subversion repository in /svn, although you should choose a location that has a good amount of space.
sudo svnadmin create /svn
Next we’ll need to edit the configuration file for the subversion webdav module. You can use a different editor if you’d like.
sudo gedit /etc/apache2/mods-enabled/dav_svn.conf
The Location element in the configuration file dictates the root directory where subversion will be acessible from, for instance: http://www.server.com/svn
<Location /svn>
The DAV line needs to be uncommented to enable the dav module
# Uncomment this to enable the repository, DAV svn
The SVNPath line should be set to the same place your created the repository with the svnadmin command.
# Set this to the path to your repository SVNPath /svn
The next section will let you turn on authentication. This is just basic authentication, so don’t consider it extremely secure. The password file will be located where the AuthUserFile setting sets it to… probably best to leave it at the default.
# Uncomment the following 3 lines to enable Basic Authentication AuthType Basic AuthName “Subversion Repository” AuthUserFile /etc/apache2/dav_svn.passwd
To create a user on the repository use, the following command:
sudo htpasswd2 -cm /etc/apache2/dav_svn.passwd <username>
Note that you should only use the -c option the FIRST time that you create a user. After that you will only want to use the -m option, which specifies MD5 encryption of the password, but doesn’t recreate the file.
Example:
sudo htpasswd2 -cm /etc/apache2/dav_svn.passwd geek New password: Re-type new password: Adding password for user geek
Restart apache by running the following command:
sudo /etc/init.d/apache2 restart
Now if you go in your browser to http://www.server.com/svn, you should see that the repository is enabled for anonymous read access, but commit access will require a username.
If you want to force all users to authenticate even for read access, add the following line right below the AuthUserFile line from above. Restart apache after changing this line.
Require valid-user
Now if you refresh your browser, you’ll be prompted for your credentials:
You now have a working subversion server!
Are you looking at this page because you cannot access the mysql server installed on your pc/server when you were trying to see if it works well? Or do you receive error messages like the following? :
ERROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
or
ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
To resolve this problem ,a fast and always working way is the “Password Resetting” .
This tutorial was has been tested on Ubuntu 10.04, 10.10, 11.04, 11.10, 12.04 LTS Precise Pangolin. Also tested in LinuxMint13 and works fine.
Open terminal and Type the command :install it first with
sudo apt-get install tasksel
Now to install LAMP, type the taskel command in terminal :
sudo tasksel
And select LAMP Server:
During the installation you will be asked to insert the mysql root password
Now check if php is working :
$sudo vi /var/www/info.php
and add
<?php phpinfo(); ?>
save and exit
restart apache2 ,
#sudo /etc/init.d/apache2 restart
Now open browser and type :
http://ip/info.php or http://localhost/info.php
Php is installed.
To full manage your lamp Server database, install phpmyadmin
sudo apt-get install phpmyadmin
To login to phpmyadmin, open browser and type :
http://ip/phpmyadmin or http://localhost/phpmyadmin
– ที่มา http://www.unixmen.com/install-lamp-with-1-command-in-ubuntu-1010-maverick-meerkat/
Install from PPA:
sudo add-apt-repository ppa:wfg/0ad sudo apt-get update sudo apt-get install 0ad
(If you get errors about unmet dependencies, check that you have the Universe repository enabled in /etc/apt/sources.list.)
Run the game from the command-line as
0ad
or from the application menu item “Games” / “0 A.D.”
ดาวน์โหลด Netbean ที่ http://netbeans.org/
หลังจากนั้น
For Solaris and Linux platforms, the installer file has the .sh extension. For these platforms, you need to make the installer files executable by using the following command: chmod +x <installer-file-name>
จากนั้นก็รันปกติ ไม่ต้องรันบน Terminal
พอติดตั้งเสร็จ เข้าไปที่ directory ที่ลง Netbean ไว้ แล้วเข้าไปที่ bin แล้วรัน netbeans
เป็นอันเสร็จพิธี