公告版位

1. Install packages
# yum install dhcp*
# yum install radvd

dreamtails 發表在 痞客邦 留言(0) 人氣()

# 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/

dreamtails 發表在 痞客邦 留言(0) 人氣()

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

dreamtails 發表在 痞客邦 留言(0) 人氣()

$ 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
-------------------------------------------------------------------------

dreamtails 發表在 痞客邦 留言(0) 人氣()

If the /dev/sdb is USB device.

# sudo -i

# fdisk /dev/sdb
--> n    (Create partition)
.......
--> w

dreamtails 發表在 痞客邦 留言(0) 人氣()

├── third_party_lib
│   └── uploader.py

└── tools
    └── logFtpUploader.py

dreamtails 發表在 痞客邦 留言(0) 人氣()

移除「Microsoft Windows的安全性更新 (KB3140768)」

dreamtails 發表在 痞客邦 留言(1) 人氣()

[HP 1920G Switch] loopback-detection enable
[HP 1920G Switch] loopback-detection multi-port-mode enable
[HP 1920G Switch] loopback-detection interval-time 5

dreamtails 發表在 痞客邦 留言(0) 人氣()

CentOS 7:
# yum install -y numactl
# numactl -H

 

Ubuntu 14.04:
# apt-get install numactl
# numactl -H

dreamtails 發表在 痞客邦 留言(0) 人氣()

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



dreamtails 發表在 痞客邦 留言(0) 人氣()

# 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
.........
-------------------------------------------------------------------

dreamtails 發表在 痞客邦 留言(0) 人氣()

<HP 1920G Switch> _cmdline-mode on
Please input password: Jinhua1920unauthorized
<HP 1920G Switch> system-view 
[HP 1920G Switch] local-user admin
[HP 1920G Switch-luser-admin] password simple <MyPassword>

dreamtails 發表在 痞客邦 留言(0) 人氣()

# systemctl stop NetworkManager
# systemctl disable NetworkManager
# systemctl enable network 
         

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

-------------------------- 

dreamtails 發表在 痞客邦 留言(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

dreamtails 發表在 痞客邦 留言(0) 人氣()

1. Install GUI Gnome packages:
# yum groupinstall -y "GNOME Desktop"

2. Install VNC package:
# yum install -y tigervnc-server

dreamtails 發表在 痞客邦 留言(0) 人氣()