-
ทดสอบ แม่ 143 algorithms audio bsd centos clock D-Day database download event file freeradius gui health hotspot2 intrepid ISAD itcamp java ldap life link_to linux love ntp project rails review ruby shell sleepless smf solaris ssl sukishi sun sysadmin the mall time ubuntu unix vpn web development
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.
Tags
ทดสอบ แม่ 143 algorithms audio bsd centos clock D-Day database download event file freeradius gui health hotspot2 intrepid ISAD itcamp java ldap life link_to linux love ntp project rails review ruby shell sleepless smf solaris ssl sukishi sun sysadmin the mall time ubuntu unix vpn web development-
Pages
Categories
Archives
Tag Archives: ubuntu
wget problem [solved]
อยู่ดีดี wget ที่เคยใช้ download อะไรต่างๆนาๆ บน Linux/Unix Server ที่ไม่มี GUI
เกิดใช้ไม่ได้ขึ้นมาซะงั้น อาการก็เป็นแบบนี้อ่ะ
# wget http://awstats.sourceforge.net/awstats.ftp.urldetail.html
–04:17:37– http://awstats.sourceforge.net/awstats.ftp.urldetail.html
Resolving awstats.sourceforge.net… 216.34.181.96
Connecting to awstats.sourceforge.net|216.34.181.96|:80… connected.
HTTP request sent, awaiting response…
เหมือนจะ http request ผ่าน แต่ http response กลับไม่มาถึงซะงั้น
ก็เลย ลอง man wget ดูว่าัมันมี option อะไีรให้้ใช้บ้าง เพราะว่า ลอง download file เดียวกันจาก windows server
ที่อยู่บน subnet เดียวกันกับ เจ้า linux server ตัวนี้ มันดัน download ได้ เลยคิดว่าต้องเป็นที่ wget แน่ๆ
อ่าน [...]
Linux Performance Tuning (sysctl.conf)
1. timeout timewait parameter
Determines the time that must elapse before TCP/IP can release a closed connection and reuse its resources.
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
2. TCP_KEEPALIVE_INTERVAL
* Description: Determines the wait time between isAlive interval probes.
* How to view or set: Issue the following command to set the value:
echo 15 > /proc/sys/net/ipv4/tcp_keepalive_intvl
3. open file limit
ulimit -a
ulimit -n 8000
4.# [...]
Apache2 - Directory Alias and Allow From
ทำ Alias ใช้ในกรณีที่ directory นั้นๆ ไม่ได้อยู่ใน document root ของ web server เช่น
อยากให้ url http://www.kmitl.ac.th/bankster แต่ directory bankster ไม่ได้อยู่ที่ document root
ของ www.kmitl.ac.th อาจจะอยู่ที่อื่นอย่างเช่น /home/bankster/public_html
สามารถทำการ set เป็นลักษณะของ Alias ได้ที่ /etc/apache2/sites-enabled/www.kmitl.ac.th
โดยเพิ่ม Alias /bankster “/home/bankster/public_html” ไว้ภายใน tag <VirtualHost> … </VirtualHost>
แล้วทำการ set option สำหรับ directory /home/bankster/public_html ดังนี้
<Directory /home/bankster/public_html>
Options FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
สังเกตุว่า ไม่อนุญาตให้ทำการ Index Directory เพราะไม่ได้ set
Options Indexs [...]
ทำให้ MYSQL Server Accept connection จาก anywhere
ปกติแล้ว เจ้า MySQL server จะ ถูก config ให้ Accept connection จาก localhost
เท่านั้น ถ้าเราอยากจะทำให้มัน Listen ที่ 0.0.0.0 ก็ต้องไป set ที่ไฟล์ /etc/mysql/my.conf
ก่อนอื่นต้อง stop service mysql ก่อน /etc/init.d/mysql stop
แล้ว vi /etc/mysql/my.confหาบรรทัดที่เขียนว่า
bind-address = 127.0.0.1
แก้เป็น
bind-address = 0.0.0.0
save file แล้ว exit ออกมา
สั่ง start service mysql /etc/init.d/mysql start
ลอง netstat -na | more ดูจะพบว่า mysql listen ที่ 0.0.0.0:3306 0.0.0.0:* แล้ว
bankster@ruby:~/test$ netstat -na
Active Internet [...]
Note : Compressed File Extract
1. .tar , .tar.gz
tar xvfz file.tar.gz
2. .gz
gunzip file.gz
3. .zip
unzip file.zip
4. rar
unrar file.rar
hope it help!.
Addendum I :
1. apt-get install gunzip
2. apt-get install unrar
3. apt-get install unzip
4. tar comes with ubuntu distro by default.
Addendum II :
ZIP
Zip is probably the most commonly used archiving format out there today. Its biggest advantage is the fact that it is available [...]
เมื่อ gedit ใน ubuntu desktop อ่านภาษาไทยไม่ออก
เรามีวิธีแก้มาให้ท่านครับ
Alt+f2 พิมว่า gconf-editor<<<< มันจะขึ้นตัว config ของ gnome หรือคล้ายๆregistry ใน M$ WD ดีๆนี่เอง
[Select]>>>>/apps/gedit-2/preferences/encodings/<<<< แล้วดับเบิ้ลคลิกที่ auto_detected
แล้วเพิ่ม TIS-620 เข้าไป เลื่อนไปไว้ด้านบนสุดเลย เท่านั้นเอง
ISO Download Day , Ubuntu 8.10 Desktop
วันนี้ได้ชื่อว่าเป็นวันแห่งการทรมานเน็ตหอ
สืบเนื่องจากตอนนี้กำลัง deploy ldap กับ freeradius
ใ ห้ทำงานร่วมกันได้ ก็เลยต้อง download image disk
ที่เ ป็น OS มาเพื่อ install ลงใน vmware workstation
วันนี้ download มาสาม file ใหญ่ๆ
คือ freeBSD i386 disc 1 , disc 2
และก็ ubuntu desktop 8.10 intrepid
ซึ่ง official release วันนี้พอดี
เพิ่ง download เสร็จเลยมา blog ไว้ครับ
lsb_release : to print out the ubuntu release information