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