Linux

  • warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /usr/local/www/apache22/data/includes/database.pgsql.inc on line 126.
  • user warning: query: SELECT n.nid, n.vid, n.type, n.status, n.created, n.changed, n.comment, n.promote, n.sticky, r.timestamp AS revision_timestamp, r.title, r.body, r.teaser, r.log, r.format, u.uid, u.name, u.picture, u.data FROM node n INNER JOIN users u ON u.uid = n.uid INNER JOIN node_revisions r ON r.vid = n.vid WHERE n.nid = '' in /usr/local/www/apache22/data/includes/database.pgsql.inc on line 145.

NetworkManager
เป็น service ที่สามารถปรับเปลี่ยนคอนฟิกของ network เพื่อให้ต่อเชื่อมกับ network เช่น WiFi ได้อย่างอัตโนมัติ
คำแนะนำ

  • ปิด – สำหรับ server
  • เปิด – สำหรับ notebook ที่มีการเปลี่ยนที่ใช้งานเป็นประจำ

acpid
เป็น service สำหรับตรวจสอบสถานะของเครื่อง โดยจะใช้ได้สำหรับ BIOS บางรุ่น วิธีทดสอบง่ายๆ คือเข้าไปดูใน /proc/acpi/ แล้วใช้คำสั่ง cat ดูไฟล์ต่างๆ ว่าสามารถตรวจสอบสถานะของอุปกรณ์ได้หรือไม่
คำแนะนำ

ตรวจสอบเวลาในเครื่องดูก่อน ว่าเวลาตรงหรือไม่

# date
Thu Dec 14 11:05:37 ICT 2002

ถ้าหากพบว่าไม่ตรง ก็ให้ตั้งใหม่ ดังนี้ครับ

# date -s "12/14/2007 11:17:00"

ตรวจสอบดูอีกรอบนะ

# date
Thu Dec 14 11:18:56 ICT 2007

 

External Harddisk Notebook อยู่ตัวหนึ่ง เป็นแบบ USB Port ตอนแรกที่เสียบเข้าไปมันก็โอเค นะครับ Mount ได้ อ่านได้ แต่พอผมจะเอาไฟล์ไปวางเท่านั้นแหละ เป็นเรื่อง มันไม่ยอมให้ผม write file เพราะว่ามันเป็น ntfs

 

$ sudo apt-get install ntfs-3g

รอซักแป๊ป ก็จะเป็นอันเสร็จพิธี

มาลองใช้งานกันดีกว่า

$ sudo ntfs-3g --help
ntfs-3g 1.328 - Third Generation NTFS Driver

Copyright (C) 2005-2006 Yura Pakhuchiy
Copyright (C) 2006-2007 Szabolcs Szakacsits

Usage: ntfs-3g device mount_point [-o options]

Options: ro, force, locale, uid, gid, umask, fmask, dmask,
show_sys_files, no_def_opts, streams_interface.
Please see the details in the manual.

Ntfs-3g news, support and information: http://www.ntfs-3g.org

ว่า พอเห็นตัวอย่างกันคร่าวๆ ก็มาลองใช้กันจริงๆ โดย mount ไปไว้ที่ /media

php.ini

หาบรรทัดนี้ expose_php = On

ให้แก้เป็น expose_php = Off

apache.conf  หรือ httpd.conf

ServerTokens Full ----> แก้เป็น ServerTokens Prod

ServerSignature On ----> แก้เป็น ServerSignature Off ซะ

แก้หน้า error page ให้เห็นเป็นหน้า webpage ที่เตรียมไว้ต่างหากจะได้ไม่เห็น error เป็นรายละเอียด server

หลักการก็ไม่ยากเลยครับเขียน Perl Script ขึ้นมาแล้วให้มัน Redirection output ออกไปเป็นไฟล์ html แล้วที่นี่จะเอาไปใส่เป็น frame, iframe ไว้ในไฟล์ไหนก็ได้

Calendar

ล็อกอิน

สมาชิกใหม่

  • ปัตตานี
  • sadis
  • Jameball
  • andy99
  • pook