Created
March 19, 2012 16:23
-
-
Save daneko/2117972 to your computer and use it in GitHub Desktop.
Ubuntu Server 10.04 LTS amd64 構築 Cloudcore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
まずは以下のとおり作業 | |
http://www.cloudcore.jp/vps/faq/os/ubuntu/ | |
$ mkdir .ssh | |
$ chmod 700 .ssh | |
# id_rsa.pubをscpで .sshにup | |
$ mv .ssh/id_rsa.pub .ssh/authorized_keys | |
$ chmod 600 .ssh/authorized_keys | |
# ssh で再度ログイン確認 | |
# /etc/ssh/sshd_config の中身で PasswordAuthentication no にするのを忘れずに | |
https://wiki.ubuntulinux.jp/UbuntuTips/Install/UpgradeLucid | |
# ubuntu 自体をupdate | |
$ sudo apt-get install update-manager-core | |
$ sudo do-release-upgrade -d | |
$ sudo apt-get update | |
$ sudo apt-get upgrade | |
$ sudo aptitude install language-pack-ja | |
$ sudo dpkg-reconfigure locales | |
# エラー検索のことを考えると英語出力のほうがいい場合もあるので | |
# 必要に応じて切り替え | |
$ export LC_ALL=en_US.utf8 | |
# なぜか時間がずれていたので | |
$ export TZ=JST | |
# すでに/etc/localtimeがいたら一旦削除 | |
$ sudo ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime | |
# 各種設定ファイルを持ってきたいのでまずhgインストール | |
$ sudo apt-get install zlib1g-dev | |
$ sudo apt-get install libbz2-dev | |
$ wget http://python.org/ftp/python/2.7.2/Python-2.7.2.tgz | |
$ tar zxvf Python-2.7.2.tgz | |
$ cd Python-2.7.2 | |
$ ./configure --with-threads --enable-shared | |
$ make | |
$ make install | |
$ vi /etc/ld.so.conf.d/python2.7.conf | |
→ /usr/local/lib を追記 | |
$ /sbin/ldconfig | |
$ wget http://peak.telecommunity.com/dist/ez_setup.py | |
$ sudo python ez_setup.py | |
$ sudo easy_install pip | |
$ sudo pip install mercurial | |
# zsh | |
$ tar xpvf zsh-4.3.17.tar.gz | |
$ cd zsh-4.3.17/ | |
$ ./configure | |
# 多分 ncurses-develが足りないと言われる | |
$ sudo apt-get install libncurses5-dev | |
$ sudo make;sudo make install | |
$ sudo vi /etc/shells → zsh 追加 | |
$ chsh → zsh選択 | |
# nginx | |
$ sudo aptitude install nginx | |
$ sudo /etc/init.d/nginx start | |
# git | |
$ sudo aptitude install git-core | |
# java | |
http://d.hatena.ne.jp/seventhmay/20110601/1306905866 | |
$ sudo apt-get install python-software-properties | |
$ sudo apt-get update | |
# 色々と諦めてopenjdkを選んだ | |
# http://happy-coding.com/install-sun-java6-jdk-on-ubuntu-10-04-lucid/ このあたりの方法が | |
# 普通のようだけど | |
# E: Package sun-java6-jdk has no installation candidate となるし… | |
$ sudo aptitude install openjdk-6-jdk | |
# jenkins | |
$ wget -q -O - http://pkg.jenkins-ci.org/debian/jenkins-ci.org.key | sudo apt-key add - | |
$ sudo echo "deb http://pkg.jenkins-ci.org/debian binary/" >> /etc/apt/sources.list | |
$ sudo apt-get install jenkins | |
$ sudo service jenkins start | |
# sphinx | |
$ sudo pip install sphinx | |
# chkconfigがubunthはないらしいので | |
http://se-suganuma.blogspot.jp/2009/04/ubuntuchkconfig.html | |
$ sudo aptitude install sysv-rc-conf | |
$ sudo sysv-rc-conf #で起動デーモン選択可 | |
# なおsysv-rc-confはパッケージupdateすると設定が飛ぶとかどっかに書いてあったので注意 | |
# iptables 自動起動設定 | |
# /etc/network/if-pre-up.d/以下に作ってもダメだったので | |
http://d.hatena.ne.jp/mercysluck/20120211/p1 | |
$ sudo aptitude install iptables-persistent | |
# 直接設定を吐き出すとsudoでも怒られたので… | |
$ sudo iptables-save > /tmp/rule | |
$ sudo rm /etc/iptables/rule | |
$ sudo mv /tmp/rule /etc/iptables | |
$ sudo service iptables-persistent | |
# sysv-rc-conf で起動時の設定 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment