You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/_posts/2020-05-11-getting_started_manjaro.md
+18-6
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,20 @@ date: 2020-05-11 07:34:13
5
5
categories: PiCrate update
6
6
permalink: /getting_manjaro/
7
7
---
8
-
If Manjaro does not come with a pre-installed java, then the first step is to install a `jdk` the distro version (jdk14) should work. Setting the JDK_HOME environment (easiest done `/etc/profile.d`). You can use pacman to install the latest jruby.
8
+
If Manjaro does not come with a pre-installed java, then the first step is to install a `jdk` the distro version (jdk14) should work.
9
9
10
10
```bash
11
-
mkdir -p ~/.gem/ruby/2.5.0
11
+
sudo pacman -S jdk-openjdk # current distro version jdk14
12
12
```
13
+
You can also use pacman to install jruby
14
+
```bash
15
+
sudo pacman -S jruby # current version jruby-9.2.13.0
16
+
```
17
+
It is probably a good idea to create a local gem store (rather needing to use sudo to install gems)
13
18
19
+
```bash
20
+
mkdir -p ~/.gem/ruby/2.5.0 # current MRI version supported by jruby
21
+
```
14
22
Now set your `GEM_HOME`, `GEM_PATH` and amend your `PATH` as follows:-
source~/.bashrc # to update environment without re-logging in
21
29
```
22
-
Now should be ready to install `picrate` and other gems.
23
-
Install a local version of rake:-
30
+
Now should be ready to install `picrate` and other gems. But speed up install time you should set `--no-document` option in ~/.gemrc
31
+
24
32
```bash
25
-
jgem install rake
33
+
touch ~/.gemrc
34
+
echo"gem: --no-document">~/.gemrc
26
35
```
27
36
To install latest picrate and its dependencies:-
28
37
29
38
```bash
30
39
jgem install picrate
31
40
```
41
+
42
+
Geany is a good editor/ide for PiCrate on the RaspberryPI (install via pacman), but some may prefer vim. For geany you should edit/preferences.Terminal to `Execute programs in the VTE`.
43
+
32
44
__For a first install:-__
33
45
34
46
```bash
@@ -37,7 +49,7 @@ picrate --install # no args, install samples and geany config
37
49
picrate -i Samples # to omit geany config
38
50
```
39
51
40
-
This installs example sketches in `~/projects/examples` and ties them into a `geany` project `examples.geany`. It should also be possible to run sketches from the `geany` ide.
52
+
This installs example sketches in `~/projects/examples` and ties them into a `geany` project `examples.geany`. It should also be possible to run sketches from the `geany` ide. The geany config creates `picrate.rb` template sketch so you can create a new sketch with template.
41
53
42
54
To create a template sketch from the command line:-
0 commit comments