vi /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these two values:
# targeted – Targeted processes are protected,
# mls – Multi Level Security protection.
SELINUXTYPE=targeted
Thursday, August 15, 2013
Wednesday, July 24, 2013
Unable to open Exchange 2010 Management Console - Initialization Failed
- Open Registry Editor (regedit) as the user you run the EMC under.
- Go to
HKEY_CURRENT_USER\SOFTWARE\Microsoft\ExchangeServer\v14\AdminTools - Look for value NodeStructureSetting.
- If it is there, back it up and then remove it.
Monday, June 17, 2013
How to use Yum command to install「setup」(Text Mode Setup Utility) for CentOS 6.2 manually
$ yum install -y setuptool ntsysv system-config-*
Thursday, June 6, 2013
Clear completed move requests on Exchange 2010
Get-MoveRequest -MoveStatus Completed | Remove-MoveRequest
Friday, October 12, 2012
Install PHP 5.3 on CentOS 5
To install, first you must install the yum repository information:
Now you can install php by doing:
Or update an existing installation of php, which will also update all of the other php modules installed:
rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
yum --enablerepo=webtatic install php
yum --enablerepo=webtatic update php
Monday, April 30, 2012
Mac 技巧:給雜亂無章的 Dock 添加分割空位
使用 Mac 機的 OS X 作業系統時,我們通常會將常用的應用程式擺放在 Dock 上,方便隨時開啓。但隨著應用程式越來越多,Dock 也顯得雜亂無章。有沒有辦法能將不同類型的應用程式分割開呢?答案當然是有的。只須在 Dock 上添加個空位,十分簡單,不需要運行專業程式,直接使用 OS X 的終端機程式執行命令即可。

打開終端機(應用程式 > 工具程式),輸入以下命令:
defaults write com.apple.dock persistent-apps -array-add ‘{"tile-type"="spacer-tile";}’
每一次輸入並回車執行,Dock 則會新增一個空位。然後再輸入以下命令,重新啓動 Dock:
killall Dock

重新啓動後,Dock 左側部分即會多出個空位,你可將空位拖移到你想擺放的位置進行分割。以上命令只適用於 Dock 左側部分,如果你想在右側堆棧部分添加空位的話,則須輸入以下命令:
defaults write com.apple.dock persistent-others -array-add ‘{tile-data={}; tile-type="spacer-tile";}’
同樣再輸入以下命令重新啓動 Dock 執行:
killall Dock

用空位分割後的 Dock 是不是更舒適,也清晰明了呢?如果你想將 Dock 上的空位刪除,只需將空位拖移出去,它就會灰飛煙滅消失啦。
打開終端機(應用程式 > 工具程式),輸入以下命令:
defaults write com.apple.dock persistent-apps -array-add ‘{"tile-type"="spacer-tile";}’
每一次輸入並回車執行,Dock 則會新增一個空位。然後再輸入以下命令,重新啓動 Dock:
killall Dock
重新啓動後,Dock 左側部分即會多出個空位,你可將空位拖移到你想擺放的位置進行分割。以上命令只適用於 Dock 左側部分,如果你想在右側堆棧部分添加空位的話,則須輸入以下命令:
defaults write com.apple.dock persistent-others -array-add ‘{tile-data={}; tile-type="spacer-tile";}’
同樣再輸入以下命令重新啓動 Dock 執行:
killall Dock
用空位分割後的 Dock 是不是更舒適,也清晰明了呢?如果你想將 Dock 上的空位刪除,只需將空位拖移出去,它就會灰飛煙滅消失啦。
How Route between two different virtual networks in Hyper-V
When new internal network is created from “Virtual Network Manager”, new virtual “Local Area Connection X” is automatically created under “Control Panel > Network Connections”. We can use RRAS (routing and remote access) to route between virtual “Local Area Connection”.
SCREENSHOTS










- Open Hyper-V console
- Click on “Virtual Network Manager” under “Actions” Pane
- Enter Name, choose “Internal”, click “Add”, click “OK”
- You will noticed that new Local Area Connection is created under “Control Panel > Network Connections”
- Right click on the newly created Local Area Connection, choose properties.
- On TCP/IPv4 screen, enter IP: 10.1.0.1 , Subnet: 255.255.255.0 and no gateway. ( Repeat step 2 to 6 if you would like to create multiple networks )
- Open “Routing and Remote Access” console. ( Server Manager > Network Policy and Access > Routing and Remote Access)
- Right click on “Routing and Remote Access” and choose “Configure and Enable Routing and Remote Access”
- Choose “Custom Configuration”
- Choose “NAT” and “LAN routing”, click Next
NAT allows your VMs to access the internet without exposing them.
LAN routing allows you route between Local Area Connections
- Click Finish and Start the service.
- Browse to “NAT” under IPv4, Right click and choose “New Interface”, choose the interface that you use to connect to the internet.
- Choose “Public interface connected to the internet”, check “Enable NAT on this interface”, click OK
SCREENSHOTS
Subscribe to:
Posts (Atom)
Prevent or Prohibit Server Drives From Being Visible to Users
To make changes to this policy for one of the seven default values: Start the Microsoft Management Console. On the Console menu, click Ad...
-
Connect to the ESXi host with SSH Stop the USB arbitrator service. This service is used to passthrough USB device from an ESX/ESXi host to...
-
To make changes to this policy for one of the seven default values: Start the Microsoft Management Console. On the Console menu, click Ad...