# mkdir /mnt/iso
# mount -o loop disk1.iso /mnt/iso
ผมติดตั้ง CentOS linux 5.5 ใน parallels virtual machine แล้วหาทางส่งไฟล์ระหว่างกัน วิธีการหนึ่งที่สามารถทำได้คือผ่าน samba ซึ่งมีขั้นตอนดังนี้ครับ
ติดตั้ง samba ใน linux ด้วยคำสั่ง
#yum install samba แก้ไขไฟล์ /etc/samba/smb.conf ให้มีเนื้อหาในส่วนของ [homes] เป็น [homes] comment = Home Directories browseable = yes writeable = yes read only = yes สั่งให้ samba ทำงานด้วยคำสั่ง
#/etc/init.d/smb start กำหนด password ให้ user โดย user นั้นจะต้องมีจริงในระบบ (local [...]
# top -b -n 1 | grep Mem
Mem: 1016656k total, 941892k used, 74764k free, 164588k buffers
# top -b -n 1 | grep Cpu
Cpu(s): 0.3%us, 0.3%sy, 0.1%ni, 99.0%id, 0.1%wa, 0.1%hi, 0.2%si, 0.0%st
-b : Batch mode operation
Starts top in ‘Batch mode’, which could be useful for
sending output [...]
วิธีการติดตั้ง Dag RPM Repository ให้ใช้คำสั่ง
echo “[dag] name=Dag RPM Repository for Red Hat Enterprise Linux baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag gpgcheck=1 gpgkey=http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt enabled=1″ > /etc/yum.repos.d/dag.repo
เมื่อต้องทำการ update package ด้วยคำสั่ง yum และต้องกำหนดให้ผ่าน proxy นั้นสามารถใช้คำสั่งต่อไปนี้เพื่อกำหนดให้ผ่าน proxy
#export http_proxy=http://username:password@proxy:8080
หลังจากนั้นจึงใช้คำสั่ง yum ตามปกติ
มีผู้แนะนำให้เพิ่มคำสั่งต่อไปนี้ที่ .bashrc และเรียกใช้คำสั่ง proxy เมื่อต้องการ
function proxy() { echo -n “username:” read -e username echo -n “password:” read -es password export http_proxy=”http://$username:$password@proxy: port/” export ftp_proxy=”http://$username:$password@proxy: port/” }
Tags
.htaccess Apache blogspot CentOS codeigniter CSS domain name driver Drupal Flickr Hotmail HTML internet law linux mailing list mailman MICT mod_rewrite monitor MSL MySQL name server Network open source PHP Postfix Security Smarty sony Spammail SPF theme TLS traffic log Universiade UTF-8 UTF8 vbulletin Wordpress การเมือง จตุคาม รูปภาพ สถิติ เรารักในหลวง
