Guest User

revisi raptor debian

a guest
Feb 20th, 2013
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.41 KB | None | 0 0
  1. STEP by STEP Raptor on Debian 6.06 AMD 64
  2. ip 192.168.3.2
  3. name server 192.168.3.1
  4. hostname proxy
  5. domain local.net.work
  6.  
  7. HD 80 G
  8. /swap 4 G
  9. / 6 G B
  10. /cache-1 40 G noatime /dev/sda5
  11. /raptorcache 25 G noatime /dev/sda6
  12. /var 5 G
  13.  
  14. If you need to know your drives labels type the following:
  15. mount|grep ^'/dev'
  16.  
  17. Optimalkan file system untuk cache
  18.  
  19. tune2fs -m 0 /dev/sda5
  20. tune2fs -m 0 /dev/sda6
  21. tune2fs -o journal_data_writeback /dev/sda5
  22. tune2fs -o journal_data_writeback /dev/sda6
  23.  
  24. Disabled fsck (file system check)
  25.  
  26. nano /etc/fstab
  27. /cache-1 ext4 noatime,barrier=0,nodiratime,relatime,errors=remount-ro,data=writeback 0 0
  28. /raptorcache ext4 noatime,barrier=0,nodiratime,relatime,errors=remount-ro,data=writeback 0 0
  29.  
  30. echo 4 > /proc/sys/net/ipv4/tcp_fin_timeout
  31.  
  32. mv /etc/sysctl.conf /etc/sysctl.conf_
  33.  
  34. touch /etc/sysctl.conf
  35.  
  36. echo "kernel.panic = 30
  37. kernel.panic_on_oops = 30
  38. kernel.sysrq = 0
  39. kernel.core_uses_pid = 1
  40. kernel.msgmnb = 65536
  41. kernel.msgmax = 65536
  42. fs.file-max = 65536
  43. vm.swappiness = 0
  44. vm.vfs_cache_pressure=50
  45. vm.mmap_min_addr = 4096
  46. vm.overcommit_ratio = 0
  47. vm.overcommit_memory = 0
  48. kernel.shmmax = 268435456
  49. kernel.shmall = 268435456
  50. vm.min_free_kbytes = 65536
  51. net.ipv6.conf.all.disable_ipv6 = 1
  52. net.ipv4.tcp_syncookies = 1
  53. net.ipv4.tcp_syn_retries = 5
  54. net.ipv4.tcp_synack_retries = 2
  55. net.ipv4.tcp_max_syn_backlog = 4096
  56. net.ipv4.ip_forward = 0
  57. net.ipv4.conf.all.forwarding = 0
  58. net.ipv4.conf.default.forwarding = 0
  59. net.ipv4.conf.all.accept_source_route = 0
  60. net.ipv4.conf.default.accept_source_route = 0
  61. net.ipv4.conf.all.rp_filter = 1
  62. net.ipv4.conf.default.rp_filter = 1
  63. net.ipv4.conf.all.accept_redirects = 0
  64. net.ipv4.conf.default.accept_redirects = 0
  65. net.ipv4.conf.all.log_martians = 0
  66. net.ipv4.conf.default.log_martians = 0
  67. net.ipv4.tcp_fin_timeout = 15
  68. net.ipv4.tcp_keepalive_time = 300
  69. net.ipv4.tcp_keepalive_probes = 5
  70. net.ipv4.tcp_keepalive_intvl = 15
  71. net.ipv4.conf.all.bootp_relay = 0
  72. net.ipv4.conf.all.proxy_arp = 0
  73. net.ipv4.tcp_dsack = 1
  74. net.ipv4.tcp_sack = 1
  75. net.ipv4.tcp_fack = 1
  76. net.ipv4.tcp_timestamps = 1
  77. net.ipv4.icmp_echo_ignore_all = 0
  78. net.ipv4.icmp_echo_ignore_broadcasts = 1
  79. net.ipv4.icmp_ignore_bogus_error_responses = 1
  80. net.ipv4.ip_local_port_range = 1024 65535
  81. net.ipv4.tcp_rfc1337 = 1
  82. net.ipv4.tcp_congestion_control = cubic
  83. net.ipv4.tcp_window_scaling = 1
  84. net.ipv4.tcp_mem = 65536 131072 262144
  85. net.ipv4.udp_mem = 65536 131072 262144
  86. net.ipv4.tcp_rmem = 8192 87380 16777216
  87. net.ipv4.udp_rmem_min = 16384
  88. net.core.rmem_default = 87380
  89. net.core.rmem_max = 16777216
  90. net.ipv4.tcp_wmem = 8192 65536 16777216
  91. net.ipv4.udp_wmem_min = 16384
  92. net.core.wmem_default = 65536
  93. net.core.wmem_max = 16777216
  94. net.core.somaxconn = 32768
  95. net.core.netdev_max_backlog = 4096
  96. net.core.dev_weight = 64
  97. net.core.optmem_max = 65536
  98. net.ipv4.tcp_max_tw_buckets = 1440000
  99. net.ipv4.tcp_tw_recycle = 1
  100. net.ipv4.tcp_tw_reuse = 1
  101. net.ipv4.tcp_max_orphans = 16384
  102. net.ipv4.tcp_orphan_retries = 0
  103. net.ipv4.ipfrag_high_thresh = 512000
  104. net.ipv4.ipfrag_low_thresh = 446464
  105. net.ipv4.tcp_no_metrics_save = 1
  106. net.ipv4.tcp_moderate_rcvbuf = 1
  107. net.unix.max_dgram_qlen = 50
  108. net.ipv4.neigh.default.gc_thresh3 = 2048
  109. net.ipv4.neigh.default.gc_thresh2 = 1024
  110. net.ipv4.neigh.default.gc_thresh1 = 32
  111. net.ipv4.neigh.default.gc_interval = 30
  112. net.ipv4.neigh.default.proxy_qlen = 96
  113. net.ipv4.neigh.default.unres_qlen = 6
  114. net.ipv4.tcp_ecn = 1
  115. net.ipv4.tcp_reordering = 3
  116. net.ipv4.tcp_retries2 = 15
  117. net.ipv4.tcp_retries1 = 3" >> /etc/sysctl.conf
  118.  
  119. echo "ulimit -Hn 65536
  120. ulimit -Sn 65535">> /etc/profile
  121.  
  122. echo 65536 > /proc/sys/fs/file-max
  123. echo "* soft nofile 65536" >> /etc/security/limits.conf
  124. echo "* hard nofile 65536" >> /etc/security/limits.conf
  125. echo "root soft nofile 65536" >> /etc/security/limits.conf
  126. echo "root hard nofile 65536" >> /etc/security/limits.conf
  127. echo "proxy soft nofile 65536" >> /etc/security/limits.conf
  128. echo "proxy hard nofile 65536" >> /etc/security/limits.conf
  129. echo "session required pam_limits.so" >> /etc/pam.d/common-session
  130. modprobe ip_conntrack
  131.  
  132. echo "ip_conntrack">> /etc/modules
  133.  
  134. echo deb http://kambing.ui.ac.id/debian/ squeeze main non-free contrib | tee -a /etc/apt/sources.list
  135. echo deb-src http://kambing.ui.ac.id/debian/ squeeze main non-free contrib | tee -a /etc/apt/sources.list
  136.  
  137. apt-get -y update
Advertisement
Add Comment
Please, Sign In to add comment