{"id":107001,"date":"2011-06-19T01:06:22","date_gmt":"2011-06-18T17:06:22","guid":{"rendered":"\/2011\/06\/19\/vps_ubuntu_10.04_setup.html"},"modified":"2011-06-19T01:06:22","modified_gmt":"2011-06-18T17:06:22","slug":"vps_ubuntu_10-04_setup","status":"publish","type":"post","link":"https:\/\/blog.zhenglei.net\/?p=107001","title":{"rendered":"VPS Ubuntu 10.04 config (1)"},"content":{"rendered":"<p>1. \u65b0\u589e\u65e5\u5e38\u7ba1\u7406\u7684\u7528\u6237: &nbsp; myname<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><em>adduser&nbsp; myname<\/em><\/strong><\/p>\n<p>2. \u5c06\u7528\u6237\u52a0\u5165sudo\u7ec4:<\/p>\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><em>gpasswd -a myname sudo<\/em><\/strong><\/code><\/p>\n<p>3.&nbsp; \u542f\u7528sudo\u529f\u80fd:&nbsp;&nbsp; visudo\u5728\/etc\/sudoers\u6587\u4ef6\u91ccroot\u90a3\u884c\u540e\u9762\u6dfb\u52a0\u5165\u65b0\u52a0\u7684\u7ba1\u7406\u7528\u6237\uff1a<\/p>\n<p><code>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><em>root    ALL=(ALL) ALL<br \/>&nbsp;&nbsp;&nbsp;&nbsp; myname    ALL=(ALL) ALL<\/em><\/strong><\/code><\/p>\n<p>4.&nbsp; \u91cd\u65b0\u4ee5 myname \u8d26\u6237\u767b\u5165, \u5e76\u6d4b\u8bd5 sudo \u529f\u80fd<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <strong><em>sudo myname<\/em><\/strong><\/p>\n<p>5. \u7981\u7528root\u8d26\u6237<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <em><strong>sudo passwd -l root<\/strong><\/em><\/p>\n<p>6.&nbsp; \u4fee\u6539ubuntu\u7684\u8f6f\u4ef6\u66f4\u65b0\u6e90:&nbsp;&nbsp;<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <em><strong>sudo nano <code> \/etc\/apt\/sources.list<\/code><\/strong><\/em><\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em> deb&nbsp;&nbsp;&nbsp;&nbsp; http:\/\/us.archive.ubuntu.com\/ubuntu lucid main restricted universe multiverse<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deb&nbsp;&nbsp;&nbsp;&nbsp; http:\/\/us.archive.ubuntu.com\/ubuntu lucid-security main restricted universe multiverse<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deb&nbsp;&nbsp;&nbsp;&nbsp; http:\/\/us.archive.ubuntu.com\/ubuntu lucid-updates main restricted universe multiverse<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deb&nbsp;&nbsp;&nbsp;&nbsp; http:\/\/us.archive.ubuntu.com\/ubuntu lucid-proposed main restricted universe multiverse<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deb&nbsp;&nbsp;&nbsp;&nbsp; http:\/\/us.archive.ubuntu.com\/ubuntu lucid-backports main restricted universe multiverse<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deb-src http:\/\/us.archive.ubuntu.com\/ubuntu lucid main restricted universe multiverse<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deb-src http:\/\/us.archive.ubuntu.com\/ubuntu lucid-security main restricted universe multiverse<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deb-src http:\/\/us.archive.ubuntu.com\/ubuntu lucid-updates main restricted universe multiverse<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deb-src http:\/\/us.archive.ubuntu.com\/ubuntu lucid-proposed main restricted universe multiverse<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; deb-src http:\/\/us.archive.ubuntu.com\/ubuntu lucid-backports main restricted universe multiverse<\/em><\/p>\n<p>7.&nbsp; \u66f4\u65b0\u7cfb\u7edf:<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <em><strong>sudo apt-get update<\/strong><\/em><\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em><strong> sudo apt-get upgrade<\/strong><\/em><\/p>\n<p>8.&nbsp; \u5b89\u88c5\u9700\u8981\u8f6f\u4ef6:<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sudo apt-get install language-pack-en language-pack-zh<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sudo apt-get install bash-completion<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sudo apt-get install vim ctags vim-doc vim-scripts<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sudo apt-get install screen byobu<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #\u5b89\u88c5\u538b\u7f29\u89e3\u538b\u7f29\u8f6f\u4ef6<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sudo apt-get install bzip2 unzip unrar p7zip<\/p>\n<p>#\u5b89\u88c5\u57fa\u672c\u7684\u8bed\u8a00\u73af\u5883\u548c\u5f00\u53d1\u5305<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sudo apt-get install perl python python-dev ruby ruby-dev sqlite sqlite3 openssl<\/p>\n<p>&nbsp;#\u5b89\u88c5\u7f16\u8bd1\u73af\u5883\u548c\u5f00\u53d1\u5305<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sudo apt-get install gcc g++ make autoconf automake patch gdb libtool cpp build-essential libc6-dev libncurses-dev expat<\/p>\n<p>#\u5b89\u88c5\u7b2c\u4e09\u65b9\u7c7b\u5e93\u7684\u5f00\u53d1\u5305<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sudo apt-get install libbz2-dev libexpat1-dev libssl-dev libdb-dev libgmp3-dev <em>&nbsp;<\/em><em>&nbsp;<\/em>liblzo2-dev<\/p>\n<p>#\u5b89\u88c5\u7248\u672c\u63a7\u5236\u5de5\u5177<\/p>\n<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sudo apt-get install git-core subversion mercurial<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Setup Utuntu 10.04 on Cripperz Prodigy vps <a href=\"https:\/\/blog.zhenglei.net\/?p=107001\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[379],"class_list":["post-107001","post","type-post","status-publish","format-standard","hentry","category-internet","tag-vps"],"_links":{"self":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/107001","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=107001"}],"version-history":[{"count":0,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=\/wp\/v2\/posts\/107001\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=107001"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=107001"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.zhenglei.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=107001"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}