Posts Tagged ‘Configuration’
Magento Configuration
Setup the Root Category
A Root Category can be selected at Admin Panel -> System -> Manage Stores -> Edit Store
Static Blocks
Static Blocks can be setup at Admin Panel -> CMS -> Static Blocks
Static Blocks can be configured into Pages though: Admin Panel -> CMS -> Manage Pages, Edit Page -> Custom Design -> Layout Update XML
This is a example for add a static block into the left bar:
<reference name="left">
<block type="cms/block" name="xxx" before="-">
<action method="setBlockId"><block_id>xxx</block_id></action>
</block>
</reference>
Iptables configuration
This is the format for Iptables configuration file:
*<table-name>
:<chain-name> <chain-policy> [<packet-counter>:<byte-counter>]
rules ……
COMMIT
This is an example:
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -i eth0 -j ACCEPT
-A RH-Firewall-1-INPUT -i vmnet1 -j ACCEPT
-A RH-Firewall-1-INPUT -i vmnet8 -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp –icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp –dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp –dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp –dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT –reject-with icmp-host-prohibited
COMMIT
*nat
:PREROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o ppp0 -j MASQUERADE
COMMIT
Each table is marked like *<table-name>, for example *filter. Then within each table we have the chain specifications and rules. A chain specification looks like :<chain-name> <chain-policy> [<packet-counter>:<byte-counter>]. The chain-name may be for example PREROUTING, the policy is described previously and can for example be ACCEPT. The packet-counter and byte-counters are the same counters as in the output from iptables -L -v. Finally, each table declaration ends in a COMMIT keyword. The COMMIT keywords tells us that at this point we should commit all rules currently in the pipeline to the kernel.
Fedora Configuration
Service
Service configuration:
system-config-services
Service scripts:
/etc/init.d/
Locale
Edit /etc/sysconfig/i18n
LANG="en_US.UTF-8"
LC_CTYPE="zh_CN.UTF-8"
This file is used by /etc/profile.d/lang.sh
FreeBSD Configuration
Shell
Edit /etc/csh.cshrc
set autolist
set prompt = '%n@%m%#'
setenv PAGER less
alias ls ls -FG
Service
Service configuration: edit /etc/rc.conf, such as:
service1_enable = "YES"
service2_enable = "NO"
Service scripts:
/etc/rc.d/
/usr/local/etc/rc.d/
Locale
Edit /etc/csh.cshrc, such as:
setenv LANG en_US.UTF-8
setenv LC_CTYPE zh_CN.UTF-8
setenv MM_CHARSET UTF-8
setenv XMODIFIERS @im=scim
Drupal Basic Configuration
1. Change Anonymous to Visitor
Change “Administer–Site configuration–Site information–Anonymous user” to “Visitor”.
2. Use normal names for your pages
Go to “Administer–Site building–Modules”, enabling the “Path” core module.
3. Turn on “Clean URLS”
Go to “Administer–Site configuration–Clean URLs”, run the “Clean URLs Test”, then select “Enable” and save configuration.
4. Don’t let “Promoted to front page” as a default for content
Go to “Administer–Content management–Content types” and turn that off in each type.
5. Default front page
Set the “Administer–Site configuration–Site information–Default front page” to what you want, such as node/83, blog, taxonomy/term/5…
6. Setup 403 and 404 Error pages
1. Create two nodes, one for each kind of page error (403 and 404).
2. Go to “Administer–Site configuration–Error reporting”, setup the Default 403/404 page to node/#
7. Setup categories and terms
Content on Drupal websites is usually organized using categories through a system called “taxonomy”. A taxonomy has different “terms” that are used as categories for articles.
Go to “Admnister–Content management–Categories” to setup the Categories and Terms.