# iptables -P INPUT ACCEPT
# iptables -F
# iptables -A INPUT -i lo -j ACCEPT
# iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
# iptables -A INPUT -p tcp --dport 22 -j ACCEPT
# iptables -A INPUT -p udp --dport 53 -j ACCEPT
# iptables -P INPUT DROP
# iptables -P FORWARD DROP
# iptables -P OUTPUT ACCEPT
# iptables -L -v
# /sbin/service iptables save
Monday, September 16, 2013
Thursday, August 15, 2013
Howto disable or enable SElinux on Centos 6.4 Redhat RHEL 6.4
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
# 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
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 上的空位刪除,只需將空位拖移出去,它就會灰飛煙滅消失啦。
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...