หน้าเว็บ

About me

Hi, I'm cheer. My interest relates to artificial intelligence, machine learning, computer vision, network communication, security algorithm.

วันพุธที่ 7 กรกฎาคม พ.ศ. 2553

XAMPP in Ubuntu

XAMPP for Linux,once called LAMPP, is what developer need. By facility it provides, linux developer does not have to get complicated tasks by doing installation servers such as web server, database server, etc in order to simulate their own laptop or personal computer as server. Frankly, we mostly agreed that XAMPP on Windows has been widely succeeded. All right, Im goin to show you step-by-step installation guide.

1. Download file

wget http://kent.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.7.3a.tar.gz

2. Unpack it

tar xvfz xampp-linux-1.7.3a.tar.gz -C /opt

3. there you go! that's all you need to do to perfectly complete installation is start XAMPP

/opt/lampp/lampp start|stop|restart

apt-get Vs aptitude

apt-get and aptitude are achieving the same things; that is, fetching package from various sources and managing those files like install, uninstall, reinstall, or even check file. Indeed, we, beginner, could be easily puzzled which to use; however, we should not waste our time on seeking the answer of why do we choose one instead of another one? All of that is the one obvious difference is

apt-get : manually manage package. You have to specify explicitly what package you are concerning.

aptitude : more intelligent one to apt-get, it handles dependencies automatically.

วันอังคารที่ 6 กรกฎาคม พ.ศ. 2553

SVN set up & simple usage

1. apt-get install subversion
2. apt-get install libapache2-svn
3. nano /etc/apache2/mods-enabled/dav_svn.conf


DAV svn
SVNParentPath /home/svn
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/subversion/dav_svn.passwd
#AuthzSVNAccessFile /etc/subversion/dav_svn.authz
Require valid-user


4. htpasswd -cm /etc/subversion/dav_svn.passwd zmc1

password : ******
re-type password : ******

5. nano /etc/subversion/dav_svn.authz

[groups]
developer = tee, pond


[test:/]
@developer = rw
testuser = r

[test:/doc]
@developer = rw
testuser = rw
* = r

6. mkdir /home/svn/
7. svnadmin create /home/svn/test
8. chown -R www-data: /home/svn/test
9. /etc/init.d/apache2 restart


SVN Server Setup

1. create directory in SVN server

svn mkdir http://localhost/svn/test/trunk
svn mkdir http://localhost/svn/test/branches
svn mkdir http://localhost/svn/test/tags

2. import project to SVN server directory (trunk)

svn import / http://localhost/svn/test/trunk

3. retrieve project from SVN server directory (trunk)

svn checkout http://localhost/svn/test/trunk //trunk

4. change owner to apache(www-data) in order to let apache can update files automatically

chown -R www-data: //trunk

5. activate auto-update for working directory

cp /home/svn/test/hooks/post-commit.tmpl /home/svn/test/hooks/post-commit
chmod +x /home/svn/test/hooks/post-commit
nano /home/svn/test/hooks/post-commit

add the following command at the bottom of this file

/usr/bin/svn update //trunk

6. hidden .svn file in working directory to web user

nano /etc/apache2/apache2.conf

/.svn/">
Order deny,allow
Deny from all




SVN Client Setup

1 Check out

$ svn checkout http://[ตรงนี้ใส่ ip หรือ host name ของ server]/svn/test/trunk/ //trunk


Credit :
1. http://www.ubuntuclub.com/node/1513
2. http://alephzarro.com/blog/2007/01/07/installation-of-subversion-on-ubuntu-with-apache-ssl-and-basicauth/
2.

Add new source to APT in Ubuntu

  1. "gksu gedit /etc/apt/sources.list"
  2. add whatever sources you have
  3. update apt to get to know new available sources by "aptitude update"

วันเสาร์ที่ 3 กรกฎาคม พ.ศ. 2553

iPhone tethering on Ubuntu(10.04 Lucid)

Ive done experiment engineering tethering on Koala as well, yet it's, however, kind of waste of time , too many error, too many dependency. After my last energy burned, I decided stepping up to Lucid without second thought. Bingo !! I unfortunately faced with boot loader malfunction, which make me go crazy for a day.
Therefore, anyone who are reading this article please forgot upgrading plan for a while. All right I gotta take you guys to the core of the intention, internet tethering on Ubuntu at this moment. I lists steps below
  1. add 2 information in system/admin/software sources
    deb http://ppa.launchpad.net/pmcenery/ppa/ubuntu lucid main
    deb-src http://ppa.launchpad.net/pmcenery/ppa/ubuntu lucid main

  2. apt-get update
  3. apt-get upgrade
  4. apt-get install git-core
  5. apt-get install libusb-dev libusb
  6. apt-get install libtool automake autoconf git-core swig build-essential python-dev libusbmuxd-dev libglib2.0-dev libgnutls-dev libplist-dev libplist++-dev libplist++1 libzip-dev libclutter-1.0-dev libclutter-gtk-0.10-dev intltool
  7. cd libimobiledevice --> โหลดเอาจาก web http://www.libimobiledevice.org/
  8. cd ../
  9. git clone git://github.com/dgiagio/ipheth.git
  10. cd ipheth/ipheth-pair
  11. ./configure
  12. make
  13. make install
  14. cd ../
  15. cd ipheth/ipheth-driver
  16. make
  17. insmod ipheth.ko


  • http://ubuntuforums.org/showthread.php?t=1471018

Ubuntu 10.04 (Lucid)

security changes
  • disable root account by default
To enable it...
A@B$ sudo passwd root
[sudo] password for A: ....
Enter net UNIX password: ....
ReType new Unix password: ....
passwd: password updated successfully

วันพฤหัสบดีที่ 1 กรกฎาคม พ.ศ. 2553