conky – a light-weight system monitor placed on desktop

conky – a light-weight system monitor placed on desktop

1. Cat > ~/.mozilla/firefox/rc
2. Insert line below
export MOZ_DISABLE_PANGO=0
สำหรับคนที่ใช้โน๊ตบุ๊คนะครับ คิดว่าน่าจะมีปัญหากับเมมโมรี่การ์ดรีดเดอร์
แน่นอนครับ (เหมือนผม)- -”
วันนี้ผมเลยมีวิธีแก้มาฝากกันครับ
อ้อ ผมได้ทดสอบเฉพาะกับ SDcard เท่านั้นนะครับ การ์ดอย่างอื่น ไม่มีให้
ลอง
ขั้นแรก สั่ง sudo lspci ก่อน จะได้ผลประมาณนี้
05:09.0 CardBus bridge: Texas Instruments PCIxx21/x515 Cardbus
Controller
05:09.2 FireWire (IEEE 1394): Texas Instruments OHCI Compliant
IEEE 1394 Host Controller
05:09.3 Mass storage controller: Texas Instruments PCIxx21
Integrated FlashMedia Controller
05:09.4 Generic system peripheral [Class 0805]: Texas Instruments
PCI6411/6421/6611/6621/7411/7421/7611/7621 Secure Digital
Controller
2 สั่ง sudo setpci -s nn:nn.n 4c.b=0×02 ให้แทน nn:nn.n ด้วย เลขชุดของ
Mass storage controller (ของแต่ละเครื่องอาจจะไม่เหมือนกัน) ในที่นี้คือ
05:09.3 เราก็จะสั่งว่า setpci -s 05:09.3 4c.b=0×02
3 ลองสอดใส่ SDcard เข้าไป โอ้ว! พระเจ้า mount ได้สำเร็จแล้ว
4 cd to /etc/init.d/ แล้วก็สั่ง gksu gedit /etc/init.d/cardreader.sh
5 ใส่ข้อมูลในไฟล์ /etc/init.d/cardreader.sh ให้มีข้อมูลดีังนี้ (setpci -s
nn:nn:n 4c.b=0×02 ให้แทน n ด้วยเลขของเครื่องท่านนะครับ)
#!/bin/bash
setpci -s 05:09.3 4c.b=0×02
exit 0
6 บันทึกแล้วปิด gedit แล้วสั่ง sudo chmod 755 /etc/init.d/cardreader.sh
7 ตามด้วย sudo update-rc.d cardreader.sh defaults 90
8 reboot หนึ่งครั้ง แล้วคุณจะพบความมหัศจรรย์
ปล. สำหรับบางเครื่องเราต้องให้มันโหลดโมดูลบางโมดูลก่อนนะครับ ทำได้โดย สั่ง gksu gedit /etc/modules แล้วใส่เพิ่มดังนี้
tifm_core
tifm_7xx1
tifm_sd
source : http://www.opentle.org/th/node/4824
เคยเจอใช่มั้ย………..กางเกงตัวเก่งหรือเสื้อตัวโปรดของคุณมีรอยขึ้นเงา
ตามแนวตะเข็บบ้าง รอยจีบบ้าง ทำทำให้เสื้อผ้าหายสวยไปเป็นกอง
ปกติแล้วรอยขึ้นเงาเช่นนี้มักเกิดจากการรีด โดยเฉพาะกับผ้าทีมีส่วน
ผสมของขนสัตว์หรือใยสังเคราะห์จะมีโอกาสเกิดรอยขึ้นเงา
เช่นนี้มากเป็นพิเศษ
สาเหตุก็คือการใช้ความร้อนสูงเกินไป
ความร้อนจะทำให้ใยผ้าแบนราบลงไปรวมตัวกันจึงเกิดการ
สะท้อนแสงเป็นเงาขึ้นมา แต่อย่าเพิ่งหมดหวังไป
ยังพอมีวิธีแก้ ลองใช้น้ำส้มสายชูกลั่นทาลงบนรอยขึ้นเงา
ทิ้งไว้ 10 นาที แล้วจึงใช้เตารีดไอน้ำรีดที่ด้านในของผ้า
น้ำส้มสายชูจะช่วยทำให้เส้นใยผ้าที่แบนราบลงไป
กลับฟูขึ้นดังเดิมและรอยขึ้นเงาก็จะหายไป
source : N/A
1. Edit /etc/sysctl.conf using Editor
2. Add the line below;
kernel.panic = x
x – time in second
source : cyberciti.biz, sothorn’s blog
กำหนดค่า default permission ให้ vsftpd
ใช้ vsftpd เป็น FTP server แล้วเมื่อ up ไฟล์ขึ้นแล้ว เมื่อเรียกใช้งานปรากฎว่าเจอ err ดังนี้
Forbidden
You don’t have permission to access
กรณีนี้เกิดจากปัญหาของสิทธิ์ในการใช้งาน แก้ไขโดยใช้ chmod แต่ต้องทำทุกไฟล์คงไม่สะดวกแน่ หลังจากหาข้อมูลอยู่นาน ผมลองทำตามนี้แล้วได้ผล
แก้ไขไฟล์ vsftpd.conf
ปกติอยู่ที่ /etc/vsftpd/vsftpd.conf
สำคัญที่สองบรรทัดนี้
file_open_mode=0777
local_umask=0022
# ปกติถ้าไม่กำหนด file_open_mode จะเป็น ค่า 0666 ที่เรา set เป็น 0777 เพราะต้องนำค่านี้ ไป AND NOT กับค่า umask ถ้าไม่ set เป็น 0777 จะไม่สามารถหาค่า umask ที่มา AND กับ 0666 แล้วได้สิทธิ์ครบตามที่เราต้องการ
ค่าของ umask ที่จะนำไปใส่ ใช้ตามตารางข้างล่างนี้เลยครับ
ค่า(เลขฐาน 8 ) สิทธิ์ที่ได้
0 r w x read, write and execute
1 r w – read and write
2 r – x read and execute
3 r – - read only
4 – w x write and execute
5 – w – write only
6 – - x execute only
7 – - – no permissions
เช่น..
file_open_mode=0777
local_umask=0022
ก็จะหมายถึง rwx r-x r-x หรือ 755 นั่นเอง
source : http://gotoknow.org/blog/suratat/146921
sudo mv /usr/share/hal/fdi/policy/10osvendor/10-storage-policy.fdi ~
dmesg – print initialize hardware while startup
lspci – print pci h/w
lsusb – print usb h/w
sudo dhclient – request new ip from dhcp server
iwlist – show wireless interface list
cat /etc/issue – show linux distribution
cat /proc/version – show linux kernel
lsb_release -a – same as cat /etc/issue