Feeds:
Posts
Comments

Archive for March, 2006

WGET proxy
============
scite /etc/wgetrc
edit the following lines
Code Sample
http_proxy = http://user:pass@xxx.xxx.xxx.xxx:port/
ftp_proxy = http://user:pass@xxx.xxx.xxx.xxx.port/
use_proxy = on
Apt-get proxy
============
scite /etc/apt/apt.conf
add
Code Sample
Acquire::http::Proxy “http://user:pass@xxx.xxx.xxx.xxx:port/”;
Acquire::ftp::Proxy “http://user:pass@xxx.xxx.xxx.xxx:port/”;

Read Full Post »

patch file คือ กรณีที่เราเอาโปรแกรมเดิมมาแก้ไขหรือเพิมเติ่ม หรือมีคนอื่นแก้ไขโปรแกรมเพิ่มเติมก็จะสร้างไฟล์ patch มาแก้ไขโปรแกรม เพื่อให้คนอื่นไปแก้โปรแกรมหรือเพิ่มเติมในสิ่งที่เราเพิ่ม สร้างเป็น patch file เพื่อให้อัตเดตไฟล์โปรแกรม
diff -Naur oldfile newfile > patch_file
Example :
diff -Naur test-old.c test-new.c > test.patch
เวลาเอาไปใช้ก็เข้าไป folder ที่เก็บไฟล์โปรแกรมและก็
patch -p1 < /opt/patch/test.patch

Read Full Post »

This document explains how to change the root user password in MySQL access privilege database.
1. Login as root to the box with the MySQL server.
2. Stop MySQL server.
3. Open the mysql server startup script. This is the file you have just executed to stop MySQL server.
4. Find the line that contains the safe_mysqld command and [...]

Read Full Post »

Windows Remote Desktop

พอดีจะ remote เข้าอีกเครื่อง เนื่องจากจอคอมพิวเตอร์เสีย
เลยหาข้อมูลการเซ็ตเพราะลืม หลักๆ ก็มีดังนี้
1. Turning on Remote Desktop in Your Office
You need to do the following steps as Administrator:
1. From Control Panel, double-click on the System icon.
2. Click on the Remote tab.
3. Select [...]

Read Full Post »

เรื่องมันเกิดก็ตอนทดสอบเซ็ต squid มาใช้งานเองที่บ้าน แต่มีปัญหา
เข้าใช้งานเว็บ hotmail ไม่ได้ เกิดจากการเชื่อมต่อออก
ไปยังเว็บที่ใช้ SSL (Secure Socket Layer)
โดยค่าเริ่มต้นของการ config squid กำหนดให้ Cache SSL เข้าไปด้วยดังนั้น
เมื่อติดต่อไปยัง Website ใดๆ ที่มีการเปิด connection แบบ SSL จึงไม่สามารถ รับ-ส่ง ข้อมูลได้
วิธีแก้ไข
- ค้นหา “acl all” และแทรก “acl SSL method CONNECT” ในบรรทัดต่อไป
- และเพิ่ม “never_direct allow SSL” ในบรรทัดต่อไป
แหล่งข้อมูลต้นฉบับ Link

Read Full Post »

Older Posts »