ปกติใช้ share แบบ share ที่ทุกคนเปิดเข้ามา เขียน-อ่าน ได้ตามสบายแต่เมื่อใช้งานไปก็พบปัญหาไฟล์ขยะที่ลูกค้ายัดเข้าไว้ยิ่งเยอะขึ้นและยากที่จะตรวจสอบ วันนี้เลยลองหาวิธีกำหนดให้ใช้ user ในการเขียน-อ่าน โดยใช้แนวคิดง่ายๆ กำหนดเป็น 2 user ให้ user นึงอ่านได้อย่างเดียว และอีก user เขียนลงไปได้ด้วย
โดยกำหนด user ผ่าน webconfig ของ clarkconnect ขึ้นมาใหม่ 2 อัน และกำหนดให้ใช้ file server ไว้ด้วย
หลังจากนั้นกำหนด Security Type เป็นแบบ user ซะ
สร้าง folder ที่จะเปิด share โดยกำหนด permission เป็น 777
แก้ smb.conf
#=======================
[Program]
delete readonly = yes
#ใส่ user ที่กำหนดให้อ่านอย่างเดียว
read list = user1
#ใส่ user ที่กำหนดให้เขียนได้ด้วย
write list = user2
path = /home/shared
force directory mode = 777
force create mode = 777
create mode = 777
directory mode = 777
#========================
restart samba เป็นอันจบ
หลังจากนั้นถ้่า login จาก windows เป็น user ใหนก็จะมีสิทธิ์เป็น user นั้นๆ
Incoming search terms for the article:samba clarkconnect (4) |
share file samba กำหนดสิทธิ์ user (2) |
กำหนดสิทธิ์ samba (2) |
การกำหนดสิทธิ์ User samba (1) |
กำหนด สิทธิ samba share file (1) |
วิธีการเขียน config squid.conf ให้ บล็อคเว็บไซท์ ที่ต้องการตามกำหนดเวลา และยังสามารถกำหนด เครื่องที่ไม่บล็อคได้ไม่ยากเย็น
Read more [ Block Website ด้วย Squid 2.7 ]
Incoming search terms for the article:block keyword clarkconnect (6) |
squid block facebook (4) |
squid block web (3) |
clarkconnect block web (3) |
block facebook website (2) |
ภพ ร้าน Room19 ถามว่าจะปิดเครื่อง clarkconnect ง่ายๆ ได้ไงโดยไม่ต้องใช้ command หรือเข้าไปปิดในเว็บ ไปค้นมาให้เจอวิธีการปรับใช้ปุ่ม Power ในการปิดเครื่อง อ่า แหล่มๆ จดๆๆ
Pressing the power button to shutdown a computer is always a bad thing to do, to properly shut down the system you must either log into the web interface and browse to ‘Tools – Shutdown/Restart’ or log in via PuTTY and enter the following:
shutdown -h now
This is a real problem especially as you will most probably have to power up one computer just to power down the other. A very useful tool can be installed that automatically runs the shutdown command for you when the Power Button is pressed safely shutting down the server.
Login in as root using PuTTY and type:
apt-get update
apt-get clean
apt-get install acpid
When you reboot you will find the power button now properly shuts down your computer.
(If this fails to work, it could be that your hardware doesn’t support the Advanced Configuration & Power Interface (ACPI) standard – check your motherboard’s BIOS settings and make sure it’s switched on.)
ACPID can be configured to run other scripts when acpi events occur, the configuration file is found at /etc/acpi/events/sample.conf if you fancy developing this further.
other tweaking @ http://www.ulverston.myzen.co.uk/mini-itx/pages/tuning.htm
Incoming search terms for the article:clarkconnect 4 3 acpid (2) |
acpi for clarkconnect (1) |
clarkconnect 4 3 power button shutdown /etc/acpi (1) |
power down linux computer using power button (1) |
< !- - google_ad_section_start (weight=ignore) - ->
เนื่องจากความซนทำให้ต้องลงกันใหม่บ่อยๆ วันนี้มาเขียน Step การ Install และรวมไฟล์ที่จำเป็นไว้ที่เดียวเลย คราวหน้า (ต้องมีแน่ๆ) จะได้ง่าย ขึ้น
1. Install CC ด้วยCD ธรรมดา จนเสร็จจัดการให้ต่อเข้าวง Lan ให้เรียบร้อย และต่อเข้า Internet ให้ได้ เนื่องจากเจ้า Lan Onboard ของ p5gc-mx 1333 นั้นเป็น attansic ซึ่ง CC ไม่สามารถใช้งานได้เลยต้องลง Driver เอง
2. เราก็จะต้องทำให้ Lan Onboard ใช้ได้ก่อนโดยการ Compile Driver ตามขั้นตอนต่อไปนี้
apt-get install cc-devel
apt-get install kernel-sourcecode#2.6.18-93.cc4
apt-get install kernel-devel#2.6.18-93.cc4
3. หลังจากจัดการ Download Tool ในการ Compile มาแล้วก็ Download Driver
wget ftp://ftp.hogchain.net/pub/linux/attansic/vendor_driver/l2-linux-v1.0.40.4.tar.gz
4.แตกไฟล์ Driver ด้วย
tar -zxvf l2-linux-v1.0.40.4.tar.gz
5.หลังจากนั้นต้อง Edit File kcompat.h เพราะ Compile เลยจะไม่ผ่านต้องแก้โดย Delete บรรทัดที่ 1084 ทิ้งไป
typedef irqreturn_t (*irq_handler_t)(int, void*, struct pt_regs *);
6. Compile
make install
7. Edit ไฟล์ /etc/modprobe.conf Add alias eth2 atl2 ลงไป ให้ Lan ตัวนี้เป็นตัวที่ 3
8. Call Driver
depmod
modprobe eth2
9. Reboot System ก็จะใช้งาน Lan Onboard ได้
10. Install Frox เพื่อเก็บ Patch Game ต่างๆ ใช้ตัว SiamCaFeTruefasterFroxV4.1 Download >>
siamcafe truefaster frox v4.1
11. tar –> ./install
12. Forward Port เพื่อ Create DotA, แยก Port Games กะ Internet
13.Config Proxy แบบ Transparent
14. Done.
< !- - google_ad_section_end - ->
Incoming search terms for the article:ไดร์เวอร์ แลน asus P5GC-MX/1333 (2) |
linux clarkconnect v4 1 (2) |
tar files in linux for p5gc-mx/1333 (1) |
P5GC-MX/1333แลน (1) |
p5gc-mx 1333 DRIVER LAN (1) |