Version at: 19/01/2014, 01:07 vs. version at: 19/01/2014, 01:08 | ||
---|---|---|
1 | 1 | #How to Install the Tatoeba Web App on a Virtual Machine |
2 | 2 | |
3 | #How to Install the Tatoeba Web App on a Virtual Machine | |
3 | * Grab the vm file http://mirrors.bouah.net/pub/tatoeba/Tatovm/ | |
4 | 4 | |
5 | *Grab the vm file http://mirrors.bouah.net/pub/tatoeba/Tatovm/ | |
6 | ||
7 | *Untar the file: | |
5 | * Untar the file: | |
8 | 6 | |
9 | 7 | on windows: use 7zip [http://www.7-zip.org/] |
10 | 8 | |
11 | 9 | on linux: use file-roller or from the terminal: |
12 | 10 | |
13 | 11 | tar -xvf vmfile |
14 | 12 | |
15 | *Get and install virtual box [https://www.virtualbox.org/wiki/Downloads] | |
13 | * Get and install virtual box [https://www.virtualbox.org/wiki/Downloads] | |
16 | 14 | |
17 | *Load the vm files in virtualbox: | |
15 | * Load the vm files in virtualbox: | |
18 | 16 | |
19 | 17 | from the GUI: Machine -> Add then browse to the location of the .vbox file |
20 | 18 | |
21 | 19 | from the commandline: VBoxManage registervm /path/to/vm.vbox |
22 | 20 | |
23 | *The default http port is 8080 and the default ssh port is 4242 | |
21 | * The default http port is 8080 and the default ssh port is 4242 | |
24 | 22 | |
25 | *To ssh into the machine use the username tatoeba and password tatoeba: | |
23 | * To ssh into the machine use the username tatoeba and password tatoeba: | |
26 | 24 | |
27 | 25 | ssh -p 4242 tatoeba@127.0.0.1 |
28 | 26 | |
29 | *Now you can see the website running in your browser, just point it to the following address: | |
27 | * Now you can see the website running in your browser, just point it to the following address: | |
30 | 28 | |
31 | 29 | 127.0.0.1:8080 |
32 | 30 | |
33 | *The mysql user is root and password is tatoeba in case you need to do operations directly on the table or import more data | |
31 | * The mysql user is root and password is tatoeba in case you need to do operations directly on the table or import more data | |
34 | 32 | |
35 | *To hack the codebase in your favorite editor in the comfort of your host computer there's 3 ways: | |
33 | * To hack the codebase in your favorite editor in the comfort of your host computer there's 3 ways: | |
36 | 34 | |
37 | *Mount a drive over ssh: | |
35 | * Mount a drive over ssh: | |
38 | 36 | |
39 | *on windows: download netdrive [www.netdrive.net] and use the aforementioned credentials and port | |
37 | * on windows: download netdrive [www.netdrive.net] and use the aforementioned credentials and port | |
40 | 38 | |
41 | *on linux: install sshfs and then mount it using: | |
39 | * on linux: install sshfs and then mount it using: | |
42 | 40 | |
43 | 41 | sshfs tatoeba@127.0.0.1:4242 /path/to/mountpoint |
44 | 42 | |
45 | *Mount a drive over webdav: | |
43 | * Mount a drive over webdav: | |
46 | 44 | |
47 | *on windows: use netdrive, the user and password is tatoeba the port is 8080 | |
45 | * on windows: use netdrive, the user and password is tatoeba the port is 8080 | |
48 | 46 | |
49 | *on linux: use your favorite file manager with webdav support, or install cadaver and connect using the above credentials | |
47 | * on linux: use your favorite file manager with webdav support, or install cadaver and connect using the above credentials | |
50 | 48 | |
51 | *Mount a shared file (slow and not recommended): | |
49 | * Mount a shared file (slow and not recommended): | |
52 | 50 | |
53 | *Setup Guest additions [https://help.ubuntu.com/community/VirtualBox/GuestAdditions] | |
51 | * Setup Guest additions [https://help.ubuntu.com/community/VirtualBox/GuestAdditions] | |
54 | 52 | |
55 | *In the GUI select Devices -> Shared Folders -> Add | |
53 | * In the GUI select Devices -> Shared Folders -> Add | |
56 | 54 | |
57 | *browse to the folder you want to share from your host and select it | |
55 | * browse to the folder you want to share from your host and select it | |
58 | 56 | |
59 | *Select the Make permanent option | |
57 | * Select the Make permanent option | |
60 | 58 | |
61 | *Now mount the shared file on the guest system: | |
59 | * Now mount the shared file on the guest system: | |
62 | 60 | |
63 | 61 | mount -t vboxfs /media/sharefoldername /path/to/mountpoint |
64 | 62 | |
65 | *You can also install a graphical environment (gnome or any other DE) to work directly from the vm: | |
63 | * You can also install a graphical environment (gnome or any other DE) to work directly from the vm: | |
66 | 64 | |
67 | 65 | apt-get install task-gnome-desktop |
68 | 66 | |
69 | *Make sure your codebase is up to date before coding anything with: | |
67 | * Make sure your codebase is up to date before coding anything with: | |
70 | 68 | |
71 | 69 | cd ~/tatoeba-www |
72 | 70 | |
73 | 71 | svn update |
74 | 72 | |
75 | *After you have hacked the code enough and would want to update the main repository do the following: | |
73 | * After you have hacked the code enough and would want to update the main repository do the following: | |
76 | 74 | |
77 | *make sure your config files aren't being commited: | |
75 | * make sure your config files aren't being commited: | |
78 | 76 | |
79 | svn ingore config/* | |
77 | svn ingore config/* | |
80 | 78 | |
81 | *make sure you're still up to date then commit your changes: | |
79 | * make sure you're still up to date then commit your changes: | |
82 | 80 | |
83 | 81 | svn update |
84 | 82 | |
85 | 83 | svn commit |
diff view generated by jsdifflib |
Version at: 19/01/2014, 01:07
#How to Install the Tatoeba Web App on a Virtual Machine #How to Install the Tatoeba Web App on a Virtual Machine *Grab the vm file http://mirrors.bouah.net/pub/tatoeba/Tatovm/ *Untar the file: on windows: use 7zip [http://www.7-zip.org/] on linux: use file-roller or from the terminal: tar -xvf vmfile *Get and install virtual box [https://www.virtualbox.org/wiki/Downloads] *Load the vm files in virtualbox: from the GUI: Machine -> Add then browse to the location of the .vbox file from the commandline: VBoxManage registervm /path/to/vm.vbox *The default http port is 8080 and the default ssh port is 4242 *To ssh into the machine use the username tatoeba and password tatoeba: ssh -p 4242 tatoeba@127.0.0.1 *Now you can see the website running in your browser, just point it to the following address: 127.0.0.1:8080 *The mysql user is root and password is tatoeba in case you need to do operations directly on the table or import more data *To hack the codebase in your favorite editor in the comfort of your host computer there's 3 ways: *Mount a drive over ssh: *on windows: download netdrive [www.netdrive.net] and use the aforementioned credentials and port *on linux: install sshfs and then mount it using: sshfs tatoeba@127.0.0.1:4242 /path/to/mountpoint *Mount a drive over webdav: *on windows: use netdrive, the user and password is tatoeba the port is 8080 *on linux: use your favorite file manager with webdav support, or install cadaver and connect using the above credentials *Mount a shared file (slow and not recommended): *Setup Guest additions [https://help.ubuntu.com/community/VirtualBox/GuestAdditions] *In the GUI select Devices -> Shared Folders -> Add *browse to the folder you want to share from your host and select it *Select the Make permanent option *Now mount the shared file on the guest system: mount -t vboxfs /media/sharefoldername /path/to/mountpoint *You can also install a graphical environment (gnome or any other DE) to work directly from the vm: apt-get install task-gnome-desktop *Make sure your codebase is up to date before coding anything with: cd ~/tatoeba-www svn update *After you have hacked the code enough and would want to update the main repository do the following: *make sure your config files aren't being commited: svn ingore config/* *make sure you're still up to date then commit your changes: svn update svn commit
version at: 19/01/2014, 01:08
#How to Install the Tatoeba Web App on a Virtual Machine * Grab the vm file http://mirrors.bouah.net/pub/tatoeba/Tatovm/ * Untar the file: on windows: use 7zip [http://www.7-zip.org/] on linux: use file-roller or from the terminal: tar -xvf vmfile * Get and install virtual box [https://www.virtualbox.org/wiki/Downloads] * Load the vm files in virtualbox: from the GUI: Machine -> Add then browse to the location of the .vbox file from the commandline: VBoxManage registervm /path/to/vm.vbox * The default http port is 8080 and the default ssh port is 4242 * To ssh into the machine use the username tatoeba and password tatoeba: ssh -p 4242 tatoeba@127.0.0.1 * Now you can see the website running in your browser, just point it to the following address: 127.0.0.1:8080 * The mysql user is root and password is tatoeba in case you need to do operations directly on the table or import more data * To hack the codebase in your favorite editor in the comfort of your host computer there's 3 ways: * Mount a drive over ssh: * on windows: download netdrive [www.netdrive.net] and use the aforementioned credentials and port * on linux: install sshfs and then mount it using: sshfs tatoeba@127.0.0.1:4242 /path/to/mountpoint * Mount a drive over webdav: * on windows: use netdrive, the user and password is tatoeba the port is 8080 * on linux: use your favorite file manager with webdav support, or install cadaver and connect using the above credentials * Mount a shared file (slow and not recommended): * Setup Guest additions [https://help.ubuntu.com/community/VirtualBox/GuestAdditions] * In the GUI select Devices -> Shared Folders -> Add * browse to the folder you want to share from your host and select it * Select the Make permanent option * Now mount the shared file on the guest system: mount -t vboxfs /media/sharefoldername /path/to/mountpoint * You can also install a graphical environment (gnome or any other DE) to work directly from the vm: apt-get install task-gnome-desktop * Make sure your codebase is up to date before coding anything with: cd ~/tatoeba-www svn update * After you have hacked the code enough and would want to update the main repository do the following: * make sure your config files aren't being commited: svn ingore config/* * make sure you're still up to date then commit your changes: svn update svn commit