Vine LinuxでのLAMP環境構築メモ

普通にインストールすればApacheは動いてます。PHPMySQLを追加。Apacheを再起動。

apt-get install php5-apache php5-mysql
apt-get install mysql
service httpd restart

Sambaを設定。正直言ってSMBは扱いに困ります。意味わかんねーし。named立ててきちんと名前空間作った方がいいです。

[global]
	dos charset = cp932
	unix charset = eucJP-ms
	display charset = eucJP-ms
	workgroup = ワークグループ
	netbios name = コンピューター名
	server string = 説明
	security = share
	encrypt passwords = Yes
	map to guest = Bad User
	null passwords = Yes
	#guest account = guest
	passwd program = /usr/bin/passwd %u
	passwd chat = *New*password* %n\n\
                       *ReType*new*password* %n\n\
                       *passwd:*all*authentication*tokens*updated*successfully*
	username map = /etc/samba/smbusers
	log file = /var/log/samba/%m.log
	max log size = 50
	socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
	dns proxy = No
	ldap ssl = no
	wins support = no

#	logon drive	= Z:
#	logonpath	= 
#	logon script	= 

#[homes]
#	comment		= %U のホーム
#	read only	= No
#	browseable	= No
#	create mask	= 0700
#	directory mask	= 0700

#[printers]
#	comment = All Printers
#	path = /var/spool/samba
#	printable = Yes
#	browseable = No

[共有フォルダ]
	comment = コメント
	path = /path/to/share
	read only = No
	#force user = guest
	guest only = Yes
	guest ok = Yes

起動時のサービス設定
ntsysv

IPネットワーク設定
netconfig

IPネットワーク設定表示
ifconfig

ディスク空き状態
df

ファイルのディスク使用量
du

稼働状態変更
telinit

ファイルオーナー変更
chown

ファイルパーミッション変更
chmod

ファイル生成
touch

シンボリックリンク作成
ln -s

テキストブラウザ
w3m

inetd関係
/etc/hosts.allow
/etc/hosts.deny

syslogメッセージ
cat /var/log/message