-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.sh
79 lines (64 loc) · 2.03 KB
/
commands.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/bin/sh
# working on AMI Linux image x86_64
# install and enable epel repo
sudo yum install patch
sudo patch /etc/yum.repos.d/epel.repo epel.repo.patch
# install and disable rpm forge repo
sudo rpm -ivh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.x86_64.rpm
sudo patch /etc/yum.repos.d/rpmforge.repo rpmforge.repo.patch
# install tools
sudo yum install tmux
sudo yum install git
sudo yum install make
sudo yum install gcc
sudo yum install ctags
sudo yum install telnet
# git settings
mkdir ~/git
git config --global user.name "Matsushima Hiroki"
git config --global user.mailaddress "[email protected]"
# settings
cp .tmux.conf ~/.tmux.conf
# install nginx
sudo yum install nginx
# install mongodb
# error occurred when I try to install from epel repo
sudo cp 10gen.repo /etc/yum.repos.d/10gen.repo
sudo yum install mongo-10gen mongo-10gen-server
# install sbt
sudo rpm -ivh http://rpm.typesafe.com/typesafe-repo-2.0.0-1.noarch.rpm
sudo yum install --nogpgcheck sbt
sbt
# conscript & giter8
curl https://raw.github.com/n8han/conscript/master/setup.sh | sh
cs n8han/giter8
# below comand raise error
# cs harrah/xsbt --branch 0.11.2
# scalatra example
## mkdir ~/scalatra
## cd ~/scalatra
## g8 scalatra/scalatra-sbt
### default value
## cd scalatra-sbt-prototype
## sbt
### > container:start & access with http port 8080
# make swap
sudo dd if=/dev/zero of=/var/swapfile bs=1M count=2048 &&
sudo chmod 600 /var/swapfile &&
sudo mkswap /var/swapfile &&
echo /var/swapfile none swap defaults 0 0 | sudo tee -a /etc/fstab &&
sudo swapon -a
# install open jdk devel
sudo yum install java-1.6.0-openjdk-devel
# install postfix
sudo yum install postfix
# change mail daemon
sudo /etc/init.d/sendmail stop
sudo chkconfig sendmail off
alternatives --config mta # select postfix for mta
sudo /etc/init.d/postfix start
sudo chkconfig postfix on
# try command below to connect from localhost
# telnet localhost 25
# and you can send email by telnet or sendmail from localhost
# need some more setting to use from outside