วันพฤหัสบดีที่ 28 มีนาคม พ.ศ. 2556

CentOS : scp (secure copy) no password login

Standard
สร้าง key ด้วยคำสั่ง ssh-keygen
#ssh-keygen -t dsa 
copy key ไปที่เครื่อง remote-server ด้วยคำสั่ง

#ssh-copy-id -i /home/[user-name]/.ssh/id_dsa.pub [user-name]@[remote-server]
จากนั้นลอง copy file ไปที่ remote server ด้วยคำสั่ง
#scp [source-file] [user-name]@[remote-server]:[file-path]
หรือลอง ssh ด้วยคำสั่ง
#ssh [user-name]@[remote-server]






## FTP
curl -u ftpuser:ftpuser -T source-file ftp://127.0.0.1/path/


การติดตั้งและใช้งาน gSoap บน CentOS

Standard
ระบบปฎิบัติการที่ใช้ CentOS 6.2 และ gsoap version 2.7.16

1.download package : gsoap-2.7.16-3.el6.x86_64.rpm , gsoap-devel-2.7.16-3.el6.x86_64.rpm

2.install package
     #rpm -i gsoap-2.7.16-3.el6.x86_64.rpm
     #rpm -i gsoap-devel-2.7.16-3.el6.x86_64.rpm

โดย package ข้างต้นจะมีโปรแกรม wsdl2h ซึ่งใช้เปลี่ยน wsdl เป็น header file ของภาษา c (หรือ c++)


วันพุธที่ 20 มีนาคม พ.ศ. 2556

SPARC Enterprise T5440 Manage Hardware RAID Volume

Standard
- Start to Single User Mode
#boot cdrom -s  

-Determine name of RAID volume
#raidctl

-Delete volume
#raidctl -d [volume-name]
  Ex raidctl -d c0t0d0


-Create RAID volume
#raidctl -c [primary] [secondary]
   Ex #raidctl -c c0t0d0 c0t1d0


กรณีพิมพ์คำสั่ง Format ที่ Single User Mode แล้วไม่เจอ Disks ให้ลอง
ไปที่ OK Prompt แล้วใช้คำสั่ง probe-scsi-all 


วันศุกร์ที่ 15 มีนาคม พ.ศ. 2556