Pages

Bài đăng phổ biến

Friday, May 25, 2012

Create Repo Centos via Iso

#mount -o loop /path/file.iso /mnt
#vi /etc/yum.repos.d/rhel6.repo
[rhel]
name=rhel6
baseurl=file:///mnt
enabled=1
gpgcheck=0

Nguyễn Sĩ Nhàn

[Solved] x.x.x.x Sorry, the domain is already pointed to an IP address .....

Problem: Using nameservers with the following IPs: x.x.x.x Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver.

Solution:  Tweaksetting -> Allow Remote Domains -> On .

Done

Nguyen Si Nhan

Sunday, May 20, 2012

Failed to initialize remote display subsystem

You just create a new   user with name __vmware_user__ is all ok:
 net user  __vmware_user__ /add


Nguyen Si Nhan 

Monday, May 14, 2012

[Solved] Trouble shoot kvm virsh hang

Problem: When you type virsh list or virsh ... it's not return anything such as it's hanging

Solution: You just remove libvirtd and install it again ,Problem will be solved.

Nguyen Si Nhan

Tuesday, May 8, 2012

[Solved] libvirtError: Unable to read from monitor: Connection reset by peer

Problem :
Error starting domain: Unable to read from monitor: Connection reset by peer

Solution:

 virsh edit <domainname>

Search these word:  <graphics type='vnc' port='-1' autoport='yes'/>
Delete it and save .

After that start vm again is ok.
Good luck :) !

Nguyen Si Nhan




Deny all IP access to port assigned exclude my IP


In my exaple is port 25 and my ip is 1.2.3.4:


iptables -A INPUT -p tcp --dport 25 -s 1.2.3.4 -j ACCEPT
iptables -A INPUT -p tcp --dport 25 -s 1.2.3.4 -j ACCEPT
iptables -A INPUT -p tcp --dport 25 -j DROP

Finish!

Nguyen Si Nhan

Thursday, May 3, 2012

Run a program background on Linux

You just type more > /dev/null & :


ie: ls > /dev/null &


Nguyễn Sĩ Nhàn

Timezone with graphite

You just edit file wepapp/graphite/setting.py change line(or uncomment ),in my case i change such as:

TIME_ZONE = 'Asia/Ho_Chi_Minh'

Nguyen Si Nhan