おかげでなんだか動きがもたついたりすることが発生し出しました。
/etc/logrotate.d/squid の以下の冒頭を変更。
#対象のログファイル指定を変更。
# Logrotate fragment for squid.
#
/var/log/squid/*.log {
daily
#これでログが肥大することもないはず・・。
# Logrotate fragment for squid.
#
/media/sda1/squid/*.log {
daily
この日記の内容は果てしなく無責任・無保証です。(書かなくても分かるか)
#対象のログファイル指定を変更。
# Logrotate fragment for squid.
#
/var/log/squid/*.log {
daily
#これでログが肥大することもないはず・・。
# Logrotate fragment for squid.
#
/media/sda1/squid/*.log {
daily
--- squid.conf.orig 2011-04-29 06:45:44.000000000 +0900 +++ squid.conf 2011-04-29 21:06:29.000000000 +0900 @@ -607,6 +607,7 @@ acl localnet src 10.0.0.0/8 # RFC1918 possible internal network acl localnet src 172.16.0.0/12 # RFC1918 possible internal network acl localnet src 192.168.0.0/16 # RFC1918 possible internal network +acl homeuser src 192.168.xxx.0/24 # acl SSL_ports port 443 # https acl SSL_ports port 563 # snews @@ -652,6 +653,7 @@ # # Only allow cachemgr access from localhost http_access allow manager localhost +http_access allow homeuser http_access deny manager # Only allow purge requests from localhost http_access allow purge localhost @@ -1107,7 +1109,7 @@ # visible on the internal address. # # Squid normally listens to port 3128 -http_port 3128 +http_port 8123 # TAG: https_port # Note: This option is only available if Squid is rebuilt with the @@ -1950,6 +1952,7 @@ # #Default: # cache_dir ufs /var/spool/squid 100 16 256 +cache_dir ufs /media/sda1/squid 20480 16 256 # TAG: store_dir_select_algorithm # Set this to 'round-robin' as an alternative. @@ -2125,7 +2128,8 @@ # # And priority could be any of: # err, warning, notice, info, debug. -access_log /var/log/squid/access.log squid +#access_log /var/log/squid/access.log squid +access_log /media/sda1/squid/access.log squid # TAG: log_access allow|deny acl acl... # This options allows you to control which requests gets logged @@ -2149,6 +2153,7 @@ # #Default: # cache_log /var/log/squid/cache.log +cache_log /media/sda1/squid/cache.log # TAG: cache_store_log # Logs the activities of the storage manager. Shows which @@ -2159,7 +2164,7 @@ # #Default: # cache_store_log /var/log/squid/store.log - +cache_store_log /media/sda1/squid/store.log # TAG: cache_swap_state # Location for the cache "swap.state" file. This index file holds # the metadata of objects saved on disk. It is used to rebuild @@ -2212,6 +2217,7 @@ # #Default: # logfile_rotate 0 +logfile_rotate 4 # TAG: emulate_httpd_log on|off # The Cache can emulate the log file format which many 'httpd'
I remove the / from the first /proc line and now my sheeva boots without this error ! (proc /proc proc rw,noexec,nosuid,nodev 0 0)
telnet stream tcp nowait telnetd /usr/sbin/tcpd /usr/sbin/in.telnetd安全のためLANからのみアクセスを受け付けるようにアクセス制限をかける。
ALL:127.0.0.1/etc/hosts.denyを以下の様に編集。
in.telnetd:192.168.179.
ALL:ALLサービスの再起動を実施。
91.189.88.36 ports.ubuntu.comこれをしておかないとaptに失敗します。
root@debian:/home/kz# fdisk /dev/mmcblk0512MBのブート用パーティション1と512MBのスワップ用パーティション2。残りをルート用パーティション3に割り当てました。
Command (m for help): p
Disk /dev/mmcblk0: 3963 MB, 3963617280 bytes
128 heads, 63 sectors/track, 960 cylinders
Units = cylinders of 8064 * 512 = 4128768 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk0p1 1 131 528160+ 83 Linux
/dev/mmcblk0p2 132 262 528192 82 Linux swap / Solaris
/dev/mmcblk0p3 263 960 2814336 83 Linux
Command (m for help):
# /etc/fstab: static file system information.作業が終わったらアンマウント。
#
proc /proc proc defaults 0 0
/dev/mmcblk0p1 /boot ext2 defaults 1 2
/dev/mmcblk0p3 / ext2 defaults 1 1
/dev/mmcblk0p2 swap swap defaults 0 0
arcNumber=2678うまくいったら今のうちに初期状態のSDカードをイメージにして接続したUSBメモリにバックアップ。
autoload=no
baudrate=115200
bootargs_end=:::DB88FXX81:eth0:none
bootargs_mmc=console=ttyS0,115200 root=/dev/mmcblk0p3 rw rootfstype=ext2 rootdelay=3
bootargs_nand=console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock2 rw rootfstype=jffs2 ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none
bootargs_root=root=/dev/mtdblock2 ro
bootcmd_mmc=setenv bootargs $(bootargs_mmc); mmcinit; ext2load mmc 0:1 0x800000 /uImage; bootm 0x800000
bootcmd_nand=setenv bootargs $(bootargs_nand); nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootcmd=run bootcmd_mmc; run bootcmd_nand;
bootdelay=3
CASset=min
cesvcid=ULULULULULULPPULULULULULDA
console=console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
disaMvPnp=no
disL2Cache=no
disL2Prefetch=yes
enaAutoRecovery=yes
enaCpuStream=no
enaDCPref=yes
enaICPref=yes
enaMonExt=no
enaWrAllo=no
ethact=egiga0
ethaddr=00:50:43:01:51:FA
ethmtu=1500
ethprime=egiga0
fileaddr=17A12000
filesize=108e000
image_name=uImage
ipaddr=10.10.0.1
loadaddr=0x0800000
loads_echo=0
mainlineLinux=yes
MALLOC_len=1
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
nandEcc=1bit
nandEnvBase=a0000
netbsd_en=no
netmask=255.255.0.0
netretry=no
pcieTune=no
pexMode=RC
rcvrip=169.254.100.100
rootpath=/mnt/ARM_FS/
run_diag=no
sata_dma_mode=yes
serverip=10.10.0.2
setL2CacheWT=yes
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81