keithsalisbury-subtrac 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.markdown +108 -68
- data/VERSION.yml +1 -1
- metadata +1 -1
data/README.markdown
CHANGED
@@ -27,57 +27,32 @@ For all users, you can add it here:
|
|
27
27
|
|
28
28
|
Start with a Fresh VM Image
|
29
29
|
Install jeos (hardy)
|
30
|
-
# mount guest additions -
|
31
|
-
sudo mount /media/cdrom0/ -o unhide
|
32
30
|
|
31
|
+
## install the guest additions
|
32
|
+
# mount guest additions (select Devices>Install Guest Additions from menu)
|
33
|
+
sudo mount /media/cdrom0/ -o unhide
|
33
34
|
# install gcc and make
|
34
35
|
sudo aptitude install build-essential linux-headers-`uname -r`
|
35
|
-
|
36
|
-
# install the guest additions
|
37
36
|
sudo /cdrom/VBoxLinuxAdditions-x86.run all
|
38
37
|
|
39
|
-
|
38
|
+
## install openssh-server?
|
40
39
|
sudo apt-get install openssh-server
|
41
40
|
|
42
|
-
|
43
|
-
sudo apt-get install ruby rubygems
|
44
|
-
|
45
|
-
# update gems
|
46
|
-
sudo apt-get update --system
|
47
|
-
|
48
|
-
# edit bash.bashrc so all users can run the gem binaries
|
49
|
-
sudo vi /etc/bash.bashrc
|
50
|
-
|
51
|
-
# add github to the gem sources list
|
52
|
-
sudo gem sources -a http://gems.github.com
|
53
|
-
|
54
|
-
# some other pre-requisites
|
41
|
+
## some other pre-requisites
|
55
42
|
sudo aptitude install ruby1.8-dev ruby1.8 ri1.8 rdoc1.8 sqlite3
|
56
43
|
|
57
|
-
|
58
|
-
sudo
|
59
|
-
|
44
|
+
## install apache2, python and some modules
|
45
|
+
sudo apt-get install apache2 libapache2-mod-python libapache2-mod-python-doc \
|
46
|
+
libapache2-svn python-setuptools subversion python-subversion \
|
47
|
+
libapache2-dav graphviz htmldoc enscript
|
60
48
|
# enable mod_rewrite
|
61
|
-
a2enmod rewrite
|
62
|
-
|
63
|
-
# enable dav
|
64
|
-
sudo apt-get install libapache2-svn
|
49
|
+
sudo a2enmod rewrite
|
65
50
|
|
66
|
-
|
67
|
-
sudo
|
68
|
-
|
69
|
-
sudo apt-get install apache2 libapache2-mod-python \
|
70
|
-
libapache2-svn python-setuptools subversion python-subversion
|
51
|
+
## install Trac
|
52
|
+
sudo easy_install -U setuptools
|
71
53
|
sudo easy_install Trac
|
72
54
|
|
73
|
-
|
74
|
-
sudo apt-get install build-essential graphviz
|
75
|
-
sudo apt-get install htmldoc
|
76
|
-
sudo apt-get install enscript
|
77
|
-
|
78
|
-
easy_install -U setuptools
|
79
|
-
|
80
|
-
# some cool plugins
|
55
|
+
## some cool plugins
|
81
56
|
sudo easy_install http://svn.edgewall.org/repos/genshi/trunk/
|
82
57
|
sudo easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk
|
83
58
|
sudo easy_install http://trac-hacks.org/svn/customfieldadminplugin/0.11
|
@@ -90,15 +65,40 @@ Install jeos (hardy)
|
|
90
65
|
sudo easy_install http://trac-hacks.org/svn/tracwysiwygplugin/0.11
|
91
66
|
sudo easy_install http://wikinotification.ufsoft.org/svn/trunk
|
92
67
|
|
93
|
-
|
68
|
+
## install gems and update
|
69
|
+
sudo apt-get install rubygems
|
70
|
+
sudo gem update --system
|
71
|
+
|
72
|
+
Which introduced this error:
|
73
|
+
/usr/bin/gem:23: uninitialized constant Gem::GemRunner(NameError)
|
74
|
+
Simply add the line to the file /usr/bin/gem (may be different on a mac)
|
75
|
+
require 'rubygems/gem_runner'
|
76
|
+
after
|
77
|
+
require 'rubygems'
|
78
|
+
OR
|
79
|
+
|
80
|
+
sudo mv /usr/bin/gem /usr/bin/gem.old; sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
|
81
|
+
|
82
|
+
# edit bash.bashrc so all users can run the gem binaries
|
83
|
+
sudo vi /etc/bash.bashrc ? not sure we need this any more...
|
84
|
+
# add github to the gem sources list
|
85
|
+
sudo gem sources -a http://gems.github.com
|
86
|
+
# install subtrac gem package
|
87
|
+
sudo gem install keithsalisbury-subtrac
|
88
|
+
|
89
|
+
## install subtrac server
|
94
90
|
sudo subtrac install [--clean]
|
95
91
|
|
96
|
-
# Mount a shared host folder from the VM Guest
|
97
|
-
mount.vboxsf pkg /mnt/subtrac/
|
98
92
|
|
99
|
-
#
|
93
|
+
# Other things to setup
|
94
|
+
|
95
|
+
## Mount a shared host folder from the VM Guest
|
96
|
+
sudo mkdir /mnt/subtrac
|
97
|
+
sudo mount.vboxsf pkg /mnt/subtrac/
|
98
|
+
|
99
|
+
## Setting up VM to use an internal loop back interface
|
100
100
|
|
101
|
-
|
101
|
+
### Create the interal interface
|
102
102
|
Snakey:~ adambarton$ sudo -i
|
103
103
|
Snakey:~ root# python
|
104
104
|
Python 2.5.1 (r251:54863, Apr 15 2008, 22:57:26)
|
@@ -111,50 +111,90 @@ Install jeos (hardy)
|
|
111
111
|
|
112
112
|
Leave this window open...
|
113
113
|
|
114
|
-
|
114
|
+
### Configure the interface
|
115
115
|
|
116
|
-
|
117
|
-
Snakey:~ root# ifconfig tap1
|
118
|
-
tap1: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
|
119
|
-
inet 100.100.100.100 netmask 0xff000000 broadcast 100.255.255.255
|
120
|
-
ether ea:a2:95:41:b0:8f
|
121
|
-
open (pid 4104)
|
116
|
+
sudo ifconfig 192.168.3.1 up
|
122
117
|
|
123
|
-
|
118
|
+
### Configure the VM
|
124
119
|
|
125
|
-
VBoxManage modifyvm TestHost1 -nic1 hostif -hostifdev1 'tap1: ethernet'
|
120
|
+
VBoxManage modifyvm TestHost1 -nic1 hostif -hostifdev1 'tap1: ethernet'
|
121
|
+
|
122
|
+
Or if you prefer to use the second network interface, try this:
|
123
|
+
|
124
|
+
VBoxManage modifyvm subtrac -nic1 hostif -hostifdev2 'tap1: Ethernet'
|
126
125
|
|
127
126
|
Boot it, and give it a static address on the same subnet
|
128
127
|
|
129
|
-
|
128
|
+
### Assign a static ip
|
130
129
|
|
131
130
|
sudo vi /etc/networking/interfaces
|
132
131
|
|
133
|
-
# The primary network interface
|
134
|
-
auto eth0
|
135
|
-
iface eth0 inet
|
136
|
-
address 10.0.2.2
|
137
|
-
netmask 255.255.255.0
|
138
|
-
network 10.0.2.0
|
139
|
-
broadcast 10.0.2.255
|
140
|
-
gateway 10.0.2.200
|
132
|
+
# The primary network interface
|
133
|
+
auto eth0
|
134
|
+
iface eth0 inet dhcp
|
141
135
|
|
142
|
-
# The secondary network interface
|
143
|
-
auto eth1
|
144
|
-
iface
|
145
|
-
|
146
|
-
|
136
|
+
# The secondary network interface
|
137
|
+
auto eth1
|
138
|
+
iface eth1 inet static
|
139
|
+
address 192.168.100.2
|
140
|
+
netmask 255.255.255.0
|
147
141
|
|
142
|
+
For linux users there's an even cooler way to set this up...
|
148
143
|
http://muffinresearch.co.uk/archives/2009/04/08/virtualbox-access-guests-via-a-virtual-interface/
|
149
144
|
|
150
|
-
|
145
|
+
### OSX Map your new domain to the ip
|
151
146
|
|
152
147
|
sudo mate /private/etc/hosts
|
153
148
|
|
154
149
|
10.0.2.2 dev.subtrac.com
|
155
150
|
|
151
|
+
### OSX Auto start the VM
|
152
|
+
|
153
|
+
sudo mate /Library/LaunchDaemons/com.subtrac.plist
|
154
|
+
|
155
|
+
And make it look something like this:
|
156
|
+
|
157
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
158
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" \
|
159
|
+
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
160
|
+
<plist version="1.0">
|
161
|
+
<dict>
|
162
|
+
<key>Label</key>
|
163
|
+
<string>Subtrac Development Server</string>
|
164
|
+
<key>ServiceDescription</key>
|
165
|
+
<string>VirtualBox</string>
|
166
|
+
<key>ProgramArguments</key>
|
167
|
+
<array>
|
168
|
+
<string>/usr/bin/VBoxHeadless</string>
|
169
|
+
<string>-startvm</string>
|
170
|
+
<string>dev.subtrac.com</string>
|
171
|
+
</array>
|
172
|
+
<key>RunAtLoad</key>
|
173
|
+
<true/>
|
174
|
+
<key>HopefullyExitsFirst</key>
|
175
|
+
<true/>
|
176
|
+
<!-- use if you want it to bounce automatically...
|
177
|
+
<key>KeepAlive</key>
|
178
|
+
<true/>
|
179
|
+
-->
|
180
|
+
<key>UserName</key>
|
181
|
+
<string>root</string>
|
182
|
+
</dict>
|
183
|
+
</plist>
|
184
|
+
|
185
|
+
### Login with out a prompt
|
186
|
+
|
187
|
+
# generate a new keypair
|
188
|
+
sh-keygen -t rsa
|
189
|
+
|
190
|
+
# push the pub key up to the server
|
191
|
+
cat ~/.ssh/id_rsa.pub | ssh keith@dev.subtrac.com "cat - >> ~/.ssh/authorized_keys"
|
192
|
+
|
193
|
+
# chmod the file **on the server**:
|
194
|
+
sudo chmod 600 ~/.ssh/authorized_keys
|
195
|
+
|
156
196
|
|
157
197
|
|
158
198
|
## Copyright
|
159
199
|
|
160
|
-
Copyright (c) 2009
|
200
|
+
Copyright (c) 2009 Keith Salisbury. See LICENSE for details.
|
data/VERSION.yml
CHANGED