- php-sasl, php-gnupg sponsored by Lior Kaplan
- php-date, php-auth -- sponsored by David Prévot
- libdi, libdbi-drivers -- sponsored Laszlo Boszormenyi
Bugs:
-
-
Welcome to my life.
| - furiusisomount -- sponsor by Serafeim Zanikolas |
$str="การบ้านเยอะมากสงสัยไม่เสร็จแน่เลยนอนตากลมอยู่บ้านดีกว่า";
$new = th_brk_line(iconv('UTF-8','TIS-620',$str));
echo iconv('TIS-620','UTF-8',$new);
server:~$ sudo apt-get install openssh-servergitosis: install
server:~$ sudo apt-get install git-core gitosis
server:~$ sudo adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/git gitgitosis: config
mylaptop:~$ scp ~/.ssh/id_rsa.pub prach@server:./
server:~$ sudo -H -u git gitosis-init < /home/prach/id_rsa.pub
server:~$ sudo chmod +x /home/git/repositories/gitosis-admin.git/hooks/post-updateหลังจากขั้นตอนนี้เราจะสามารถ config gitosis ผ่านทาง git repo ได้ดังนี้
mylaptop:~$ git clone git@server:gitosis-admin.gitในไดเรกทอรี gitosis-admin ให้แก้ไขไฟล์ชื่อ gitosis.conf เพื่อเพิ่มกลุ่มและกำหนดข้อมูลสำหรับ repositories (จากตัวอย่างจะสร้าง repo ชื่อ foobar , โดยมีสมาชิกคือ prach@mail.com) ดังนี้
mylaptop:~$ cd gitosis-admin; editor gitosis.conf
[gitosis]
[group gitosis-admin]
writable = gitosis-admin
members = prachpub@gmail.com
[group developer]
writable = foobar
members = prachpub@gmail.com
mylaptop:~$ git commit -a -m 'add foobar repo'
mylaptop:~$ git pushเมื่อ config gitosis เรียบร้อยแล้วเราก็จะสร้าง foobar repo ขึ้นมาดังนี้
mylaptop:~$ mkdir foobar; cd foobar; git initสำหรับ foobar สามารถ clone ผ่านทาง ssh ได้ดังนี้
mylaptop:~$ git remote add origin git@server:foobar.git
mylaptop:~$ echo 'hello' > x.txt
mylaptop:~$ git add x.txt
mylaptop:~$ git commit -a -m 'hello'
mylaptop:~$ git push origin master
mylaptop:~$ cd /tmp;git clone git@server:foobar.git
server:~$ sudo apt-get install apache2cgit: install
server:~$ git clone git://hjemli.net/pub/git/cgicgit: config
server:~$ cd cgit;git submodule init;git submodule update
server:~$ sudo apt-get install libcurl4-openssl-dev build-essential
server:~$ sudo make
server:~$ sudo mkdir -p /var/www/cgit/{cgi-bin,css}
server:~$ sudo cp cgit /var/www/cgit/cgi-bin/cgit.cgi
server:~$ sudo cp {cgit.css,cgit.png} /var/www/cgit/css/
server:~$ sudo vim /etc/cgitrc
logo=/cgit-css/cgit.png
css=/cgit-css/cgit.css
enable-index-links=1
virtual-root=/git/
repo.url=foobar
repo.desc=Foobar repositories
repo.path=/home/git/repositories/foobar.git
server:~$ sudo vim /etc/apache2/conf.d/cgit.conf
Alias /git "/var/www/cgit/cgi-bin"จาก config ไฟล์ของ apache ต้องใช้ mod rewrite ด้วย
Options FollowSymLinks +ExecCGI
AddHandler cgi-script .cgi
DirectoryIndex cgit.cgi
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.* /git/cgit.cgi/$0 [L,PT]
Alias /cgit-css "/var/www/cgit/css"
AllowOverride None
Options None
Order allow,deny
Allow from all
server:~$ sudo a2enmod rewrite
server:~$ sudo /etc/init.d/apache2 restart
http://linux.sut.ac.th/prach/gpg-transition-prach.txt.asc <- Signed with both keys
http://debianclub.org/node/539 <- Key-Singing
เขียนไว้กันลืมจะใช้ทีไรต้องหาใหม่ทุกที
# ifconfig eth0 down
# ifconfig eth0 hw ether 00:80:48:BA:d1:20
# ifconfig eth0 up
# ifconfig eth0 |grep HWaddr
Link http://linuxhelp.blogspot.com/2005/09/how-to-change-mac-address-of-your.html
ไม่ได้บล๊อกเลยตั้งแต่ปลายปีที่แล้วจนถึงตอนนี้ ช่วงที่ผ่านมาศึกษาแต่เรื่องการทำ server เป็นในเชิงพวก web cluster
จากที่ได้ทำการศึกษาจึงได้แบ่งออกเป็นส่วน ๆ ดังนี้
ถึงแม้จะเป็นเรื่องที่มีมานานแล้วแต่หาข้อมูลที่สมบูรณ์ได้ยากและส่วนมากที่มีก็จะเป็นแต่พวก static page แต่ตอนนี้เว็บไซต์เกือบทั้งหมดก็จะเป็นแบบ dynamic page
deb http://ftp.debianclub.org/debian/ experimental main non-free contrib
deb-src http://ftp.debianclub.org/debian/ experimental main non-free contrib
deb http://ftp.debianclub.org/debian/ unstable main non-free contrib
deb-src http://ftp.debianclub.org/debian/ unstable main non-free contrib
$sudo apt-get update
$aptitude -t experimental install kdebase kdebase-workspace
เนื่องจากว่าจะทำการส่ง gpg key ไปไว้บน sever แต่ที่ทำงานนั้นไม่เปิด port ให้เลยต้องทำ tunnel โดยเราต้องมี account อยู่ที่ serverไหนก็ได้ที่เขาเปิดให้ ssh ได้ สมมุติผมมี account คือprach@xxx.org มีขั้นตอนทำ tunnel ดังนี้
2. remote เข้าไปใน server ที่เรามี account อยู่ แล้วก็สั่งรันโปรแกรมที่เราต้องการจะ tunnel ในตัวอย่างเป็นการส่ง gpg key ขึ้นไปบน server
ตัวของ Ajax นั้นไม่ใช่ technology แต่เป็นการใช้หลาย ๆ เทคโนโลยีมาทำงานร่วมกัน ข้อดีของการนำ Ajax ไปใช้งานนั้นจะทำให้ web application ของเรานั้นทำงานได้เร็วขึ้นเพราะเมื่อ user ต้องการข้อมูลในส่วนไหนก็จะ update เฉพาะส่วนนั้นไม่ต้อง update ทั้งหมด
^-^ : วันนี้นำมาเล่าเท่านี้ก่อนเดี๋ยวถ้าศึกษาเพิ่มอีกแล้วจะนำมาเล่าต่อครับ





