2012年10月18日 星期四

Yum Repository from CD-ROM/DVD-ROM

on XenCenter VM

* insert DVD/ISO to CD-ROM/DVD-ROM drive *

1. mount yum source iso to /mnt
--> mount /dev/xvdd /mnt

2. Create repository file
--> vi /etc/yum.repos.d/centos6.repo


[CentOS6-Repository]
name=CentOS6 repository
baseurl=file:///mnt
enabled=1
gpgcheck=0

3. Deny yum from network, in /etc/yum.repos.d/
--> mv CentOS-Base.repo  CentOS-Base.repo.bak

4. yum clean all

5. yum install xxxx


2012年6月27日 星期三

Switch - DLINK DGS-3427

DGS-3427:

Display all port network utilization status [using debug or traffic troubleshooting ]
#show utilization ports

Display port error status
#show error ports
ex: # show error ports 2

Clear port error counter
#clear counters ports
ex: # clear counters ports 21

Display MAC
# show fdb

Config VLAN
#config vlan add tag  

2012年6月24日 星期日

Clamav freshclam doesn't update


Clamav freshclam doesn't update  Error message as below

ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).



Modify "/etc/cron.daily/freshclam
==============================

#!/bin/sh

### A simple update script for the clamav virus database.
### This could as well be replaced by a SysV script.

### fix log file if needed
LOG_FILE="/var/log/clamav/freshclam.log"
if [ ! -f "$LOG_FILE" ]; then
    touch "$LOG_FILE"
    chmod 644 "$LOG_FILE"
   // modify chown clam.clam ==> clamav.clamav
    chown clamav.clamav "$LOG_FILE"
fi

/usr/bin/freshclam \
    --quiet \
    --datadir="/var/lib/clamav" \
    --log="$LOG_FILE"

2012年5月23日 星期三

Changed MAC procedures


1. u-boot# setenv ethaddr 00:05:5e:56:26:80
2. u-boot# saveenv
Saving Environment to Flash...
Un-Protected 2 sectors
Erasing Flash...
.. done
Erased 2 sectors
Writing to Flash... ..done
Protected 2 sectors
3. u-boot# reset
4. Press "reset" button --> HW reset to default

Asterisk VoIP Server SIP Trunk IP變更不需要重開設備


 1. mark掉  sip trunk register name
 2. 修改sip trunk register IP
 3. 清掉firewall session
 4. 拿掉mark掉的sip trunk register name
 5. 進入asterisk -r
 6. sip reload

2012年2月12日 星期日

Hyper-V Linux Integration Services 3.2

Windows Server 2008
Linux Integration Services Version 3.2 for Hyper-V (Windows Server 2008, Windows Server 2008 R2, Microsoft Hyper-V Server 2008, and Microsoft Hyper-V Server 2008 R2)

Linux Integration Services Version 3.2 for Microsoft Hyper-V Features

When installed on a virtual machine that is running a supported Linux operating system, Linux Integration Services for Hyper-V provides the following functionality:
1. Driver support
2.Fastpath Boot Support for Hyper-V
3.Timesync
4.Integrated Shutdown
5.Symmetric Multi-Processing(SMP) Support
6.Heartbeat
7.KVP(Key Value Pair) Exchange
8.Integrated Mouse Support

Supported Guest Operating Systems:
a. Red hat Enterprise Linux 6.0 and 6.1 x86 and x64 (Up to 4 vCPU)
b.CentOS 6.0 x86 and x64 (Up to 4 vCPU)

#mount /dev/cdrom /media
#/media/install.sh
#reboot

verify:
#/sbin/modinfo hv_vmbus
#sbin/lsmod | grep hv

uninstall Linux Integration Services 3.2
# rpm -e microsoft-hyper-v-rhel6-41.1 kmod-microsoft-hyper-v-rhel6-41.1

********Release Notes *************
To mount an ISO file in the virtual machine, the following command must be run before executing the mount command:
# insmod /lib/modules/$(uname 0r)/kernel/drivers/ata/ata_piix.ko

Alternatively, copy the ISO file into the virtual machine and mount it using the -o loop option

Microsoft TechNet Forums:
http://social.technet.microsoft.com/Forums/en-us/linuxintegrationservices/threads