Description:
Update README.rdoc
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r861:b967d2a3a85c - - 1 file changed: 1 inserted, 1 deleted
@@ -40,49 +40,49 | |||||
|
40 |
|
40 | ||
|
41 | First, we install necessary package for installing RVM. |
|
41 | First, we install necessary package for installing RVM. |
|
42 |
|
42 | ||
|
43 | cafe@grader:~$ sudo apt install software-properties-common |
|
43 | cafe@grader:~$ sudo apt install software-properties-common |
|
44 |
|
44 | ||
|
45 | Second, we add the custom PPA, update the system and install RVM. |
|
45 | Second, we add the custom PPA, update the system and install RVM. |
|
46 |
|
46 | ||
|
47 | cafe@grader:~$ sudo apt-add-repository -y ppa:rael-gc/rvm |
|
47 | cafe@grader:~$ sudo apt-add-repository -y ppa:rael-gc/rvm |
|
48 | cafe@grader:~$ sudo apt-get update |
|
48 | cafe@grader:~$ sudo apt-get update |
|
49 | cafe@grader:~$ sudo apt-get install rvm |
|
49 | cafe@grader:~$ sudo apt-get install rvm |
|
50 |
|
50 | ||
|
51 | We also need to add our user to the rvm group |
|
51 | We also need to add our user to the rvm group |
|
52 |
|
52 | ||
|
53 | sudo usermod -a -G rvm $USER |
|
53 | sudo usermod -a -G rvm $USER |
|
54 |
|
54 | ||
|
55 | This is very important. |
|
55 | This is very important. |
|
56 | 1. You have to reboot since RVM change a lots of system. |
|
56 | 1. You have to reboot since RVM change a lots of system. |
|
57 | 2. If you are using GUI version of Ubuntu, be sure to have Gnome Terminal (or any other terminal you are using) perform login every time. This can be done by mark the check box "Run command as a login shell" in Gnome terminal or by adding --login to bash. |
|
57 | 2. If you are using GUI version of Ubuntu, be sure to have Gnome Terminal (or any other terminal you are using) perform login every time. This can be done by mark the check box "Run command as a login shell" in Gnome terminal or by adding --login to bash. |
|
58 |
|
58 | ||
|
59 | === 3. Install necessary package and nodejs |
|
59 | === 3. Install necessary package and nodejs |
|
60 |
|
60 | ||
|
61 |
|
61 | ||
|
62 | First, we install required package via apt. |
|
62 | First, we install required package via apt. |
|
63 |
|
63 | ||
|
64 |
- cafe@grader:~$ sudo apt install git libmysqlclient-dev default-jdk unzip php-cli apache2 |
|
64 | + cafe@grader:~$ sudo apt install git libmysqlclient-dev default-jdk unzip php-cli apache2 apache2-dev |
|
65 |
|
65 | ||
|
66 | Next, we need nodejs. Depends on your ubuntu version, the step to install correct version of nodejs differs. |
|
66 | Next, we need nodejs. Depends on your ubuntu version, the step to install correct version of nodejs differs. |
|
67 |
|
67 | ||
|
68 | ==== 3.1 Install nodejs on Ubuntu 18.04 |
|
68 | ==== 3.1 Install nodejs on Ubuntu 18.04 |
|
69 |
|
69 | ||
|
70 | Since nodejs that comes with ubuntu 18.04 is very outdated, we need to install it manually. This follow the method outlined in https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04 under *Installing Node.js with Apt Using a NodeSource PPA* |
|
70 | Since nodejs that comes with ubuntu 18.04 is very outdated, we need to install it manually. This follow the method outlined in https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-18-04 under *Installing Node.js with Apt Using a NodeSource PPA* |
|
71 |
|
71 | ||
|
72 | cd ~ |
|
72 | cd ~ |
|
73 | curl -sL https://deb.nodesource.com/setup_17.x -o nodesource_setup.sh |
|
73 | curl -sL https://deb.nodesource.com/setup_17.x -o nodesource_setup.sh |
|
74 | sudo bash nodesource_setup.sh |
|
74 | sudo bash nodesource_setup.sh |
|
75 | sudo apt install nodejs |
|
75 | sudo apt install nodejs |
|
76 |
|
76 | ||
|
77 | ==== 3.2 Install nodejs on Ubuntu 20.04 or newer |
|
77 | ==== 3.2 Install nodejs on Ubuntu 20.04 or newer |
|
78 |
|
78 | ||
|
79 | cafe@grader:~$ sudo apt install nodejs |
|
79 | cafe@grader:~$ sudo apt install nodejs |
|
80 |
|
80 | ||
|
81 | === 4. Install cafe-grader |
|
81 | === 4. Install cafe-grader |
|
82 |
|
82 | ||
|
83 | First, ensure that RVM is installed correctly. |
|
83 | First, ensure that RVM is installed correctly. |
|
84 |
|
84 | ||
|
85 | cafe@grader:~$ rvm |
|
85 | cafe@grader:~$ rvm |
|
86 |
|
86 | ||
|
87 | If you get a result similar to this. |
|
87 | If you get a result similar to this. |
|
88 |
|
88 |
You need to be logged in to leave comments.
Login now