1. Install packages
# yum install dhcp*
# yum install radvd
公告版位
- Aug 18 Thu 2016 13:56
Configure IPv6 RADVd and DHCPv6 for CentOS 6.6
- Aug 17 Wed 2016 17:49
How to generate core dump files for CentOS?
# mkdir -p /tmp/cores
# chmod a+rwx /tmp/cores
# echo "/tmp/cores/%e.%p.%h.%t.core" > /proc/sys/kernel/core_pattern
------------------------
%p: pid
%: '%' is dropped
%%: output one '%'
%u: uid
%g: gid
%s: signal number
%t: UNIX time of dump
%h: hostname
%e: executable filename
------------------------
# ulimit -c unlimited
# kill -s SIGSEGV $$
Reference: https://sigquit.wordpress.com/2009/03/13/the-core-pattern/
- Aug 16 Tue 2016 18:55
[Perforce] Filter changelist for date and show changelist for editing files.
Filter ChangeList for submitted from 2016/08/10 to Now.
# p4 changes -s submitted //depot/code/...@2016/08/10,@now
Filter ChangeList for pending from 2016/08/10 to 2016/08/14
# p4 changes -s pending //depot/code/...@2016/08/10,@2016/08/15
Show ChangeList 123456 for editing files.
# p4 files @=123456
- Aug 15 Mon 2016 11:13
Network setting of two interfaces and one default gateway for Ubuntu 14.04
$ sudo vim /etc/network/interfaces
-------------------------------------------------------------------------
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.10.100.1
netmask 255.255.0.0
gateway 10.10.0.254
#post-up route add default via 10.10.0.254 dev eth0
auto eth1
iface eth1 inet dhcp
post-up route del default dev eth1
-------------------------------------------------------------------------
- Jun 29 Wed 2016 19:39
Format USB device to FAT32 for Ubuntu.
If the /dev/sdb is USB device.
# sudo -i
# fdisk /dev/sdb
--> n (Create partition)
.......
--> w
- Jun 15 Wed 2016 15:44
How to import python file (.py) in specific directory?
├── third_party_lib
│ └── uploader.py
│
└── tools
└── logFtpUploader.py
- Mar 13 Sun 2016 02:04
Win10更新後,開啟Browser(瀏覽器)完全沒有反應(包含Internet Explorer、Internet Explorer Edge、Chrome)
請移除「Microsoft Windows的安全性更新 (KB3140768)」。
- Feb 17 Wed 2016 18:28
Enable loop detection/broadcast suppression on HP 1920-24G or HP 1920-48G
[HP 1920G Switch] loopback-detection enable
[HP 1920G Switch] loopback-detection multi-port-mode enable
[HP 1920G Switch] loopback-detection interval-time 5
- Jan 26 Tue 2016 12:37
How to know about CPU control Memory size on CentOS 7 and Ubuntu 14.04
CentOS 7:
# yum install -y numactl
# numactl -H
Ubuntu 14.04:
# apt-get install numactl
# numactl -H
- Jan 19 Tue 2016 14:42
Install i386 Skype and Teamviewer on Ubuntu 14.04 64-bit
1. Download i386 skype and teamviewer .deb as follows,
- skype.i386.deb
- teamviewer.i386.deb
2. Install GDebi package
# apt-get install -y gdebi
3. Update the i386 .deb by GDebi
# gdebi skype.i386.deb
# gdebi teamviewer.i386.deb
4. Install skype and teamviewer on Ubuntu 14.04 64-bit
# dpkg -i skype.i386.deb
# dpkg -i teamviewer.i386.deb
- Jan 19 Tue 2016 14:34
Apt-get setting for using IPv4 instead of IPv6
# vim /etc/gai.conf
uncomment line 54
from
-------------------------------------------------------------------
.........
#
# For sites which prefer IPv4 connections change the last line to
#
# precedence ::ffff:0:0/96 100
.........
-------------------------------------------------------------------
- Jan 18 Mon 2016 19:05
HP 1920-24G or 1920-48G Setting for General.
- Jan 07 Thu 2016 14:31
Network setting for bridging NIC br0 on CentOS 7.2
Physical interface (em1) setting:
# vim /etc/sysconfig/network-scripts/ifcfg-em1
--------------------------
DEVICE=em1
HWADDR=xx:xx:xx:xx:xx:xx
ONBOOT=yes
TYPE=Ethernet
BRIDGE=br0
DEFROUTE=no
--------------------------
- Jan 07 Thu 2016 14:10
Use command to import existing disk .QCOW2 file on CentOS 7.0
Example 1:
# virt-install --connect qemu:///system --os-type=linux --ram 2048 --vcpus=2 --cpu host --noautoconsole --force --import --disk path=/tmp/CentOS6.qcow2,device=disk,bus=scsi,format=qcow2 --os-variant=rhel6 --name test1
Example 2:
# virt-install --connect qemu:///system --os-type=linux --ram 2048 --vcpus=2 --cpu host --noautoconsole --force --import --disk path=/tmp/CentOS6.qcow2,device=disk,bus=virtio,format=qcow2 --os-variant=rhel6 --network model=virtio,bridge=br0 --name test2_for_br0
- Jan 05 Tue 2016 23:47
How to Install VNC on CentOS 7
1. Install GUI Gnome packages:
# yum groupinstall -y "GNOME Desktop"
2. Install VNC package:
# yum install -y tigervnc-server