■aliasにlsコマンドを追加する。
「~/.bashrc」に下記を追記する。
----------
alias ll='ls -lF'
alias la='ls -aF'
----------
■ファイアウォールの設定
「iptables」でパケットフィルタリングします。
Startupディレクトリに適当なファイルを作成。
仮に「iptables.sh」とします。
以下のルールをコピペして保存したら
「chmod 755 iptables.sh」でアクセス権限を変更。
次回起動時からパケットフィルタリングのルールが適用されます。
(変なところがあっても許して。)
--------------------------------------------------
#!/bin/sh
# 全て拒否
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT DROP
# リセット
iptables -F
# loopback 許可
iptables -A INPUT -i lo -j ACCEPT
iptables -A OUTPUT -o lo -j ACCEPT
# TCP
iptables -A OUTPUT -p tcp --dport 21 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 22 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 25 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 80 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 110 -j ACCEPT
iptables -A OUTPUT -p tcp --dport 443 -j ACCEPT
# TCP 確立済みの接続は許可
iptables -A OUTPUT -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
# UDP dns
iptables -A OUTPUT -p udp --dport 53 -j ACCEPT
iptables -A INPUT -p udp --sport 53 -j ACCEPT
# UDP dhcp
iptables -A OUTPUT -p udp --sport 68 --dport 67 -j ACCEPT
iptables -A INPUT -p udp --sport 67 --dport 68 -j ACCEPT
# UDP ntp
iptables -A OUTPUT -p udp --dport 123 -j ACCEPT
iptables -A INPUT -p udp --sport 123 -j ACCEPT
# ICMP echo 要求/応答
iptables -A OUTPUT -p icmp --icmp-type 8 -j ACCEPT
iptables -A INPUT -p icmp --icmp-type 0 -j ACCEPT
--------------------------------------------------
■diffを見やすく
ファイルの比較は「Xfdiff-cut」を使うのが良さ気。
http://distro.ibiblio.org/puppylinux/pet_packages-4/
から
xfdiff-cut-4.5.0.pet
■conkyでシステム情報を出力
conkyを見つけたので入れましょう。
http://distro.ibiblio.org/puppylinux/pet_packages-4/
から
conky-1.6.1.pet
起動時に動かすため「~/.xinitrc」に以下を追記。
最終行そば、「#exec $CURRENTWM」の上に
----------
xli -fillscreen -onroot /usr/share/backgrounds/DarkGrey.jpg
conky -d
----------
背景に適切な壁紙ファイルがあれば、それを指定すると幸せに。
その行を省略すると黒背景になります。
その後「~/.conkyrc」を編集し、カスタマイズします。
----------
update_interval 1.0
alignment middle_right
----------
やり始めるとキリがない。。。