{"id":1126,"date":"2015-12-02T15:54:51","date_gmt":"2015-12-02T07:54:51","guid":{"rendered":"http:\/\/163.26.205.2\/~teablog\/tea1001\/?p=1126"},"modified":"2016-08-16T10:55:35","modified_gmt":"2016-08-16T02:55:35","slug":"ubuntu-14-04-lts-%e4%bc%ba%e6%9c%8d%e5%99%a8%e7%89%88%e5%ae%89%e8%a3%9d","status":"publish","type":"post","link":"http:\/\/163.26.205.2\/~teablog\/tea1001\/?p=1126","title":{"rendered":"Ubuntu 14.04 LTS \u4f3a\u670d\u5668\u7248\u5b89\u88dd"},"content":{"rendered":"<p>Ubuntu 14.04 LTS \u4f3a\u670d\u5668\u7248\u5b89\u88dd<\/p>\n<p>0.\u82f1\u6587\u4ecb\u9762\u5b89\u88dd\u3001\u4e0d\u81ea\u52d5\u66f4\u65b0<\/p>\n<p>1.partition\u8981umount\uff0c\u958b\u6a5f\u78c1\u5340\u8981\u6709(\u975e\/boot)<\/p>\n<p>2.\u5b89\u88ddOpenSSH\u3001LAMP\u3001Mail\u3001Samba server<\/p>\n<p>3.\u66f4\u65b0\u8cc7\u6599\u53ca\u5b89\u88dd\u7a0b\u5f0f<br \/>\napt-get update<br \/>\napt-get upgrade<br \/>\napt-get install mc rcconf proftpd <span lang=\"en-US\">php-mbstring php-gettext<\/span> phpmyadmin<br \/>\napt-get clean<\/p>\n<p>\u5b89\u88ddwebmin\uff0c\u6703\u51fa\u73fe\u554f\u984c\uff0c\u518d\u57f7\u884capt-get -f update\u4fee\u8b77<\/p>\n<p>4.\u8a2d\u5b9a\u53ef\u8b93root\u9060\u7aef\u767b\u5165\uff1a<br \/>\n\u7de8\u8f2f\/etc\/ssh\/sshd_config<br \/>\n<span style=\"color: #ff0000\">#<\/span>PermitRootLogin without-password (<span style=\"color: #ff0000\">14.04\u7248<\/span>)<br \/>\n<span style=\"color: #ff0000\">#<\/span>PermitRootLogin yes (<span style=\"color: #ff0000\">12.04\u7248<\/span>)<\/p>\n<p>3.\u8a2d\u5b9a\u7db2\u8def\/etc\/network\/interfaces<\/p>\n<table style=\"height: 37px\" width=\"444\">\n<tbody>\n<tr>\n<td>auto lo<br \/>\niface lo inet loopback<\/p>\n<p>auto eth0<br \/>\niface eth0 inet static<br \/>\naddress 163.26.205.<span style=\"color: #ff0000\">X<\/span><br \/>\nnetmask 255.255.255.0<br \/>\ngateway 163.26.205.254iface eth0 inet6 static<br \/>\npre-up modprobe ipv6<br \/>\naddress 2001:288:75df::<span style=\"color: #ff0000\">X<\/span><br \/>\nnetmask 64<br \/>\ngateway 2001:288:75df::fffe<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>4.\u4fee\u6539\/etc\/default\/rsync\uff0c\u8a2drsync_enable=true<br \/>\n\u8a2d\u5b9a\/etc\/rsync.conf\u53carsync.secret\uff0cadmin:Txxxxxxxx<\/p>\n<p>5.\u8a2d\u5b9aufw\u9632\u706b\u7246<br \/>\n\u6253\u958b\u9632\u706b\u7246\uff0c\u52a0\u5165\u4ee5\u4e0b\u8a2d\u5b9a (\u898f\u5247\u5728\/lib\/ufw)<br \/>\n\u65b0\u589e873 rsync\uff0c10000 webmin\uff0c5900:5910(\u50c5tcp) x11vnc\uff0c122.117.219.xxx\u3002<\/p>\n<p>1.4\u5b89\u88ddSecure shell (SSH) server<br \/>\napt-get install openssh-server openssh-sftp-server<\/p>\n<p>5.<span style=\"color: #000000\"><span style=\"color: #0000ff\">\u53ef\u80fd\u5f97\u9700\u8981\u9ebb\u7169\u60a8\u6aa2\u67e5\u4e00\u4e0b mods-available\/userdir.conf<\/span><\/span><\/p>\n<h3>\/etc\/php5\/apache2\/php.ini\u5176\u4e2d\u8acb\u9032\u884c\u4ee5\u4e0b\u5169\u7a2e\u8a2d\u5b9a<\/h3>\n<p>date.timezone=Asia\/Taipei<br \/>\n\u4e3b\u6a5f\u9810\u8a2d\u6642\u5340\uff0c\u5426\u5247\u7cfb\u7d71\u6293\u5230\u7684\u6642\u9593\u6703\u6709\u8aa4\u5dee\u516b\u5c0f\u6642\u3002<br \/>\ndisplay_errors=On<br \/>\n\u5426\u5247\u7db2\u7ad9\u8b8a\u6210\u7a7a\u767d\u6642\u5c07\u5f88\u96e3\u9032\u884c\u9664\u932f\u3002<br \/>\n\u627e\u5230\u7db2\u7ad9\u76ee\u9304\u8a2d\u5b9a\uff08\u6216\u4f7f\u7528\u8005\u7db2\u7ad9\u76ee\u9304\u8a2d\u5b9a\uff09\uff0c\u770b\u770b\u5176\u4e2d\u7684 AllowOverride \u8a2d\u5b9a\u8acb\u5c07\u4e4b\u8a2d\u6210\u300cAllowOverride All\u300d\u6216\u8005\u300cAllowOverride <span style=\"color: #ff0000\">Options <\/span>AuthConfig FileInfo Limit\u300d\uff08\u91cd\u9ede\u5728\u90a3\u500b<span style=\"color: #ff0000\"> Options <\/span>\u4e00\u5b9a\u8981\u6709\uff09<\/p>\n<p>userdir.conf Directory \u591a\u4e00\u5c64\u8a2d\u5b9a<\/p>\n<p>000-default.conf \u4fee\u6539\u8a2d\u5b9aServerName\u3001ServerAdmin\u53caDocumentRoot<\/p>\n<p><span style=\"color: #000000\">6.apt-get install <\/span>phpmyadmin<\/p>\n<table style=\"height: 236px\" width=\"521\">\n<tbody>\n<tr>\n<td>\u00a0<strong>\u5b89\u88dd phpMyAdmin(<span style=\"color: #ff0000\">\u904e\u7a0b\u9078\u64c7NO<\/span>)<br \/>\n<\/strong>1. \u8907\u88fdconfig.sample.inc.php\u6210config.inc.php\u3002<br \/>\n2. \u4fee\u6539config.inc.php<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;auth_type&#8217;] = &#8216;http&#8217;;\u00a0\u00a0\/* cookie\u6539\u6210http *\/<br \/>\n$cfg[&#8216;Servers&#8217;][$i][&#8216;AllowNoPassword&#8217;] = true;\u00a0\u00a0\/*\u8981\u6539\u6210true\uff0c\u56e0\u70baMySQL root\u9810\u8a2d\u70ba\u7a7a\u767d *\/<br \/>\n3.<span style=\"color: #0000ff\">\u91cd\u65b0\u555f\u52d5reboot<\/span><br \/>\n\u8f38\u5165 http:\/\/localhost\/phpmyadmin\/index.php \uff0c\u5c31\u53ef\u4ee5\u9032\u5165phpmyadmin\u4f86\u7ba1\u7406MySQL\u4e86\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>7.\u5b89\u88ddproftp(standalone)<br \/>\n\u4fee\u6539proftp\u8a2d\u5b9a\uff0c\u53d6\u6d88# DefaultRoot ~\u7684#\u3002<br \/>\nServerName\u88e1\u9762\u4e0d\u80fd\u6709\u7a7a\u683c\u3002\u53ef\u4ee5\u91cd\u65b0\u555f\u52d5\uff0c\u4f46\u4e0d\u80fd\u9023\u7dda\u3002<\/p>\n<p>8.apt-get install bridge-utils(\u9632\u706b\u7246)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ubuntu 14.04 LTS \u4f3a\u670d\u5668\u7248\u5b89\u88dd 0.\u82f1\u6587\u4ecb\u9762\u5b89\u88dd\u3001\u4e0d\u81ea\u52d5\u66f4\u65b0 1 &hellip; <a href=\"http:\/\/163.26.205.2\/~teablog\/tea1001\/?p=1126\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[3],"tags":[],"_links":{"self":[{"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=\/wp\/v2\/posts\/1126"}],"collection":[{"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1126"}],"version-history":[{"count":0,"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=\/wp\/v2\/posts\/1126\/revisions"}],"wp:attachment":[{"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1126"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1126"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/163.26.205.2\/~teablog\/tea1001\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1126"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}