Skip to content

Commit cbcbbd3

Browse files
authored
Update 2020-05-11-getting_started_manjaro.md
1 parent 6ff21af commit cbcbbd3

File tree

1 file changed

+18
-6
lines changed

1 file changed

+18
-6
lines changed

docs/_posts/2020-05-11-getting_started_manjaro.md

+18-6
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,20 @@ date: 2020-05-11 07:34:13
55
categories: PiCrate update
66
permalink: /getting_manjaro/
77
---
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.
99

1010
```bash
11-
mkdir -p ~/.gem/ruby/2.5.0
11+
sudo pacman -S jdk-openjdk # current distro version jdk14
1212
```
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)
1318

19+
```bash
20+
mkdir -p ~/.gem/ruby/2.5.0 # current MRI version supported by jruby
21+
```
1422
Now set your `GEM_HOME`, `GEM_PATH` and amend your `PATH` as follows:-
1523

1624
```bash
@@ -19,16 +27,20 @@ echo "export GEM_PATH=\"\${HOME}/.gem/ruby/${MRI_RUBY}\"" >> ~/.bashrc
1927
echo "export PATH=\"\${PATH}:\${GEM_PATH}/bin\"" >> ~/.bashrc
2028
source ~/.bashrc # to update environment without re-logging in
2129
```
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+
2432
```bash
25-
jgem install rake
33+
touch ~/.gemrc
34+
echo "gem: --no-document" > ~/.gemrc
2635
```
2736
To install latest picrate and its dependencies:-
2837

2938
```bash
3039
jgem install picrate
3140
```
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+
3244
__For a first install:-__
3345

3446
```bash
@@ -37,7 +49,7 @@ picrate --install # no args, install samples and geany config
3749
picrate -i Samples # to omit geany config
3850
```
3951

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.
4153

4254
To create a template sketch from the command line:-
4355

0 commit comments

Comments
 (0)