17Nov
วันนี้ผมได้ติดตั้ง CentOS 6.0 แบบที่ชอบติดตั้ง คือ ติดตั้งแบบประหยัดที่สุด
ปรากฏกว่า ไม่มีคำสั่ง ssh และ scp … อื่นๆไม่รู้ว่าจะไม่มีอะไรอีกบ้าง
สามารถ ssh เข้ามายัง CentOS ได้ เมื่อค้นดูใน Google พบว่า ต้องติดตั้ง openssh ในกลุ่ม Client เอง ด้วยคำสั่ง
yum install openssh-clients
ตามปกติ ชุดคำสั่งฝั่ง client จะมาพร้อมกับ openssh-server .. แต่คราวนี้เค้าแยกออกจากกันครับ
18Aug
หัวข้อนี้ ติดตั้ง เพื่อให้ สามารถสร้างบัตรอินเทอร์เน็ตประเภท ชั่วโมง … เช่น บัตร 30 ชั่วโมง/เดือน หรือ 30 ชั่วโมง แล้วหมดอายุ Continue reading »
28Oct
สวัสดีครับช่วงนี้ก็เสร็จสิ้นการเรียน Summer ของผมแล้วเลยพอมีเวลาว่างมานั่งเขียนโน้นเขียนนี่บ้าง วันนี้นำเรื่องการติดตั้งเมลเซิร์ฟเวอร์สำหรับ CentOS 5 มาฝากกันครับ วันนี้คิดว่าอยู่ว่างๆ เลยมานั่งเขียนให้เสร็จไปเลยดีกว่า อีกอย่างช่วงนี้ผมเองก็ไม่ค่อยจะได้อัพเดทบล๊อกสักเท่าไหร่
How to Mail Server On CentOS 5 with Postfix + Dovecot + OpenWebmail + MailGraph + Anti Spam and Malware
ในการติดตั้งเครื่องเซิร์ฟเวอร์ CentOS ใหม่ ผมไม่เลือก Packages อะไรเลยน่ะครับ แม้แต่ Gnome เองผมก็ไม่ได้เลือก เป็นเครื่องเปล่าๆ ผมปิดการทำงานของ iptables และ selinux ทั้งหมด
*Tip แนะ นำสำหรับผู้เริ่มเริ่มใช้งานลีนุกซ์ใหม่นิดนึงครับเรื่องการแบ่งพาร์ติชัน ของลีุนุกซ์ ควรแบ่ง /var/spool/mail และ /var/log แยกออกมาจาก /var จะดีที่สุดครับ และควรให้ /var/log มีขนาดใหญ่เป็นพิเศษ เพราะจากประสบการณ์ของผมหากเราไม่ได้แยก /var/log และ /var/spool/mail ออกมาจาก /var และกำหนดขนาดของ /var ไว้น้อยเกินไปเช่น 4 GB ไม่นาน /var ก็จะเต็มเพราะ /var/log และ /var/spool/mail จะโตขึ้นทุกวันอาจทำให้ Server ที่เราให้บริการมีปัญหาได้
Continue reading »
08Nov
การจัดทำ Windows Diskless โดยใช้การ boot ผ่าน PXE (Network Boot ซึ่งมีใน Mainboard รุ่นใหม่ๆ เกือบทุกตัว)
http://www.etherboot.org/wiki/sanboot
การ setup iSCSI บน Ubuntu 9.04
http://www.howtoforge.com/using-iscsi-on-ubuntu-9.04-initiator-and-target
29Oct
วันนี้เข้ามาตรวจเช็คปัญหาระบบ Fileserver ของ inca
ปัญหาคือ
1. Account แจ้งว่าโปรแกรม Express ใช้งานช้ามาก (เวลาเขียนข้อมูล)
2. บางเครื่องไม่สามารถเข้า share folder ได้ โดยมี error report ว่า duplicate user (ทั้งๆที่ปกติก็ใช้ user เดียวกันในการ logon เข้าใช้ share folder)
ได้ทำการแก้ไขดังนี้
1. เพิ่ม config เข้าไปใน smb.conf
socket options = SO_KEEPALIVE
* ยังไม่ทราบว่าเป็นเช่นไร แต่จากการดูสภาพการใช้งาน (ใช้คำสั่ง smbstatus พบว่ามีการเข้าใช้ได้มากขึ้น และไม่พบ error oplock ใน smb.log อีก)
2. ปัญหาเกิดจาก การตั้ง computer name ซ้ำกัน (error report ที่แจ้งว่า duplicate user นั้น อีกความหมายคือ duplicate Machine name)
สรุป ความรู้ที่ได้วันนี้
คำสั่ง smbstatus ใช้ในการตรวจสอบสถานะการใช้งาน samba โดยจะ report ให้ทราบว่ามีเครื่องใดเชื่อมต่อเข้ามาบ้าง (ถ้า computer name ซ้ำ จะเข้าได้เครื่องเดียว), กำลังใช้ resource อะไร(share folder) และกำลังเปิดไฟล์อะไรบ้าง
23Aug
Linux doesn’t have a separate threads per process limit, just a limit on the total number of processes on the system (threads are essentially just processes with a shared address space on Linux) which you can view like this:
cat /proc/sys/kernel/threads-max
The default is the number of memory pages/4. You can increase this like:
echo 100000 > /proc/sys/kernel/threads-max
There is also a limit on the number of processes (an hence threads) that a single user may create, seeulimit/getrlimit for details regarding these limits.
Continue reading »
10Aug
วิธีติดตั้ง VHCS2 บน Debian 4.0
ผมเองก็ไม่ค่อยเก่งหรอกนะเท่าที่ผมลองทำก็มีเท่านี้นะครับ (ลองเอาไปแปลงๆ ดูสำหรับมือใหม่ทุนน้อย ประหยัดค่า CP ไปได้พอควร)
# apt-get update
# apt-get upgrade
# apt-get dist-upgrade
# apt-get install apache2 apache2-mpm-prefork bind9 bzip2 courier-authdaemon courier-base courier-imap courier-maildrop courier-pop dialog diff gzip iptables libapache2-mod-php5 libberkeleydb-perl libcrypt-blowfish-perl libcrypt-cbc-perl libcrypt-passwdmd5-perl libdate-calc-perl libdate-manip-perl libdbd-mysql-perl libdbi-perl libio-stringy-perl libmail-sendmail-perl libmailtools-perl libmcrypt4 libmd5-perl libmime-perl libnet-dns-perl libnet-netmask-perl libnet-perl libnet-smtp-server-perl libperl5.8 libsasl2-modules libsasl2 libsnmp-session-perl libterm-readkey-perl libterm-readpassword-perl libtimedate-perl make mysql-client mysql-common mysql-server original-awk patch perl perl-base perl-modules php5 php5-mcrypt php5-mysql php5-gd postfix postfix-tls procmail proftpd-mysql sasl2-bin tar wget gcc libc6-dev php5-dev subversion php5-cli
Create directories for web-based administration ? เลือก yes
เลือก Ok
General type of configuration? เลือก Internet Site
Mail name? เลือก Ok
Run proftpd from inetd or standalone? เลือก standalone# nano /etc/mysql/my.cnf
Continue reading »
24Jul
Install PoPToP Point to Point Tunneling Server:
sudo apt-get install pptpd
Edit /etc/pptpd.conf file:
Uncomment the following lines (replace IP range if you like)
localip 192.168.0.1
remoteip 192.168.1.1-255
Save and exit.
Edit /etc/ppp/pptpd-options file
sudo joe /etc/ppp/pptpd-options
Continue reading »
24Jul
For updates of this post please visithttp://mexpolk.wordpress.com.
Hello again, this time we’re going to setup a DynDNS client so your computer/server can be reached from anywhere.
Step 1
First, you need to create an account with DynDNS to do so follow this howto:https://www.dyndns.com/services/dns/dyndns/howto.html.
Step 2
First we’ll install ssh and ssh-socket so we can send our DynDNS user and password encrypted instead clear text:
$ sudo apt-get install ssh libio-socket-ssl-perl
Continue reading »
15Jul
Pre-Installation Setup
None of the following pre-installation steps are strictly necessary.
User Permissions
NFS user permissions are based on user ID (UID). UIDs of any users on the client must match those on the server in order for the users to have access. The typical ways of doing this are:
- Manual password file synchronization
-
Use of LDAP
-
Use of NIS
It’s also important to note that you have to be careful on systems where the main user has root access – that user can change UID’s on the system to allow themselves access to anyone’s files. This page assumes that the administrative team is the only group with root access and that they are all trusted. Anything else represents a more advanced configuration, and will not be addressed here.
Continue reading »
Recent Comments