Skip to content

Commit 6690f9f

Browse files
linux instructions
1 parent 8ebcd61 commit 6690f9f

File tree

2 files changed

+22
-4
lines changed

2 files changed

+22
-4
lines changed

README.md

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ Currently all the applets are tested on [NXP JCOP3 J3H145 card](https://www.smar
1616

1717
# Toolchain installation
1818

19-
Instructions are for MacOS only at the moment.
20-
2119
JDK8 works. The most recent one doesn't.
2220

2321
Big thanks to https://adoptopenjdk.net/ for all old versions of jdk!
2422

2523
Install deps:
2624

25+
## MacOS
26+
2727
```sh
2828
brew tap adoptopenjdk/openjdk
2929
brew cask install adoptopenjdk/openjdk/adoptopenjdk8
@@ -38,6 +38,19 @@ export PATH="/usr/local/opt/[email protected]/bin:$PATH"
3838
export JAVA_HOME="/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home"
3939
```
4040

41+
## Linux
42+
43+
```sh
44+
sudo apt install openjdk-8-jdk
45+
sudo apt install ant
46+
```
47+
48+
Install the smartcard service:
49+
50+
```sh
51+
sudo apt install pcscd
52+
```
53+
4154
# Tools
4255

4356
- `gp.jar` - a working and easy to use tool for applets management, by [martinpaljak](https://github.com/martinpaljak/GlobalPlatformPro) (LGPL3)
@@ -52,6 +65,8 @@ alias gp="java -jar $PWD/gp.jar"
5265

5366
# How to build
5467

68+
Make sure to clone recursively or run `git submodule update --init --recursive` if you have an error "No usable JavaCard SDK referenced"
69+
5570
Run to compile all applets:
5671

5772
```sh

tests/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
# Install requirements
22

3-
1. You should have [libsecp256k1](https://github.com/bitcoin-core/secp256k1) installed in the system. For now.
4-
2. Install requirements: `pip3 install -r requirements.txt`
3+
On Linux you need: `sudo apt install swig libpcsclite-dev`
4+
5+
1. Install requirements: `pip3 install -r requirements.txt`
6+
2. You should have [libsecp256k1](https://github.com/bitcoin-core/secp256k1) installed in the system. For now.
7+
58

69
# Running tests
710

0 commit comments

Comments
 (0)